remove dependency on mesh_interfaces

detailed-rrds
Nils Schneider 2015-05-09 22:04:45 +02:00
parent 3caf00be07
commit 8fd0b73418
1 changed files with 19 additions and 0 deletions

View File

@ -11,6 +11,25 @@ def build_mac_table(nodes):
macs[mac] = node_id
except KeyError:
pass
try:
for mac in node['nodeinfo']['network']['mesh']['bat0']['interfaces']['wireless']:
macs[mac] = node_id
except KeyError:
pass
try:
for mac in node['nodeinfo']['network']['mesh']['bat0']['interfaces']['tunnel']:
macs[mac] = node_id
except KeyError:
pass
try:
for mac in node['nodeinfo']['network']['mesh']['bat0']['interfaces']['other']:
macs[mac] = node_id
except KeyError:
pass
return macs