pygui avoid sending configs for empty mobility and wlan configurations

This commit is contained in:
Blake Harnden 2020-04-21 13:14:33 -07:00
parent ec8a15794b
commit 715bae6f74

View file

@ -911,6 +911,8 @@ class CoreClient:
for canvas_node in self.canvas_nodes.values():
if canvas_node.core_node.type != core_pb2.NodeType.WIRELESS_LAN:
continue
if not canvas_node.wlan_config:
continue
config = canvas_node.wlan_config
config = {x: config[x].value for x in config}
node_id = canvas_node.core_node.id
@ -923,6 +925,8 @@ class CoreClient:
for canvas_node in self.canvas_nodes.values():
if canvas_node.core_node.type != core_pb2.NodeType.WIRELESS_LAN:
continue
if not canvas_node.mobility_config:
continue
config = canvas_node.mobility_config
config = {x: config[x].value for x in config}
node_id = canvas_node.core_node.id