blob: 6debebcdc2ddd9b3ad764cdf20b78cd6a6d40f89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
# -----------------------------------------------------------------------------
# Checks ONOS summary data
# -----------------------------------------------------------------------------
aux=/tmp/stc-$$.log
trap "rm -f $aux 2>/dev/null" EXIT
onos ${1:-$OCI} "onos:flows" > $aux
cat $aux
let status=0
grep "PENDING_" $aux && let status=status+1
exit $status
|