From 3c863def2096b573832499985e3a12bbccf82ea8 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Mon, 3 Jun 2019 12:55:55 +0200 Subject: VAT-to-PAPI: VPPCounters Change-Id: I5954fdd61ead9b4143f8cc4e20294cf8e199e0af Signed-off-by: Tibor Frank --- resources/libraries/python/VppConfigGenerator.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'resources/libraries/python/VppConfigGenerator.py') diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index 179e4a02c8..e92d674507 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -436,6 +436,15 @@ class VppConfigGenerator(object): path = ['statseg', 'size'] self.add_config_item(self._nodeconfig, value, path) + def add_statseg_per_node_counters(self, value): + """Add stats per-node-counters configuration. + + :param value: "on" to switch the counters on. + :type value: str + """ + path = ['statseg', 'per-node-counters'] + self.add_config_item(self._nodeconfig, value, path) + def add_plugin(self, state, *plugins): """Add plugin section for specific plugin(s). -- cgit 1.2.3-korg