blob: 6bfca16dd4fc85ee49db47a2910ca4068b3b2b5f [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
7trap "rm -f $aux $aux.1 $aux.2 2>/dev/null" EXIT
8
9onos ${1:-$OCI} "onos:flows" > $aux
10cat $aux
11
12let status=0
13grep "PENDING_" $aux && let status=status+1
14
15exit $status