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:
parent
4cf97994a0
commit
154279f24f
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user