From ba028a2b0036c42b90c921a7889eaf9c56d4357b Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Tue, 1 Sep 2020 17:16:05 -0700 Subject: [PATCH] daemon: just assign emane model, instead of triggering position hooks during non-runtime cases --- daemon/core/emulator/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/core/emulator/session.py b/daemon/core/emulator/session.py index 7622127a..2db2c1ad 100644 --- a/daemon/core/emulator/session.py +++ b/daemon/core/emulator/session.py @@ -550,7 +550,7 @@ class Session: raise CoreError( f"node({node.name}) emane model({options.emane}) does not exist" ) - node.setmodel(model, {}) + node.model = model(self, node.id) if self.state == EventTypes.RUNTIME_STATE: self.emane.add_node(node) # set default wlan config if needed