1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

feature #407: Minor changes in VirtualNetwork Pool

This commit is contained in:
Ruben S. Montero 2011-03-08 19:06:42 +01:00
parent b227ef8ad3
commit be33cd53e3
2 changed files with 6 additions and 13 deletions

View File

@ -344,8 +344,6 @@ private:
static const char * db_names;
static const char * extended_db_names;
static const char * db_bootstrap;
/**
@ -384,7 +382,10 @@ private:
* @param db pointer to the db
* @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:

View File

@ -377,14 +377,6 @@ error_common:
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
int VirtualNetwork::update(SqlDB * db)
{
return insert_replace(db, true);
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
int VirtualNetwork::insert_replace(SqlDB *db, bool replace)
{
ostringstream oss;
@ -466,7 +458,7 @@ ostream& operator<<(ostream& os, VirtualNetwork& vn)
{
string vnet_xml;
os << vn.to_xml_extended(vnet_xml, true);
os << vn.to_xml_extended(vnet_xml,true);
return os;
};
@ -476,7 +468,7 @@ ostream& operator<<(ostream& os, VirtualNetwork& vn)
string& VirtualNetwork::to_xml(string& xml) const
{
return to_xml_extended(xml, false);
return to_xml_extended(xml,false);
}
/* -------------------------------------------------------------------------- */