1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-29 09:49:28 +03:00

Merge pull request #140 from n40lab/B4749

Fix duplicated NICs issue
This commit is contained in:
Tino Vázquez
2016-11-08 19:20:57 +01:00
committed by GitHub

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
}