daemon: just assign emane model, instead of triggering position hooks during non-runtime cases

This commit is contained in:
Blake Harnden 2020-09-01 17:16:05 -07:00
parent 570ad9522c
commit ba028a2b00

View file

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