def delete_router(self, context, router_id, router): # Put the router in PENDING_DELETE status with context.session.begin(subtransactions=True): router = self._ensure_router_not_in_use(router_id) router.status = constants.STATUS_PENDING_DELETE # Notify HDN operators hdnlib.notify_router_delete({"id": router_id, "tenant_id": context.tenant_id}) LOG.debug(_("Queued request to delete router: %s"), router_id)
def delete_router(self, context, router_id, router, hdn_operator_call=False): # Put the router in PENDING_DELETE status with context.session.begin(subtransactions=True): router = self._ensure_router_not_in_use(context, router_id) router.status = constants.STATUS_PENDING_DELETE if not hdn_operator_call: registry.notify(resources.ROUTER, events.AFTER_DELETE, self, tenant_id=context.tenant_id, resource_id=router_id) # Notify HDN operators hdnlib.notify_router_delete({'id': router_id, 'tenant_id': context.tenant_id}) LOG.debug(_("Queued request to delete router: %s"), router_id)
def delete_router(self, context, router_id, router, hdn_operator_call=False): # Put the router in PENDING_DELETE status with context.session.begin(subtransactions=True): router = self._ensure_router_not_in_use(context, router_id) router.status = constants.STATUS_PENDING_DELETE if not hdn_operator_call: registry.notify(resources.ROUTER, events.AFTER_DELETE, self, tenant_id=context.tenant_id, resource_id=router_id) # Notify HDN operators hdnlib.notify_router_delete({ 'id': router_id, 'tenant_id': context.tenant_id }) LOG.debug(_("Queued request to delete router: %s"), router_id)