aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-05-03 07:29:53 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-05-03 08:10:50 -0700
commit36e42dd5d85a34302e8245be30cecfbc5fbf79ca (patch)
tree103a5a8e22cc89c0ea76fd2374e4caca359833ed /deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
parent11c9874f6aa84e8f3ab03f9bec84c8b0c5033003 (diff)
Add output values for k8s IP addresses
Change-Id: I546da00d39c68dc5c1b5dc233ed102c29174bdc3 Issue-ID: INT-381 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh')
-rwxr-xr-xdeployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh b/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
index 922c7ccb6..19e7b60b1 100755
--- a/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
+++ b/deployment/heat/onap-oom/scripts/gen-onap-oom-yaml.sh
@@ -56,3 +56,13 @@ for VM_NUM in $(seq $NUM_K8S_VMS); do
done
cat $PARTS_DIR/onap-oom-3.yaml
+
+for VM_NUM in $(seq $NUM_K8S_VMS); do
+ K8S_VM_NAME=k8s_$VM_NUM
+ cat <<EOF
+ ${K8S_VM_NAME}_vm_ip:
+ description: The IP address of the ${K8S_VM_NAME} instance
+ value: { get_attr: [${K8S_VM_NAME}_floating_ip, floating_ip_address] }
+
+EOF
+done