1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +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
commit 646f7520fa

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
}