'Event handler to attempt HA network deletion after router delete.'

@registry.receives(resources.ROUTER, [events.AFTER_DELETE])
@db_api.retry_if_session_inactive()
def _cleanup_ha_network(self, resource, event, trigger, context, router_id, original, **kwargs):

    if (not original['ha']):
        return
    ha_network = self.get_ha_network(context, original['tenant_id'])
    if (not ha_network):
        return
    self.safe_delete_ha_network(context, ha_network, original['tenant_id'])
