blob: 1c765118e44104680662575d59325bbef80d4d50 [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
Ray Milkey627f0e52016-02-24 13:38:29 -080012for i in {1..5}; do
13 let status=0
14 grep "PENDING_" $aux && let status=status+1
15 if [ "$status" == "0" ]
16 then
17 exit 0
18 fi
19 sleep 5
20done
21exit 1