Merge "Releasing address for the gateway address"

changes/49/336549/1
Jenkins 2016-06-16 14:27:14 +00:00 committed by Gerrit Code Review
commit 55b6eb7ffe
1 changed files with 2 additions and 3 deletions

View File

@ -1228,9 +1228,8 @@ def ipam_release_address():
# check if any subnet with matching cidr is present
subnets = _get_subnets_by_attrs(cidr=subnet_cidr)
if not len(subnets):
raise exceptions.NoResourceException(
"No subnet is found using pool {0} "
"and pool_cidr {1}".format(pool_id, cidr))
app.logger.info(_LI("Subnet already deleted."))
return flask.jsonify(const.SCHEMA['SUCCESS'])
subnet = subnets[0]
cidr_address = netaddr.IPNetwork(rel_address)
rcvd_fixed_ips = []