2.29. test_classifier_ip6 module

class test_classifier_ip6.TestClassifierIP6(methodName='runTest')

Bases: template_classifier.TestClassifier

Classifier IP6 Test Case

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.

classmethod tearDownClass()

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

test_iacl_dst_ip()

Destination IP6 iACL test

Test scenario for basic IP ACL with destination IP
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with destination IP address.

  • Send and verify received packets on pg1 interface.

test_iacl_src_dst_ip()

Source and destination IP6 iACL test

Test scenario for basic IP ACL with source and destination IP
  • Create IPv4 stream for pg0 -> pg1 interface.

  • Create iACL with source and destination IP addresses.

  • Send and verify received packets on pg1 interface.

test_iacl_src_ip()

Source IP6 iACL test

Test scenario for basic IP ACL with source IP
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with source IP address.

  • Send and verify received packets on pg1 interface.

class test_classifier_ip6.TestClassifierIP6MAC(methodName='runTest')

Bases: template_classifier.TestClassifier

Classifier IP6 MAC Test Case

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.

test_acl_mac()

IP6 MAC iACL test

Test scenario for basic MAC ACL with source MAC
  • Create IPv6 stream for pg0 -> pg2 interface.

  • Create ACL with source MAC address.

  • Send and verify received packets on pg2 interface.

class test_classifier_ip6.TestClassifierIP6Out(methodName='runTest')

Bases: template_classifier.TestClassifier

Classifier output IP6 Test Case

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.

test_acl_ip_out()

Output IP6 ACL test

Test scenario for basic IP ACL with source IP
  • Create IPv6 stream for pg1 -> pg0 interface.

  • Create ACL with source IP address.

  • Send and verify received packets on pg0 interface.

class test_classifier_ip6.TestClassifierIP6TCP(methodName='runTest')

Bases: template_classifier.TestClassifier

Classifier IP6 TCP proto Test Case

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.

test_iacl_proto_tcp()

IP6 TCP protocol iACL test

Test scenario for basic protocol ACL with TCP protocol
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with TCP IP protocol.

  • Send and verify received packets on pg1 interface.

test_iacl_proto_tcp_dport()

IP6 TCP destination port iACL test

Test scenario for basic protocol ACL with TCP and dport
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with TCP IP protocol and defined dport.

  • Send and verify received packets on pg1 interface.

test_iacl_proto_tcp_sport()

IP6 TCP source port iACL test

Test scenario for basic protocol ACL with TCP and sport
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with TCP IP protocol and defined sport.

  • Send and verify received packets on pg1 interface.

test_iacl_proto_tcp_sport_dport()

IP6 TCP source and destination ports iACL test

Test scenario for basic protocol ACL with TCP and sport and dport
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with TCP IP protocol and defined sport and dport.

  • Send and verify received packets on pg1 interface.

class test_classifier_ip6.TestClassifierIP6UDP(methodName='runTest')

Bases: template_classifier.TestClassifier

Classifier IP6 UDP proto Test Case

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.

test_iacl_proto_udp()

IP6 UDP protocol iACL test

Test scenario for basic protocol ACL with UDP protocol
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with UDP IP protocol.

  • Send and verify received packets on pg1 interface.

test_iacl_proto_udp_dport()

IP6 UDP destination port iACL test

Test scenario for basic protocol ACL with UDP and dport
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with UDP IP protocol and defined dport.

  • Send and verify received packets on pg1 interface.

test_iacl_proto_udp_sport()

IP6 UDP source port iACL test

Test scenario for basic protocol ACL with UDP and sport
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with UDP IP protocol and defined sport.

  • Send and verify received packets on pg1 interface.

test_iacl_proto_udp_sport_dport()

IP6 UDP source and destination ports iACL test

Test scenario for basic protocol ACL with UDP and sport and dport
  • Create IPv6 stream for pg0 -> pg1 interface.

  • Create iACL with UDP IP protocol and defined sport and dport.

  • Send and verify received packets on pg1 interface.