grpc - fixed issue when handling wlan configurations

This commit is contained in:
Blake Harnden 2019-06-14 14:14:00 -07:00
parent 56993ec44f
commit 6288e11bcc

View file

@ -854,9 +854,9 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
def SetWlanConfig(self, request, context):
logging.debug("set wlan config: %s", request)
session = self.get_session(request.session_id, context)
node = self.get_node(session, request.node_id, context)
session.mobility.set_model_config(node.id, BasicRangeModel.name, request.config)
session.mobility.set_model_config(request.node_id, BasicRangeModel.name, request.config)
if session.state == EventTypes.RUNTIME_STATE.value:
node = self.get_node(session, request.node_id, context)
node.updatemodel(request.config)
return core_pb2.SetWlanConfigResponse(result=True)