# interface node and a management node. When run with deterministic
# IPs there are gratuitous IP reassignments.
-from ctdb_takeover import Cluster, Node
+from ctdb_takeover import Cluster, Node, process_args
+
+process_args()
addresses = ['A', 'B', 'C', 'D', 'E', 'F', 'G']
# When run with deterministic IPs (use "-d" to show the problem) it
# does many gratuitous IP reassignments.
-from ctdb_takeover import Cluster, Node
+from ctdb_takeover import Cluster, Node, process_args
+
+process_args()
addresses1 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'] + ['P', 'Q', 'R', 'S', 'T', 'U']
addresses2 = ['I', 'J', 'K', 'L']
# configuration. When run with deterministic IPs (use "-d" to show
# the problem) it does many gratuitous IP reassignments.
-from ctdb_takeover import Cluster, Node
+from ctdb_takeover import Cluster, Node, process_args
+
+process_args()
addresses1 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']
addresses2 = ['I', 'J', 'K']
# This is a contrived example that makes the balancing algorithm fail
# for nondeterministic IPs (run with "-dv --nd" to see the failure).
-# The --hack option fixes the problem.
-from ctdb_takeover import Cluster, Node
+from ctdb_takeover import Cluster, Node, process_args
+
+process_args()
addresses1 = ['A', 'B', 'C', 'D']
addresses2 = ['B', 'E', 'F']