diff --git a/src/nebula/Nebula.cc b/src/nebula/Nebula.cc index 61dc01330e..3879d2ee71 100644 --- a/src/nebula/Nebula.cc +++ b/src/nebula/Nebula.cc @@ -44,7 +44,6 @@ void Nebula::start() int signal; char hn[80]; string scripts_remote_dir; - string hook_location; if ( gethostname(hn,79) != 0 ) { diff --git a/src/test/Nebula.cc b/src/test/Nebula.cc index 4fb6df495c..c909dc21ba 100644 --- a/src/test/Nebula.cc +++ b/src/test/Nebula.cc @@ -148,7 +148,7 @@ void Nebula::start() etc_location = nebula_location + "etc/"; log_location = nebula_location + "var/"; var_location = nebula_location + "var/"; - hook_location = nebula_location + "share/hooks/"; + hook_location = nebula_location + "hooks/"; remotes_location = nebula_location + "var/remotes/"; if ( nebula_configuration != 0) diff --git a/src/vnm/VirtualNetwork.cc b/src/vnm/VirtualNetwork.cc index 048b7970d2..bb669dd6aa 100644 --- a/src/vnm/VirtualNetwork.cc +++ b/src/vnm/VirtualNetwork.cc @@ -522,7 +522,7 @@ string& VirtualNetwork::to_xml_extended(string& xml, bool extended) const os << "" << phydev << ""; } - os << "" << public_vnet << "" << + os << "" << public_obj << "" << ""<< total_leases << ""<< obj_template->to_xml(template_xml); diff --git a/src/vnm/test/VirtualNetworkPoolTest.cc b/src/vnm/test/VirtualNetworkPoolTest.cc index 40fbb142f2..05e7227242 100644 --- a/src/vnm/test/VirtualNetworkPoolTest.cc +++ b/src/vnm/test/VirtualNetworkPoolTest.cc @@ -274,37 +274,31 @@ public: }; string phydev_xml[] = { - "00oneadminBRIDGE and PHYDEV1br0eth000130.10.0.150:20:20:20:20:200-1", + "000BRIDGE and PHYDEV1br0eth000130.10.0.150:20:20:20:20:200-1", - "10oneadminNo BRIDGE only PHYDEV1onebr1eth000130.10.0.150:20:20:20:20:200-1" + "100No BRIDGE only PHYDEV1onebr1eth000130.10.0.150:20:20:20:20:200-1" }; // test vm with bridge and phydev - rc = vnpool->allocate(0,"oneadmin",phydev_templates[0], &oid); + rc = vnpool->allocate(0,phydev_templates[0], &oid); CPPUNIT_ASSERT( rc >= 0 ); vn = vnpool->get(rc, false); CPPUNIT_ASSERT( vn != 0 ); - ((VirtualNetwork*)vn)->to_xml(xml_str); - oss << * ((VirtualNetwork*)vn); - xml_str = oss.str(); - + ((VirtualNetwork*)vn)->to_xml_extended(xml_str); CPPUNIT_ASSERT( xml_str == phydev_xml[0] ); // test vm with phydev only oss.str(""); - rc = vnpool->allocate(0,"oneadmin",phydev_templates[1], &oid); + rc = vnpool->allocate(0,phydev_templates[1], &oid); CPPUNIT_ASSERT( rc >= 0 ); vn = vnpool->get(rc, false); CPPUNIT_ASSERT( vn != 0 ); - ((VirtualNetwork*)vn)->to_xml(xml_str); - oss << * ((VirtualNetwork*)vn); - xml_str = oss.str(); - + ((VirtualNetwork*)vn)->to_xml_extended(xml_str); CPPUNIT_ASSERT( xml_str == phydev_xml[1] ); }