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:
parent
ad74e4fe2d
commit
0a91d6e941
@ -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]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user