summaryrefslogtreecommitdiffstats
path: root/deploy/prepare.sh
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-15 14:31:36 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-15 15:55:09 +0800
commite62117170f9dd562cdb85bf6bd95644655e046c2 (patch)
tree05a4e983534f1687f6d7b96b805eae7130bd08ed /deploy/prepare.sh
parentc557362eb2a14055587feac228a4463bd96f6f4a (diff)
add default_floating_pool configuration for nova-api
Change-Id: I9db5509667e9c10a9c07b55531c6d78fb95cc223 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'deploy/prepare.sh')
-rw-r--r--deploy/prepare.sh48
1 files changed, 48 insertions, 0 deletions
diff --git a/deploy/prepare.sh b/deploy/prepare.sh
new file mode 100644
index 00000000..58d5a08f
--- /dev/null
+++ b/deploy/prepare.sh
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+SCRIPT_PATH=$(readlink -f $(dirname $0))
+
+export PYTHONPATH=$SCRIPT_PATH/..
+
+usage ()
+{
+cat << EOF
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+`basename $0`: make preparation for daisy deployment
+
+usage: `basename $0` -n network_config_file
+
+OPTIONS:
+ -nw network configuration path, necessary
+ -h Print this message and exit
+
+Description:
+ prepare configuration
+
+Examples:
+sudo `basename $0` -n /home/daisy/config/vm_environment/zte-virtual1/network.yml
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+EOF
+}
+
+NETWORK_CONF=''
+
+while getopts "n:h" OPTION
+do
+ case $OPTION in
+ n)
+ NETWORK_CONF=${OPTARG}
+ ;;
+ h)
+ usage
+ exit 0
+ ;;
+ *)
+ echo "${OPTION} is not a valid argument"
+ usage
+ exit 0
+ ;;
+ esac
+done
+
+python $PYTHONPATH/deploy/prepare/execute.py -nw $NETWORK_CONF