@post('/:hypervisor/:host/guests/:guest_id/network_interfaces')
def network_interface_create(hypervisor, host, guest_id):
    response.content_type = "application/json"
    manager = create_manager(hypervisor, host)
    data = request.body.readline()
    if not data:
        abort(400, 'No data received')
    data = json.loads(data)
    network_interface = manager.network_interface_create(guest_id, data)
    location = "/%s/%s/guests/%s/network_interfaces/%s" % (
        hypervisor, host, guest_id, network_interface["id"]
    )
    response.set_header("Location", location)

    manager.logout()

    return json.dumps(network_interface)
Deletes the disk.
dataset/ETHPy150Open locaweb/simplestack/src/simplestack/server.py/network_interface_create--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/gcp/gce_disk.py/GceDisk._Delete