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

# Module pingtree

source code

Classes | [hide private]
RouterNode RouterNode is a router node in the tree map.
Net Net object represents a network in the tree map.
PingTree

Functions | [hide private]
getStatus(device) | source code
buildTree(root, rootnode=None, devs=None, memo=None, tree=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]
| log = `logging.getLogger("zen.ZenStatus")`

Function Details | [hide private]

### buildTree(root, rootnode=None, devs=None, memo=None, tree=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)