From 6003ea5589e546f7b366f79f17ea4ee60b476ebc Mon Sep 17 00:00:00 2001 From: Babu Shanmugam Date: Mon, 24 Aug 2015 11:40:55 +0000 Subject: [PATCH] VMI update with fixed-ips is returning incorrect result Closes-bug: #1484907 Change-Id: Ia63a52b23cbdc3eb2c46056d29349245a688efd1 --- .../plugins/opencontrail/vnc_client/vmi_res_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron_plugin_contrail/plugins/opencontrail/vnc_client/vmi_res_handler.py b/neutron_plugin_contrail/plugins/opencontrail/vnc_client/vmi_res_handler.py index ab3c263..bb7959c 100644 --- a/neutron_plugin_contrail/plugins/opencontrail/vnc_client/vmi_res_handler.py +++ b/neutron_plugin_contrail/plugins/opencontrail/vnc_client/vmi_res_handler.py @@ -741,7 +741,8 @@ def resource_update(self, context, port_id, port_q): self._create_instance_ips(vn_obj, vmi_obj, port_q['fixed_ips']) self._resource_update(vmi_obj) - vmi_obj = self._resource_get(id=port_id) + vmi_obj = self._resource_get(id=port_id, + fields=['instance_ip_back_refs']) ret_port_q = self._vmi_to_neutron_port( vmi_obj, extensions_enabled=contrail_extensions_enabled)