From 57a5a2df5970f61259c9a14b5eb79358a2115b01 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 1 Apr 2020 23:16:11 +0000 Subject: udp session vcl: add udp iperf test Type: improvement Signed-off-by: Florin Coras Change-Id: Ib4bc2ce781887a84055a4d5cdb7f453fc7d52c79 --- src/vcl/test/test_vcl.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/vcl/test') diff --git a/src/vcl/test/test_vcl.py b/src/vcl/test/test_vcl.py index d9346ba77fa..d49bfbcaa35 100644 --- a/src/vcl/test/test_vcl.py +++ b/src/vcl/test/test_vcl.py @@ -646,6 +646,42 @@ class LDPThruHostStackIperf(VCLTestCase): iperf3, self.client_iperf3_args) +class LDPThruHostStackIperfUdp(VCLTestCase): + """ LDP Thru Host Stack Iperf UDP """ + + @classmethod + def setUpClass(cls): + super(LDPThruHostStackIperfUdp, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(LDPThruHostStackIperfUdp, cls).tearDownClass() + + def setUp(self): + super(LDPThruHostStackIperfUdp, self).setUp() + + self.thru_host_stack_setup() + self.client_iperf3_timeout = 20 + self.client_iperf3_args = ["-V4d", "-t 2", "-u", "-l 1400", + "-c", self.loop0.local_ip4] + self.server_iperf3_args = ["-V4d", "-s"] + + def tearDown(self): + self.thru_host_stack_tear_down() + super(LDPThruHostStackIperfUdp, self).tearDown() + + def show_commands_at_teardown(self): + self.logger.debug(self.vapi.cli("show session verbose 2")) + + @unittest.skipUnless(_have_iperf3, "'%s' not found, Skipping.") + def test_ldp_thru_host_stack_iperf3_udp(self): + """ run LDP thru host stack iperf3 UDP test """ + + self.timeout = self.client_iperf3_timeout + self.thru_host_stack_test(iperf3, self.server_iperf3_args, + iperf3, self.client_iperf3_args) + + class LDPIpv6CutThruTestCase(VCLTestCase): """ LDP IPv6 Cut Thru Tests """ -- cgit 1.2.3-korg