2.11. test_acl_plugin_conns module

ACL plugin extended stateful tests

class test_acl_plugin_conns.ACLPluginConnTestCase(methodName='runTest')

Bases: framework.VppTestCase

ACL plugin connection-oriented extended testcases

api_acl_add_replace(acl_index, r, count=-1, tag='', expected_retval=0)

Add/replace an ACL

Parameters:
  • acl_index (int) – ACL index to replace, 4294967295 to create new.
  • r (acl_rule) – ACL rules array.
  • tag (str) – symbolic tag (description) for this ACL.
  • count (int) – number of rules.
api_acl_dump(acl_index, expected_retval=0)
api_acl_interface_set_acl_list(sw_if_index, count, n_input, acls, expected_retval=0)
run_active_conn_test(af, acl_side)

Idle connection behind active connection test

run_basic_conn_test(af, acl_side)

Basic conn timeout test

classmethod setUpClass()
test_0000_conn_prepare_test()

Prepare the settings

test_0001_basic_conn_test()

IPv4: Basic conn timeout test reflect on ingress

test_0002_basic_conn_test()

IPv4: Basic conn timeout test reflect on egress

test_0011_active_conn_test()

IPv4: Idle conn behind active conn, reflect on ingress

test_0012_active_conn_test()

IPv4: Idle conn behind active conn, reflect on egress

test_1001_basic_conn_test()

IPv6: Basic conn timeout test reflect on ingress

test_1002_basic_conn_test()

IPv6: Basic conn timeout test reflect on egress

test_1011_active_conn_test()

IPv6: Idle conn behind active conn, reflect on ingress

test_1012_active_conn_test()

IPv6: Idle conn behind active conn, reflect on egress

class test_acl_plugin_conns.Conn(testcase, if1, if2, af, l4proto, port1, port2)
apply_acls(reflect_side, acl_side)
pkt(side)
recv(side)
send(side)
send_pingpong(side)
send_through(side)
wildcard_rule(is_permit)
class test_acl_plugin_conns.IterateWithSleep(testcase, n_iters, description, sleep_sec)
test_acl_plugin_conns.to_acl_rule(self, is_permit, wildcard_sport=False)