From f72a548ce6ba492475405ae53ba0b0c9d1eccdb5 Mon Sep 17 00:00:00 2001 From: Yuvaraja Mariappan Date: Mon, 28 Nov 2016 13:45:17 -0800 Subject: [PATCH] fix for the dhcp issue when multiple ips are associated with vmi neutron has to omit if the ip is secondary ip or service_instance_ip or service_health_check_ip. Fix is added to take care of the above condition Change-Id: I97d07011f4289468e79cb7e8d67db5beaff0a7ea Closes-bug: 1645414 --- src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py b/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py index d0acc0641af..60ac7f8e1cd 100644 --- a/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py +++ b/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py @@ -2111,7 +2111,10 @@ def _port_vnc_to_neutron(self, port_obj, port_req_memo=None): except NoIdError: continue - if ip_obj.get_service_instance_ip() and ip_obj.get_instance_ip_secondary(): + if ip_obj.get_instance_ip_secondary(): + continue + + if ip_obj.get_service_instance_ip(): continue ip_addr = ip_obj.get_instance_ip_address()