From: Jan Medved Date: Wed, 3 Dec 2014 02:31:45 +0000 (-0800) Subject: Added proper OVS-dump-flows.sh.13 X-Git-Tag: release/helium-sr1.1~2^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=44453a3fc5149e2c2c4ce6ced0c75939c7ef00ac;p=integration%2Ftest.git Added proper OVS-dump-flows.sh.13 Removed get-totals.sh Change-Id: Ib27b7b227c9fd293ff4a77e012c46263157fe38d Signed-off-by: Jan Medved --- diff --git a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/OVS-dump-flows.sh.13 b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/OVS-dump-flows.sh.13 deleted file mode 120000 index a5d7cff553..0000000000 --- a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/OVS-dump-flows.sh.13 +++ /dev/null @@ -1 +0,0 @@ -_OVS-dump-flows.sh \ No newline at end of file diff --git a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/OVS-dump-flows.sh.13 b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/OVS-dump-flows.sh.13 new file mode 100755 index 0000000000..9ee20a5046 --- /dev/null +++ b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/OVS-dump-flows.sh.13 @@ -0,0 +1,16 @@ +#!/bin/bash + +# author__ = "Michal Rehak" +# copyright__ = "Copyright(c) 2014, Cisco Systems, Inc." +# license__ = "New-style BSD" +# email__ = "jmedved@cisco.com" + +if [ -z "$1" ]; then + echo "usage:: $0 " + exit 1 +fi + +key="${0##*.}" +#echo "${key}" + +sudo ovs-ofctl -O OpenFlow${key} dump-flows $1 diff --git a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/get-totals.sh b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/get-totals.sh deleted file mode 100755 index 73594b6005..0000000000 --- a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/get-totals.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -ECHO=`which echo` - -TOTAL=0 - -i=1 - -while true; -do - CUR=$((`./OVS-dump-flows.sh.13 s$i 2> /dev/null |wc -l` - 1)) - - if [ "$CUR" == "-1" ]; - then - break - else - printf "Switch s%d: %d flows\n" $i $CUR - TOTAL=$(($TOTAL + $CUR)) - i=$(($i + 1)) - fi -done - -printf "\nTotal: %d\n\n" $TOTAL \ No newline at end of file