pep8 errors
Change-Id: I3909127d831581dbd2724d176d8532952dad444d Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This commit is contained in:
parent
f4795a2255
commit
fd8a98c52d
@ -157,8 +157,12 @@ def _add_subnet_to_router(context, subnet):
|
|||||||
|
|
||||||
def _update_internal_gateway_port_ip(context, router_id, subnet):
|
def _update_internal_gateway_port_ip(context, router_id, subnet):
|
||||||
"""Attempt to update internal gateway port if one already exists."""
|
"""Attempt to update internal gateway port if one already exists."""
|
||||||
LOG.debug('setting gateway port IP for router %s on network %s for subnet %s',
|
LOG.debug(
|
||||||
router_id, subnet['network_id'], subnet['id'])
|
'setting gateway port IP for router %s on network %s for subnet %s',
|
||||||
|
router_id,
|
||||||
|
subnet['network_id'],
|
||||||
|
subnet['id'],
|
||||||
|
)
|
||||||
if not subnet.get('gateway_ip'):
|
if not subnet.get('gateway_ip'):
|
||||||
LOG.debug('no gateway set for subnet %s, skipping', subnet['id'])
|
LOG.debug('no gateway set for subnet %s, skipping', subnet['id'])
|
||||||
return
|
return
|
||||||
@ -170,8 +174,10 @@ def _update_internal_gateway_port_ip(context, router_id, subnet):
|
|||||||
routerport, port = q.first() or (None, None)
|
routerport, port = q.first() or (None, None)
|
||||||
|
|
||||||
if not routerport:
|
if not routerport:
|
||||||
LOG.exception('Unable to find a DEVICE_OWNER_ROUTER_INTF port for router %s on network %s.'
|
LOG.exception(
|
||||||
% (router_id, subnet['network_id']))
|
'Unable to find a %s port for router %s on network %s.'
|
||||||
|
% ('DEVICE_OWNER_ROUTER_INTF', router_id, subnet['network_id'])
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
fixed_ips = [
|
fixed_ips = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user