ACL Test Plan:

Creation of ACL rule by rest api and validating the rules on Switch (DUT).

*ACL Test Cases (Implemented and Planned) : *

IDTitleFunction NameTest StepsExpected Result
ACL_1Test acl allow ruletest_acl_allow_ruleConfigure ACL rule with allow action Verify ACL rule is being created on DUTACL rule has beed created on DUT
ACL_2Test acl allow rule with 24 bit masktest_acl_allow_rule_with_24_bit_mask1. Configure ACL rule with allow action and 24 bit mask 2. Verify ACL rule is being created on DUTACL rule has beed created on DUT
ACL_3Test acl deny ruletest_acl_deny_rule1. Configure ACL rule with deny action 2. Verify ACL rule is being created on DUTACL rule has beed created on DUT
ACL_4Test acl deny rule with 24 bit masktest_acl_deny_rule_with_24_bit_mask1. Configure ACL rule with deny action and 24 bit mask 2. Verify ACL rule is being created on DUTACL rule has beed created on DUT
ACL_5Test acl add remove ruletest_acl_add_remove_rule1. Configure ACL rule with any action 2. Verify ACL rule is being created on DUT 3. Delete created ACL ruleACL rule has been deleted on DUT
ACL_6Test acl add removeall rulestest_acl_add_remove_all_rules1. Configure ACL rule with any action 2. Verify ACL rule is being created on DUT 3. Delete created all ACL ruleAll ACL rules has been deleted on DUT
ACL_7Test acl remove all rules without addtest_acl_remove_all_rules_without_add1. Delete all ACL rule with out create amy ACL ruleAll ACL rule has been deleted on DUT
ACL_8Test acl allow and deny rule for same src and dst iptest_acl_allow_and_deny_rule_for_same_src_and_dst_ip1. Configure ACL rule with for same src and dst ip with action allow and deny 2. Verify ACL rule is not being created on DUTACL rule has not been created on DUT
ACL_9Test acl allow rules for matched dst ipstest_acl_allow_rules_for_matched_dst_ipsConfigure ACL rule with for dst ip where already matched ACL rule Verify ACL rule is not being created on DUACL rule has not been created on DUT
ACL_10Test acl with matching src and dst ip traffictest_acl_with_matching_src_and_dst_ip_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched trafficACL rule has been created on DUT and traffic is allowed
ACL_11Test acl with matching 24bit mask src and dst ip traffictest_acl_with_matching_24bit_mask_src_and_dst_ip_traffic1. Configure ACL rule with allow action and 24 bit mask 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched trafficACL rule has been created on DUT and traffic is allowed
ACL_12Test acl with non matching src and dst ip traffictest_acl_with_non_matching_src_and_dst_ip_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule non matched trafficACL rule has been created on DUT and traffic is not allowed
ACL_13Test acl deny rule with matching src and dst ip traffictest_acl_deny_rule_with_matching_src_and_dst_ip_traffic1. Configure ACL rule with deny action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched trafficACL rule has been created on DUT and traffic is not allowed
ACL_14Test acl deny rule with src and dst ip apply ing 24 bit mask for matching traffictest_acl_deny_rule_with_src_and_dst_ip_applying_24_bit_mask_for_matching_traffic1. Configure ACL rule with deny action and 24 bit mask 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched trafficACL rule has been created on DUT and traffic is not allowed
ACL_15Test acl deny_rule with non matching src and dst ip traffictest_acl_deny_rule_with_non_matching_src_and_dst_ip_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule non matched trafficACL rule has been created on DUT and traffic is not allowed
ACL_16Test acl allow and deny rules with matching src and dst ip traffictest_acl_allow_and_deny_rules_with_matching_src_and_dst_ip_traffic1. Configure ACL rules with allow and deny action 2. Verify ACL rules is being created on DUT 3. Check with ACL rules matched trafficACL rules has been created on DUT and matched traffic is allowed for allow action and deny for deny action.
ACL_17Test acl for l4 acl ruletest_acl_for_l4_acl_rule1. Configure ACL rule with L4 port and allow action 2. Verify ACL rule is being created on DUTACL rule has been created on DUT
ACL_18Test acl for remove l4 ruletest_acl_for_remove_l4_ruleConfigure ACL rule with L4 port and allow action Remove the config ACL ruleACL rule has been created on DUT and able to removed it
ACL_19Test acl for remove l4 rulestest_acl_for_remove_l4_rules1. Configure ACL rule with L4 port and allow action 2. Remove the config all ACL rulesACL rule has been created on DUT and able to removed all of acl rules
ACL_20Test acl adding specific l4 and all l4 allow ruletest_acl_adding_specific_l4_and_all_l4_allow_rule1. Configure ACL rule with specific L4 port and allow action 2. Verify ACL rule with all L4 port is being created on DUTACL rules has been created on DUT
ACL_21Test acl adding all l4 and specific l4 allow ruletest_acl_adding_all_l4_and_specific_l4_allow_rule1. Configure ACL rule with all L4 port and allow action 2. Verify ACL rule with specific L4 port is not being created on DUTACL rule with all L4 port number has been created on DUT
ACL_22Test acl with specific l4 deny and all l4 allow ruletest_acl_with_specific_l4_deny_and_all_l4_allow_rule1. Configure ACL rule with specific L4 port and deny action 2. Verify ACL rule with all L4 port and allow is being created on DUTACL rules has been created on DUT
ACL_23Test acl with all l4 and specific l4 deny ruletest_acl_with_all_l4_and_specific_l4_deny_rule1. Configure ACL rule with all L4 port and deny action 2. Verify ACL rule with specific L4 port and deny is not being created on DUTACL rule has been created on DUT
ACL_24Test acl with specific l4 deny and all l4 allow ruletest_acl_with_specific_l4_deny_and_all_l4_allow_rule1. Configure ACL rule with specific L4 port and deny action 2. Verify ACL rule with all L4 port and allow is not being created on DUTACL rules has been created on DUT
ACL_25Test acl deny all l4 and allow specific l4 ruletest_acl_deny_all_l4_and_allow_specific_l4_rule1. Configure ACL rule with all L4 port and deny action 2. Verify ACL rule with specific L4 port and allow is not being created on DUTACL rule has been created on DUT
ACL_26Test acl tcp port allow rule for matching and non matching traffictest_acl_tcp_port_allow_rule_for_matching_and_non_matching_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched trafficACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_27Test acl udp port allow rule for matching and non matching traffictest_acl_udp_port_allow_rule_for_matching_and_non_matching_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched trafficACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_28Test acl icmp port allow rule for matching and non matching traffictest_acl_icmp_port_allow_rule_for_matching_and_non_matching_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched trafficACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_29Test acl tcp port deny rule for matching and non matching traffictest_acl_tcp_port_deny_rule_for_matching_and_non_matching_traffic1. Configure ACL rule with deny action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched trafficACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_30Test acl udp port deny rule for matching and non matching traffictest_acl_udp_port_deny_rule_for_matching_and_non_matching_traffic1. Configure ACL rule with deny action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched trafficACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_31Test acl icmp port deny rule for matching and non matching traffictest_acl_icmp_port_deny_rule_for_matching_and_non_matching_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched trafficACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_32Test acl two allow rules for tcp port matching traffictest_acl_two_allow_rules_for_tcp_port_matching_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched traffic for first ACLACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_33Test acl two allow rules for udp port matching traffictest_acl_two_allow_rules_for_udp_port_matching_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched traffic for first ACLACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_34Test acl two allow rules for src ips dst ips and l4 ports matching traffictest_acl_two_allow_rules_for_src_ips_dst_ips_and_l4_ports_matching_traffic1. Configure ACL rule with allow action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched traffic for first ACLACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed
ACL_35test_acl allow and deny rules for src ips dst ips and l4 ports matching traffictest_acl_allow_and_deny_rules_for_src_ips_dst_ips_and_l4_ports_matching_traffic1. Configure ACL rule with allow and deny action 2. Verify ACL rule is being created on DUT 3. Check with ACL rule matched traffic 4. Check with ACL rule non matched traffic for first ACLACL rule has been created on DUT and matched traffic is allowed and non-matched is not allowed