1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

bug #2762: Generate BRIDGE as "onebr<vlanid>" if vlan_id is defined

(cherry picked from commit d1ea5db93c2683727f408d920bdae9c95308ef47)
This commit is contained in:
Ruben S. Montero 2014-02-27 12:43:50 +01:00
parent 4cf97994a0
commit 154279f24f

View File

@ -255,7 +255,16 @@ int VirtualNetwork::insert(SqlDB * db, string& error_str)
{
ostringstream oss;
oss << "onebr" << oid;
oss << "onebr";
if (!vlan_id.empty())
{
oss << vlan_id;
}
else
{
oss << oid;
}
bridge = oss.str();
}