Add L2xc/L2bd/Ip4/Ip6 2-node tests for x710
[csit.git] / resources / libraries / python / VppConfigGenerator.py
index 93296eb..8611219 100644 (file)
@@ -352,6 +352,15 @@ class VppConfigGenerator(object):
         path = ['dpdk', 'socket-mem']
         self.add_config_item(self._nodeconfig, value, path)
 
+    def add_dpdk_num_mbufs(self, value):
+        """Add DPDK number of I/O buffers.
+
+        :param value: Number of I/O buffers.
+        :type value: int
+        """
+        path = ['dpdk', 'num-mbufs']
+        self.add_config_item(self._nodeconfig, value, path)
+
     def add_dpdk_uio_driver(self, value=None):
         """Add DPDK uio-driver configuration.
 
@@ -424,6 +433,15 @@ class VppConfigGenerator(object):
         path = ['ip', 'heap-size']
         self.add_config_item(self._nodeconfig, value, path)
 
+    def add_statseg_size(self, value):
+        """Add stats segment heap size configuration.
+
+        :param value: Stats heapsize amount.
+        :type value: str
+        """
+        path = ['statseg', 'size']
+        self.add_config_item(self._nodeconfig, value, path)
+
     def add_plugin(self, state, *plugins):
         """Add plugin section for specific plugin(s).