2.16. test_acl_plugin_macip module¶
ACL plugin - MACIP tests
-
class
test_acl_plugin_macip.TestMACIP(methodName='runTest')¶ Bases:
framework.VppTestCaseMACIP Test Case
-
ACLS= []¶
-
BRIDGED= True¶
-
DEBUG= False¶
-
DENY= 0¶
-
EXACT_IP= 1¶
-
EXACT_MAC= 1¶
-
IS_IP4= False¶
-
IS_IP6= True¶
-
OUI_MAC= 3¶
-
PERMIT= 1¶
-
ROUTED= False¶
-
SUBNET_IP= 2¶
-
WILD_IP= 3¶
-
WILD_MAC= 2¶
-
apply_rules(acls)¶
-
create_rules(mac_type=1, ip_type=1, acl_count=1, rules_count=[1])¶
-
create_stream(mac_type, ip_type, packet_count, src_ip_if, dst_ip_if, bridged_routed, is_ip6)¶
-
delete_acls()¶
-
macip_acl_dump_debug()¶
-
run_test_acls(mac_type, ip_type, acl_count, rules_count, traffic=None, ip=None)¶
-
run_traffic(mac_type, ip_type, bridged_routed, is_ip6, packets, do_not_expected_capture=False)¶
-
setUp()¶
-
classmethod
setUpClass()¶ Perform standard class setup (defined by class method setUpClass in class VppTestCase) before running the test case, set test case related variables and configure VPP.
-
tearDown()¶ Show various debug prints after each test.
-
test_ac_bridgedl_ip4_wildMAC_exactIP()¶ IP4 MACIP wildcardMAC|exactIP ACL bridged traffic
-
test_acl_10_X()¶ MACIP 10 ACLs each with 100+ entries
-
test_acl_10_X_traffic_ip4()¶ MACIP 10 ACLs each with 100+ entries with IP4 traffic
-
test_acl_10_X_traffic_ip6()¶ MACIP 10 ACLs each with 100+ entries with IP6 traffic
-
test_acl_1_10()¶ MACIP ACL with 10 entries
-
test_acl_1_100()¶ MACIP ACL with 100 entries
-
test_acl_1_2()¶ MACIP ACL with 2 entries
-
test_acl_1_20()¶ MACIP ACL with 20 entries
-
test_acl_1_5()¶ MACIP ACL with 5 entries
-
test_acl_1_50()¶ MACIP ACL with 50 entries
-
test_acl_2_X()¶ MACIP 2 ACLs each with 100+ entries
-
test_acl_bridged_ip4_exactMAC_exactIP()¶ IP4 MACIP exactMAC|exactIP ACL bridged traffic
-
test_acl_bridged_ip4_exactMAC_subnetIP()¶ IP4 MACIP exactMAC|subnetIP ACL bridged traffic
-
test_acl_bridged_ip4_exactMAC_wildIP()¶ IP4 MACIP exactMAC|wildIP ACL bridged traffic
-
test_acl_bridged_ip4_ouiMAC_exactIP()¶ IP4 MACIP ouiMAC|exactIP ACL bridged traffic
-
test_acl_bridged_ip4_ouiMAC_subnetIP()¶ IP4 MACIP ouiMAC|subnetIP ACL bridged traffic
-
test_acl_bridged_ip4_ouiMAC_wildIP()¶ IP4 MACIP ouiMAC|wildIP ACL bridged traffic
-
test_acl_bridged_ip4_wildMAC_subnetIP()¶ IP4 MACIP wildcardMAC|subnetIP ACL bridged traffic
-
test_acl_bridged_ip4_wildMAC_wildIP()¶ IP4 MACIP wildcardMAC|wildIP ACL bridged traffic
-
test_acl_bridged_ip6_exactMAC_exactIP()¶ IP6 MACIP exactMAC|exactIP ACL bridged traffic
-
test_acl_bridged_ip6_exactMAC_subnetIP()¶ IP6 MACIP exactMAC|subnetIP ACL bridged traffic
-
test_acl_bridged_ip6_exactMAC_wildIP()¶ IP6 MACIP exactMAC|wildIP ACL bridged traffic
-
test_acl_bridged_ip6_ouiMAC_exactIP()¶ IP6 MACIP oui_MAC|exactIP ACL bridged traffic
-
test_acl_bridged_ip6_ouiMAC_subnetIP()¶ IP6 MACIP ouiMAC|subnetIP ACL bridged traffic
-
test_acl_bridged_ip6_ouiMAC_wildIP()¶ IP6 MACIP ouiMAC|wildIP ACL bridged traffic
-
test_acl_bridged_ip6_wildMAC_exactIP()¶ IP6 MACIP wildcardMAC|exactIP ACL bridged traffic
-
test_acl_bridged_ip6_wildMAC_subnetIP()¶ IP6 MACIP wildcardMAC|subnetIP ACL bridged traffic
-
test_acl_bridged_ip6_wildMAC_wildIP()¶ IP6 MACIP wildcardMAC|wildIP ACL bridged traffic
-
test_acl_replace()¶ MACIP replace ACL
-
test_acl_replace_traffic_ip4()¶ MACIP replace ACL with IP4 traffic
-
test_acl_replace_traffic_ip6()¶ MACIP replace ACL with IP6 traffic
-
test_acl_routed_ip4_exactMAC_exactIP()¶ IP4 MACIP exactMAC|exactIP ACL routed traffic
-
test_acl_routed_ip4_exactMAC_subnetIP()¶ IP4 MACIP exactMAC|subnetIP ACL routed traffic
-
test_acl_routed_ip4_exactMAC_wildIP()¶ IP4 MACIP exactMAC|wildIP ACL routed traffic
-
test_acl_routed_ip4_ouiMAC_exactIP()¶ IP4 MACIP ouiMAC|exactIP ACL routed traffic
-
test_acl_routed_ip4_ouiMAC_subnetIP()¶ IP4 MACIP ouiMAC|subnetIP ACL routed traffic
-
test_acl_routed_ip4_ouiMAC_wildIP()¶ IP4 MACIP ouiMAC|wildIP ACL routed traffic
-
test_acl_routed_ip4_wildMAC_exactIP()¶ IP4 MACIP wildcardMAC|exactIP ACL routed traffic
-
test_acl_routed_ip4_wildMAC_subnetIP()¶ IP4 MACIP wildcardMAC|subnetIP ACL routed traffic
-
test_acl_routed_ip4_wildMAC_wildIP()¶ IP4 MACIP wildcardMAC|wildIP ACL
-
test_acl_routed_ip6_exactMAC_exactIP()¶ IP6 MACIP exactMAC|exactIP ACL routed traffic
-
test_acl_routed_ip6_exactMAC_subnetIP()¶ IP6 MACIP exactMAC|subnetIP ACL routed traffic
-
test_acl_routed_ip6_exactMAC_wildIP()¶ IP6 MACIP exactMAC|wildIP ACL routed traffic
-
test_acl_routed_ip6_ouiMAC_exactIP()¶ IP6 MACIP ouiMAC|exactIP ACL routed traffic
-
test_acl_routed_ip6_ouiMAC_subnetIP()¶ IP6 MACIP ouiMAC|subnetIP ACL routed traffic
-
test_acl_routed_ip6_ouiMAC_wildIP()¶ IP6 MACIP ouiMAC|wildIP ACL routed traffic
-
test_acl_routed_ip6_wildMAC_exactIP()¶ IP6 MACIP wildcardMAC|exactIP ACL routed traffic
-
test_acl_routed_ip6_wildMAC_subnetIP()¶ IP6 MACIP wildcardMAC|subnetIP ACL routed traffic
-
test_acl_routed_ip6_wildMAC_wildIP()¶ IP6 MACIP wildcardMAC|wildIP ACL
-
test_delete_intf()¶ MACIP ACL delete intf with acl
-
verify_acls(acl_count, rules_count, expected_count=2)¶
-
verify_capture(stream, capture, is_ip6)¶
-