mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
this stuff is just so fragile that it will enter infinite recovery and fail loops
on any kind of tiny unexpected error unconditionally try to remove ip addresses from both old and new interface before trying to add it to the new interface to make it less fragile (This used to be ctdb commit 80acca2c91c9053c799365bae918db7ed8bdc56f)
This commit is contained in:
parent
ebed26d755
commit
055eafb790
@ -244,11 +244,8 @@ case "$1" in
|
||||
iptables -D INPUT -i $oiface -d $ip -j DROP 2> /dev/null
|
||||
iptables -I INPUT -i $oiface -d $ip -j DROP
|
||||
|
||||
delete_ip_from_iface $oiface $ip $maskbits || {
|
||||
delete_ip_from_iface $niface $ip $maskbits
|
||||
iptables -D INPUT -i $oiface -d $ip -j DROP 2> /dev/null
|
||||
exit 1;
|
||||
}
|
||||
delete_ip_from_iface $oiface $ip $maskbits 2>/dev/null
|
||||
delete_ip_from_iface $niface $ip $maskbits 2>/dev/null
|
||||
|
||||
add_ip_to_iface $niface $ip $maskbits || {
|
||||
iptables -D INPUT -i $oiface -d $ip -j DROP 2> /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user