summaryrefslogtreecommitdiffstats
path: root/deploy/prepare.sh
diff options
context:
space:
mode:
authorZhijiang Hu <hu.zhijiang@zte.com.cn>2017-06-02 22:45:39 +0800
committerZhijiang Hu <hu.zhijiang@zte.com.cn>2017-06-02 22:45:39 +0800
commit539a587a9096e522a10f51740c8c9422c03f56d9 (patch)
treefe6bd29bd7b06cf81d973e4a71334cfdd89c2e02 /deploy/prepare.sh
parenta6e2199315356be5db8125ad26c2606186ba839c (diff)
Set compute to qemu only in virtual deployment
Change-Id: I0660c016e18491395c7253e5576f8fa1c8aa051e Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
Diffstat (limited to 'deploy/prepare.sh')
-rw-r--r--deploy/prepare.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/deploy/prepare.sh b/deploy/prepare.sh
index d68a6a44..803d2462 100644
--- a/deploy/prepare.sh
+++ b/deploy/prepare.sh
@@ -21,7 +21,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
usage: `basename $0` -n network_config_file
OPTIONS:
- -nw network configuration path, necessary
+ -n network configuration path, necessary
+ -b 0 for virtual, 1 for baremetal
-h Print this message and exit
Description:
@@ -35,12 +36,15 @@ EOF
NETWORK_CONF=''
-while getopts "n:h" OPTION
+while getopts "n:b:h" OPTION
do
case $OPTION in
n)
NETWORK_CONF=${OPTARG}
;;
+ b)
+ IS_BARE=${OPTARG}
+ ;;
h)
usage
exit 0
@@ -53,4 +57,4 @@ do
esac
done
-python $PYTHONPATH/deploy/prepare/execute.py -nw $NETWORK_CONF
+python $PYTHONPATH/deploy/prepare/execute.py -nw $NETWORK_CONF -b $IS_BARE