]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
NSX: Pass NSX uuid when plugging l2 gw attachment
authorSalvatore Orlando <salv.orlando@gmail.com>
Wed, 26 Feb 2014 22:38:24 +0000 (14:38 -0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:34 +0000 (15:20 +0800)
The code passed the neutron network identifier.
This is no longer valid as identifiers on the backend are not
anymore the same as neutron identifiers.

Also, this would have hardly worked with networks on extended
logical switches.

Closes-Bug: 1285399
Change-Id: I6fe4d22d5b8d8b7dc3eb1cb3f47ad52ac1a2b565

neutron/plugins/nicira/NeutronPlugin.py

index db5c7bc4b955aa34d3087314c8a6971597982d14..fade1bb21223d3efa50999e7ec5f90d9a124fdd6 100644 (file)
@@ -717,7 +717,7 @@ class NvpPluginV2(addr_pair_db.AllowedAddressPairsMixin,
                 selected_lswitch['uuid'], lport['uuid'])
             l2gwlib.plug_l2_gw_service(
                 self.cluster,
-                port_data['network_id'],
+                selected_lswitch['uuid'],
                 lport['uuid'],
                 port_data['device_id'],
                 int(port_data.get('gw:segmentation_id') or 0))