From: Martin Schwenke Date: Tue, 4 Aug 2015 06:12:31 +0000 (+1000) Subject: ctdb-tests: Make fake gateway different to actual public IPs X-Git-Tag: talloc-2.1.4~429 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6a9326e58c4ebabd351326493d5d320e0130e6;p=thirdparty%2Fsamba.git ctdb-tests: Make fake gateway different to actual public IPs Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index 46a5281d425..e65ad6f252b 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -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 "