From 0c1792e983425216588e93cd98286ea61b5cbd02 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Fri, 4 Dec 2020 10:23:34 +0100 Subject: cnat: Fix session with deleted tr Type: fix When a translation gets deleted, hiting a session pointing to it sefaults. We're better off directly storing the next node index. Change-Id: I4f0716d775202b4ecf54d6cdb827bbeebd23056c Signed-off-by: Nathan Skrzypczak --- src/plugins/cnat/test/test_cnat.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/plugins/cnat/test/test_cnat.py') diff --git a/src/plugins/cnat/test/test_cnat.py b/src/plugins/cnat/test/test_cnat.py index d46d047e558..271f5076942 100644 --- a/src/plugins/cnat/test/test_cnat.py +++ b/src/plugins/cnat/test/test_cnat.py @@ -271,11 +271,6 @@ class TestCNatTranslation(VppTestCase): p1 * N_PKTS, self.pg0) - self.assertEqual(t1.get_stats()['packets'], - N_PKTS * - len(sports) * - len(self.pg0.remote_hosts)) - def cnat_test_translation_update(self, t1, sports, isV6=False): ip_v = "ip6" if isV6 else "ip4" ip_class = IPv6 if isV6 else IP -- cgit 1.2.3-korg