mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 22:14:13 +09:00
feature #4209: Add Hybrid IP information the OneGate info
(cherry picked from commit 5723ea35e0)
This commit is contained in:
1 parent
a57c8e6ceb
commit
0eb0de90ce
1 file changed
+8
@@ -178,6 +178,14 @@ def build_vm_hash(vm_hash)
|
||||
end
|
||||
end
|
||||
|
||||
OpenNebula::VirtualMachine::EXTERNAL_IP_ATTRS.each do |attr|
|
||||
external_ip = vm_hash["MONITORING"][attr]
|
||||
|
||||
if !external_ip.nil? && !nics.include?(external_ip)
|
||||
nics.push({'IP' => external_ip})
|
||||
end
|
||||
end
|
||||
|
||||
{
|
||||
"VM" => {
|
||||
"NAME" => vm_hash["NAME"],
|
||||
|
||||
Reference in new issue
Block a user