From 2a32137587ef50cdeb375b8f851132ed4a201d03 Mon Sep 17 00:00:00 2001 From: Zhijiang Hu Date: Thu, 1 Jun 2017 06:13:03 -0400 Subject: Support scenario parameter Default is os-nosdn-nofeature-noha Change-Id: I12e70552c426884269c2c7f1bfa05e1db5658bea Signed-off-by: Zhijiang Hu --- ci/deploy/deploy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh index e79433a7..790bb172 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 -- cgit 1.2.3-korg