diff --git a/src/vnm_mad/remotes/lib/no_vlan.rb b/src/vnm_mad/remotes/lib/no_vlan.rb index 16c4e8fe3b..f8c11bff63 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 " \