Previous topic

The nova.network.quantum.nova_ipam_lib Module

Next topic

The nova.network.quantum.sg 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.quantum_connection Module

class QuantumClientConnection(client=None)

Bases: object

Abstracts connection to Quantum service into higher level operations performed by the QuantumManager.

Separating this out as a class also let’s us create a ‘fake’ version of this class for unit tests.

create_and_attach_port(tenant_id, net_id, interface_id, **kwargs)

Creates a Quantum port on the specified network, sets status to ACTIVE to enable traffic, and attaches the vNIC with the specified interface-id.

create_network(tenant_id, network_name, **kwargs)

Create network using specified name, return Quantum network UUID.

delete_network(tenant_id, net_id)

Deletes Quantum network with specified UUID.

detach_and_delete_port(tenant_id, net_id, port_id)

Detach and delete the specified Quantum port.

get_attached_ports(tenant_id, network_id)
get_network_name(tenant_id, network_id)
get_networks(tenant_id)

Retrieve all networks for this tenant

get_port_by_attachment(tenant_id, net_id, attachment_id)

Given a tenant and network, search for the port UUID that has the specified interface-id attachment.

network_exists(tenant_id, net_id)

Determine if a Quantum network exists for the specified tenant.