From: Chirag Shahani Date: Wed, 10 Sep 2014 22:47:48 +0000 (-0700) Subject: Fix to delete user and group association in Nuage Plugin X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1d4e13574574472e299296892d7c9e8f706aea67;p=openstack-build%2Fneutron-build.git Fix to delete user and group association in Nuage Plugin 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 --- diff --git a/neutron/plugins/nuage/plugin.py b/neutron/plugins/nuage/plugin.py index f0041e18e..f520c7ce2 100644 --- a/neutron/plugins/nuage/plugin.py +++ b/neutron/plugins/nuage/plugin.py @@ -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'],