Thomas Vachuska | eb13564 | 2015-07-23 17:35:37 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
2 | # ----------------------------------------------------------------------------- | ||||
3 | # Checks ONOS summary data | ||||
4 | # ----------------------------------------------------------------------------- | ||||
5 | |||||
6 | aux=/tmp/stc-$$.log | ||||
7 | trap "rm -f $aux $aux.1 $aux.2 2>/dev/null" EXIT | ||||
8 | |||||
9 | onos ${1:-$OCI} "onos:flows" > $aux | ||||
10 | cat $aux | ||||
11 | |||||
12 | let status=0 | ||||
13 | grep "PENDING_" $aux && let status=status+1 | ||||
14 | |||||
15 | exit $status |