mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Feature #4620: Show PCI IPs in onevm list
(cherry picked from commit 8917dd39aa)
This commit is contained in:
1 parent
8754dc49b3
commit
cdc16e47ef
1 file changed
+4
@@ -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|
|
||||
|
||||
Reference in new issue
Block a user