DB base plugin: correct typo id to subnet_id.
Code is referring to not declared variable 'id'. It was working before because the 'id' was defined in place where _subnet_check_ip_allocations_internal_router_ports() was invoked. Closes-bug: #1588281 Change-Id: I2d9331171bf59e5e375e0c4fd0eeec25f4ebff30
This commit is contained in:
parent
2c40eb4ead
commit
6f30217b42
@ -830,7 +830,7 @@ class NeutronDbPluginV2(db_base_plugin_common.DbBasePluginCommon,
|
||||
if allocs:
|
||||
LOG.debug("Subnet %s still has internal router ports, "
|
||||
"cannot delete", subnet_id)
|
||||
raise exc.SubnetInUse(subnet_id=id)
|
||||
raise exc.SubnetInUse(subnet_id=subnet_id)
|
||||
|
||||
def delete_subnet(self, context, id):
|
||||
with context.session.begin(subtransactions=True):
|
||||
|
Loading…
Reference in New Issue
Block a user