1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

config/13.per_ip_routing: register the setup script with setup_iface_ip_readd_script()

This is needed because we need to resetup the routing table when
the delete_ip_from_iface() function readds the ip to the interface.

metze

(This used to be ctdb commit ea87185ec9977006ef72d5a68c875154e4c84099)
This commit is contained in:
Stefan Metzmacher 2010-02-12 09:52:09 +01:00
parent 3a0d830e4c
commit 08d69d2cec

View File

@ -357,6 +357,11 @@ case "$1" in
exit 1;
}
setup_iface_ip_readd_script $iface $ip $maskbits $setup_script || {
echo "$0: $1: setup_iface_ip_readd_script $iface $ip $maskbits $setup_script - failed"
exit 1;
}
# flush our route cache
echo 1 > /proc/sys/net/ipv4/route/flush
ctdb gratiousarp $ip $iface
@ -394,6 +399,12 @@ case "$1" in
echo "$0: $1: setup_per_ip_routing $ip $iface $table_id $release_script $setup_script - failed"
exit 1;
}
setup_iface_ip_readd_script $niface $ip $maskbits $setup_script || {
echo "$0: $1: setup_iface_ip_readd_script $niface $ip $maskbits $setup_script - failed"
exit 1;
}
# flush our route cache
echo 1 > /proc/sys/net/ipv4/route/flush