F #3387: validate vlan id only when enabled in conf

This commit is contained in:
Javi Fontan committed 2016-11-29 12:53:52 +01:00
1 parent da5374c5af
commit 85e3fda26e
1 file changed
+1 -1
+1 -1
View File
@@ -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]