Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Import alias identifier Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str NameLoad NameLoad Str Str NameLoad NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad ListLoad Dict Str Str Str Str ListLoad NameLoad Str NameLoad Str NameLoad NameLoad Str ListLoad Str Num NameLoad Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str Dict ListLoad NameLoad ListLoad Str Str Str NameLoad NameLoad Str Dict Str Str Str ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad If CompareIsNot NameLoad Str body Assign NameStore Dict NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num If CompareEq NameLoad Str body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr BinOpAdd NameLoad Str orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr BinOpAdd NameLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Str keyword AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SetComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Set AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Dict Str Str keyword ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A mock N/A requests oslo_config cfg oslo_serialization jsonutils oslotest base neutron.common constants n_const neutron.plugins.common constants neutron.plugins.ml2 driver_api api neutron.plugins.ml2 driver_context ctx N/A networking_onos.plugins.ml2.driver onos_ml2_driver N/A fake_network_uuid d897e21a-dfd6-4331-a5dd-7524fa421c3e N/A fake_network_object N/A status subnets name provider:physical_network admin_state_up tenant_id provider:network_type router:external shared id provider:segmentation_id ACTIVE N/A net1 None True test-tenant local False False fake_network_uuid None N/A fake_subnet_uuid d897e21a-dfd6-4331-a5dd-7524fa421c3e N/A fake_subnet_object N/A ipv6_ra_mode allocation_pools host_routes ipv6_address_mode cidr id name enable_dhcp network_id tenant_id dns_nameservers gateway_ip ip_version shared None N/A N/A start end 10.0.0.2 10.0.1.254 N/A None 10.0.0.0/23 fake_subnet_uuid True fake_network_uuid test-tenant N/A 10.0.0.1 4 False N/A fake_port_uuid 72c56c48-e9b8-4dcf-b3a7-0813bb3bd839 N/A fake_port_object N/A status binding:host_id allowed_address_pairs device_owner binding:profile fixed_ips id security_groups device_id name admin_state_up network_id tenant_id binding:vif_details binding:vnic_type binding:vif_type mac_address DOWN N/A fake_owner N/A N/A fake_port_uuid N/A 2f9244b4-9bee-4e81-bc4a-3f3c2045b3d7 fake_device True fake_network_uuid test-tenant N/A normal unbound 12:34:56 :78:21:b6 ONOSMechanismDriverTestCase N/A N/A base BaseTestCase N/A onos_ml2_driver ONOSMechanismDriver N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ONOSMechanismDriverTestCase self setUp N/A N/A N/A self set_test_config N/A set_test_config N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override url_path http://127.0.0.1:1111 onos N/A N/A N/A N/A cfg CONF set_override username onos_user onos N/A N/A N/A N/A cfg CONF set_override password awesome onos N/A N/A self onos_path N/A N/A N/A cfg CONF onos url_path N/A N/A self onos_auth N/A N/A N/A N/A cfg CONF onos username N/A N/A N/A cfg CONF onos password N/A _mock_req_resp N/A N/A self status_code N/A N/A N/A response N/A N/A mock Mock status_code status_code N/A N/A response raise_for_status N/A N/A mock Mock N/A response N/A _test_response N/A N/A self context oper_type obj_type mock_method N/A N/A N/A body None N/A N/A oper_type delete N/A N/A entity N/A obj_type N/A N/A N/A context current copy N/A body N/A N/A jsonutils dumps entity indent 2 N/A N/A oper_type post N/A N/A url N/A %s/%s N/A N/A self onos_path N/A obj_type s N/A N/A url N/A %s/%s/%s N/A N/A self onos_path N/A obj_type s N/A N/A context current N/A id N/A kwargs N/A url data url body N/A N/A N/A mock_method assert_called_once_with method oper_type headers N/A Content-Type application/json auth N/A self onos_auth kwargs N/A test_create_network_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current fake_network_object N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self create_network_postcommit context N/A N/A N/A self _test_response context post network mock_method N/A test_update_network_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current fake_network_object N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self update_network_postcommit context N/A N/A N/A self _test_response context put network mock_method N/A test_delete_network_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current N/A id fake_network_uuid N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self delete_network_postcommit context N/A N/A N/A self _test_response context delete network mock_method N/A test_create_subnet_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current fake_subnet_object N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self create_subnet_postcommit context N/A N/A N/A self _test_response context post subnet mock_method N/A test_update_subnet_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current fake_subnet_object N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self update_subnet_postcommit context N/A N/A N/A self _test_response context put subnet mock_method N/A test_delete_subnet_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current N/A id fake_subnet_uuid N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self delete_subnet_postcommit context N/A N/A N/A self _test_response context delete subnet mock_method N/A test_create_port_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current fake_port_object N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self create_port_postcommit context N/A N/A N/A self _test_response context post port mock_method N/A test_update_port_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current fake_port_object N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self update_port_postcommit context N/A N/A N/A self _test_response context put port mock_method N/A test_delete_port_postcommit N/A N/A self N/A N/A N/A context N/A N/A mock Mock current N/A id fake_port_uuid N/A resp N/A N/A self _mock_req_resp N/A N/A requests codes created N/A N/A N/A mock patch requests.request return_value resp mock_method N/A N/A N/A N/A self delete_port_postcommit context N/A N/A N/A self _test_response context delete port mock_method N/A N/A valid_segment N/A N/A api ID N/A api NETWORK_TYPE N/A api SEGMENTATION_ID N/A api PHYSICAL_NETWORK API_ID N/A constants TYPE_LOCAL API_SEGMENTATION_ID API_PHYSICAL_NETWORK N/A invalid_segment N/A N/A api ID N/A api NETWORK_TYPE N/A api SEGMENTATION_ID N/A api PHYSICAL_NETWORK API_ID N/A constants TYPE_NONE API_SEGMENTATION_ID API_PHYSICAL_NETWORK test_check_segment N/A N/A self N/A N/A N/A Validate the check_segment method. N/A all_network_types N/A N/A constants TYPE_FLAT N/A constants TYPE_GRE N/A constants TYPE_LOCAL N/A constants TYPE_VXLAN N/A constants TYPE_VLAN N/A constants TYPE_NONE N/A valid_types N/A network_type N/A network_type all_network_types N/A N/A self check_segment N/A N/A api NETWORK_TYPE network_type N/A N/A N/A self assertEqual N/A N/A constants TYPE_LOCAL N/A constants TYPE_GRE N/A constants TYPE_VXLAN N/A constants TYPE_VLAN valid_types N/A test_bind_port N/A N/A self N/A N/A N/A N/A self vif_type MY_VIF_TYPE N/A N/A self vif_details MY_VIF_DETAILS N/A network N/A N/A mock MagicMock spec N/A api NetworkContext N/A port_context N/A N/A mock MagicMock spec N/A ctx PortContext current N/A id CURRENT_CONTEXT_ID segments_to_bind N/A N/A self valid_segment N/A self invalid_segment network network N/A N/A N/A self bind_port port_context N/A N/A N/A N/A port_context set_binding assert_called_once_with N/A N/A self valid_segment N/A N/A api ID N/A self vif_type N/A self vif_details status N/A n_const PORT_STATUS_ACTIVE N/A N/A