Add MACs from mesh_interfaces as alises

This commit is contained in:
Jan-Philipp Litza 2014-09-20 12:42:53 +02:00
parent 66112061d6
commit 322860be7e

View file

@ -29,4 +29,5 @@ class Input:
nodeinfo[mac]['statistics'] = statistics[mac]
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)