diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-07-24 00:28:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-24 00:28:10 +0000 |
commit | aafc1bde17965df57ad0f88af9b7419c80a146ce (patch) | |
tree | 01eeda87f8aec061e76fdc383883ccbd74085cec | |
parent | bcbedee7c3a086d20d802265db3b2b26c359794d (diff) | |
parent | 47672cb17cffbac11233056a9576a1b956984c8f (diff) |
Merge "Provide ovn-central-address for local deployments"
-rwxr-xr-x | deployments/_functions.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deployments/_functions.sh b/deployments/_functions.sh index 7942aed0..45f2d8cf 100755 --- a/deployments/_functions.sh +++ b/deployments/_functions.sh @@ -21,11 +21,16 @@ function start_mongo { } function generate_k8sconfig { + local ovn_address + if [ -n "${OVN_CENTRAL_ADDRESS:-}" ]; then + ovn_address="\"ovn-central-address\": \"${OVN_CENTRAL_ADDRESS}\"," + fi cat << EOF > k8sconfig.json { - "database-address": "${DATABASE_IP}", + "database-address": "${DATABASE_IP}", "database-type": "mongo", "plugin-dir": "plugins", + ${ovn_address} "service-port": "9015" } EOF |