summaryrefslogtreecommitdiffstats
path: root/src/vcl/test/test_vcl.py
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-01 23:16:11 +0000
committerDave Barach <openvpp@barachs.net>2020-04-02 11:28:01 +0000
commit57a5a2df5970f61259c9a14b5eb79358a2115b01 (patch)
treeb77c249a79c10dda35a07b32cac2e4e5ffce2a8f /src/vcl/test/test_vcl.py
parentdfd980fcffacc2bed90e53b9da669eac53025bb2 (diff)
udp session vcl: add udp iperf test
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ib4bc2ce781887a84055a4d5cdb7f453fc7d52c79
Diffstat (limited to 'src/vcl/test/test_vcl.py')
-rw-r--r--src/vcl/test/test_vcl.py36
1 files changed, 36 insertions, 0 deletions
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 """