]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
NSX: fix tenant_id passed as security_profile_id
authorAaron Rosen <aaronorosen@gmail.com>
Fri, 30 May 2014 22:24:06 +0000 (15:24 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Fri, 30 May 2014 22:28:08 +0000 (15:28 -0700)
Previously we were passing the tenant_id as the security_profile_id
to NSX so these ids would be switched around in the system backend.
This does not affect any operations as this is just extra metadata
in nsx to help an operator debug.

Change-Id: I1afdcc3621fef8fdd7d4eb3c57bff749a71d0d33
Closes-bug: 1325118

neutron/plugins/vmware/plugins/base.py

index 2c42758e554dac8693125dcefbb93210ac8943b6..67c092138eb614a80a963e5edcd199f12cf52bb2 100644 (file)
@@ -2324,7 +2324,7 @@ class NsxPluginV2(addr_pair_db.AllowedAddressPairsMixin,
         # NOTE(salv-orlando): Pre-generating Neutron ID for security group.
         neutron_id = str(uuid.uuid4())
         nsx_secgroup = secgrouplib.create_security_profile(
-            self.cluster, neutron_id, tenant_id, s)
+            self.cluster, tenant_id, neutron_id, s)
         with context.session.begin(subtransactions=True):
             s['id'] = neutron_id
             sec_group = super(NsxPluginV2, self).create_security_group(