diff options
author | Peter Mikus <pmikus@cisco.com> | 2018-03-28 13:31:03 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2018-03-30 04:04:10 +0000 |
commit | 01e72f9dce0ef3eeb10ca9097836f7d34e40fa0d (patch) | |
tree | fe03556490a82ae012c9994f820bb4f811d9fb03 /resources/libraries/python/VppConfigGenerator.py | |
parent | ac3860dbb6e25b68d96ceadc2e887d81b7ea5603 (diff) |
Change the default plugin behavior in perf tests
Currently we are selectively disabling plugins by creating list of
disabled plugins for performance tests. Thanks to the new API in VPP we
can revert the logic to selectivly enable plugins. This is more stable
for future onboarding of new plugins into VPP.
Change-Id: Ibdd56d6097230d095a304bbb6984b565d9428f51
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/VppConfigGenerator.py')
-rw-r--r-- | resources/libraries/python/VppConfigGenerator.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index 819224f485..4476cfa3ee 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -358,14 +358,16 @@ class VppConfigGenerator(object): path = ['ip', 'heap-size'] self.add_config_item(self._nodeconfig, value, path) - def add_plugin_disable(self, *plugins): - """Add plugin disable for specific plugin. + def add_plugin(self, state, *plugins): + """Add plugin section for specific plugin(s). + :param state: State of plugin [enable|disable]. :param plugins: Plugin(s) to disable. + :type state: str :type plugins: list """ for plugin in plugins: - path = ['plugins', 'plugin {0}'.format(plugin), 'disable'] + path = ['plugins', 'plugin {0}'.format(plugin), state] self.add_config_item(self._nodeconfig, ' ', path) def add_dpdk_no_multi_seg(self): |