From 9891c6b975faadd1cf13e41d8ce9d2afaca1e68d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 29 May 2007 19:34:04 +1000 Subject: [PATCH] flush any local arp entries for the given ip on add/del (This used to be ctdb commit 814decd66423e955b443f0729ceec581c0d0c0e3) --- ctdb/tools/events | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctdb/tools/events b/ctdb/tools/events index 2536e59c395..2ce4a983c0c 100755 --- a/ctdb/tools/events +++ b/ctdb/tools/events @@ -17,6 +17,8 @@ case $cmd in echo "Failed to add $ip/$maskbits on dev $iface" exit 1 } + # if we have a local arp entry for this IP then remove it + /sbin/arp -d $ip 2> /dev/null exit 0 ;; @@ -32,6 +34,8 @@ case $cmd in echo "Failed to del $ip on dev $iface" exit 1 } + # if we have a local arp entry for this IP then remove it + /sbin/arp -d $ip 2> /dev/null exit 0 ;; -- 2.47.3