aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/config_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'nfvbench/config_plugin.py')
-rw-r--r--nfvbench/config_plugin.py8
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."""