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-12 00:00:42 +0000
commit82b4ceb8e66020f41fd6faf9765614f9dc5a3163 (patch)
tree0711773a8abbf2d7f1b285b429d8a385c2d44eed /test
parente9b558282293ee28c5eef7cb507dbe3f4a81e5af (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 """