]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Make fake gateway different to actual public IPs
authorMartin Schwenke <martin@meltin.net>
Tue, 4 Aug 2015 06:12:31 +0000 (16:12 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 7 Aug 2015 03:33:29 +0000 (05:33 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/eventscripts/scripts/local.sh

index 46a5281d425e66184d4344959e79c440f58b4c33..e65ad6f252b360234bbcd4aac7592acc77f10d16 100644 (file)
@@ -470,7 +470,7 @@ create_policy_routing_config ()
     fi |
     while read _dev _ip _bits ; do
        _net=$(ipv4_host_addr_to_net "$_ip" "$_bits")
-       _gw="${_net%.*}.1" # a dumb, calculated default
+       _gw="${_net%.*}.254" # a dumb, calculated default
 
        echo "$_ip $_net"
 
@@ -499,7 +499,7 @@ check_routes ()
     fi | {
        while read _dev _ip _bits ; do
            _net=$(ipv4_host_addr_to_net "$_ip" "$_bits")
-           _gw="${_net%.*}.1" # a dumb, calculated default
+           _gw="${_net%.*}.254" # a dumb, calculated default
 
            _policy_rules="${_policy_rules}
 ${CTDB_PER_IP_ROUTING_RULE_PREF}:      from $_ip lookup ctdb.$_ip "