update reading session xml options to updating these values instead of clearing out existing settings, avoids issue wiping ovs settings etc
This commit is contained in:
parent
6fe2845051
commit
3394f0240a
1 changed files with 8 additions and 8 deletions
|
@ -638,14 +638,14 @@ class CoreXmlReader:
|
||||||
session_options = self.scenario.find("session_options")
|
session_options = self.scenario.find("session_options")
|
||||||
if session_options is None:
|
if session_options is None:
|
||||||
return
|
return
|
||||||
|
xml_config = {}
|
||||||
configs = {}
|
for configuration in session_options.iterchildren():
|
||||||
for config in session_options.iterchildren():
|
name = configuration.get("name")
|
||||||
name = config.get("name")
|
value = configuration.get("value")
|
||||||
value = config.get("value")
|
xml_config[name] = value
|
||||||
configs[name] = value
|
logging.info("reading session options: %s", xml_config)
|
||||||
logging.info("reading session options: %s", configs)
|
config = self.session.options.get_configs()
|
||||||
self.session.options.set_configs(configs)
|
config.update(xml_config)
|
||||||
|
|
||||||
def read_session_hooks(self) -> None:
|
def read_session_hooks(self) -> None:
|
||||||
session_hooks = self.scenario.find("session_hooks")
|
session_hooks = self.scenario.find("session_hooks")
|
||||||
|
|
Loading…
Reference in a new issue