X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Fmulti-blaster.sh;h=854643fa21c6aa8a64fcaa67b374b7a946a2208c;hb=6dda5d7b7ec7f125953764ecb030abaf921eff73;hp=154c1501e50b1bfa0a559a7cbc64ee04da86dee7;hpb=4da2f0ab7c6427c3c60f9c53dc8dc78d2c55c5a4;p=integration%2Ftest.git diff --git a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/multi-blaster.sh b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/multi-blaster.sh index 154c1501e5..854643fa21 100755 --- a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/multi-blaster.sh +++ b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/multi-blaster.sh @@ -20,19 +20,21 @@ auth=false threads=1 flows=1000 cycles=1 -odl_host=127.0.0.1 -odl_port=8181 +host=127.0.0.1 +port=8181 +fpr=1 function usage { echo "usage: $program_name [-h?an] [-i instances] [-c cycles] [-f flows] [-t threads] [-o odl_host] [-p odl_port]" echo " -h|? print this message" echo " -a use default authentication ('admin/admin')" + echo " -b batchsize # offlows per RESTCONF add-flow request" echo " -n use the 'no-delete' flag in '$CMD'" echo " -i instances number of '$CMD' instances to spawn" echo " -c cycles number of cycles" echo " -f flows number of flows" - echo " -o odl_host IP Address of the ODL controller" - echo " -p odl_port RESTCONF port in the ODL controller" + echo " -h host IP Address of the ODL controller" + echo " -p port RESTCONF port in the ODL controller" echo " -t threads number of threads" echo "Optional flags/arguments [acfnopt] are passed to '$CMD'." } @@ -40,7 +42,7 @@ function usage { # Initialize our own variables: -while getopts "h?ac:f:i:no:p:t:" opt; do +while getopts "h?ab:c:f:i:no:p:t:" opt; do case "$opt" in h|\?) usage @@ -48,6 +50,8 @@ while getopts "h?ac:f:i:no:p:t:" opt; do ;; a) auth=true ;; + b) fpr=$OPTARG + ;; c) cycles=$OPTARG ;; f) flows=$OPTARG @@ -56,9 +60,9 @@ while getopts "h?ac:f:i:no:p:t:" opt; do ;; n) no_delete=true ;; - o) odl_host=$OPTARG + h) host=$OPTARG ;; - p) odl_port=$OPTARG + p) port=$OPTARG ;; t) threads=$OPTARG ;; @@ -76,7 +80,7 @@ while [ $i -lt $instances ]; do let "startflow=$flows_per_instance * $i" CMD_STRING=$(printf '%s --cycles %s --flows %s --threads %s ' $CMD $cycles $flows $threads) - CMD_STRING+=$(printf ' --host %s --port %s --startflow %s' $odl_host $odl_port $startflow) + CMD_STRING+=$(printf ' --host %s --port %s --startflow %s --fpr %s' $host $port $startflow $fpr) if [ "$auth" = true ] ; then CMD_STRING+=' --auth' fi