2.19. 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

run_active_conn_test(af, acl_side)

Idle connection behind active connection test

run_basic_conn_test(af, acl_side)

Basic conn timeout test

run_clear_conn_test(af, acl_side)

Clear the connections via CLI

run_tcp_established_conn_test(af, acl_side)
run_tcp_transient_setup_conn_test(af, acl_side)
run_tcp_transient_teardown_conn_test(af, acl_side)
classmethod setUpClass()

Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api

show_commands_at_teardown()

Allow subclass specific teardown logging additions.

tearDown()

Run standard test teardown and log various show commands

classmethod tearDownClass()

Perform final cleanup after running all tests in this test-case

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_0005_clear_conn_test()

IPv4: reflect egress, clear conn

test_0006_clear_conn_test()

IPv4: reflect ingress, clear conn

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_1005_clear_conn_test()

IPv6: reflect egress, clear conn

test_1006_clear_conn_test()

IPv6: reflect ingress, clear conn

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

test_2000_prepare_for_tcp_test()

Prepare for TCP session tests

test_2001_tcp_transient_conn_test()

IPv4: transient TCP session (incomplete 3WHS), ref. on ingress

test_2002_tcp_transient_conn_test()

IPv4: transient TCP session (incomplete 3WHS), ref. on egress

test_2003_tcp_transient_conn_test()

IPv4: established TCP session (complete 3WHS), ref. on ingress

test_2004_tcp_transient_conn_test()

IPv4: established TCP session (complete 3WHS), ref. on egress

test_2005_tcp_transient_teardown_conn_test()

IPv4: transient TCP session (3WHS,ACK,FINACK), ref. on ingress

test_2006_tcp_transient_teardown_conn_test()

IPv4: transient TCP session (3WHS,ACK,FINACK), ref. on egress

test_3001_tcp_transient_conn_test()

IPv6: transient TCP session (incomplete 3WHS), ref. on ingress

test_3002_tcp_transient_conn_test()

IPv6: transient TCP session (incomplete 3WHS), ref. on egress

test_3003_tcp_transient_conn_test()

IPv6: established TCP session (complete 3WHS), ref. on ingress

test_3004_tcp_transient_conn_test()

IPv6: established TCP session (complete 3WHS), ref. on egress

test_3005_tcp_transient_teardown_conn_test()

IPv6: transient TCP session (3WHS,ACK,FINACK), ref. on ingress

test_3006_tcp_transient_teardown_conn_test()

IPv6: transient TCP session (3WHS,ACK,FINACK), ref. on egress

class test_acl_plugin_conns.Conn(testcase, if1, if2, af, l4proto, port1, port2)

Bases: util.L4_Conn

apply_acls(reflect_side, acl_side)
wildcard_rule(is_permit)
class test_acl_plugin_conns.IterateWithSleep(testcase, n_iters, description, sleep_sec)

Bases: object

test_acl_plugin_conns.to_acl_rule(self, is_permit, wildcard_sport=False)