ctdb-takeover: Drop unused ctdb_takeover_run() and related code
[sfrench/samba-autobuild/.git] / ctdb / tests / takeover / simulation / ip_groups1.py
1 #!/usr/bin/env python
2
3 # 2 IP groups, both on the same 5 nodes, with each group on different
4 # interfaces/VLANs.  One group has many more addresses to test how
5 # well an "imbalanced" configuration will balance...
6
7 from ctdb_takeover import Cluster, Node, process_args
8
9 process_args()
10
11 addresses20 = ['192.168.20.%d' % n for n in range(1, 13)]
12 addresses128 = ['192.168.128.%d' % n for n in range(1, 5)]
13
14 c = Cluster()
15
16 for i in range(5):
17     c.add_node(Node([addresses20, addresses128]))
18
19 #for i in range(3):
20 #    c.add_node(Node([addresses20]))
21
22
23 c.recover()
24
25 c.random_iterations()