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

Feature #4620: Show PCI IPs in onevm list

This commit is contained in:
Carlos Martín 2016-07-18 11:07:34 +02:00
parent b6dbd9c92c
commit 8917dd39aa

View File

@ -164,6 +164,10 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
vm_nics = [vm["TEMPLATE"]['NIC']].flatten
end
if !vm["TEMPLATE"]["PCI"].nil?
vm_nics = [vm_nics, vm["TEMPLATE"]['PCI']].flatten
end
vm_nics.each do |nic|
["IP", "IP6_GLOBAL", "IP6_ULA",
"VROUTER_IP", "VROUTER_IP6_GLOBAL", "VROUTER_IP6_ULA"].each do |attr|