Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
    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)
Exemple #4
0
    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)
Exemple #5
0
    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)
Exemple #6
0
    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)