Hi,Prakash Bailkeri:
I admire you much and I have some problem and I need your help.
I bounded floating ip on the right interface of a service vm,
and I found that neutron didn't notify nova "network-changed" since the flowing codes,
leading nova didn't refresh info-cache.
Neutron checks port-id to notify nova but contrail-api skip right interface of service vm.
So, why hide port id of right interface of service VMs?I need to see nova refresh info-cache.
Will there be any problem if I remove the codes in bold?
Thank you
1687 def _floatingip_vnc_to_neutron(self, fip_obj):
1688 fip_q_dict = {}
1689
1690 floating_net_id = self._vnc_lib.fq_name_to_id('virtual-network',
1691 fip_obj.get_fq_name()[:-2])
1692 tenant_id = fip_obj.get_project_refs()[0]['uuid'].replace('-', '')
1693
1694 port_id = None
1695 router_id = None
1696 port_obj = None
1697 port_refs = fip_obj.get_virtual_machine_interface_refs()
1698 if port_refs:
1699 for port_ref in port_refs:
1700 try:
1701 port_obj = self._virtual_machine_interface_read(
1702 port_id=port_ref['uuid'])
1703
1704 # In case of floating ip on the Virtual-ip, svc-monitor will
1705 # link floating ip to "right" interface of service VMs
1706 # launched by ha-proxy service instance. Skip them
1707 props = port_obj.get_virtual_machine_interface_properties()
1708 if props:
1709 interface_type = props.get_service_interface_type()
1710 if interface_type == "right":
1711 continue
1712
1713 port_id = port_ref['uuid']
1714 break
1715 except NoIdError:
1716 pass
-----------
Hang Qian
_______________________________________________ Dev mailing list [email protected] http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
