1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #3362: count NIC aliases in onedb fsck (#3363)

Signed-off-by: Anton Todorov <a.todorov@storpool.com>
This commit is contained in:
Anton Todorov 2019-05-27 14:00:13 +03:00 committed by Ruben S. Montero
parent a82dd15d84
commit 3f641f6553

View File

@ -43,7 +43,12 @@ module OneDBFsck
end
# DATA: VNets used by this VM
vm_doc.root.xpath("TEMPLATE/NIC").each do |nic|
nics = vm_doc.root.xpath("TEMPLATE/NIC")
vm_doc.root.xpath("TEMPLATE/NIC_ALIAS").each do |nic|
nics << nic
end
nics.each do |nic|
net_id = nil
nic.xpath("NETWORK_ID").each do |nid|
net_id = nid.text.to_i