diff options
author | ahothan <ahothan@cisco.com> | 2017-08-04 17:26:33 -0700 |
---|---|---|
committer | ahothan <ahothan@cisco.com> | 2017-08-04 17:27:41 -0700 |
commit | 2d66234fe3b8b3e104e63218b5120a35ca400ea5 (patch) | |
tree | 4290c61fa68b09c83a2983ff742f8f48bf53d231 /nfvbench/config_plugin.py | |
parent | 0036098e46e16c9ae5b795b108a5b9566c02906b (diff) |
Add support for multiple physnets for sr-iov
Update config plugin config
Add readable error message on exception
Change-Id: Ie22de349582abc34d7e62570118022463f835d64
Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'nfvbench/config_plugin.py')
-rw-r--r-- | nfvbench/config_plugin.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nfvbench/config_plugin.py b/nfvbench/config_plugin.py index ed6b3c6..417402a 100644 --- a/nfvbench/config_plugin.py +++ b/nfvbench/config_plugin.py @@ -36,6 +36,14 @@ class ConfigPluginBase(object): def get_config(self): """Returns updated default configuration file.""" + def set_config(self, config): + """This method is called when the config has changed after this instance was initialized. + + This is needed in teh frequent case where the main config is changed in a copy and to + prevent this instance to keep pointing to the old copy of the config + """ + self.config = config + @abc.abstractmethod def get_openstack_spec(self): """Returns OpenStack specs for host.""" |