|
@@ -100,6 +100,16 @@ class AlfredParser:
|
|
|
if 'mesh_interfaces' in nodestatic['network']:
|
|
|
macs = [x for x in nodestatic['network']['mesh_interfaces']]
|
|
|
nodeinfo['macs'] = macs
|
|
|
+ elif 'mesh' in nodestatic['network']:
|
|
|
+ ifaces = nodestatic['network']['mesh']
|
|
|
+ iftypes = [iftype for iftype in [ifaces[ifname]['interfaces'] for ifname in ifaces]]
|
|
|
+ tmp = [x for x in iftypes]
|
|
|
+ macs = []
|
|
|
+ for x in tmp:
|
|
|
+ for iftype in x:
|
|
|
+ for mac in x[iftype]:
|
|
|
+ macs.append(mac)
|
|
|
+ nodeinfo['macs'] = macs
|
|
|
else:
|
|
|
nodeinfo['macs'] = []
|
|
|
|