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:
Blake Harnden 2020-04-22 12:07:42 -07:00
parent 6fe2845051
commit 3394f0240a

View file

@ -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")