mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Fix duplicated NICs issue
This commit is contained in:
parent
ad74e4fe2d
commit
1205d23e60
@ -2589,8 +2589,7 @@ private
|
||||
vm.config.hardware.device.each{ |dv|
|
||||
if is_nic?(dv)
|
||||
nics.each{|nic|
|
||||
if nic.elements["MAC"].text == dv.macAddress and
|
||||
nic.elements["BRIDGE"].text == dv.deviceInfo.summary
|
||||
if nic.elements["MAC"].text == dv.macAddress
|
||||
nics.delete(nic)
|
||||
end
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user