Module Import alias Import alias Import alias identifier ImportFrom alias Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num NameLoad Str Dict Str Str Num Str Dict Str Str Str Str Num Num Str Str Dict Str Str Str Str Num Num Str Str Dict Str Str Str Num Num Str Dict Str Str Str Num Num Str Dict Str Str Str Num Num Str Dict Str Str Str Num Num BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad Dict Str Str Str Num Num Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Dict Str Str Str Num NameLoad Str Dict Str Str Num Str Dict Str Str Str Str Str Num Num Str Str Str Dict Str Str Str Str Num Num Str Str Dict Str Str Str Str Num Num Str Str Dict Str Str Str Num Num Str Dict Str Str Str Num Num Str Dict Str Str Str Num Num Str Dict Str Str Str Num Num BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad Dict Str Str Str Num Num Str Dict Str Str Str Num Num Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword BinOpMod Str NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Num Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword BinOpMod Str Dict Str Str NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword Num keyword NameLoad keyword NameLoad keyword BinOpMod Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword BinOpMod Str Dict Str Str Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Num keyword Num keyword NameLoad keyword BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad If NameLoad body With Call AttributeLoad NameLoad attr Str keyword Num NameStore body With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse With Call AttributeLoad NameLoad attr Str keyword Num NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Str If NameLoad body With Call AttributeLoad NameLoad attr Str NameStore body With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad orelse With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A mock N/A netaddr N/A neutron.plugins.ml2.drivers.openvswitch.agent.common.constants ovs_const neutron.tests.unit.plugins.ml2.drivers.openvswitch.agent.openflow.ovs_ofctl ovs_bridge_test_base N/A call N/A mock call OVSTunnelBridgeTest N/A N/A ovs_bridge_test_base OVSBridgeTestBase N/A ovs_bridge_test_base OVSDVRProcessTestMixin N/A N/A dvr_process_table_id N/A ovs_const DVR_PROCESS N/A dvr_process_next_table_id N/A ovs_const PATCH_LV_TO_TUN setUp N/A N/A self N/A N/A N/A N/A N/A N/A super OVSTunnelBridgeTest self setUp N/A N/A N/A self setup_bridge_mock br-tun N/A self br_tun_cls N/A N/A self stamp N/A N/A self br default_cookie N/A test_setup_default_table N/A N/A self N/A N/A N/A patch_int_ofport 5555 N/A mock_do_action_flows N/A N/A N/A N/A N/A mock patch object N/A self br do_action_flows start N/A N/A N/A N/A self mock attach_mock mock_do_action_flows do_action_flows N/A N/A N/A N/A self br setup_default_table patch_int_ofport patch_int_ofport arp_responder_enabled False N/A flow_args N/A N/A priority in_port actions 1 patch_int_ofport resubmit(,2) N/A priority actions 0 drop N/A priority table dl_dst actions 0 2 00:00:00:00:00:00/01:00:00:00:00:00 resubmit(,20) N/A priority table dl_dst actions 0 2 01:00:00:00:00:00/01:00:00:00:00:00 resubmit(,22) N/A priority table actions 0 3 drop N/A priority table actions 0 4 drop N/A priority table actions 0 6 drop N/A priority table actions 1 10 N/A N/A learn(cookie= N/A str N/A self stamp N/A ,table=20,priority=1,hard_timeout=300,NXM_OF_VLAN_TCI[0..11],NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],load:0->NXM_OF_VLAN_TCI[],load:NXM_NX_TUN_ID[]->NXM_NX_TUN_ID[],output:NXM_OF_IN_PORT[]),output:%s patch_int_ofport N/A priority table actions 0 20 resubmit(,22) N/A expected N/A N/A N/A call do_action_flows add flow_args N/A N/A call add_flow priority 0 table 22 actions drop N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_setup_default_table_arp_responder_enabled N/A N/A self N/A N/A N/A patch_int_ofport 5555 N/A mock_do_action_flows N/A N/A N/A N/A N/A mock patch object N/A self br do_action_flows start N/A N/A N/A N/A self mock attach_mock mock_do_action_flows do_action_flows N/A N/A N/A N/A self br setup_default_table patch_int_ofport patch_int_ofport arp_responder_enabled True N/A flow_args N/A N/A priority in_port actions 1 patch_int_ofport resubmit(,2) N/A priority actions 0 drop N/A priority table dl_dst actions proto 1 2 ff:ff:ff:ff:ff:ff resubmit(,21) arp N/A priority table dl_dst actions 0 2 00:00:00:00:00:00/01:00:00:00:00:00 resubmit(,20) N/A priority table dl_dst actions 0 2 01:00:00:00:00:00/01:00:00:00:00:00 resubmit(,22) N/A priority table actions 0 3 drop N/A priority table actions 0 4 drop N/A priority table actions 0 6 drop N/A priority table actions 1 10 N/A N/A learn(cookie= N/A str N/A self stamp N/A ,table=20,priority=1,hard_timeout=300,NXM_OF_VLAN_TCI[0..11],NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],load:0->NXM_OF_VLAN_TCI[],load:NXM_NX_TUN_ID[]->NXM_NX_TUN_ID[],output:NXM_OF_IN_PORT[]),output:%s patch_int_ofport N/A priority table actions 0 20 resubmit(,22) N/A priority table actions 0 21 resubmit(,22) N/A expected N/A N/A N/A call do_action_flows add flow_args N/A N/A call add_flow priority 0 table 22 actions drop N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_provision_local_vlan N/A N/A self N/A N/A N/A network_type vxlan N/A lvid 888 N/A segmentation_id 777 N/A distributed False N/A N/A N/A N/A self br provision_local_vlan network_type network_type lvid lvid segmentation_id segmentation_id distributed distributed N/A expected N/A N/A N/A call add_flow priority 1 tun_id segmentation_id actions N/A mod_vlan_vid:%s,resubmit(,10) lvid table 4 N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_reclaim_local_vlan N/A N/A self N/A N/A N/A network_type vxlan N/A segmentation_id 777 N/A N/A N/A N/A self br reclaim_local_vlan network_type network_type segmentation_id segmentation_id N/A expected N/A N/A N/A call delete_flows tun_id segmentation_id table 4 N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_install_flood_to_tun N/A N/A self N/A N/A N/A vlan 3333 N/A tun_id 2222 N/A ports N/A 11 44 22 33 N/A N/A N/A N/A self br install_flood_to_tun vlan vlan tun_id tun_id ports ports N/A expected N/A N/A N/A call mod_flow table 22 dl_vlan vlan actions N/A strip_vlan,set_tunnel:%(tun)s,output:%(ports)s N/A tun ports tun_id N/A N/A , join N/A map str ports N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_delete_flood_to_tun N/A N/A self N/A N/A N/A vlan 3333 N/A N/A N/A N/A self br delete_flood_to_tun vlan vlan N/A expected N/A N/A N/A call delete_flows table 22 dl_vlan vlan N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_install_unicast_to_tun N/A N/A self N/A N/A N/A vlan 3333 N/A port 55 N/A mac 08:60:6e:7f:74:e7 N/A tun_id 2222 N/A N/A N/A N/A self br install_unicast_to_tun vlan vlan tun_id tun_id port port mac mac N/A expected N/A N/A N/A call add_flow priority 2 table 20 dl_dst mac dl_vlan vlan actions N/A strip_vlan,set_tunnel:%(tun)s,output:%(port)s N/A tun port tun_id port N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_delete_unicast_to_tun N/A N/A self N/A N/A N/A vlan 3333 N/A mac 08:60:6e:7f:74:e7 N/A N/A N/A N/A self br delete_unicast_to_tun vlan vlan mac mac N/A expected N/A N/A N/A call delete_flows table 20 dl_dst mac dl_vlan vlan N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_delete_unicast_to_tun_without_mac N/A N/A self N/A N/A N/A vlan 3333 N/A mac None N/A N/A N/A N/A self br delete_unicast_to_tun vlan vlan mac mac N/A expected N/A N/A N/A call delete_flows table 20 dl_vlan vlan N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_install_arp_responder N/A N/A self N/A N/A N/A vlan 3333 N/A ip 192.0.2.1 N/A mac 08:60:6e:7f:74:e7 N/A N/A N/A N/A self br install_arp_responder vlan vlan ip ip mac mac N/A expected N/A N/A N/A call add_flow proto arp nw_dst ip actions N/A move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],mod_dl_src:%(mac)s,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:%(mac)#x->NXM_NX_ARP_SHA[],load:%(ip)#x->NXM_OF_ARP_SPA[],in_port N/A mac ip N/A N/A netaddr EUI mac dialect N/A netaddr mac_unix N/A N/A netaddr IPAddress ip priority 1 table 21 dl_vlan vlan N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_delete_arp_responder N/A N/A self N/A N/A N/A vlan 3333 N/A ip 192.0.2.1 N/A N/A N/A N/A self br delete_arp_responder vlan vlan ip ip N/A expected N/A N/A N/A call delete_flows table 21 dl_vlan vlan proto arp nw_dst ip N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_delete_arp_responder_without_ip N/A N/A self N/A N/A N/A vlan 3333 N/A ip None N/A N/A N/A N/A self br delete_arp_responder vlan vlan ip ip N/A expected N/A N/A N/A call delete_flows table 21 dl_vlan vlan proto arp N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_setup_tunnel_port N/A N/A self N/A N/A N/A network_type vxlan N/A port 11111 N/A N/A N/A N/A self br setup_tunnel_port network_type network_type port port N/A expected N/A N/A N/A call add_flow priority 1 in_port port actions resubmit(,4) N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_cleanup_tunnel_port N/A N/A self N/A N/A N/A port 11111 N/A N/A N/A N/A self br cleanup_tunnel_port port port N/A expected N/A N/A N/A call delete_flows in_port port N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_add_dvr_mac_tun N/A N/A self N/A N/A N/A mac 00:02:b3:13:fe:3d N/A port 8888 N/A N/A N/A N/A self br add_dvr_mac_tun mac mac port port N/A expected N/A N/A N/A call add_flow priority 1 table 9 dl_src mac actions N/A output:%s port N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A test_remove_dvr_mac_tun N/A N/A self N/A N/A N/A mac 00:02:b3:13:fe:3d N/A N/A N/A N/A self br remove_dvr_mac_tun mac mac N/A expected N/A N/A N/A call delete_flows eth_src mac table_id 9 N/A N/A N/A self assertEqual expected N/A N/A self mock mock_calls N/A _mock_add_tunnel_port N/A N/A self deferred_br N/A False N/A N/A port_name fake_port N/A remote_ip 192.168.1.3 N/A local_ip 192.168.1.2 N/A tunnel_type vxlan N/A vxlan_udp_port 4789 N/A dont_fragment True N/A deferred_br N/A N/A N/A N/A mock patch neutron.agent.common.ovs_lib.OVSBridge.add_port return_value 9999 add_port N/A N/A N/A N/A N/A self br deferred deferred_br N/A N/A ofport N/A N/A deferred_br add_tunnel_port port_name remote_ip local_ip tunnel_type vxlan_udp_port dont_fragment N/A N/A N/A N/A mock patch neutron.agent.common.ovs_lib.OVSBridge.add_port return_value 9999 add_port N/A N/A ofport N/A N/A N/A self br add_tunnel_port port_name remote_ip local_ip tunnel_type vxlan_udp_port dont_fragment N/A N/A N/A self assertEqual 9999 ofport N/A N/A N/A self assertEqual 1 N/A add_port call_count N/A N/A N/A self assertEqual port_name N/A N/A N/A add_port call_args N/A 0 N/A 0 N/A _mock_delete_port N/A N/A self deferred_br N/A False N/A N/A port_name fake_port N/A deferred_br N/A N/A N/A N/A mock patch neutron.agent.common.ovs_lib.OVSBridge.delete_port delete_port N/A N/A N/A N/A N/A self br deferred deferred_br N/A N/A N/A N/A deferred_br delete_port port_name N/A N/A N/A N/A mock patch neutron.agent.common.ovs_lib.OVSBridge.delete_port delete_port N/A N/A N/A N/A N/A self br delete_port port_name N/A N/A N/A self assertEqual N/A N/A call port_name N/A delete_port mock_calls N/A test_add_tunnel_port N/A N/A self N/A N/A N/A N/A N/A self _mock_add_tunnel_port N/A test_delete_port N/A N/A self N/A N/A N/A N/A N/A self _mock_delete_port N/A test_deferred_br_add_tunnel_port N/A N/A self N/A N/A N/A N/A N/A self _mock_add_tunnel_port True N/A test_deferred_br_delete_port N/A N/A self N/A N/A N/A N/A N/A self _mock_delete_port True N/A N/A