Previous topic

The nova.network.quantum.client Module

Next topic

The nova.network.quantum.manager Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.network.quantum.fake_client Module

class FakeClient(logger=None, **kwargs)

Bases: object

A fake Quantum Client for testing

attach_resource(network, port, body=None, tenant=None)
create_network(body=None, tenant=None)

Creates a new network

create_port(network, body=None, tenant=None)

Creates a new port on a given network

delete_network(network, tenant=None)

Deletes the specified network

delete_port(network, port, tenant=None)

Deletes the specified port from a network

detach_resource(network, port, tenant=None)

Removes the attachment-id of the specified port

list_networks(tenant=None, filter_ops=None)

Fetches a list of all networks for a tenant

list_ports(network, filter_ops=None, tenant=None)

Fetches a list of ports on a given network

set_port_state(network, port, body=None, tenant=None)

Sets the state of the specified port

show_network_details(network, tenant=None)

Fetches the details of a certain network

show_port_attachment(network, port, tenant=None)

Fetches the attachment-id associated with the specified port

show_port_details(network, port, tenant=None)

Fetches the details of a certain port

update_network(network, body=None, tenant=None)

Updates a network