diff options
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/config/events.d/99.routing | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/config/events.d/99.routing b/ctdb/config/events.d/99.routing index ec0a7bf29c3..06741939e53 100755 --- a/ctdb/config/events.d/99.routing +++ b/ctdb/config/events.d/99.routing @@ -24,10 +24,10 @@ shift PATH=/usr/bin:/bin:/usr/sbin:/sbin:$PATH case $cmd in - takeip) + takeip|releaseip) iface=$1 cat $CTDB_BASE/static-routes | egrep "^$iface " | while read IFACE DEST GW; do - route add -net $DEST gw $GW + ip route add $DEST via $GW dev $IFACE >/dev/null 2>/dev/null done ;; |