diff --git a/src/vnm_mad/remotes/lib/vlan.rb b/src/vnm_mad/remotes/lib/vlan.rb index 04b7231fde..c6cf1e35c3 100644 --- a/src/vnm_mad/remotes/lib/vlan.rb +++ b/src/vnm_mad/remotes/lib/vlan.rb @@ -27,15 +27,13 @@ module VNMMAD @locking = true super(vm_tpl, xpath_filter, deploy_id, hypervisor) - - lock - @bridges = get_bridges - unlock end # Activate the driver and creates bridges and tags devices as needed. def activate lock + + @bridges = get_bridges process do |nic| @nic = nic @@ -77,6 +75,8 @@ module VNMMAD # Deactivate the driver and delete bridges and tags devices as needed. def deactivate lock + + @bridges = get_bridges attach_nic_id = @vm['TEMPLATE/NIC[ATTACH="YES"]/NIC_ID']