Add MACs from mesh_interfaces as alises
This commit is contained in:
parent
66112061d6
commit
322860be7e
|
@ -29,4 +29,5 @@ class Input:
|
||||||
nodeinfo[mac]['statistics'] = statistics[mac]
|
nodeinfo[mac]['statistics'] = statistics[mac]
|
||||||
|
|
||||||
for mac, node in nodeinfo.items():
|
for mac, node in nodeinfo.items():
|
||||||
nodedb.add_or_update([mac], node)
|
aliases = [mac] + node.get('network', {}).get('mesh_interfaces', [])
|
||||||
|
nodedb.add_or_update(aliases, node)
|
||||||
|
|
Loading…
Reference in a new issue