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