aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fg21sim/configs/manager.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py
index 9e0ddbe..76ece70 100644
--- a/fg21sim/configs/manager.py
+++ b/fg21sim/configs/manager.py
@@ -408,6 +408,10 @@ class ConfigManager:
logger.info("Set config: {key}: {val_old} -> {val_new}".format(
key="/".join(key), val_new=val_new, val_old=val_old))
+ def update(self, **kwargs):
+ for key, value in kwargs.items():
+ self.setn(key, value)
+
def __setitem__(self, key, value):
self.setn(key, value)