blob: 6bfca16dd4fc85ee49db47a2910ca4068b3b2b5f [file] [log] [blame]
#!/bin/bash
# -----------------------------------------------------------------------------
# Checks ONOS summary data
# -----------------------------------------------------------------------------
aux=/tmp/stc-$$.log
trap "rm -f $aux $aux.1 $aux.2 2>/dev/null" EXIT
onos ${1:-$OCI} "onos:flows" > $aux
cat $aux
let status=0
grep "PENDING_" $aux && let status=status+1
exit $status