Skip to content

Commit

Permalink
HTTP Instrospect shows virtual interface ip address from instance ip
Browse files Browse the repository at this point in the history
Change-Id: I996a02d4c8eabfe9cd117c5e5ad21f63c50cd9b0
Closes-Bug: #1778901
  • Loading branch information
krzysztofg256 committed Jun 27, 2018
1 parent ba23715 commit 36065bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cvm/sandesh_handler.py
Expand Up @@ -71,12 +71,16 @@ def convert_vn(self, vn_model):
)

def convert_vmi(self, vmi_model):
if vmi_model.vnc_instance_ip is not None:
ip_address = vmi_model.vnc_instance_ip.instance_ip_address
else:
ip_address = 'unset'
return VirtualMachineInterfaceData(
uuid=vmi_model.uuid,
display_name=vmi_model.display_name,
mac_address=vmi_model.vcenter_port.mac_address,
port_key=vmi_model.vcenter_port.port_key,
ip_address=vmi_model.ip_address,
ip_address=ip_address,
vm_uuid=vmi_model.vm_model.uuid,
vn_uuid=vmi_model.vn_model.uuid,
vlan_id=vmi_model.vcenter_port.vlan_id,
Expand Down

0 comments on commit 36065bc

Please sign in to comment.