aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/VppConfigGenerator.py
diff options
context:
space:
mode:
authorYulong Pei <yulong.pei@intel.com>2022-08-22 02:41:12 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-10-03 05:12:06 +0000
commitd5e75e153fe6d0abb6f3bbf0911de09957ea0d8c (patch)
treeddb27e1337d71202999a10c6848d6f76f28a1fa2 /resources/libraries/python/VppConfigGenerator.py
parent68cbb8912bff78aa7d478e9af54ee1bc199fdc59 (diff)
Add 10k tunnels IPSec policy mode test suites
Also add 10k tunnels IPSec policy mode test with spd fast path enabled. spd fast path is to reduce policy adding time, refer to patchset [1] & [2] for details. [1] https://gerrit.fd.io/r/c/vpp/+/36095 [2] https://gerrit.fd.io/r/c/vpp/+/36097 Signed-off-by: xinfeng zhao <xinfengx.zhao@intel.com> Signed-off-by: yulong pei <yulong.pei@intel.com> Change-Id: I211b38a60d273c46e68a5b5f712090037977c6e6 (cherry picked from commit d65da6a72887238eae5dd3b7eb4e53055ef516c3)
Diffstat (limited to 'resources/libraries/python/VppConfigGenerator.py')
-rw-r--r--resources/libraries/python/VppConfigGenerator.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py
index e1830147d8..dc1529033b 100644
--- a/resources/libraries/python/VppConfigGenerator.py
+++ b/resources/libraries/python/VppConfigGenerator.py
@@ -438,6 +438,24 @@ class VppConfigGenerator:
path = [u"ipsec", u"ipv4-outbound-spd-flow-cache"]
self.add_config_item(self._nodeconfig, "on", path)
+ def add_ipsec_spd_fast_path_ipv4_outbound(self, value):
+ """Add IPsec spd fast path for IP4 outbound.
+
+ :param value: "on" to enable spd fast path.
+ :type value: str
+ """
+ path = [u"ipsec", u"ipv4-outbound-spd-fast-path"]
+ self.add_config_item(self._nodeconfig, value, path)
+
+ def add_ipsec_spd_fast_path_num_buckets(self, value):
+ """Add num buckets for IPsec spd fast path.
+
+ :param value: Number of buckets.
+ :type value: int
+ """
+ path = [u"ipsec", u"spd-fast-path-num-buckets"]
+ self.add_config_item(self._nodeconfig, value, path)
+
def add_statseg_size(self, value):
"""Add Stats Heap Size configuration.