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

Module pingtree

source code

Classes [hide private]
  Rnode
Rnode is a router node in the tree map.
  Net
Net object represents a network in the tree map.
Functions [hide private]
 
initglobals(devname) source code
 
getStatus(device) source code
 
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.
source code
 
netDistMap(root, nmap=None, distance=0, devs=None, memo=None)
Return a mapping object with network ip as key and distance as value.
source code
Variables [hide private]
  gDevicemap = {}
  gNetsmap = {}
  gAllnodes = {}
  log = logging.getLogger("zen.ZenStatus")
Function Details [hide private]

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

source code 
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)

source code 
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)