summaryrefslogtreecommitdiffstats
path: root/nfvbench/config_plugin.py
diff options
context:
space:
mode:
authorYichen Wang <yicwang@cisco.com>2017-08-22 12:03:14 -0700
committerYichen Wang <yicwang@cisco.com>2017-08-22 12:04:26 -0700
commit6c4e55c53c65b7e63c17c85367b4813443c5d942 (patch)
tree23135636b516bcce7f2cb3d70053ea9de83054f3 /nfvbench/config_plugin.py
parent1fe5e7adb3e1d90910c18386ed64d0a787a7bf94 (diff)
Change the signature for config validation function
Change-Id: I4ef3d18f1b068165cdfc8d08278d12ec6eac4a4c Signed-off-by: Yichen Wang <yicwang@cisco.com>
Diffstat (limited to 'nfvbench/config_plugin.py')
-rw-r--r--nfvbench/config_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nfvbench/config_plugin.py b/nfvbench/config_plugin.py
index 417402a..78c2ebb 100644
--- a/nfvbench/config_plugin.py
+++ b/nfvbench/config_plugin.py
@@ -53,7 +53,7 @@ class ConfigPluginBase(object):
"""Returns RunSpec for given platform."""
@abc.abstractmethod
- def validate_config(self, cfg):
+ def validate_config(self, cfg, openstack_spec):
"""Validate config file."""
@abc.abstractmethod
@@ -85,7 +85,7 @@ class ConfigPlugin(ConfigPluginBase):
"""Returns RunSpec for given platform."""
return specs.RunSpec(self.config.no_vswitch_access, openstack_spec)
- def validate_config(self, config):
+ def validate_config(self, config, openstack_spec):
pass
def prepare_results_config(self, cfg):