]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix to delete user and group association in Nuage Plugin
authorChirag Shahani <chirag.shahani@gmail.com>
Wed, 10 Sep 2014 22:47:48 +0000 (15:47 -0700)
committerChirag Shahani <chirag.shahani@gmail.com>
Wed, 17 Sep 2014 18:43:40 +0000 (18:43 +0000)
After a router delete operation, the attached zone to that
router is also deleted. Got rid of code that tried to do
a get operation on the nuage_zone after router delete
operation.
Closes-Bug: #1367864

Change-Id: I01753a472200a961cdcecee703616fd3239abd3c

neutron/plugins/nuage/plugin.py

index f0041e18ee9c2795a20731e6b419c0da0d522376..f520c7ce2571ce7da548e4bab934c185065e602a 100644 (file)
@@ -990,8 +990,7 @@ class NuagePlugin(db_base_plugin_v2.NeutronDbPluginV2,
 
         super(NuagePlugin, self).delete_router(context, id)
 
-        nuage_zone = self.nuageclient.get_zone_by_routerid(id)
-        if nuage_zone and not self._check_router_subnet_for_tenant(
+        if not self._check_router_subnet_for_tenant(
                 context, neutron_router['tenant_id']):
             user_id, group_id = self.nuageclient.get_usergroup(
                 neutron_router['tenant_id'],