-# self.thru_host_stack_test("vcl_test_server",
-# self.server_ipv6_args,
-# "vcl_test_client",
-# self.client_ipv6_echo_test_args)
-
- # TBD: Remove VCLIpv6ThruHostStackGroup*TestCase classes and move
- # tests here when VPP thru host teardown/setup config bug
- # is fixed.
-
-
-class VCLIpv6ThruHostStackGroupATestCase(VCLTestCase):
- """ VCL IPv6 Thru Host Stack Group A Tests """
-
- def setUp(self):
- super(VCLIpv6ThruHostStackGroupATestCase, self).setUp()
-
- self.thru_host_stack_ipv6_setup()
- if self.vppDebug:
- self.client_bi_dir_nsock_timeout = 120
- self.client_ipv6_bi_dir_nsock_test_args = ["-N", "1000",
- "-B", "-X", "-6",
- "-I", "2",
- self.loop0.local_ip6,
- self.server_port]
- else:
- self.client_bi_dir_nsock_timeout = 90
- self.client_ipv6_bi_dir_nsock_test_args = ["-N", "1000",
- "-B", "-X", "-6",
- "-I", "2",
- self.loop0.local_ip6,
- self.server_port]
-
- def tearDown(self):
- self.thru_host_stack_ipv6_tear_down()
-
- super(VCLIpv6ThruHostStackGroupATestCase, self).tearDown()
-
- def test_vcl_thru_host_stack_bi_dir_nsock(self):
- """ run VCL thru host stack bi-directional (multiple sockets) test """
-
- self.timeout = self.client_bi_dir_nsock_timeout
- self.thru_host_stack_test("vcl_test_server", self.server_ipv6_args,
- "vcl_test_client",
- self.client_ipv6_bi_dir_nsock_test_args)
-
-
-class VCLIpv6ThruHostStackGroupBTestCase(VCLTestCase):
- """ VCL IPv6 Thru Host Stack Group B Tests """
-
- def setUp(self):
- super(VCLIpv6ThruHostStackGroupBTestCase, self).setUp()
-
- self.thru_host_stack_ipv6_setup()
- if self.vppDebug:
- self.client_bi_dir_nsock_timeout = 120
- self.client_ipv6_bi_dir_nsock_test_args = ["-N", "1000",
- "-B", "-X", "-6",
- # OUCH! Host Stack Bug?
- # "-I", "2",
- self.loop0.local_ip6,
- self.server_port]
- else:
- self.client_bi_dir_nsock_timeout = 60
- self.client_ipv6_bi_dir_nsock_test_args = ["-N", "1000",
- "-B", "-X", "-6",
- # OUCH! Host Stack Bug?
- # "-I", "2",
- self.loop0.local_ip6,
- self.server_port]
-
- def tearDown(self):
- self.thru_host_stack_ipv6_tear_down()
-
- super(VCLIpv6ThruHostStackGroupBTestCase, self).tearDown()
-
- def test_ldp_thru_host_stack_bi_dir_nsock(self):
- """ run LDP thru host stack bi-directional (multiple sockets) test """
-
- self.timeout = self.client_bi_dir_nsock_timeout
- self.thru_host_stack_test("sock_test_server",
- self.server_ipv6_args,
- "sock_test_client",
- self.client_ipv6_bi_dir_nsock_test_args)
-
-
-class VCLIpv6ThruHostStackGroupCTestCase(VCLTestCase):
- """ VCL IPv6 Thru Host Stack Group C Tests """
-
- def setUp(self):
- super(VCLIpv6ThruHostStackGroupCTestCase, self).setUp()
-
- self.thru_host_stack_ipv6_setup()
- if self.vppDebug:
- self.client_uni_dir_nsock_timeout = 120
- self.numSockets = "2"
- else:
- self.client_uni_dir_nsock_timeout = 120
- self.numSockets = "5"
-
- self.client_ipv6_uni_dir_nsock_test_args = ["-N", "1000", "-U", "-X",
- "-6",
- "-I", self.numSockets,
- self.loop0.local_ip6,
- self.server_port]
-
- def tearDown(self):
- self.thru_host_stack_ipv6_tear_down()
-
- super(VCLIpv6ThruHostStackGroupCTestCase, self).tearDown()
-
- def test_ldp_thru_host_stack_uni_dir_nsock(self):
- """ run LDP thru host stack uni-directional (multiple sockets) test """
-
- self.timeout = self.client_uni_dir_nsock_timeout
- self.thru_host_stack_test("sock_test_server",