1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

When using multiple VLANs, some funky stuff can sometimes happen when

adding/removing IP addresses causing routes might be dropped by the system.

The easiest workaround for this is to unconditionally try to reapply
all static routes for all interfaces once ipreallocation has finished,
not just adding them back on the affected interface.

This worksaround a funky issue in
CQ S1023538

(This used to be ctdb commit 84600d1f53632d5fe76c308727f31f61b5ec1010)
This commit is contained in:
Ronnie Sahlberg 2011-05-12 10:24:46 +10:00
parent 5b93e0a870
commit d020b2c950

View File

@ -19,13 +19,12 @@ loadconfig
exit 0
}
case "$1" in
takeip|releaseip)
iface=$2
cat $CTDB_BASE/static-routes | egrep "^$iface " | while read IFACE DEST GW; do
ip route add $DEST via $GW dev $IFACE >/dev/null 2>/dev/null
done
;;
case "$1" in
recovered|ipreallocated)
cat $CTDB_BASE/static-routes | while read IFACE DEST GW; do
ip route add $DEST via $GW dev $IFACE >/dev/null 2>/dev/null
done
;;
updateip)
oiface=$2