From ad9380aa9c142da4a6cf92238294f908829205ad Mon Sep 17 00:00:00 2001 From: Jan Medved Date: Tue, 2 Dec 2014 18:31:45 -0800 Subject: [PATCH] Added proper OVS-dump-flows.sh.13 Removed get-totals.sh Change-Id: Ib27b7b227c9fd293ff4a77e012c46263157fe38d Signed-off-by: Jan Medved --- .../ovs-scripts/OVS-dump-flows.sh.13 | 17 +++++++++++++- .../ovs-scripts/get-totals.sh | 23 ------------------- 2 files changed, 16 insertions(+), 24 deletions(-) mode change 120000 => 100755 test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/OVS-dump-flows.sh.13 delete mode 100755 test/tools/odl-mdsal-clustering-tests/clustering-performance-test/ovs-scripts/get-totals.sh 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 a5d7cff5..00000000 --- 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 00000000..9ee20a50 --- /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 73594b60..00000000 --- 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 -- 2.36.6