The nova.db.sqlalchemy.types Module

Custom SQLAlchemy types.

class CIDR(*args, **kwargs)

Bases: sqlalchemy.types.TypeDecorator

An SQLAlchemy type representing a CIDR definition.

impl = Variant(None, {'postgresql': INET()})
process_bind_param(value, dialect)

Process/Formats the value before insert it into the db.

class IPAddress(*args, **kwargs)

Bases: sqlalchemy.types.TypeDecorator

An SQLAlchemy type representing an IP-address.

impl = Variant(None, {'postgresql': INET()})
process_bind_param(value, dialect)

Process/Formats the value before insert it into the db.

Previous topic

The nova.db.sqlalchemy.models Module

Next topic

The nova.db.sqlalchemy.utils Module

This Page