From 2cd2bb28b21e74140315412b3de303daac206e98 Mon Sep 17 00:00:00 2001 From: Samuli Silvius Date: Mon, 2 Dec 2019 11:05:52 +0200 Subject: Initial CDS blueprint for vFW CNF demo This commit brings vFW demo CDS CBA model from cds git repo as "unmodified" to start CNF demo based on normal vFW CDS model. The aim is also later to move CDS models out from CDS git repo and place all into demo repository. This commit is directly based on gerrit patch (not yet merged) https://gerrit.onap.org/r/c/ccsdk/cds/+/96920 and Change-Id: Id13b0ac2bb0889539faa31174cfdb8ab31588509 Issue-ID: INT-1260 Signed-off-by: Samuli Silvius Change-Id: I32ce84a25c8abc03fa9e21474b250b0575071e7b --- .../templates/cba/Templates/vfw-template.vtl | 278 +++++++++++++++++++++ 1 file changed, 278 insertions(+) create mode 100644 heat/vFW_CNF_CDS/templates/cba/Templates/vfw-template.vtl (limited to 'heat/vFW_CNF_CDS/templates/cba/Templates/vfw-template.vtl') diff --git a/heat/vFW_CNF_CDS/templates/cba/Templates/vfw-template.vtl b/heat/vFW_CNF_CDS/templates/cba/Templates/vfw-template.vtl new file mode 100644 index 00000000..58996748 --- /dev/null +++ b/heat/vFW_CNF_CDS/templates/cba/Templates/vfw-template.vtl @@ -0,0 +1,278 @@ +{ + "resource-accumulator-resolved-data": [ + { + "param-name": "service-instance-id", + "param-value": "${service-instance-id}" + }, + { + "param-name": "vnf_id", + "param-value": "${vnf-id}" + }, + { + "param-name": "vnf_name", + "param-value": "${vnf_name}" + }, + { + "param-name": "vnf_model_customization_uuid", + "param-value": "${vnf-model-customization-uuid}" + }, + { + "param-name": "vf_module_id", + "param-value": "${vf-module-id}" + }, + { + "param-name": "vf_module_type", + "param-value": "${vf-module-type}" + }, + { + "param-name": "vf_module_customization_uuid", + "param-value": "${vf-module-model-customization-uuid}" + }, + { + "param-name": "vfc_customization_uuid", + "param-value": "${vfccustomizationuuid}" + }, + { + "param-name": "aic-cloud-region", + "param-value": "${aic-cloud-region}" + }, + { + "param-name": "vnfc-model-customization-uuid", + "param-value": "${vfccustomizationuuid}" + }, + { + "param-name": "vnfc-model-invariant-uuid", + "param-value": "${vnfc-model-invariant-uuid}" + }, + { + "param-name": "vnfc-model-version", + "param-value": "${vnfc-model-version}" + }, + { + "param-name": "nfc-naming-code", + "param-value": "${nfc-naming-code}" + }, + { + "param-name": "vfw_image_name", + "param-value": "${vfw_image_name}" + }, + { + "param-name": "vfw_flavor_name", + "param-value": "${vfw_flavor_name}" + }, + { + "param-name": "public_net_id", + "param-value": "${public_net_id}" + }, + { + "param-name": "pub_key", + "param-value": "${pub_key}" + }, + { + "param-name": "int_private1_net_cidr", + "param-value": "${int_private1_net_cidr}" + }, + { + "param-name": "int_private2_net_cidr", + "param-value": "${int_private2_net_cidr}" + }, + { + "param-name": "onap_private_net_id", + "param-value": "${onap_private_net_id}" + }, + { + "param-name": "onap_private_subnet_id", + "param-value": "${onap_private_subnet_id}" + }, + { + "param-name": "onap_private_net_cidr", + "param-value": "${onap_private_net_cidr}" + }, + { + "param-name": "vfw_int_private1_ip_0", + "param-value": "${vfw_int_private1_ip_0}" + }, + { + "param-name": "vfw_int_private2_ip_0", + "param-value": "${vfw_int_private2_ip_0}" + }, + { + "param-name": "vpg_int_private1_ip_0", + "param-value": "${vpg_int_private1_ip_0}" + }, + { + "param-name": "vfw_int_private2_floating_ip", + "param-value": "${vfw_int_private2_floating_ip}" + }, + { + "param-name": "dcae_collector_ip", + "param-value": "$(dcae_collector_ip)" + }, + { + "param-name": "dcae_collector_port", + "param-value": "$(dcae_collector_port)" + }, + { + "param-name": "demo_artifacts_version", + "param-value": "${demo_artifacts_version}}" + }, + { + "param-name": "install_script_version", + "param-value": "${install_script_version}" + }, + { + "param-name": "key_name", + "param-value": "${vnf_name}_key_name" + }, + { + "param-name": "cloud_env", + "param-value": "$(cloud_env)" + }, + { + "param-name": "sec_group", + "param-value": "${sec_group}" + }, + { + "param-name": "nexus_artifact_repo", + "param-value": "${nexus_artifact_repo}" + } + + ], + "capability-data": [ + { + "capability-name": "generate-name", + "key-mapping": [ + { + "payload": [ + { + "param-name": "resource-name", + "param-value": "vfw_name_0" + }, + { + "param-name": "resource-value", + "param-value": "${vfw_name_0}" + }, + { + "param-name": "external-key", + "param-value": "${vf-module-id}_vfw_name_0" + }, + { + "param-name": "policy-instance-name", + "param-value": "${vf-naming-policy}" + }, + { + "param-name": "naming-type", + "param-value": "VNFC" + }, + { + "param-name": "VNF_NAME", + "param-value": "${vnf_name}" + }, + { + "param-name": "NFC_NAMING_CODE", + "param-value": "${nfc-naming-code}" + } + ], + "output-key-mapping": [ + { + "resource-name": "vfw_name_0", + "resource-value": "${vfw_name_0}" + } + ] + }, + { + "payload": [ + { + "param-name": "resource-name", + "param-value": "vf-module-name" + }, + { + "param-name": "resource-value", + "param-value": "${vf-module-name}" + }, + { + "param-name": "external-key", + "param-value": "${vf-module-id}_vf-module-name" + }, + { + "param-name": "policy-instance-name", + "param-value": "${vf-naming-policy}" + }, + { + "param-name": "naming-type", + "param-value": "VF-MODULE" + }, + { + "param-name": "VNF_NAME", + "param-value": "${vnf_name}" + }, + { + "param-name": "VF_MODULE_LABEL", + "param-value": "${vf-module-label}" + }, + { + "param-name": "VF_MODULE_TYPE", + "param-value": "${vf-module-type}" + } + ], + "output-key-mapping": [ + { + "resource-name": "vf-module-name", + "resource-value": "${vf-module-name}" + } + ] + } + ] + }, + { + "capability-name": "netbox-ip-assign", + "key-mapping": [ + { + "payload": [ + { + "param-name": "service-instance-id", + "param-value": "${service-instance-id}" + }, + { + "param-name": "prefix-id", + "param-value": "${management-prefix-id}" + }, + { + "param-name": "vf_module_id", + "param-value": "${vf-module-id}" + }, + { + "param-name": "external_key", + "param-value": "${vf-module-id}-vfw_onap_private_ip_0" + } + ], + "output-key-mapping": [ + { + "resource-name": "vfw_onap_private_ip_0", + "resource-value": "${vfw_onap_private_ip_0}" + } + ] + } + ] + }, + { + "capability-name": "aai-vf-module-put", + "key-mapping": [ + { + "payload": [ + { + "param-name": "vf-module", + "param-value": "vf-module" + } + ], + "output-key-mapping": [ + { + "resource-name": "aai-vf-module-put", + "resource-value": "${status}" + } + ] + } + ] + } + ] +} \ No newline at end of file -- cgit 1.2.3-korg