Package ClusterShell :: Module Topology :: Class TopologyRoutingTable
[hide private]
[frames] | no frames]

Class TopologyRoutingTable

source code


This class provides a convenient way to store and manage topology routes

Instance Methods [hide private]
 
__init__(self)
Initialize a new TopologyRoutingTable instance.
source code
 
add_route(self, route)
add a new route to the table.
source code
 
connected(self, src_ns)
find out and return the aggregation of directly connected children from src_ns.
source code
 
__str__(self)
printable representation
source code
 
__iter__(self)
return an iterator over the list of rotues
source code
 
_introduce_circular_reference(self, route)
check whether the last added route adds a topology loop or not
source code
 
_introduce_convergent_paths(self, route)
check for undesired convergent paths
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialize a new TopologyRoutingTable instance.

Overrides: object.__init__

add_route(self, route)

source code 

add a new route to the table. The route argument is expected to be a TopologyRoute instance

connected(self, src_ns)

source code 

find out and return the aggregation of directly connected children from src_ns. Argument src_ns is expected to be a NodeSet instance. Result is returned as a NodeSet instance

__str__(self)
(Informal representation operator)

source code 

printable representation

Overrides: object.__str__