From 5a6a9326e58c4ebabd351326493d5d320e0130e6 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 4 Aug 2015 16:12:31 +1000 Subject: [PATCH] ctdb-tests: Make fake gateway different to actual public IPs Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/eventscripts/scripts/local.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 " -- 2.11.4.GIT