diff --git a/coretk/coretk/coreclient.py b/coretk/coretk/coreclient.py index c88647c3..71d6da1b 100644 --- a/coretk/coretk/coreclient.py +++ b/coretk/coretk/coreclient.py @@ -567,6 +567,8 @@ class CoreClient: for key, config in self.emane_model_configs.items(): node_id, model, interface = key config = {x: config[x].value for x in config} + if interface is None: + interface = -1 config_proto = core_pb2.EmaneModelConfig( node_id=node_id, interface_id=interface, model=model, config=config ) @@ -630,5 +632,4 @@ class CoreClient: def set_emane_model_config(self, node_id, model, config, interface=None): logging.info("setting emane model config: %s %s %s", node_id, model, interface) - logging.info("model config: %s", config) self.emane_model_configs[(node_id, model, interface)] = config diff --git a/daemon/core/emane/nodes.py b/daemon/core/emane/nodes.py index c7817b41..bd76ed81 100644 --- a/daemon/core/emane/nodes.py +++ b/daemon/core/emane/nodes.py @@ -25,7 +25,7 @@ class EmaneNet(CoreNetworkBase): """ apitype = NodeTypes.EMANE.value - linktype = LinkTypes.WIRELESS.value + linktype = LinkTypes.WIRED.value type = "wlan" is_emane = True