1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

development: do not check vcenter_net_ref at net creation

This commit is contained in:
Sergio Semedi Barranco 2018-11-23 16:40:56 +01:00 committed by Ruben S. Montero
parent 6b364dbc55
commit cc9e9b725e

View File

@ -150,15 +150,10 @@ int VirtualNetwork::parse_phydev_vlans(const Template* tmpl, const string& vn_ma
bool check_vlan = false;
bool check_outer = false;
bool check_other = false;
vector<string> other;
switch (VirtualNetwork::str_to_driver(vn_mad))
{
case VirtualNetwork::VCENTER:
other.push_back("VCENTER_NET_REF");
check_other = true;
case VirtualNetwork::DUMMY:
check_bridge = true;
break;
@ -173,6 +168,7 @@ int VirtualNetwork::parse_phydev_vlans(const Template* tmpl, const string& vn_ma
check_outer = true;
case VirtualNetwork::BRIDGE:
case VirtualNetwork::VCENTER:
case VirtualNetwork::OVSWITCH:
case VirtualNetwork::EBTABLES:
case VirtualNetwork::FW:
@ -206,6 +202,7 @@ int VirtualNetwork::parse_phydev_vlans(const Template* tmpl, const string& vn_ma
return -1;
}
/*
if ( check_other )
{
vector<string>::iterator it;
@ -220,6 +217,7 @@ int VirtualNetwork::parse_phydev_vlans(const Template* tmpl, const string& vn_ma
}
}
}
*/
return 0;
}