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
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user