mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-27 03:21:29 +03:00
feature #407: Minor changes in VirtualNetwork Pool
This commit is contained in:
parent
b227ef8ad3
commit
be33cd53e3
@ -344,8 +344,6 @@ private:
|
|||||||
|
|
||||||
static const char * db_names;
|
static const char * db_names;
|
||||||
|
|
||||||
static const char * extended_db_names;
|
|
||||||
|
|
||||||
static const char * db_bootstrap;
|
static const char * db_bootstrap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -384,7 +382,10 @@ private:
|
|||||||
* @param db pointer to the db
|
* @param db pointer to the db
|
||||||
* @return 0 on success
|
* @return 0 on success
|
||||||
*/
|
*/
|
||||||
int update(SqlDB * db);
|
int update(SqlDB * db)
|
||||||
|
{
|
||||||
|
return insert_replace(db, true);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a VNW from the database and all its associated information:
|
* Deletes a VNW from the database and all its associated information:
|
||||||
|
@ -377,14 +377,6 @@ error_common:
|
|||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
int VirtualNetwork::update(SqlDB * db)
|
|
||||||
{
|
|
||||||
return insert_replace(db, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
|
||||||
/* -------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
int VirtualNetwork::insert_replace(SqlDB *db, bool replace)
|
int VirtualNetwork::insert_replace(SqlDB *db, bool replace)
|
||||||
{
|
{
|
||||||
ostringstream oss;
|
ostringstream oss;
|
||||||
@ -466,7 +458,7 @@ ostream& operator<<(ostream& os, VirtualNetwork& vn)
|
|||||||
{
|
{
|
||||||
string vnet_xml;
|
string vnet_xml;
|
||||||
|
|
||||||
os << vn.to_xml_extended(vnet_xml, true);
|
os << vn.to_xml_extended(vnet_xml,true);
|
||||||
|
|
||||||
return os;
|
return os;
|
||||||
};
|
};
|
||||||
@ -476,7 +468,7 @@ ostream& operator<<(ostream& os, VirtualNetwork& vn)
|
|||||||
|
|
||||||
string& VirtualNetwork::to_xml(string& xml) const
|
string& VirtualNetwork::to_xml(string& xml) const
|
||||||
{
|
{
|
||||||
return to_xml_extended(xml, false);
|
return to_xml_extended(xml,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user