summaryrefslogtreecommitdiffstats
path: root/ctdb/config/functions
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/config/functions')
-rwxr-xr-xctdb/config/functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions
index 9d91e6a61a..de373d6261 100755
--- a/ctdb/config/functions
+++ b/ctdb/config/functions
@@ -920,6 +920,12 @@ drop_all_public_ips ()
done <"${CTDB_PUBLIC_ADDRESSES:-/dev/null}"
}
+flush_route_cache ()
+{
+ set_proc sys/net/ipv4/route/flush 1
+ set_proc sys/net/ipv6/route/flush 1
+}
+
########################################################
# Simple counters
_ctdb_counter_common () {