This Page

The quantum.tests.unit.database_stubs Module

stubs.py provides interface methods for the database test cases

class quantum.tests.unit.database_stubs.QuantumDB

Bases: object

Class conisting of methods to call Quantum db methods

create_network(tenant_id, net_name)

Create a network

create_port(net_id)

Add a port

delete_network(net_id)

Delete a network

delete_port(net_id, port_id)

Delete a port

get_all_networks(tenant_id)

Get all networks

get_all_ports(net_id)

Get all ports

get_network(network_id)

Get a network

get_port(net_id, port_id)

Get a port

plug_interface(net_id, port_id, int_id)

Plug interface to a port

unplug_interface(net_id, port_id)

Unplug interface to a port

update_network(tenant_id, net_id, param_data)

Rename a network

update_port(net_id, port_id, **kwargs)

Update a port