Merge pull request #24 from markmcclain/deco_pep8_fix
fix pep8 errors that slipped through
This commit is contained in:
commit
8cabbd9543
@ -222,14 +222,20 @@ def _update_internal_gateway_port_ip(context, router_id, subnet):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
plugin._check_for_dup_router_subnet(context, routerport.router, subnet['network_id'], subnet)
|
plugin._check_for_dup_router_subnet(
|
||||||
except:
|
context,
|
||||||
LOG.info(
|
routerport.router,
|
||||||
('Subnet %(id)s will not be auto added to router because %(gateway_ip)s is already in use by '
|
subnet['network_id'],
|
||||||
'another attached network attached to this router.'),
|
|
||||||
subnet
|
subnet
|
||||||
)
|
)
|
||||||
return True # nothing to add
|
except:
|
||||||
|
LOG.info(
|
||||||
|
('Subnet %(id)s will not be auto added to router because '
|
||||||
|
'%(gateway_ip)s is already in use by another attached '
|
||||||
|
'network attached to this router.'),
|
||||||
|
subnet
|
||||||
|
)
|
||||||
|
return True # nothing to add
|
||||||
fixed_ips.append(
|
fixed_ips.append(
|
||||||
{'subnet_id': subnet['id'], 'ip_address': subnet['gateway_ip']}
|
{'subnet_id': subnet['id'], 'ip_address': subnet['gateway_ip']}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user