diff options
author | Feng Pan <fpan@redhat.com> | 2016-05-09 20:22:52 -0400 |
---|---|---|
committer | Feng Pan <fpan@redhat.com> | 2016-05-09 20:22:52 -0400 |
commit | 099ac31f8fc39d318d6ba8b03bd85693899673bf (patch) | |
tree | 50a80776cfdd58f3d5f541588f26c325f18829fd | |
parent | afbd7231cd0539f9e32afc673f080c99e256299b (diff) |
Change ping wait flag
This is an optimization of the ping command. It changes ping test
from waiting for a single sent packet for 300 seconds to waiting
to receive a packet from any number of sent packets. The current
implemenation waits for full 300 seconds before retrying if we
do not get a reply for the first packet sent. By using -w flag,
we keep sending icmp packets until a reply is sent, making the
ping test more responsive to connectivity change.
Change-Id: I01ab374ae44718c8d56e2d7f35812dfb5bb2ce5a
Signed-off-by: Feng Pan <fpan@redhat.com>
-rw-r--r-- | validation-scripts/all-nodes.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/validation-scripts/all-nodes.sh b/validation-scripts/all-nodes.sh index 1c834e76..0b8b3523 100644 --- a/validation-scripts/all-nodes.sh +++ b/validation-scripts/all-nodes.sh @@ -10,7 +10,7 @@ function ping_retry() { PING_CMD=ping6 fi until [ $COUNT -ge $TIMES ]; do - if $PING_CMD -W 300 -c 1 $IP_ADDR &> /dev/null; then + if $PING_CMD -w 300 -c 1 $IP_ADDR &> /dev/null; then echo "Ping to $IP_ADDR succeeded." return 0 fi |