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:
parent
86f6dda937
commit
221ce1c64b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user