- Timestamp:
- Oct 18, 2013, 8:10:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/make-network-graph.py
r11753 r12479 66 66 link_data[addr] = 1 67 67 iface = datadump[iface_key]['autogen_ifname'] 68 print nodename, iface69 68 INTERVAL = 60 * 10 70 69 if store['uptime'].has_key(nodename) and store['snmp'].has_key(nodename) and store['traffic'].has_key(nodename): … … 77 76 link_data[addr] = retval 78 77 79 print "### %s [%s] is of type %s" % (gformat.showaddr(addr), iface_key, link_type[addr])78 print "### ... %s %s [%s] is of type %s" % (iface, gformat.showaddr(addr), iface_key, link_type[addr]) 80 79 except (KeyError, ValueError), e: 81 80 print "[FOUT] in '%s' interface '%s'" % (host,iface_key) … … 95 94 edge [ fontsize = 10, ] 96 95 """ 97 for node, datadump in nodes.iteritems(): 96 for node in sorted(nodes.keys()): 97 datadump = nodes[node] 98 print "# Processing node:", node 98 99 lines = [node] 99 100 for ik in datadump['autogen_iface_keys']: 101 print "# .. ", ik 100 102 if 'alias' in ik or 'wlan' in datadump[ik]['autogen_ifname']: 101 103 continue
Note:
See TracChangeset
for help on using the changeset viewer.