summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-06-03 09:03:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-06-03 09:03:38 +0000
commit420e2a340d66c481353683210f02ba06ba056433 (patch)
tree47e23411826319c776135fd0d7b77e810083ee00 /ci
parenta6e2199315356be5db8125ad26c2606186ba839c (diff)
parent2a32137587ef50cdeb375b8f851132ed4a201d03 (diff)
Merge "Support scenario parameter"
Diffstat (limited to 'ci')
-rwxr-xr-xci/deploy/deploy.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh
index acf99dd3..e99f62e0 100755
--- a/ci/deploy/deploy.sh
+++ b/ci/deploy/deploy.sh
@@ -31,6 +31,7 @@ OPTIONS:
-r Remote workspace in target server, optional
-w Workdir for temporary usage, optional
-h Print this message and exit
+ -s Deployment scenario
Description:
Deploys the Daisy4NFV on the indicated lab resource
@@ -69,7 +70,7 @@ VM_MULTINODE=("computer01" "computer02" "computer03" "computer04" "controller01"
############################################################################
# BEGIN of main
#
-while getopts "b:B:Dd:n:l:p:r:w:h" OPTION
+while getopts "b:B:Dd:n:l:p:r:w:s:h" OPTION
do
case $OPTION in
b)
@@ -96,6 +97,9 @@ do
w)
WORKDIR=${OPTARG}
;;
+ s)
+ DEPLOY_SCENARIO=${OPTARG}
+ ;;
h)
usage
exit 0
@@ -119,6 +123,8 @@ if [ -z $BASE_PATH ] || [ ! -d $BASE_PATH ] || [ -z LAB_NAME ] || [ -z $POD_NAME
exit 0
fi
+DEPLOY_SCENARIO=${DEPLOY_SCENARIO:-"os-nosdn-nofeature-noha"}
+
BRIDGE=${BRIDGE:-pxebr}
# read parameters from lab configuration file