blob: 6debebcdc2ddd9b3ad764cdf20b78cd6a6d40f89 [file] [log] [blame]
Thomas Vachuskaeb135642015-07-23 17:35:37 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Checks ONOS summary data
4# -----------------------------------------------------------------------------
5
6aux=/tmp/stc-$$.log
Thomas Vachuska4b84baf2015-07-27 10:49:06 -07007trap "rm -f $aux 2>/dev/null" EXIT
Thomas Vachuskaeb135642015-07-23 17:35:37 -07008
9onos ${1:-$OCI} "onos:flows" > $aux
10cat $aux
11
12let status=0
13grep "PENDING_" $aux && let status=status+1
14
15exit $status