diff --git a/src/vnm_mad/remotes/lib/no_vlan.rb b/src/vnm_mad/remotes/lib/no_vlan.rb index 2450900326..92ee0004b2 100644 --- a/src/vnm_mad/remotes/lib/no_vlan.rb +++ b/src/vnm_mad/remotes/lib/no_vlan.rb @@ -39,7 +39,7 @@ module VNMMAD create_bridge # Return if vlan device is already in the bridge. - next if !@nic[:phydev] || @bridges[@nic[:bridge]].include? @nic[:phydev] + next if !@nic[:phydev] || @bridges[@nic[:bridge]].include?(@nic[:phydev]) # Add phydev device to the bridge. OpenNebula.exec_and_log("#{command(:ip)} link set " \