|
|
@ -186,11 +186,13 @@ ROUTER_INTERFACE_OWNERS = set([
|
|
|
|
'network:ha_router_replicated_interface'
|
|
|
|
'network:ha_router_replicated_interface'
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _router_internal_interfaces(cloud, router):
|
|
|
|
def _router_internal_interfaces(cloud, router):
|
|
|
|
for port in cloud.list_router_interfaces(router, 'internal'):
|
|
|
|
for port in cloud.list_router_interfaces(router, 'internal'):
|
|
|
|
if port['device_owner'] in ROUTER_INTERFACE_OWNERS:
|
|
|
|
if port['device_owner'] in ROUTER_INTERFACE_OWNERS:
|
|
|
|
yield port
|
|
|
|
yield port
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _needs_update(cloud, module, router, network, internal_subnet_ids):
|
|
|
|
def _needs_update(cloud, module, router, network, internal_subnet_ids):
|
|
|
|
"""Decide if the given router needs an update.
|
|
|
|
"""Decide if the given router needs an update.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|