small change for possibility of runtime mobility configuration
This commit is contained in:
parent
a9e622c32f
commit
fca79fcf94
2 changed files with 4 additions and 3 deletions
|
@ -1269,10 +1269,11 @@ class CoreHandler(socketserver.BaseRequestHandler):
|
|||
parsed_config = ConfigShim.str_to_dict(values_str)
|
||||
|
||||
self.session.mobility.set_model_config(node_id, object_name, parsed_config)
|
||||
if self.session.state == EventTypes.RUNTIME_STATE.value and object_name == BasicRangeModel.name:
|
||||
if self.session.state == EventTypes.RUNTIME_STATE.value:
|
||||
try:
|
||||
node = self.session.get_node(node_id)
|
||||
node.updatemodel(parsed_config)
|
||||
if object_name == BasicRangeModel.name:
|
||||
node.updatemodel(parsed_config)
|
||||
except KeyError:
|
||||
logging.error("skipping mobility configuration for unknown node: %s", node_id)
|
||||
|
||||
|
|
|
@ -1026,7 +1026,7 @@ class WlanNode(CoreNetwork):
|
|||
def update_mobility(self, config):
|
||||
if not self.mobility:
|
||||
raise ValueError("no mobility set to update for node(%s)", self.id)
|
||||
self.mobility.set_configs(config, node_id=self.id)
|
||||
self.mobility.update_config(config)
|
||||
|
||||
def updatemodel(self, config):
|
||||
if not self.model:
|
||||
|
|
Loading…
Reference in a new issue