aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/test
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-10-26 13:42:41 +0000
committerOle Tr�an <otroan@employees.org>2020-11-03 11:46:44 +0000
commitc358d78c4126c3bd660d16583842ac41afc77a3e (patch)
treee5d6e42fa2c3c29acdb3cd733b1082de38fff0a7 /src/plugins/nat/test
parentaf4a414eb74d1456121023e6b3aa76af6c16f89a (diff)
nat: bihash: fix buckets calc and remove mem param
Calculate bihash buckets as n_elts / 2.5 rounded to closest pow2 per Damjan's recommendation. Remove memory configuration parameters because bihash init ignores them anyway as it resides in main heap now. Type: improvement Change-Id: I189f463f3c4640106cce4f12d3c5a62969276a82 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/plugins/nat/test')
-rw-r--r--src/plugins/nat/test/test_nat.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/nat/test/test_nat.py b/src/plugins/nat/test/test_nat.py
index 3b19b71f199..d635abf9825 100644
--- a/src/plugins/nat/test/test_nat.py
+++ b/src/plugins/nat/test/test_nat.py
@@ -1178,22 +1178,6 @@ class TestNATMisc(MethodHolder):
self.vapi.nat44_plugin_enable_disable(enable=0)
self.vapi.cli("clear logging")
- def test_show_config(self):
- """ NAT config translation memory """
-
- nat_config = self.vapi.nat_show_config()
- mem = nat_config.translation_memory_size
- self.assertTrue(mem > 0)
- self.logger.info("max translation memory: %d" % mem)
-
- def test_show_config_2(self):
- """ NAT config2 translation memory """
-
- nat_config = self.vapi.nat_show_config_2()
- mem = nat_config.translation_memory_size
- self.assertTrue(mem > 0)
- self.logger.info("max translation memory: %d" % mem)
-
def test_show_max_translations(self):
""" API test - max translations per thread """
nat_config = self.vapi.nat_show_config_2()