def delete_floatingip(self, context, floatingip_id, hdn_operator_call=False): # TODO(salv): Add operational status for floating IPs if not hdn_operator_call: registry.notify('FLOATING_IP', events.AFTER_DELETE, self, tenant_id=context.tenant_id, resource_id=floatingip_id) # Notify HDN operators hdnlib.notify_floatingip_delete({'id': floatingip_id, 'tenant_id': context.tenant_id}) self.update_floatingip_status( context, floatingip_id, constants.STATUS_PENDING_DELETE) LOG.debug(_("Queued request to delete floating ip: %s"), floatingip_id)
def delete_floatingip(self, context, floatingip_id, hdn_operator_call=False): # TODO(salv): Add operational status for floating IPs if not hdn_operator_call: registry.notify('FLOATING_IP', events.AFTER_DELETE, self, tenant_id=context.tenant_id, resource_id=floatingip_id) # Notify HDN operators hdnlib.notify_floatingip_delete({ 'id': floatingip_id, 'tenant_id': context.tenant_id }) self.update_floatingip_status(context, floatingip_id, constants.STATUS_PENDING_DELETE) LOG.debug(_("Queued request to delete floating ip: %s"), floatingip_id)
def delete_floatingip(self, context, floatingip_id): # TODO(salv): Add operational status for floating IPs # Notify HDN operators hdnlib.notify_floatingip_delete({"id": floatingip_id, "tenant_id": context.tenant_id}) self.update_floatingip_status(floatingip_id, constants.STATUS_PENDING_DELETE) LOG.debug(_("Queued request to delete floating ip: %s"), floatingip_id)