mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
F #3387: validate vlan id only when enabled in conf
This commit is contained in:
1 parent
da5374c5af
commit
85e3fda26e
1 file changed
+1
-1
@@ -47,7 +47,7 @@ module VNMMAD
|
||||
create_bridge
|
||||
|
||||
# Check that no other vlans are connected to this bridge
|
||||
validate_vlan_id
|
||||
validate_vlan_id if @nic[:conf][:validate_vlan_id]
|
||||
|
||||
# Return if vlan device is already in the bridge.
|
||||
next if @bridges[@nic[:bridge]].include? @nic[:vlan_dev]
|
||||
|
||||
Reference in new issue
Block a user