Skip to content

Commit

Permalink
Merge "Wrong port id in fip-show of floatingip assigned to virtual-ip"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Aug 26, 2015
2 parents faf2bb7 + 9fca28b commit 2887079
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ def _fip_obj_to_neutron_dict(self, fip_obj, fields=None):
for vmi_ref in vmi_refs or []:
try:
vmi_obj = vmi_get_handler.get_vmi_obj(vmi_ref['uuid'])

# In case of floating ip on the Virtual-ip, svc-monitor will
# link floating ip to "right" interface of service VMs
# launched by ha-proxy service instance. Skip them
props = vmi_obj.get_virtual_machine_interface_properties()
if props:
interface_type = props.get_service_interface_type()
if interface_type == "right":
continue
port_id = vmi_ref['uuid']
break
except vnc_exc.NoIdError:
Expand Down

0 comments on commit 2887079

Please sign in to comment.