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 nova.network.quantum.quantum_connection.QuantumClientConnection

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)

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)

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_port_by_attachment(tenant_id, attachment_id)

Given a tenant, search for the Quantum network and 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.