diff options
author | 2016-08-19 17:13:29 +0200 | |
---|---|---|
committer | 2016-08-19 17:14:48 +0200 | |
commit | 14d891da03cf0eeafd0d8b53174144dc6462877a (patch) | |
tree | c469d09f348d6395a71b72f786b4f02aae5d7657 /ci/deploy.sh | |
parent | 24ef44ef9b34bfc5d395226f547c0a3db685f43c (diff) |
[beta] add a public api proxy for orange pod1
Change-Id: I173b545a2b3bdc7ff948f37820fc2cfb62d5ca6d
Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-x | ci/deploy.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh index 2e575898..b69b5baa 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -23,13 +23,13 @@ read_config() { } usage() { echo "Usage: $0 [-s <nosdn|odl|opencontrail>] - [-t <nonha|ha|tip>] + [-t <nonha|ha|tip>] [-o <juno|liberty>] [-l <default|intelpod5>] [-f <ipv6,dpdk,lxd,dvr>] [-d <trusty|xenial>] [-a <amd64>] - [-r <a|b>]" 1>&2 exit 1; } + [-r <a|b>]" 1>&2 exit 1; } while getopts ":s:t:o:l:h:r:f:d:a:" opt; do case "${opt}" in @@ -161,6 +161,18 @@ echo "...... deployment started ......" deploy check_status + +echo "...... deploy public api proxy ......" + +if [ "$opnfvlab" == "orangepod1" ] && [ "$opnfvsdn" == "nosdn" ]; then # only for first test phase + PUB_API_NET=$(grep floating-ip-range ./labconfig.yaml |cut -d/ -f2) + PUB_API_IP=$(grep public-api-ip ./labconfig.yaml |cut -d: -f2) + juju run --unit nodes/0 "sudo ip a a ${PUB_API_IP}/${PUB_API_NET} dev br-ex" + juju run --unit nodes/0 "sudo ip l set dev br-ex up" + python genPublicAPIProxyBundle.py -l labconfig.yaml > haproxy.bundle.yaml + juju-deployer -vW -d -t 7200 -r 5 -c haproxy.bundle.yaml haproxy +fi + echo "...... deployment finished ......." ./openstack.sh "$opnfvsdn" || true |