Revision b0f98851 share/hooks/raft/vip.sh

View differences:

share/hooks/raft/vip.sh
17 17
case $ACTION in
18 18
leader)
19 19
    sudo ip address add $IP dev $INTERFACE
20
    arping -c 5 -A -I $INTERFACE ${IP%%/*}
20
    for i in $(seq 5); do
21
        sudo arping -c 1 -U -I $INTERFACE ${IP%%/*}
22
        sleep 1
23
        sudo arping -c 1 -A -I $INTERFACE ${IP%%/*}
24
        sleep 1
25
    done
21 26
    ;;
22 27

  
23 28
follower)

Also available in: Unified diff