1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

work around cleanup bug for vms with multiple nics

This commit is contained in:
Corey Melanson 2016-09-20 17:52:20 -04:00 committed by Javi Fontan
parent ad74e4fe2d
commit 0a91d6e941

View File

@ -94,6 +94,9 @@ module VNMMAD
# Get the name of the vlan device.
get_vlan_dev_name
# Return if the bridge doesn't exist because it was already deleted (handles last vm with multiple nics on the same vlan)
next if !@bridges.include? @nic[:bridge]
# Return if the vlan device is not the only left device in the bridge.
next if @bridges[@nic[:bridge]].length > 1 or !@bridges[@nic[:bridge]].include? @nic[:vlan_dev]