'Event handler for removal of VRID during router delete.'

@registry.receives(resources.ROUTER, [events.PRECOMMIT_DELETE])
def _release_router_vr_id(self, resource, event, trigger, context, router_db, **kwargs):

    if router_db.extra_attributes.ha:
        ha_network = self.get_ha_network(context, router_db.tenant_id)
        if ha_network:
            self._delete_vr_id_allocation(context, ha_network, router_db.extra_attributes.ha_vr_id)
