def deallocate_ip_address(self, context, address): if address["version"] == 6: db_api.ip_address_delete(context, address) else: address["deallocated"] = 1 address["address_type"] = None notify(context, 'ip.delete', address, send_usage=True)
def deallocate_ip_address(self, context, address, **kwargs): if address["version"] == 6: db_api.ip_address_delete(context, address) else: address["deallocated"] = 1 address["address_type"] = None billing.notify(context, billing.IP_DEL, address, send_usage=True, **kwargs)
def deallocate_ip_address(self, context, address): if address["version"] == 6: db_api.ip_address_delete(context, address) else: address["deallocated"] = 1 address["address_type"] = None payload = dict(used_by_tenant_id=address["used_by_tenant_id"], ip_block_id=address["subnet_id"], ip_address=address["address_readable"], device_ids=[p["device_id"] for p in address["ports"]], created_at=address["created_at"], deleted_at=timeutils.utcnow()) n_rpc.get_notifier("network").info(context, "ip_block.address.delete", payload)