Fixed the url of HAS 49/48249/1
authorAnkitkumar Patel <ankit@research.att.com>
Sat, 19 May 2018 16:52:37 +0000 (12:52 -0400)
committerAnkitkumar Patel <ankit@research.att.com>
Sat, 19 May 2018 16:54:24 +0000 (12:54 -0400)
Parameterised the HAS host API

Issue-ID: INT-144
Change-Id: I27404a4b771d655c2fd543dc03c4287a3b63025a
Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
boot/oof_vm_init.sh

index 7b0cc4c..492f3dc 100644 (file)
@@ -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"