net/mwan3: mwan3track skip track ips if realibility is accomplished

If enough tracking ip are pinged skip the reset. They are not needed
anymore to mark the interface as up.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2017-08-25 11:42:32 +02:00
parent cabb835ed4
commit ec5542ab2b

View file

@ -92,6 +92,7 @@ main() {
sleep_time=$interval
for track_ip in $track_ips; do
if [ $host_up_count -lt $reliability ]; then
case "$track_method" in
ping)
ping -I $DEVICE -c $count -W $timeout -s $size -q $track_ip &> /dev/null ;;
@ -107,6 +108,9 @@ main() {
let lost++
echo "down" > /var/run/mwan3track/$1/TRACK_${track_ip}
fi
else
echo "skipped" > /var/run/mwan3track/$1/TRACK_${track_ip}
fi
done
if [ $host_up_count -lt $reliability ]; then