Package ZenStatus :: Module pingtree
[show private | hide private]
[frames | no frames]

Module ZenStatus.pingtree

Classes
Net Net object represents a network in the tree map.
Rnode Rnode is a router node in the tree map.

Function Summary
  buildTree(root, rootnode, devs, memo)
Returns tree where tree that maps the network from root's perspective and nmap is a dict that points network ids to the network objects in the tree.
  getStatus(device)
  initglobals(devname)
  netDistMap(root, nmap, distance, devs, memo)
Return a mapping object with network ip as key and distance as value.

Variable Summary
Logger log = <logging.Logger instance at 0x365c1c0>

Function Details

buildTree(root, rootnode=None, devs=None, memo=None)

Returns tree where tree that maps the network from root's perspective and nmap is a dict that points network ids to the network objects in the tree. nmap is used to add devices to be pinged to the tree.

netDistMap(root, nmap=None, distance=0, devs=None, memo=None)

Return a mapping object with network ip as key and distance as value. This is a recursive method that does a breadth first search of the route space. It is called with no parameters (they are used by the recursion)

Variable Details

log

Type:
Logger
Value:
<logging.Logger instance at 0x365c1c0>                                 

Generated by Epydoc 2.1 on Thu Aug 16 09:55:10 2007 http://epydoc.sf.net