pygui avoid sending configs for empty mobility and wlan configurations
This commit is contained in:
parent
ec8a15794b
commit
715bae6f74
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue