Thomas Vachuska
Committed by Gerrit Code Review

Adding check for pending flows to net-setup scenario.

Change-Id: Ib01ff566cd45dc7ba211c479d05a63c9444864bb
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
...\ No newline at end of file ...\ No newline at end of file
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
34 <step name="Check-Summary" requires="Wait-For-Mininet" 34 <step name="Check-Summary" requires="Wait-For-Mininet"
35 exec="onos-check-summary ${OC1} [0-9]* 25 140 0"/> 35 exec="onos-check-summary ${OC1} [0-9]* 25 140 0"/>
36 36
37 + <step name="Check-Flows" requires="Wait-For-Mininet"
38 + exec="onos-check-flows ${OC1}"/>
39 +
37 <step name="Balance-Masters" requires="Check-Summary" 40 <step name="Balance-Masters" requires="Check-Summary"
38 exec="onos ${OC1} balance-masters"/> 41 exec="onos ${OC1} balance-masters"/>
39 42
......