Thomas Vachuska
Committed by Gerrit Code Review

Adding check for pending flows to net-setup scenario.

Change-Id: Ib01ff566cd45dc7ba211c479d05a63c9444864bb
#!/bin/bash
# -----------------------------------------------------------------------------
# Checks ONOS summary data
# -----------------------------------------------------------------------------
aux=/tmp/stc-$$.log
trap "rm -f $aux $aux.1 $aux.2 2>/dev/null" EXIT
onos ${1:-$OCI} "onos:flows" > $aux
cat $aux
let status=0
grep "PENDING_" $aux && let status=status+1
exit $status
\ No newline at end of file
......@@ -34,6 +34,9 @@
<step name="Check-Summary" requires="Wait-For-Mininet"
exec="onos-check-summary ${OC1} [0-9]* 25 140 0"/>
<step name="Check-Flows" requires="Wait-For-Mininet"
exec="onos-check-flows ${OC1}"/>
<step name="Balance-Masters" requires="Check-Summary"
exec="onos ${OC1} balance-masters"/>
......