lib/nodes.py: Use all interface names and types
parent
3d8ab37c45
commit
e26619a4a1
16
lib/nodes.py
16
lib/nodes.py
|
@ -13,19 +13,9 @@ def build_mac_table(nodes):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for mac in node['nodeinfo']['network']['mesh']['bat0']['interfaces']['wireless']:
|
for upper_if in node['nodeinfo']['network']['mesh'].values():
|
||||||
macs[mac] = node_id
|
for lower_if in upper_if['interfaces'].values():
|
||||||
except KeyError:
|
for mac in lower_if:
|
||||||
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
|
macs[mac] = node_id
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue