daemon: fixed issue where emane global config settings were not being sent to core-gui when joining a session

This commit is contained in:
Blake Harnden 2020-10-05 20:15:55 -07:00
parent 8a6fdc69ba
commit f2868a9554
2 changed files with 9 additions and 2 deletions

View file

@ -1851,7 +1851,15 @@ class CoreHandler(socketserver.BaseRequestHandler):
)
self.session.broadcast_config(config_data)
# send emane model info
# send global emane config
config = self.session.emane.get_configs()
logging.debug("global emane config: values(%s)", config)
config_data = ConfigShim.config_data(
0, None, ConfigFlags.UPDATE.value, self.session.emane.emane_config, config
)
self.session.broadcast_config(config_data)
# send emane model configs
for node_id in self.session.emane.nodes():
emane_configs = self.session.emane.get_all_configs(node_id)
for model_name in emane_configs:

View file

@ -333,7 +333,6 @@ Create `/tmp/emane/blockageaft.xml` with the following contents.
```
## Run Demo
> **WARNING:** if using core-gui, you will need to open nd save the emane configuration
1. Select `Open...` within the GUI
1. Load `emane-demo-antenna.xml`
1. Click ![Start Button](../static/gui/start.gif)