1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00
Martin Schwenke 76d75f8c81 tests/takeover - Restructure according to new convention
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit f94897ef9504c144937409688fa7a646e0b0ceae)
2012-04-16 15:57:16 +10:00

23 lines
448 B
Python
Executable File

#!/usr/bin/env python
# This is an example showing a current SONAS configuration with 3
# interface node and a management node. When run with deterministic
# IPs there are gratuitous IP reassignments.
from ctdb_takeover import Cluster, Node, process_args
process_args()
addresses = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
c = Cluster()
for i in range(3):
c.add_node(Node(addresses))
c.add_node(Node([]))
c.recover()
c.random_iterations()