mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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 (This used to be ctdb commit 8ab311719857847b4cf327507b0af1793551e73c)
This commit is contained in:
parent
87a0ece976
commit
76578b9533
@ -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
|
||||
;;
|
||||
|
||||
#############################
|
||||
|
Loading…
Reference in New Issue
Block a user