From: Zhijiang Hu Date: Thu, 1 Jun 2017 10:13:03 +0000 (-0400) Subject: Support scenario parameter X-Git-Tag: opnfv-5.0.RC1~79^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F35637%2F1;p=daisy.git Support scenario parameter Default is os-nosdn-nofeature-noha Change-Id: I12e70552c426884269c2c7f1bfa05e1db5658bea Signed-off-by: Zhijiang Hu --- 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