]> 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)
committerAaron Rosen <aaronorosen@gmail.com>
Sat, 22 Feb 2014 23:17:30 +0000 (15:17 -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 fb248ed2c46198f887219d7cecbf487b224fc0b8..974f079a94cfe297a4f5dbe9d0aae2d5877c6cd3 100644 (file)
@@ -1311,7 +1311,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: