mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 13:16:48 +09:00
F #~: index from 0 (#978)
Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
1 parent
872939fb26
commit
cbf94db3fe
1 file changed
+2
-2
@@ -602,7 +602,7 @@ module VCenterDriver
|
||||
def nic_alias_from_nic(id, nic, nic_index, network_found, vm_object)
|
||||
nic_tmp = ''
|
||||
|
||||
nic_alias_index = 1
|
||||
nic_alias_index = 0
|
||||
if nic[:ipv4_additionals]
|
||||
nic[:ipv4_additionals].split(',').each do |ipv4_additional|
|
||||
ipv4, ipv6 =
|
||||
@@ -1014,7 +1014,7 @@ module VCenterDriver
|
||||
# Track allocated networks for rollback
|
||||
allocated_networks = []
|
||||
|
||||
nic_index = 1
|
||||
nic_index = 0
|
||||
|
||||
vc_nics.each do |nic|
|
||||
# Check if the network already exists
|
||||
|
||||
Reference in new issue
Block a user