Changeset 14408 in genesis
- Timestamp:
- Dec 16, 2019, 8:49:59 PM (5 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/PVKerkDuif/wleiden.yaml
r14061 r14408 26 26 27 27 iface_vr0: 28 comment : "Link naar switch PVKerkDuif Network , camera c4:d6:55:3e:19:3f at .66"28 comment : "Link naar switch PVKerkDuif Network" 29 29 ip : "172.17.13.65/28" 30 30 sdesc : "2building" … … 33 33 status : "up" 34 34 35 iface_vr0_extra0: 36 comment : "Parkeerplaats - Webcam" 37 sdesc : "webcam-buiten" 38 type : "eth" 39 dhcp : False 40 status : "up" 41 bridge_type: "Foscam" 42 ip : "172.17.13.66/24" 43 mac : "c4:d6:55:3e:19:3f" 35 44 36 45 iface_vr1: … … 51 60 52 61 iface_vr2: 53 comment : "AccessPoint Sportvelden via NanoStation, peer 00:27:22:E2:53:DD 172.17.20.3"62 comment : "AccessPoint Sportvelden" 54 63 ip : "172.17.20.1/24" 55 64 sdesc : "2sportvelden" 56 65 mode : "ap-wds" 57 66 type : "eth" 58 channel : "1 1"67 channel : "1" 59 68 ssid : "ap-ZTW-PVKerkDuif-Buiten" 60 69 dhcp : "11-250" … … 64 73 status : "up" 65 74 75 iface_vr2_extra0: 76 comment : "AccessPoint Veld11 Buiten" 77 sdesc : "veld11" 78 type : "eth" 79 dhcp : False 80 status : "up" 81 bridge_type: "NanoStation M5" 82 ip : "172.17.20.3/24" 83 mac : "00:27:22:80:5a:b6" 66 84 85 iface_vr2_extra1: 86 comment : "AccessPoint Veld11 Binnen" 87 sdesc : "veld11" 88 type : "eth" 89 dhcp : False 90 status : "up" 91 bridge_type: "Bullet2" 92 ip : "172.17.20.4/24" 93 mac : "00:27:22:f2:f1:f0" 94 95 iface_vr2_extra2: 96 comment : "Veld11 - Webcam" 97 sdesc : "webcam-veld11" 98 type : "eth" 99 dhcp : False 100 status : "up" 101 bridge_type: "airCam" 102 ip : "172.17.20.5/24" 103 mac : "00:27:22:60:43:da" -
tools/gformat.py
r14384 r14408 1115 1115 ifacedump = datadump[iface_key] 1116 1116 1117 if not 'ns_ip' in ifacedump: 1117 if 'mac' in ifacedump: 1118 x_ip = ifacedump['ip'].split('/')[0] 1119 x_mode = 'active' if ifacedump.get('status') == 'up' else 'disabled' 1120 elif 'ns_ip' in ifacedump: 1121 x_ip = ifacedump['ns_ip'].split('/')[0] 1122 x_mode = ifacedump.get('mode') or 'unknown' 1123 else: 1118 1124 continue 1119 1125 1120 x_ip = ifacedump['ns_ip'].split('/')[0] 1121 1122 if 'mode' in ifacedump: 1123 x_mode = ifacedump['mode'] 1124 else: 1125 x_mode = 'unknown' 1126 1127 if 'bridge_type' in ifacedump: 1128 device_type = ifacedump['bridge_type'] 1129 else: 1130 device_type = 'Unknown' 1131 1132 table.append((ifacedump['autogen_iface'], x_mode, 'http://%s' % x_ip if url else x_ip, device_type)) 1126 device_type = ifacedump.get('bridge_type') or 'Unknown' 1127 table.append((ifacedump['autogen_iface'], x_mode, 'http://%s' % x_ip if url else x_ip, "%s (%s)" % (device_type, ifacedump.get('comment','')))) 1128 1133 1129 return table 1134 1130 … … 1377 1373 ('ns_mac', False), 1378 1374 ('bullet2_mac', False), 1375 ('mac', False), 1379 1376 ('ns_type', False), 1380 1377 ('bridge_type', False),
Note:
See TracChangeset
for help on using the changeset viewer.