Code Review
/
integration
/
test.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Added the folder with scripts that show flow statistics summaries in a mininet with...
[integration/test.git]
/
test
/
tools
/
odl-mdsal-clustering-tests
/
clustering-performance-test
/
ovs-scripts
/
get-totals.sh
1
#!/bin/bash
2
3
ECHO=`which echo`
4
5
TOTAL=0
6
7
i=1
8
9
while true;
10
do
11
CUR=$((`./OVS-dump-flows.sh.13 s$i 2> /dev/null |wc -l` - 1))
12
13
if [ "$CUR" == "-1" ];
14
then
15
break
16
else
17
printf "Switch s%d: %d flows\n" $i $CUR
18
TOTAL=$(($TOTAL + $CUR))
19
i=$(($i + 1))
20
fi
21
done
22
23
printf "\nTotal: %d\n\n" $TOTAL