aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMartin <magalik@cisco.com>2017-03-14 02:25:45 -0700
committerOle Trøan <otroan@employees.org>2017-03-22 07:27:39 +0000
commitb616e9fdc270e786c31b9ee9de5464497f0b1f6d (patch)
tree615b197aac161a3e668a7f1d2ed8cc364cab3bab /test
parent59ed490ed7dd7376c3d3acabc4932133a4899d69 (diff)
SNAT: added actual delete to snat_det_map
Change-Id: I8187b43129b80fadd90ea493afb922064f79abbe Signed-off-by: Martin <magalik@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_snat.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_snat.py b/test/test_snat.py
index 7084f00208f..e1dd576e991 100644
--- a/test/test_snat.py
+++ b/test/test_snat.py
@@ -1330,6 +1330,10 @@ class TestDeterministicNAT(VppTestCase):
self.assertEqual(out_addr_n, dsm.out_addr[:4])
self.assertEqual(out_plen, dsm.out_plen)
+ self.clear_snat()
+ deterministic_mappings = self.vapi.snat_det_map_dump()
+ self.assertEqual(len(deterministic_mappings), 0)
+
def clear_snat(self):
"""
Clear SNAT configuration.