dont delete all ips from the system during the initial "init" event
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 9 Nov 2010 01:56:02 +0000 (12:56 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 10 Nov 2010 03:55:23 +0000 (14:55 +1100)
leave any ips as they are and let the recovery daemon remove them as required

config/events.d/10.interface

index 3dce668e6698b39f6f908c3a60af4519384f6ed8..c6b871f837c42145069942c2367bbf44b9e82e81 100755 (executable)
@@ -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
        ;;
 
      #############################