From 3b5d37e7412b3a9a1c0d0a9bfc79d7dcab5d3bef Mon Sep 17 00:00:00 2001 From: Ankitkumar Patel Date: Sat, 19 May 2018 12:52:37 -0400 Subject: [PATCH] Fixed the url of HAS Parameterised the HAS host API Issue-ID: INT-144 Change-Id: I27404a4b771d655c2fd543dc03c4287a3b63025a Signed-off-by: Ankitkumar Patel --- boot/oof_vm_init.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boot/oof_vm_init.sh b/boot/oof_vm_init.sh index 7b0cc4c9..492f3dcb 100644 --- a/boot/oof_vm_init.sh +++ b/boot/oof_vm_init.sh @@ -43,6 +43,7 @@ docker pull $NEXUS_DOCKER_REPO/onap/optf-has:$DOCKER_IMAGE_VERSION OSDF_IMAGE_NAME="$NEXUS_DOCKER_REPO/onap/optf-osdf" OSDF_CONFIG=/opt/optf-osdf/config/osdf_config.yaml +HAS_HOST=$(docker inspect --format '{{ .NetworkSettings.Networks.bridge.IPAddress}}' api) mkdir -p /opt/optf-osdf/config @@ -53,7 +54,7 @@ soUsername: "" # SO username for call back. soPassword: "" # SO password for call back. # Credentials for Conductor -conductorUrl: https://localhost:8091/v1/plans/ +conductorUrl: https://$HAS_HOST:8091/v1/plans/ conductorUsername: admin1 conductorPassword: plan.15 conductorPingWaitTime: 60 # seconds to wait before calling the conductor retry URL @@ -228,4 +229,4 @@ curl -X POST \ } ' -echo "Healthcheck plan inserted" \ No newline at end of file +echo "Healthcheck plan inserted" -- 2.16.6