make mesh_interfaces optional
This commit is contained in:
parent
3ddecd26bf
commit
9195ea9650
5
nodes.py
5
nodes.py
|
@ -87,7 +87,12 @@ def import_mesh_ifs_vis_data(nodes, vis_data):
|
|||
|
||||
for v in mesh_nodes:
|
||||
node = v[0]
|
||||
|
||||
try:
|
||||
mesh_ifs = set(node['nodeinfo']['network']['mesh_interfaces'])
|
||||
except KeyError:
|
||||
mesh_ifs = set()
|
||||
|
||||
node['nodeinfo']['network']['mesh_interfaces'] = list(mesh_ifs | v[1])
|
||||
|
||||
def import_vis_clientcount(nodes, vis_data):
|
||||
|
|
Loading…
Reference in a new issue