summaryrefslogtreecommitdiffstats
path: root/deploy/post.sh
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-16 15:16:12 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-21 18:25:21 +0800
commit6c077560e1cd2293fb9c6fac9065f11e555b1bbb (patch)
treed4f5a2ec3cd429c7355e922184a6276d7009d54a /deploy/post.sh
parentfd49859523e1914bece099b326ea723068e33262 (diff)
bugfix hardcoded network configuration
Change-Id: I1fb6036a2805ccb9bdbe23622514ccd9d997c1a5 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'deploy/post.sh')
-rwxr-xr-xdeploy/post.sh48
1 files changed, 48 insertions, 0 deletions
diff --git a/deploy/post.sh b/deploy/post.sh
new file mode 100755
index 00000000..df3c280c
--- /dev/null
+++ b/deploy/post.sh
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+SCRIPT_PATH=$(readlink -f $(dirname $0))
+
+export PYTHONPATH=$SCRIPT_PATH/..
+
+usage ()
+{
+cat << EOF
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+`basename $0`: post process after OpenStack is deployed
+
+usage: `basename $0` -n network_config_file
+
+OPTIONS:
+ -n network configuration path, necessary
+ -h Print this message and exit
+
+Description:
+ post process after OpenStack is deployed
+
+Examples:
+sudo `basename $0` -n /home/daisy/labs/zte/virtual1/daisy/config/network.yml
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+EOF
+}
+
+NETWORK=''
+
+while getopts "n:h" OPTION
+do
+ case $OPTION in
+ n)
+ NETWORK=${OPTARG}
+ ;;
+ h)
+ usage
+ exit 0
+ ;;
+ *)
+ echo "${OPTION} is not a valid argument"
+ usage
+ exit 0
+ ;;
+ esac
+done
+
+python $PYTHONPATH/deploy/post/execute.py -nw $NETWORK