aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_nat.py
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-05-10 22:48:53 -0700
committerOle Trøan <otroan@employees.org>2018-05-14 07:41:51 +0000
commit17e5cfbe8d9b1f47b18eb1a43976fe322e3987a2 (patch)
tree7e845966df3e1a654e8a303e9645d3fa85b13839 /test/test_nat.py
parent2be45813c757137000878dc711dd169fc2d414af (diff)
NAT44: delete closed TCP session (VPP-1274)
Change-Id: Id25b447bddccb7b321123e4abc4134e7261a0807 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'test/test_nat.py')
-rw-r--r--test/test_nat.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_nat.py b/test/test_nat.py
index 7c841f515c4..c2e36be7697 100644
--- a/test/test_nat.py
+++ b/test/test_nat.py
@@ -4208,7 +4208,7 @@ class TestNAT44(MethodHolder):
self.initiate_tcp_session(self.pg0, self.pg1)
sessions = self.vapi.nat44_user_session_dump(self.pg0.remote_ip4n,
0)
- self.assertEqual(len(sessions) - start_sessnum, 2)
+ self.assertEqual(len(sessions) - start_sessnum, 1)
except:
self.logger.error("TCP session termination failed")
raise
@@ -4271,7 +4271,7 @@ class TestNAT44(MethodHolder):
self.initiate_tcp_session(self.pg0, self.pg1)
sessions = self.vapi.nat44_user_session_dump(self.pg0.remote_ip4n,
0)
- self.assertEqual(len(sessions) - start_sessnum, 2)
+ self.assertEqual(len(sessions) - start_sessnum, 1)
except:
self.logger.error("TCP session termination failed")
raise
@@ -4333,7 +4333,7 @@ class TestNAT44(MethodHolder):
self.initiate_tcp_session(self.pg0, self.pg1)
sessions = self.vapi.nat44_user_session_dump(self.pg0.remote_ip4n,
0)
- self.assertEqual(len(sessions) - start_sessnum, 2)
+ self.assertEqual(len(sessions) - start_sessnum, 1)
except:
self.logger.error("TCP session termination failed")
raise