ctdb-tests: Be more careful when building public IP addresses
authorMartin Schwenke <martin@meltin.net>
Thu, 20 Sep 2018 05:26:08 +0000 (15:26 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 8 Oct 2018 00:46:23 +0000 (02:46 +0200)
commit0dfb3c87b50745012c6c8bab5e0af262ce3f5f87
tree822b99ed4a3287e90864fb26b19932f69b73bbe5
parent36eb7388775f7e931d102d71b867c4985830df17
ctdb-tests: Be more careful when building public IP addresses

The goal is to allow more local daemons by expanding the address range
rather than generating invalid addresses.

For IPv6, use a separate address space instead of an offset for the
2nd address.

For IPv4, use the last 2 octets with addresses starting at
192.168.100.1 and 192.168.200.1.  Avoid addresses with 0 and 255 in
the last octet by using a maximum of 100 addresses per "subnet"
starting at .1.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local_daemons.bash