daemon: just assign emane model, instead of triggering position hooks during non-runtime cases
This commit is contained in:
parent
570ad9522c
commit
ba028a2b00
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ class Session:
|
||||||
raise CoreError(
|
raise CoreError(
|
||||||
f"node({node.name}) emane model({options.emane}) does not exist"
|
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:
|
if self.state == EventTypes.RUNTIME_STATE:
|
||||||
self.emane.add_node(node)
|
self.emane.add_node(node)
|
||||||
# set default wlan config if needed
|
# set default wlan config if needed
|
||||||
|
|
Loading…
Reference in a new issue