diff options
author | 2017-06-08 06:32:12 +0000 | |
---|---|---|
committer | 2017-06-08 06:32:12 +0000 | |
commit | e0d6c8a4e5c84bedbcbe91ca51c8bbabf1d8fdf8 (patch) | |
tree | 0fdc10b2e28df190a470feb4627e3ca1303d4890 /deploy/prepare.sh | |
parent | 420e2a340d66c481353683210f02ba06ba056433 (diff) | |
parent | 539a587a9096e522a10f51740c8c9422c03f56d9 (diff) |
Merge "Set compute to qemu only in virtual deployment"
Diffstat (limited to 'deploy/prepare.sh')
-rw-r--r-- | deploy/prepare.sh | 10 |
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 |