From b616e9fdc270e786c31b9ee9de5464497f0b1f6d Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 14 Mar 2017 02:25:45 -0700 Subject: SNAT: added actual delete to snat_det_map Change-Id: I8187b43129b80fadd90ea493afb922064f79abbe Signed-off-by: Martin --- test/test_snat.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test_snat.py b/test/test_snat.py index 7084f002..e1dd576e 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. -- cgit 1.2.3-korg