Pass local IP to AAF VM 69/47469/1
authorMarco Platania <platania@research.att.com>
Mon, 14 May 2018 20:32:38 +0000 (16:32 -0400)
committerMarco Platania <platania@research.att.com>
Mon, 14 May 2018 20:32:38 +0000 (16:32 -0400)
Change-Id: Ib4228124415cd1ee70975d737f6c8462107473f4
Issue-ID: INT-444
Signed-off-by: Marco Platania <platania@research.att.com>
boot/aaf_vm_init.sh
heat/ONAP/onap_openstack.yaml

index 4eab214..06d8de1 100644 (file)
@@ -6,7 +6,7 @@ NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
 DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
 HOSTNAME=`hostname`
 FQDN=aaf.api.simpledemo.onap.org
-HOST_IP=$(cat /opt/config/dns_ip_addr.txt)
+HOST_IP=$(cat /opt/config/local_ip_addr.txt)
 
 docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
 
index ab2f4e9..267f67e 100644 (file)
@@ -2156,6 +2156,7 @@ resources:
             __nexus_password__: { get_param: nexus_password }
             __artifacts_version__: { get_param: artifacts_version }
             __dns_ip_addr__: { get_param: dns_ip_addr }
+            __local_ip_addr__: { get_param: aaf_ip_addr }
             __docker_version__: { get_param: aaf_docker }
             __cloud_env__: { get_param: cloud_env }
             __external_dns__: { get_param: external_dns }
@@ -2173,6 +2174,7 @@ resources:
             echo "__nexus_password__" > /opt/config/nexus_password.txt
             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
             echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
+            echo "__local_ip_addr__" > /opt/config/local_ip_addr.txt
             echo "__docker_version__" > /opt/config/docker_version.txt
             echo "__cloud_env__" > /opt/config/cloud_env.txt
             echo "__external_dns__" > /opt/config/external_dns.txt