summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-10-11 04:28:48 -0700
committerDamjan Marion <dmarion@me.com>2018-10-11 20:40:02 +0000
commit33f276e0af41212ae3894101f7182ab4772a71f5 (patch)
treeb531b4abfeecccce174fc219e6e97de3c7a7a3c2 /test
parent7212e61d925f1025dbefa2811e0e8a704b24108a (diff)
NAT44: identity NAT fix (VPP-1441)
Change-Id: Ic4affc54d15d08b9b730f6ec6146ee053b28b4b6 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_nat.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_nat.py b/test/test_nat.py
index 3b9007f6e93..e9e7dfa3068 100644
--- a/test/test_nat.py
+++ b/test/test_nat.py
@@ -1937,6 +1937,10 @@ class TestNAT44(MethodHolder):
sessions = self.vapi.nat44_user_session_dump(self.pg0.remote_ip4n, 0)
self.assertEqual(len(sessions), 0)
+ self.vapi.nat44_add_del_identity_mapping(ip=self.pg0.remote_ip4n,
+ vrf_id=1)
+ identity_mappings = self.vapi.nat44_identity_mapping_dump()
+ self.assertEqual(len(identity_mappings), 2)
def test_multiple_inside_interfaces(self):
""" NAT44 multiple non-overlapping address space inside interfaces """