onos/tools/test/bin/onos-check-flows
Ray Milkey 407ef253e9 STC - check that flows are installed before checking pings
Change-Id: Ia2853932db8e27bd1447d225b160c8e583d7df61
2016-06-15 18:17:30 +00:00

20 lines
435 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Checks ONOS summary data
# -----------------------------------------------------------------------------
aux=/tmp/stc-$$.log
trap "rm -f $aux 2>/dev/null" EXIT
for i in {1..6}; do
onos ${1:-$OCI} "onos:flows" > $aux
if grep "PENDING_" $aux; then
sleep 5
else
cat $aux
exit 0
fi
done
cat $aux
exit 1