1
0
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:
mcabrerizo 2016-11-08 12:46:53 +01:00
parent ad74e4fe2d
commit 1205d23e60

View File

@ -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
}