From 322860be7e31e1dae98a525d9dd2963872b181b5 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Sat, 20 Sep 2014 12:42:53 +0200 Subject: [PATCH] Add MACs from mesh_interfaces as alises --- ffmap/inputs/alfred.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffmap/inputs/alfred.py b/ffmap/inputs/alfred.py index 340c0d9..13730af 100644 --- a/ffmap/inputs/alfred.py +++ b/ffmap/inputs/alfred.py @@ -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)