__init__(self,
node_list,
action_cb,
node2ip,
port,
feedback_fn,
_ping_fn=netutils.TcpPing,
_sleep_fn=time.sleep)
(Constructor)
| source code
|
Init the object.
- Parameters:
node_list - The list of nodes to be reachable
action_cb - Callback called when a new host is reachable
node2ip (dict) - Node to ip mapping
port - The port to use for the TCP ping
feedback_fn - The function used for feedback
_ping_fn - Function to check reachabilty (for unittest use only)
_sleep_fn - Function to sleep (for unittest use only)
|