mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
B #1600: Fixed bug with duplicated nics
(cherry picked from commit d872ece7bbb6abe1de7d90b22157c09528faa766)
This commit is contained in:
parent
68c6ad8607
commit
0c5f9ef2a3
@ -850,12 +850,11 @@ module OpenNebula
|
||||
rc = Error.new('The NIC_ID is missing from the VM template')
|
||||
raise
|
||||
end
|
||||
REMOVE_VNET_ATTRS.each do |attr|
|
||||
REMOVE_VNET_ATTRS.each do |attr|
|
||||
nic.delete_element(attr)
|
||||
end
|
||||
|
||||
replace << self.template_like_str(
|
||||
"TEMPLATE", true, "NIC[#{nic}]") << "\n"
|
||||
|
||||
replace << "NIC = [ " << nic.template_like_str(".").tr("\n", ",\n") << " ] \n"
|
||||
end
|
||||
|
||||
# Required by the Sunstone Cloud View
|
||||
|
Loading…
x
Reference in New Issue
Block a user