mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
feature #700: add support for VLAN_ID in the Host-Managed hook
This commit is contained in:
parent
24796a077b
commit
02670af53f
@ -27,7 +27,11 @@ class OpenNebulaHM < OpenNebulaNetwork
|
||||
dev = nic[:phydev]
|
||||
|
||||
if dev
|
||||
vlan = CONF[:start_vlan] + nic[:network_id].to_i
|
||||
if nic[:vlan_id]
|
||||
vlan = nic[:vlan_id]
|
||||
else
|
||||
vlan = CONF[:start_vlan] + nic[:network_id].to_i
|
||||
end
|
||||
|
||||
create_bridge bridge if !bridge_exists? bridge
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user