From 8ab311719857847b4cf327507b0af1793551e73c Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 9 Nov 2010 12:56:02 +1100 Subject: [PATCH] dont delete all ips from the system during the initial "init" event leave any ips as they are and let the recovery daemon remove them as required --- config/events.d/10.interface | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config/events.d/10.interface b/config/events.d/10.interface index 3dce668e..c6b871f8 100755 --- a/config/events.d/10.interface +++ b/config/events.d/10.interface @@ -142,15 +142,6 @@ case "$1" in [ -f /proc/sys/net/ipv4/conf/all/arp_filter ] && { echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter } - cat "$CTDB_PUBLIC_ADDRESSES" | cut -d/ -f1 | while read _IP; do - _IP_HELD=`/sbin/ip addr show | grep "inet $_IP/"` - [ -z "$_IP_HELD" ] || { - _IFACE=`echo $_IP_HELD | sed -e "s/.*\s//"` - _NM=`echo $_IP_HELD | sed -e "s/.*$_IP\///" -e "s/\s.*//"` - echo "Removing public address $_IP/$_NM from device $_IFACE" - delete_ip_from_iface $_IFACE $_IP $_NM - } - done ;; ############################# -- 2.34.1