summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhijiang Hu <hu.zhijiang@zte.com.cn>2017-06-01 06:13:03 -0400
committerZhijiang Hu <hu.zhijiang@zte.com.cn>2017-06-01 06:13:03 -0400
commit2a32137587ef50cdeb375b8f851132ed4a201d03 (patch)
tree86d5d5a52c1214433aa9d938678e036ba8b2c174
parentd52f2ec25b346cceb9d0a9b400240d4baa0d7bdb (diff)
Support scenario parameter
Default is os-nosdn-nofeature-noha Change-Id: I12e70552c426884269c2c7f1bfa05e1db5658bea Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
-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 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