Merge branch 'develop' of https://github.com/coreemu/core into develop

This commit is contained in:
Blake J. Harnden 2019-06-14 14:15:56 -07:00
commit d1d6c401f0

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)