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

Do not delete VLAN_ID from inside ARs

This commit is contained in:
Jaime Melis 2017-07-13 16:36:05 +02:00
parent a077d0055b
commit 452738b491

View File

@ -762,7 +762,7 @@ module Migrator
reserved_vlan_ids << vlan_id
end
doc.root.xpath('//VLAN_ID').remove
doc.root.xpath("//VLAN_ID[not(parent::AR)]").each {|e| e.remove }
end
doc.root.add_child(doc.create_element("VLAN_ID")).content = vlan_id