Module Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str NameLoad NameLoad ListLoad Dict Str NameLoad Str Assign AttributeStore NameLoad attr Dict Str Str Dict Str NameLoad Dict Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad keyword BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr body Assign NameStore Dict Str Dict Str Str Str Str Str Str NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Dict Str Dict Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str With Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str With Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A mock neutron.common constants q_const neutron.common exceptions n_exc neutron context gbpservice.neutron.services.l3_router l3_apic gbpservice.neutron.tests.unit.services.grouppolicy test_apic_mapping N/A TENANT tenant1 N/A ROUTER router1 N/A SUBNET subnet1 N/A NETWORK network1 N/A PORT port1 N/A NETWORK_NAME one_network N/A TEST_SEGMENT1 test-segment1 N/A FLOATINGIP fip1 TestCiscoApicL3Plugin N/A N/A test_apic_mapping ApicMappingTestCase N/A N/A Test class for the Cisco APIC L3 Plugin

       This is a set of tests specific to the Cisco APIC
       L3 plugin. It currently derives from the ApicMappingTestCase
       class so that it can inherit test infrastructure from those classes.
     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestCiscoApicL3Plugin self setUp N/A N/A self subnet N/A network_id tenant_id NETWORK TENANT N/A N/A self port N/A tenant_id network_id fixed_ips id TENANT NETWORK N/A N/A subnet_id SUBNET port_id N/A N/A self interface_info N/A subnet port N/A subnet_id SUBNET N/A port_id N/A N/A self port N/A id N/A N/A self floatingip N/A id floating_network_id port_id FLOATINGIP NETWORK_NAME PORT N/A N/A self context N/A N/A context get_admin_context N/A N/A N/A self context tenant_id TENANT N/A N/A self plugin N/A N/A l3_apic ApicGBPL3ServicePlugin N/A N/A N/A N/A self plugin apic_gbp _notify_port_update N/A N/A mock Mock N/A N/A N/A N/A self plugin _core_plugin get_ports N/A N/A mock Mock return_value N/A N/A self port N/A N/A N/A N/A self plugin _core_plugin get_port N/A N/A mock Mock return_value N/A self port N/A N/A N/A N/A self plugin _core_plugin get_subnet N/A N/A mock Mock return_value N/A self subnet N/A N/A N/A N/A self plugin _core_plugin update_port_status N/A N/A mock Mock N/A N/A N/A self plugin update_floatingip_status N/A N/A mock Mock N/A N/A N/A self plugin get_floatingip N/A N/A mock Mock return_value N/A self floatingip N/A test_reverse_on_delete N/A N/A self N/A N/A N/A N/A _check_call_list N/A N/A self expected observed N/A N/A N/A call expected N/A N/A N/A N/A self assertTrue N/A call observed msg N/A Call not found, expected:
%s
observed:
%s N/A N/A str call N/A str observed N/A N/A N/A observed remove call N/A N/A N/A self assertFalse N/A len observed msg N/A There are more calls than expected: %s N/A str observed N/A _test_add_router_interface N/A N/A self interface_info N/A N/A N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.add_router_interface if_mock N/A N/A N/A if_mock return_value N/A self port N/A port N/A N/A N/A self plugin add_router_interface N/A self context ROUTER interface_info N/A N/A N/A self assertEqual port N/A self port N/A test_assert N/A N/A N/A self plugin _core_plugin update_port_status N/A N/A N/A test_assert assert_called_once_with N/A self context N/A N/A self port N/A id N/A q_const PORT_STATUS_ACTIVE N/A _test_remove_router_interface N/A N/A self interface_info N/A N/A N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.remove_router_interface if_mock N/A N/A N/A N/A N/A self plugin remove_router_interface N/A self context ROUTER interface_info N/A N/A N/A self assertEqual 1 N/A if_mock call_count N/A test_add_router_interface_subnet N/A N/A self N/A N/A N/A N/A N/A self _test_add_router_interface N/A N/A self interface_info N/A subnet N/A test_add_router_interface_port N/A N/A self N/A N/A N/A N/A N/A self _test_add_router_interface N/A N/A self interface_info N/A port N/A test_remove_router_interface_subnet N/A N/A self N/A N/A N/A N/A N/A self _test_remove_router_interface N/A N/A self interface_info N/A subnet N/A test_remove_router_interface_port N/A N/A self N/A N/A N/A N/A N/A self _test_remove_router_interface N/A N/A self interface_info N/A port N/A test_create_router_gateway_fails N/A N/A self N/A N/A N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_dbonly_mixin._update_router_gw_info side_effect N/A n_exc NeutronException N/A N/A data N/A router N/A tenant_id name admin_state_up external_gateway_info foo router1 True N/A network_id some_uuid N/A N/A N/A self assertRaises N/A n_exc NeutronException N/A N/A self plugin create_router N/A self context data N/A routers N/A N/A N/A self plugin get_routers N/A self context N/A N/A N/A self assertEqual 0 N/A len routers N/A test_floatingip_port_notify_on_create N/A N/A self N/A N/A N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.create_floatingip new N/A N/A mock Mock return_value N/A self floatingip N/A N/A N/A N/A N/A self plugin create_floatingip N/A self context N/A floatingip N/A self floatingip N/A N/A N/A N/A N/A N/A self plugin apic_gbp _notify_port_update assert_called_once_with N/A mock ANY PORT N/A test_floatingip_port_notify_on_reassociate N/A N/A self N/A N/A N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.update_floatingip new N/A N/A mock Mock return_value N/A self floatingip N/A N/A new_fip N/A port_id port-another N/A N/A N/A N/A self plugin update_floatingip N/A self context FLOATINGIP N/A floatingip new_fip N/A N/A N/A self _check_call_list N/A N/A N/A mock call N/A mock ANY PORT N/A N/A mock call N/A mock ANY port-another N/A N/A N/A N/A self plugin apic_gbp _notify_port_update call_args_list N/A test_floatingip_port_notify_on_disassociate N/A N/A self N/A N/A N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.update_floatingip new N/A N/A mock Mock return_value N/A self floatingip N/A N/A N/A N/A N/A self plugin update_floatingip N/A self context FLOATINGIP N/A floatingip N/A N/A N/A N/A N/A N/A N/A self plugin apic_gbp _notify_port_update assert_called_once_with N/A mock ANY PORT N/A test_floatingip_port_notify_on_delete N/A N/A self N/A N/A N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.delete_floatingip N/A N/A N/A N/A N/A self plugin delete_floatingip N/A self context FLOATINGIP N/A N/A N/A N/A N/A N/A self plugin apic_gbp _notify_port_update assert_called_once_with N/A mock ANY PORT N/A test_floatingip_status N/A N/A self N/A N/A N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.create_floatingip new N/A N/A mock Mock return_value N/A self floatingip N/A N/A fip N/A N/A N/A self plugin create_floatingip N/A self context N/A floatingip N/A self floatingip N/A N/A N/A N/A N/A self plugin update_floatingip_status assert_called_once_with N/A mock ANY FLOATINGIP N/A q_const FLOATINGIP_STATUS_ACTIVE N/A N/A N/A self assertEqual N/A q_const FLOATINGIP_STATUS_ACTIVE N/A fip N/A status N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.update_floatingip new N/A N/A mock Mock return_value N/A self floatingip N/A N/A N/A N/A N/A N/A self plugin update_floatingip_status reset_mock N/A N/A N/A N/A self floatingip pop port_id N/A fip N/A N/A N/A self plugin update_floatingip N/A self context FLOATINGIP N/A floatingip N/A self floatingip N/A N/A N/A N/A N/A self plugin update_floatingip_status assert_called_once_with N/A mock ANY FLOATINGIP N/A q_const FLOATINGIP_STATUS_DOWN N/A N/A N/A self assertEqual N/A q_const FLOATINGIP_STATUS_DOWN N/A fip N/A status N/A N/A N/A mock patch neutron.db.l3_db.L3_NAT_db_mixin.update_floatingip new N/A N/A mock Mock return_value N/A self floatingip N/A N/A N/A N/A N/A N/A self plugin update_floatingip_status reset_mock N/A N/A N/A self floatingip N/A port_id PORT N/A fip N/A N/A N/A self plugin update_floatingip N/A self context FLOATINGIP N/A floatingip N/A self floatingip N/A N/A N/A N/A N/A self plugin update_floatingip_status assert_called_once_with N/A mock ANY FLOATINGIP N/A q_const FLOATINGIP_STATUS_ACTIVE N/A N/A N/A self assertEqual N/A q_const FLOATINGIP_STATUS_ACTIVE N/A fip N/A status N/A N/A