From de44bf570d5055c5f05c8d3c5666d478e1b22881 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 14 Apr 2021 15:53:45 +0200 Subject: [PATCH] B #: Fix PHYDEV behavior for bridge networks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit co-authored-by: Christian González (cherry picked from commit 356c654801cc4007864057b0a375f6e76af83e0e) --- src/vnm_mad/remotes/lib/no_vlan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " \