From 3d126b65398428f6eaa12fe2f69ab5d7c1e95818 Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Tue, 18 Feb 2014 13:15:02 -0800 Subject: [PATCH] NSX: get_port_status passed wrong id for network The call to get_port_status in update_port was passing in the neutron network_id instead of the nsx_network_id. These used to be the same but now are different. This patch updates the code so that it now passes in the correct uuid. Change-Id: I7b0bd617f68291fa457a49e52d595bb8de1d4835 Closes-bug: #1281789 --- neutron/plugins/nicira/NeutronPlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/plugins/nicira/NeutronPlugin.py b/neutron/plugins/nicira/NeutronPlugin.py index 9b7817ca2..a6f145909 100644 --- a/neutron/plugins/nicira/NeutronPlugin.py +++ b/neutron/plugins/nicira/NeutronPlugin.py @@ -1312,7 +1312,7 @@ class NvpPluginV2(addr_pair_db.AllowedAddressPairsMixin, # since the port was successfully updated but we were not # able to retrieve the status. ret_port['status'] = switchlib.get_port_status( - self.cluster, ret_port['network_id'], + self.cluster, nsx_switch_id, nsx_port_id) # FIXME(arosen) improve exception handling. except Exception: -- 2.45.2