2.20. test_acl_plugin_macip module¶
ACL plugin - MACIP tests
-
class
test_acl_plugin_macip.
MethodHolder
(methodName='runTest')¶ Bases:
framework.VppTestCase
-
ACLS
= []¶
-
BRIDGED
= True¶
-
DEBUG
= False¶
-
DENY
= 0¶
-
DENY_TAGS
= False¶
-
DOT1AD
= 'dot1ad'¶
-
DOT1Q
= 'dot1q'¶
-
EXACT_IP
= 1¶
-
EXACT_MAC
= 1¶
-
IS_IP4
= False¶
-
IS_IP6
= True¶
-
OUI_MAC
= 3¶
-
PERMIT
= 1¶
-
PERMIT_TAGS
= True¶
-
ROUTED
= False¶
-
SUBNET_IP
= 2¶
-
WILD_IP
= 3¶
-
WILD_MAC
= 2¶
-
apply_macip_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_if, dst_if, traffic, is_ip6, tags=True)¶
-
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, traffic, is_ip6, packets, do_not_expected_capture=False, tags=None, apply_rules=True, isMACIP=True, permit_tags=True, try_replace=False)¶
-
setUp
()¶ Clear trace before running each test
-
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.
-
verify_capture
(stream, capture, is_ip6)¶ Parameters: - stream –
- capture –
- is_ip6 –
Returns:
-
verify_macip_acls
(acl_count, rules_count, expected_count=2)¶
-
-
class
test_acl_plugin_macip.
TestACL_dot1ad_bridged
(methodName='runTest')¶ Bases:
test_acl_plugin_macip.MethodHolder
ACL on dot1ad bridged subinterfaces Tests
-
test_acl_bridged_ip4_subif_dot1ad
()¶ IP4 ACL SubIf Dot1AD bridged traffic
-
test_acl_bridged_ip6_subif_dot1ad
()¶ IP6 ACL SubIf Dot1AD bridged traffic
-
-
class
test_acl_plugin_macip.
TestACL_dot1ad_routed
(methodName='runTest')¶ Bases:
test_acl_plugin_macip.MethodHolder
ACL on dot1ad routed subinterfaces Tests
-
test_acl_routed_ip4_subif_dot1ad
()¶ IP4 ACL SubIf Dot1AD routed traffic
IP4 ACL SubIf wrong tags Dot1AD routed traffic
-
test_acl_routed_ip6_subif_dot1ad
()¶ IP6 ACL SubIf Dot1AD routed traffic
IP6 ACL SubIf wrong tags Dot1AD routed traffic
-
-
class
test_acl_plugin_macip.
TestACL_dot1q_bridged
(methodName='runTest')¶ Bases:
test_acl_plugin_macip.MethodHolder
ACL on dot1q bridged subinterfaces Tests
-
test_acl_bridged_ip4_subif_dot1q
()¶ IP4 ACL SubIf Dot1Q bridged traffic
-
test_acl_bridged_ip6_subif_dot1q
()¶ IP6 ACL SubIf Dot1Q bridged traffic
-
-
class
test_acl_plugin_macip.
TestACL_dot1q_routed
(methodName='runTest')¶ Bases:
test_acl_plugin_macip.MethodHolder
ACL on dot1q routed subinterfaces Tests
-
test_acl_routed_ip4_subif_dot1q
()¶ IP4 ACL SubIf Dot1Q routed traffic
IP4 ACL SubIf wrong tags Dot1Q routed traffic
-
test_acl_routed_ip6_subif_dot1q
()¶ IP6 ACL SubIf Dot1Q routed traffic
IP6 ACL SubIf wrong tags Dot1Q routed traffic
-
-
class
test_acl_plugin_macip.
TestMACIP
(methodName='runTest')¶ Bases:
test_acl_plugin_macip.MethodHolder
MACIP Tests
-
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_replace
()¶ MACIP replace ACL
-
test_delete_intf
()¶ MACIP ACL delete intf with acl
-
-
class
test_acl_plugin_macip.
TestMACIP_IP4
(methodName='runTest')¶ Bases:
test_acl_plugin_macip.MethodHolder
MACIP with IP4 traffic
-
test_ac_bridgedl_ip4_wildMAC_exactIP
()¶ IP4 MACIP wildcardMAC|exactIP ACL bridged traffic
-
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_replace_traffic_ip4
()¶ MACIP replace ACL with IP4 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
-
-
class
test_acl_plugin_macip.
TestMACIP_IP6
(methodName='runTest')¶ Bases:
test_acl_plugin_macip.MethodHolder
MACIP with IP6 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_traffic_ip6
()¶ MACIP replace ACL with IP6 traffic
-
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
-