Module Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body With Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr NameLoad attr If NameLoad body If AttributeLoad NameLoad attr body Return orelse Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr keyword NameLoad NameLoad attr Dict Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr keyword NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If UnaryOpNot NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr keyword NameLoad NameLoad attr Dict Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A random oslo_config cfg oslo_db exception db_exc oslo_log log neutron._i18n _LE neutron.common exceptions exc neutron.common utils neutron.plugins.common utils p_utils neutron.plugins.ml2 driver_api api N/A LOG N/A N/A log getLogger __name__ N/A IDPOOL_SELECT_SIZE 100 BaseTypeDriver N/A N/A api TypeDriver N/A N/A BaseTypeDriver for functions common to Segment and flat. __init__ N/A N/A self N/A N/A N/A N/A N/A N/A self physnet_mtus N/A N/A utils parse_mappings N/A N/A N/A cfg CONF ml2 physical_network_mtus unique_values False N/A N/A N/A Exception N/A e N/A N/A N/A N/A LOG error N/A _LE Failed to parse physical_network_mtus: %s e N/A N/A self physnet_mtus N/A N/A get_mtu N/A N/A self physical_network N/A None N/A N/A N/A N/A p_utils get_deployment_physnet_mtu N/A N/A SegmentTypeDriver N/A BaseTypeDriver N/A N/A SegmentTypeDriver for segment allocation.

    Provide methods helping to perform segment allocation fully or partially
    specified.
     __init__ N/A N/A self model N/A N/A N/A N/A N/A N/A super SegmentTypeDriver self __init__ N/A N/A self model model N/A N/A self primary_keys N/A set N/A dict N/A N/A model __table__ columns N/A N/A N/A N/A self primary_keys remove allocated N/A allocate_fully_specified_segment N/A N/A self session N/A raw_segment N/A N/A Allocate segment fully specified by raw_segment.

        If segment exists, then try to allocate it and return db object
        If segment does not exists, then try to create it and return db object
        If allocation/creation failed, then return None
         N/A network_type N/A N/A self get_type N/A N/A N/A N/A N/A session begin subtransactions True N/A N/A alloc N/A N/A N/A N/A N/A N/A session query N/A self model filter_by raw_segment first N/A alloc N/A N/A N/A alloc allocated N/A N/A N/A N/A N/A N/A LOG debug %(type)s segment %(segment)s allocate started  N/A type segment network_type raw_segment N/A count N/A N/A N/A N/A N/A N/A session query N/A self model filter_by allocated False raw_segment update N/A allocated True N/A count N/A N/A N/A N/A LOG debug %(type)s segment %(segment)s allocate done  N/A type segment network_type raw_segment N/A alloc N/A N/A N/A LOG debug %(type)s segment %(segment)s allocate failed: segment has been allocated or deleted N/A type segment network_type raw_segment N/A N/A N/A LOG debug %(type)s segment %(segment)s create started N/A type segment network_type raw_segment N/A alloc N/A N/A self model allocated True raw_segment N/A N/A N/A alloc save session N/A N/A N/A LOG debug %(type)s segment %(segment)s create done N/A type segment network_type raw_segment N/A N/A N/A N/A db_exc DBDuplicateEntry N/A N/A alloc None N/A N/A N/A LOG debug %(type)s segment %(segment)s create failed N/A type segment network_type raw_segment N/A alloc N/A allocate_partially_specified_segment N/A N/A self session N/A filters N/A N/A Allocate model segment from pool partially specified by filters.

        Return allocated db object or None.
         N/A network_type N/A N/A self get_type N/A N/A N/A session begin subtransactions True N/A N/A select N/A N/A N/A N/A session query N/A self model filter_by allocated False filters N/A allocs N/A N/A N/A N/A select limit IDPOOL_SELECT_SIZE all N/A N/A allocs N/A N/A N/A alloc N/A N/A random choice allocs N/A raw_segment N/A dict N/A N/A k N/A alloc N/A k N/A k N/A self primary_keys N/A N/A N/A LOG debug %(type)s segment allocate from pool started with %(segment)s  N/A type segment network_type raw_segment N/A count N/A N/A N/A N/A N/A N/A session query N/A self model filter_by allocated False raw_segment update N/A allocated True N/A count N/A N/A N/A N/A LOG debug %(type)s segment allocate from pool success with %(segment)s  N/A type segment network_type raw_segment N/A alloc N/A N/A N/A LOG debug Allocate %(type)s segment from pool failed with segment %(segment)s N/A type segment network_type raw_segment N/A N/A N/A db_exc RetryRequest N/A N/A exc NoNetworkFoundInMaximumAllowedAttempts N/A N/A