blob: e3406ec451550e1ffe9e5efca0789af99a101a98 [file] [log] [blame]
#!/bin/bash
# -----------------------------------------------------------------------------
# Checks ONOS summary data
# -----------------------------------------------------------------------------
aux=/tmp/stc/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