Module Import alias ImportFrom alias identifier ImportFrom alias Import alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Dict NameLoad NameLoad ListLoad ListLoad TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr decorator_list Expr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Dict Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str Num NameLoad decorator_list decorator_list
N/A N/A mock neutron_lib exceptions exc testtools matchers N/A neutron.db.api db neutron.plugins.common constants p_const neutron.plugins.common utils plugin_utils neutron.plugins.ml2 config neutron.plugins.ml2 driver_api api neutron.plugins.ml2.drivers type_vlan neutron.tests.unit testlib_api N/A PROVIDER_NET phys_net1 N/A TENANT_NET phys_net2 N/A VLAN_MIN 200 N/A VLAN_MAX 209 N/A NETWORK_VLAN_RANGES N/A PROVIDER_NET N/A %s:%s:%s N/A TENANT_NET VLAN_MIN VLAN_MAX N/A UPDATED_VLAN_RANGES N/A PROVIDER_NET TENANT_NET N/A N/A N/A N/A VLAN_MIN 5 N/A VLAN_MAX 5 VlanTypeTest N/A N/A testlib_api SqlTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super VlanTypeTest self setUp N/A N/A N/A N/A N/A config cfg CONF set_override network_vlan_ranges NETWORK_VLAN_RANGES group ml2_type_vlan N/A N/A self network_vlan_ranges N/A N/A plugin_utils parse_network_vlan_ranges NETWORK_VLAN_RANGES N/A N/A self driver N/A N/A type_vlan VlanTypeDriver N/A N/A N/A N/A self driver _sync_vlan_allocations N/A N/A self session N/A N/A db get_session N/A N/A N/A self driver physnet_mtus N/A N/A test_parse_network_exception_handling N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object plugin_utils parse_network_vlan_ranges parse_ranges N/A N/A N/A parse_ranges side_effect N/A Exception any exception N/A N/A N/A self assertRaises SystemExit N/A N/A self driver _parse_network_vlan_ranges N/A _get_allocation N/A N/A self session segment N/A N/A N/A N/A N/A N/A N/A N/A N/A session query N/A type_vlan VlanAllocation filter_by physical_network N/A segment N/A N/A api PHYSICAL_NETWORK vlan_id N/A segment N/A N/A api SEGMENTATION_ID first N/A test_partial_segment_is_partial_segment N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A p_const TYPE_VLAN N/A N/A N/A self assertTrue N/A N/A N/A self driver is_partial_segment segment N/A test_specific_segment_is_not_partial_segment N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN PROVIDER_NET 1 N/A N/A N/A self assertFalse N/A N/A N/A self driver is_partial_segment segment N/A test_validate_provider_segment N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN PROVIDER_NET 1 N/A N/A N/A self assertIsNone N/A N/A N/A self driver validate_provider_segment segment N/A test_validate_provider_segment_without_segmentation_id N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A p_const TYPE_VLAN TENANT_NET N/A N/A N/A N/A self driver validate_provider_segment segment N/A test_validate_provider_segment_without_physical_network N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A p_const TYPE_VLAN N/A N/A N/A N/A self driver validate_provider_segment segment N/A test_validate_provider_segment_with_missing_physical_network N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN 1 N/A N/A N/A self assertRaises N/A exc InvalidInput N/A N/A self driver validate_provider_segment segment N/A test_validate_provider_segment_with_invalid_physical_network N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN other_phys_net 1 N/A N/A N/A self assertRaises N/A exc InvalidInput N/A N/A self driver validate_provider_segment segment N/A test_validate_provider_segment_with_invalid_segmentation_id N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN PROVIDER_NET 5000 N/A N/A N/A self assertRaises N/A exc InvalidInput N/A N/A self driver validate_provider_segment segment N/A test_validate_provider_segment_with_invalid_input N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID invalid N/A p_const TYPE_VLAN PROVIDER_NET 1 1 N/A N/A N/A self assertRaises N/A exc InvalidInput N/A N/A self driver validate_provider_segment segment N/A test_sync_vlan_allocations N/A N/A self N/A N/A check_in_ranges N/A N/A network_vlan_ranges N/A N/A N/A N/A vlan_min vlan_max N/A N/A network_vlan_ranges N/A TENANT_NET N/A 0 N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A p_const TYPE_VLAN TENANT_NET N/A N/A segment N/A N/A api SEGMENTATION_ID N/A vlan_min 1 N/A N/A N/A self assertIsNone N/A N/A self _get_allocation N/A self session segment N/A N/A segment N/A N/A api SEGMENTATION_ID N/A vlan_max 1 N/A N/A N/A self assertIsNone N/A N/A self _get_allocation N/A self session segment N/A N/A segment N/A N/A api SEGMENTATION_ID vlan_min N/A N/A N/A self assertFalse N/A N/A N/A self _get_allocation N/A self session segment allocated N/A N/A segment N/A N/A api SEGMENTATION_ID vlan_max N/A N/A N/A self assertFalse N/A N/A N/A self _get_allocation N/A self session segment allocated N/A N/A N/A check_in_ranges N/A self network_vlan_ranges N/A N/A N/A self driver network_vlan_ranges UPDATED_VLAN_RANGES N/A N/A N/A N/A self driver _sync_vlan_allocations N/A N/A check_in_ranges UPDATED_VLAN_RANGES N/A test_reserve_provider_segment N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN PROVIDER_NET 101 N/A alloc N/A N/A self _get_allocation N/A self session segment N/A N/A N/A self assertIsNone alloc N/A observed N/A N/A N/A self driver reserve_provider_segment N/A self session segment N/A alloc N/A N/A self _get_allocation N/A self session observed N/A N/A N/A self assertTrue N/A alloc allocated N/A test_reserve_provider_segment_already_allocated N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN PROVIDER_NET 101 N/A observed N/A N/A N/A self driver reserve_provider_segment N/A self session segment N/A N/A N/A self assertRaises N/A exc VlanIdInUse N/A N/A self driver reserve_provider_segment N/A self session observed N/A test_reserve_provider_segment_in_tenant_pools N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN TENANT_NET VLAN_MIN N/A alloc N/A N/A self _get_allocation N/A self session segment N/A N/A N/A self assertFalse N/A alloc allocated N/A observed N/A N/A N/A self driver reserve_provider_segment N/A self session segment N/A alloc N/A N/A self _get_allocation N/A self session observed N/A N/A N/A self assertTrue N/A alloc allocated N/A test_reserve_provider_segment_without_segmentation_id N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A p_const TYPE_VLAN TENANT_NET N/A observed N/A N/A N/A self driver reserve_provider_segment N/A self session segment N/A alloc N/A N/A self _get_allocation N/A self session observed N/A N/A N/A self assertTrue N/A alloc allocated N/A vlan_id N/A observed N/A N/A api SEGMENTATION_ID N/A N/A N/A self assertThat vlan_id N/A N/A matchers GreaterThan N/A VLAN_MIN 1 N/A N/A N/A self assertThat vlan_id N/A N/A matchers LessThan N/A VLAN_MAX 1 N/A test_reserve_provider_segment_without_physical_network N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A p_const TYPE_VLAN N/A observed N/A N/A N/A self driver reserve_provider_segment N/A self session segment N/A alloc N/A N/A self _get_allocation N/A self session observed N/A N/A N/A self assertTrue N/A alloc allocated N/A vlan_id N/A observed N/A N/A api SEGMENTATION_ID N/A N/A N/A self assertThat vlan_id N/A N/A matchers GreaterThan N/A VLAN_MIN 1 N/A N/A N/A self assertThat vlan_id N/A N/A matchers LessThan N/A VLAN_MAX 1 N/A N/A N/A self assertEqual TENANT_NET N/A observed N/A N/A api PHYSICAL_NETWORK N/A test_reserve_provider_segment_all_allocateds N/A N/A self N/A N/A N/A __ N/A range VLAN_MIN N/A VLAN_MAX 1 N/A N/A N/A N/A N/A self driver allocate_tenant_segment N/A self session N/A segment N/A N/A api NETWORK_TYPE N/A p_const TYPE_VLAN N/A N/A N/A self assertRaises N/A exc NoNetworkAvailable N/A N/A self driver reserve_provider_segment N/A self session segment N/A test_get_mtu N/A N/A self N/A N/A N/A N/A N/A N/A N/A config cfg CONF set_override global_physnet_mtu 1475 N/A N/A N/A N/A N/A config cfg CONF set_override path_mtu 1400 group ml2 N/A N/A N/A self driver physnet_mtus N/A physnet1 physnet2 1450 1400 N/A N/A N/A self assertEqual 1450 N/A N/A N/A self driver get_mtu physnet1 N/A N/A N/A N/A N/A config cfg CONF set_override global_physnet_mtu 1375 N/A N/A N/A N/A N/A config cfg CONF set_override path_mtu 1400 group ml2 N/A N/A N/A self driver physnet_mtus N/A physnet1 physnet2 1450 1400 N/A N/A N/A self assertEqual 1375 N/A N/A N/A self driver get_mtu physnet1 N/A N/A N/A N/A N/A config cfg CONF set_override global_physnet_mtu 0 N/A N/A N/A N/A N/A config cfg CONF set_override path_mtu 1400 group ml2 N/A N/A N/A self driver physnet_mtus N/A physnet1 physnet2 1450 1400 N/A N/A N/A self assertEqual 1450 N/A N/A N/A self driver get_mtu physnet1 N/A N/A N/A N/A N/A config cfg CONF set_override global_physnet_mtu 0 N/A N/A N/A N/A N/A config cfg CONF set_override path_mtu 0 group ml2 N/A N/A N/A self driver physnet_mtus N/A N/A N/A N/A self assertEqual 0 N/A N/A N/A self driver get_mtu physnet1 N/A test_allocate_tenant_segment N/A N/A self N/A N/A N/A __ N/A range VLAN_MIN N/A VLAN_MAX 1 N/A N/A segment N/A N/A N/A self driver allocate_tenant_segment N/A self session N/A alloc N/A N/A self _get_allocation N/A self session segment N/A N/A N/A self assertTrue N/A alloc allocated N/A vlan_id N/A segment N/A N/A api SEGMENTATION_ID N/A N/A N/A self assertThat vlan_id N/A N/A matchers GreaterThan N/A VLAN_MIN 1 N/A N/A N/A self assertThat vlan_id N/A N/A matchers LessThan N/A VLAN_MAX 1 N/A N/A N/A self assertEqual TENANT_NET N/A segment N/A N/A api PHYSICAL_NETWORK N/A test_allocate_tenant_segment_no_available N/A N/A self N/A N/A N/A __ N/A range VLAN_MIN N/A VLAN_MAX 1 N/A N/A N/A N/A N/A self driver allocate_tenant_segment N/A self session N/A segment N/A N/A N/A self driver allocate_tenant_segment N/A self session N/A N/A N/A self assertIsNone segment N/A test_release_segment N/A N/A self N/A N/A N/A segment N/A N/A N/A self driver allocate_tenant_segment N/A self session N/A N/A N/A N/A self driver release_segment N/A self session segment N/A alloc N/A N/A self _get_allocation N/A self session segment N/A N/A N/A self assertFalse N/A alloc allocated N/A test_release_segment_unallocated N/A N/A self N/A N/A N/A segment N/A N/A api NETWORK_TYPE N/A api PHYSICAL_NETWORK N/A api SEGMENTATION_ID N/A p_const TYPE_VLAN PROVIDER_NET 101 N/A N/A N/A N/A mock patch object N/A type_vlan LOG warning log_warn N/A N/A N/A N/A N/A self driver release_segment N/A self session segment N/A N/A N/A log_warn assert_called_once_with No vlan_id %(vlan_id)s found on physical network %(physical_network)s N/A vlan_id physical_network 101 PROVIDER_NET N/A N/A