]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
NSX: get_port_status passed wrong id for network
authorAaron Rosen <aaronorosen@gmail.com>
Tue, 18 Feb 2014 21:15:02 +0000 (13:15 -0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:28 +0000 (15:20 +0800)
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

index 9b7817ca2199df9c6fe05deaf6477a9c0587ad3a..a6f145909f7145f0a5d94975481da419cfaf5001 100644 (file)
@@ -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: