From 93688fd0ae631e26d8edb271279767eef7981a41 Mon Sep 17 00:00:00 2001 From: Yuvaraja Mariappan Date: Mon, 28 Nov 2016 10:00:04 -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 f984b12088b..66da86547d7 100644 --- a/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py +++ b/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py @@ -2166,7 +2166,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 if ip_obj.get_service_health_check_ip():