This Page

The quantum.db.models_v2 Module

class quantum.db.models_v2.DNSNameServer(**kwargs)

Bases: sqlalchemy.ext.declarative.Base

Internal representation of a DNS nameserver.

address
subnet_id
class quantum.db.models_v2.HasId

Bases: object

id mixin, add to subclasses that have an id.

id = Column(None, String(length=36), table=None, primary_key=True, nullable=False, default=ColumnDefault(<function <lambda> at 0x5193c08>))
class quantum.db.models_v2.HasTenant

Bases: object

Tenant mixin, add to subclasses that have a tenant.

tenant_id = Column(None, String(length=255), table=None)
class quantum.db.models_v2.IPAllocation(**kwargs)

Bases: sqlalchemy.ext.declarative.Base

Internal representation of allocated IP addresses in a Quantum subnet.

expiration
ip_address
network_id
port_id
subnet_id
class quantum.db.models_v2.IPAllocationPool(**kwargs)

Bases: sqlalchemy.ext.declarative.Base, quantum.db.models_v2.HasId

Representation of an allocation pool in a Quantum subnet.

available_ranges
first_ip
id
last_ip
subnet_id
class quantum.db.models_v2.IPAvailabilityRange(**kwargs)

Bases: sqlalchemy.ext.declarative.Base

Internal representation of available IPs for Quantum subnets.

Allocation - first entry from the range will be allocated. If the first entry is equal to the last entry then this row will be deleted. Recycling ips involves appending to existing ranges. This is only done if the range is contiguous. If not, the first_ip will be the same as the last_ip. When adjacent ips are recycled the ranges will be merged.

allocation_pool_id
first_ip
last_ip
class quantum.db.models_v2.Network(**kwargs)

Bases: sqlalchemy.ext.declarative.Base, quantum.db.models_v2.HasId, quantum.db.models_v2.HasTenant

Represents a v2 quantum network.

admin_state_up
id
name
ports
shared
status
subnets
tenant_id
class quantum.db.models_v2.Port(**kwargs)

Bases: sqlalchemy.ext.declarative.Base, quantum.db.models_v2.HasId, quantum.db.models_v2.HasTenant

Represents a port on a quantum v2 network.

admin_state_up
device_id
device_owner
fixed_ips
id
mac_address
name
network_id
status
tenant_id
class quantum.db.models_v2.Route

Bases: object

mixin of a route.

destination = Column(None, String(length=64), table=None, primary_key=True, nullable=False)
nexthop = Column(None, String(length=64), table=None, primary_key=True, nullable=False)
class quantum.db.models_v2.Subnet(**kwargs)

Bases: sqlalchemy.ext.declarative.Base, quantum.db.models_v2.HasId, quantum.db.models_v2.HasTenant

Represents a quantum subnet.

When a subnet is created the first and last entries will be created. These are used for the IP allocation.

allocation_pools
cidr
dns_nameservers
enable_dhcp
gateway_ip
id
ip_version
name
network_id
routes
shared
tenant_id
class quantum.db.models_v2.SubnetRoute(**kwargs)

Bases: sqlalchemy.ext.declarative.Base, quantum.db.models_v2.Route

destination
nexthop
subnet_id