From d7603d97e046d59aba6864b208c181b39fc72b52 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 28 Mar 2019 08:56:10 +0000 Subject: IPSEC: tunnel fragmentation Change-Id: I63741a22bc82f5f861e1c0f26a93b5569cc52061 Signed-off-by: Neale Ranns --- test/framework.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/framework.py') diff --git a/test/framework.py b/test/framework.py index dce477d16d2..004d2f62f49 100644 --- a/test/framework.py +++ b/test/framework.py @@ -1017,9 +1017,11 @@ class VppTestCase(unittest.TestCase): i.assert_nothing_captured(remark=remark) timeout = 0.1 - def send_and_expect(self, intf, pkts, output): + def send_and_expect(self, intf, pkts, output, n_rx=None): + if not n_rx: + n_rx = len(pkts) self.pg_send(intf, pkts) - rx = output.get_capture(len(pkts)) + rx = output.get_capture(n_rx) return rx def send_and_expect_only(self, intf, pkts, output, timeout=None): -- cgit 1.2.3-korg