aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-09-24 04:41:28 -0700
committerDamjan Marion <dmarion@me.com>2018-09-24 21:38:05 +0000
commit8fdc015ddde7620d37d5a46cc66deb9791e634c1 (patch)
tree1640330d85793cccadcda386c6f1a1b08f5a8eaa /test
parent3138d723091234a3534baa8b1bbaad31df6fb8d6 (diff)
NAT44: endpoint-dependent mode session timeout improvement (VPP-1423)
Change-Id: I630f3da1ea4e6e50a50f1352c097becef1efe3c0 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_nat.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_nat.py b/test/test_nat.py
index f3b5205a2fb..9092b4796bb 100644
--- a/test/test_nat.py
+++ b/test/test_nat.py
@@ -5657,6 +5657,7 @@ class TestNAT44EndpointDependent(MethodHolder):
src_address=self.pg2.local_ip4n,
path_mtu=512,
template_interval=10)
+ self.vapi.nat_set_timeouts(udp=5)
# get maximum number of translations per user
nat44_config = self.vapi.nat_show_config()
@@ -5703,6 +5704,15 @@ class TestNAT44EndpointDependent(MethodHolder):
nat44_config.max_translations_per_user,
self.pg0.remote_ip4n)
+ sleep(6)
+ p = (Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) /
+ IP(src=self.pg0.remote_ip4, dst=self.pg1.remote_ip4) /
+ UDP(sport=3001, dport=3002))
+ self.pg0.add_stream(p)
+ self.pg_enable_capture(self.pg_interfaces)
+ self.pg_start()
+ self.pg1.get_capture(1)
+
def tearDown(self):
super(TestNAT44EndpointDependent, self).tearDown()
if not self.vpp_dead: