Add MACs from mesh_interfaces as alises

rewrite
Jan-Philipp Litza 2014-09-20 12:42:53 +02:00
parent 66112061d6
commit 322860be7e
1 changed files with 2 additions and 1 deletions

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)