fixed issue in grpc get emane model configs that would allow key collision

This commit is contained in:
Blake Harnden 2019-12-13 14:18:13 -08:00
parent 9ada94107e
commit 9d988a4b13
3 changed files with 16 additions and 12 deletions

View file

@ -228,13 +228,12 @@ class CoreClient:
# get emane model config
response = self.client.get_emane_model_configs(self.session_id)
for node_id in response.configs:
config = response.configs[node_id]
for config in response.configs:
interface = None
if config.interface != -1:
interface = config.interface
self.set_emane_model_config(
node_id, config.model, config.config, interface
config.node_id, config.model, config.config, interface
)
# get wlan configurations