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

Feature #3227: Fix for hybrid IP display

This commit is contained in:
Tino Vazquez 2014-10-08 17:35:32 +02:00 committed by Ruben S. Montero
parent 0672a17787
commit e1e3945ad3

View File

@ -421,11 +421,11 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
when "vcenter"
nic.IP = vm_tmplt['GUEST_IP'] if vm_tmplt['GUEST_IP']
when "ec2"
nic.IP = vm_tmplt['GUEST_IP'] if vm_tmplt['IP_ADDRESS']
nic.IP = vm_tmplt['IP_ADDRESS'] if vm_tmplt['IP_ADDRESS']
when "azure"
nic.IP = vm_tmplt['GUEST_IP'] if vm_tmplt['IPADDRESS']
nic.IP = vm_tmplt['IPADDRESS'] if vm_tmplt['IPADDRESS']
when "softlayer"
nic.IP = vm_tmplt['GUEST_IP'] if vm_tmplt['PRIMARYIPADDRESS']
nic.IP = vm_tmplt['PRIMARYIPADDRESS'] if vm_tmplt['PRIMARYIPADDRESS']
else
isHybrid = false
end