daemon: fixed issue when setting default wlan config for a wlan node, using the session id instead of the node id

This commit is contained in:
Blake Harnden 2022-12-05 10:26:46 -08:00
parent b430de226d
commit a787f46719
2 changed files with 2 additions and 7 deletions

View file

@ -518,7 +518,7 @@ class Session:
self.set_node_pos(node, position.x, position.y)
# setup default wlan
if isinstance(node, WlanNode):
self.mobility.set_model_config(self.id, BasicRangeModel.name)
self.mobility.set_model_config(node.id, BasicRangeModel.name)
# boot core nodes after runtime
is_runtime = self.state == EventTypes.RUNTIME_STATE
if is_runtime and isinstance(node, CoreNode):

View file

@ -95,10 +95,9 @@
<service name="DefaultRoute"/>
</services>
</device>
<device id="14" name="n14" icon="" canvas="0" type="host" class="" image="">
<device id="14" name="n14" icon="" canvas="0" type="PC" class="" image="">
<position x="348.0" y="228.0" lat="47.57709392893491" lon="-122.12763501296686" alt="2.0"/>
<services>
<service name="SSH"/>
<service name="DefaultRoute"/>
</services>
</device>
@ -260,9 +259,5 @@
<service name="OSPFv3"/>
<service name="IPForward"/>
</node>
<node type="host">
<service name="DefaultRoute"/>
<service name="SSH"/>
</node>
</default_services>
</scenario>