fix for wlan configuration issues

This commit is contained in:
bharnden 2019-10-12 08:03:20 -07:00
parent ef6b355561
commit fee56302a1
2 changed files with 2 additions and 2 deletions

View file

@ -1416,7 +1416,7 @@ 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:
if self.session.state == EventTypes.RUNTIME_STATE.value and parsed_config:
try:
node = self.session.get_node(node_id)
if object_name == BasicRangeModel.name:

View file

@ -426,7 +426,7 @@ class BasicRangeModel(WirelessModel):
self.delay = int(config["delay"])
if self.delay == 0:
self.delay = None
self.loss = int(config["error"])
self.loss = int(float(config["error"]))
if self.loss == 0:
self.loss = None
self.jitter = int(config["jitter"])