def remove_floating_ip(uid, address, context):
    vm_instance = vm.get_vm(uid, context)

    try:
        NETWORK_API.disassociate_floating_ip(context, vm_instance, address)
        NETWORK_API.release_floating_ip(context, address)
    except Exception as e:
        raise AttributeError(e.message)
Remove a given address from an VM instance.
dataset/ETHPy150Open tmetsch/occi-os/occi_os_api/nova_glue/net.py/remove_floating_ip