aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/cba/Templates/vnf-template.vtl
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2020-01-24 11:06:14 +0100
committerKonrad Bańka <k.banka@samsung.com>2020-02-26 16:16:41 +0100
commitbe3024dfe9b6c06419c6f4a5f724a01b7e0ab103 (patch)
treedf44d4b265d40fd225844485c1de860c13d9966a /heat/vFW_CNF_CDS/templates/cba/Templates/vnf-template.vtl
parent42ecc70c1f5a05c4de5dda414a7964398552b47d (diff)
Correct CBA package for vFW_CNF_CDS usecase
This fixes change helm and cba content to enable instantiation with some workarounds. Data dictionary in this review is not ready yet, as well as there are many workarounds within. Signed-off-by: Konrad Bańka <k.banka@samsung.com> Issue-ID: INT-1260 Change-Id: I4833fa11772b7bd2b65d04f0d81ffad22570d309
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/cba/Templates/vnf-template.vtl')
-rw-r--r--heat/vFW_CNF_CDS/templates/cba/Templates/vnf-template.vtl663
1 files changed, 344 insertions, 319 deletions
diff --git a/heat/vFW_CNF_CDS/templates/cba/Templates/vnf-template.vtl b/heat/vFW_CNF_CDS/templates/cba/Templates/vnf-template.vtl
index 617f0b97..e050c977 100644
--- a/heat/vFW_CNF_CDS/templates/cba/Templates/vnf-template.vtl
+++ b/heat/vFW_CNF_CDS/templates/cba/Templates/vnf-template.vtl
@@ -1,335 +1,360 @@
{
- "resource-accumulator-resolved-data": [
- {
- "param-name": "service-instance-id",
- "param-value": "${service-instance-id}"
- },
-
- {
- "param-name": "vnf-model-customization-uuid",
- "param-value": "${vnf-model-customization-uuid}"
- },
- {
- "param-name": "aic-cloud-region",
- "param-value": "${aic-cloud-region}"
- },
- {
- "param-name": "vf-naming-policy",
- "param-value": "${vf-naming-policy}"
- },
- {
- "param-name": "image_name",
- "param-value": "${image_name}"
- },
- {
- "param-name": "flavor_name",
- "param-value": "${flavor_name}"
- },
- {
- "param-name": "public_net_id",
- "param-value": "${public_net_id}"
- },
- {
- "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": "demo_artifacts_version",
- "param-value": "${demo_artifacts_version}"
- },
- {
- "param-name": "install_script_version",
- "param-value": "${install_script_version}"
- },
-
- {
- "param-name": "pub_key",
- "param-value": "${pub_key}"
- },
- {
- "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}"
- },
- {
- "param-name": "k8s-rb-profile-name",
- "param-value": "${k8s-rb-profile-name}"
- },
- {
- "param-name": "k8s-rb-profile-namespace",
- "param-value": "${k8s-rb-profile-namespace}"
- },
- {
- "param-name": "int_private1_gw_ip",
- "param-value": "${int_private1_gw_ip}"
- },
- {
- "param-name": "int_private1_net_id",
- "param-value": "${vnf_name}-unprotected-network"
- },
- {
- "param-name": "int_private1_subnet_id",
- "param-value": "${int_private1_net_id}-subnet-1"
- },
- {
- "param-name": "int_private2_gw_ip",
- "param-value": "${int_private2_gw_ip}"
- },
- {
- "param-name": "int_private2_net_id",
- "param-value": "${vnf_name}-protected-network"
- },
- {
- "param-name": "int_private2_subnet_id",
- "param-value": "${int_private2_net_id}-subnet-1"
- },
- {
- "param-name": "onap_private_gw_ip",
- "param-value": "${onap_private_gw_ip}"
- }
- ],
- "capability-data": [
- {
- "capability-name": "generate-name",
- "key-mapping": [
+ "capability-data": [
{
- "payload": [
- {
- "param-name": "resource-name",
- "param-value": "vnf_name"
- },
- {
- "param-name": "resource-value",
- "param-value": "${vnf_name}"
- },
- {
- "param-name": "external-key",
- "param-value": "${vnf-id}_vnf_name"
- },
- {
- "param-name": "policy-instance-name",
- "param-value": "${vf-naming-policy}"
- },
- {
- "param-name": "naming-type",
- "param-value": "VNF"
- },
- {
- "param-name": "AIC_CLOUD_REGION",
- "param-value": "${aic-cloud-region}"
- }
- ],
- "output-key-mapping": [
- {
- "resource-name": "vnf_name",
- "resource-value": "${vnf_name}"
- }
- ]
+ "capability-name": "generate-name",
+ "key-mapping": [
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "vnf_name",
+ "resource-value": "${vnf_name}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "resource-name",
+ "param-value": "vnf_name"
+ },
+ {
+ "param-name": "resource-value",
+ "param-value": "${vnf_name}"
+ },
+ {
+ "param-name": "external-key",
+ "param-value": "${vnf-id}_vnf_name"
+ },
+ {
+ "param-name": "policy-instance-name",
+ "param-value": "${vf-naming-policy}"
+ },
+ {
+ "param-name": "naming-type",
+ "param-value": "VNF"
+ },
+ {
+ "param-name": "AIC_CLOUD_REGION",
+ "param-value": "${aic-cloud-region}"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "capability-name": "netbox-ip-assign",
+ "key-mapping": [
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "int_private1_gw_ip",
+ "resource-value": "${int_private1_gw_ip}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${private1-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-int_private1_gw_ip"
+ }
+ ]
+ },
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "int_private2_gw_ip",
+ "resource-value": "${int_private2_gw_ip}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${private2-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-int_private2_gw_ip"
+ }
+ ]
+ },
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "onap_private_gw_ip",
+ "resource-value": "${onap_private_gw_ip}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${management-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-onap_private_gw_ip"
+ }
+ ]
+ },
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "vfw_int_private2_ip_0",
+ "resource-value": "${vfw_int_private2_ip_0}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${private2-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-vfw_int_private2_ip_0"
+ }
+ ]
+ },
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "vfw_int_private1_ip_0",
+ "resource-value": "${vfw_int_private1_ip_0}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${private1-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-vfw_int_private1_ip_0"
+ }
+ ]
+ },
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "vfw_int_private2_floating_ip",
+ "resource-value": "${vfw_int_private2_floating_ip}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${private1-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-vfw_int_private2_floating_ip"
+ }
+ ]
+ },
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "vsn_int_private2_ip_0",
+ "resource-value": "${vsn_int_private2_ip_0}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${private2-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-vsn_int_private2_ip_0"
+ }
+ ]
+ },
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "vpg_onap_private_ip_0",
+ "resource-value": "${vpg_onap_private_ip_0}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${management-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-vpg_onap_private_ip_0"
+ }
+ ]
+ },
+ {
+ "output-key-mapping": [
+ {
+ "resource-name": "vpg_int_private1_ip_0",
+ "resource-value": "${vpg_int_private1_ip_0}"
+ }
+ ],
+ "payload": [
+ {
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
+ },
+ {
+ "param-name": "prefix-id",
+ "param-value": "${private1-prefix-id}"
+ },
+ {
+ "param-name": "vnf-id",
+ "param-value": "${vnf-id}"
+ },
+ {
+ "param-name": "external_key",
+ "param-value": "${vnf-id}-vpg_int_private1_ip_0"
+ }
+ ]
+ }
+ ]
}
- ]
- },
- {
- "capability-name": "netbox-ip-assign",
- "key-mapping": [
+ ],
+ "resource-accumulator-resolved-data": [
{
- "payload": [
- {
- "param-name": "service-instance-id",
- "param-value": "${service-instance-id}"
- },
- {
- "param-name": "prefix-id",
- "param-value": "${private2-prefix-id}"
- },
- {
- "param-name": "vnf-id",
- "param-value": "${vnf-id}"
- },
- {
- "param-name": "external_key",
- "param-value": "${vnf-id}-vfw_int_private2_ip_0"
- }
- ],
- "output-key-mapping": [
- {
- "resource-name": "vfw_int_private2_ip_0",
- "resource-value": "${vfw_int_private2_ip_0}"
- }
- ]
+ "param-name": "service-instance-id",
+ "param-value": "${service-instance-id}"
},
{
- "payload": [
- {
- "param-name": "service-instance-id",
- "param-value": "${service-instance-id}"
- },
- {
- "param-name": "prefix-id",
- "param-value": "${private1-prefix-id}"
- },
- {
- "param-name": "vnf-id",
- "param-value": "${vnf-id}"
- },
- {
- "param-name": "external_key",
- "param-value": "${vnf-id}-vfw_int_private1_ip_0"
- }
- ],
- "output-key-mapping": [
- {
- "resource-name": "vfw_int_private1_ip_0",
- "resource-value": "${vfw_int_private1_ip_0}"
- }
- ]
+ "param-name": "vnf-model-customization-uuid",
+ "param-value": "${vnf-model-customization-uuid}"
},
{
- "payload": [
- {
- "param-name": "service-instance-id",
- "param-value": "${service-instance-id}"
- },
- {
- "param-name": "prefix-id",
- "param-value": "${private1-prefix-id}"
- },
- {
- "param-name": "vnf-id",
- "param-value": "${vnf-id}"
- },
- {
- "param-name": "external_key",
- "param-value": "${vnf-id}-vfw_int_private2_floating_ip"
- }
- ],
- "output-key-mapping": [
- {
- "resource-name": "vfw_int_private2_floating_ip",
- "resource-value": "${vfw_int_private2_floating_ip}"
- }
- ]
+ "param-name": "aic-cloud-region",
+ "param-value": "${aic-cloud-region}"
},
{
- "payload": [
- {
- "param-name": "service-instance-id",
- "param-value": "${service-instance-id}"
- },
- {
- "param-name": "prefix-id",
- "param-value": "${private2-prefix-id}"
- },
- {
- "param-name": "vnf-id",
- "param-value": "${vnf-id}"
- },
- {
- "param-name": "external_key",
- "param-value": "${vnf-id}-vsn_int_private2_ip_0"
- }
- ],
- "output-key-mapping": [
- {
- "resource-name": "vsn_int_private2_ip_0",
- "resource-value": "${vsn_int_private2_ip_0}"
- }
- ]
+ "param-name": "vf-naming-policy",
+ "param-value": "${vf-naming-policy}"
},
- {
- "payload": [
- {
- "param-name": "service-instance-id",
- "param-value": "${service-instance-id}"
- },
- {
- "param-name": "prefix-id",
- "param-value": "${management-prefix-id}"
- },
- {
- "param-name": "vnf-id",
- "param-value": "${vnf-id}"
- },
- {
- "param-name": "external_key",
- "param-value": "${vnf-id}-vpg_onap_private_ip_0"
- }
- ],
- "output-key-mapping": [
- {
- "resource-name": "vpg_onap_private_ip_0",
- "resource-value": "${vpg_onap_private_ip_0}"
- }
- ]
+ {
+ "param-name": "image_name",
+ "param-value": "${image_name}"
},
{
- "payload": [
- {
- "param-name": "service-instance-id",
- "param-value": "${service-instance-id}"
- },
- {
- "param-name": "prefix-id",
- "param-value": "${private1-prefix-id}"
- },
- {
- "param-name": "vnf-id",
- "param-value": "${vnf-id}"
- },
- {
- "param-name": "external_key",
- "param-value": "${vnf-id}-vpg_int_private1_ip_0"
- }
- ],
- "output-key-mapping": [
- {
- "resource-name": "vpg_int_private1_ip_0",
- "resource-value": "${vpg_int_private1_ip_0}"
- }
- ]
- }
- ]
- },
- {
- "capability-name": "aai-vnf-put",
- "key-mapping": [
+ "param-name": "flavor_name",
+ "param-value": "${flavor_name}"
+ },
+ {
+ "param-name": "public_net_id",
+ "param-value": "${public_net_id}"
+ },
+ {
+ "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_cidr",
+ "param-value": "${onap_private_net_cidr}"
+ },
+ {
+ "param-name": "demo_artifacts_version",
+ "param-value": "${demo_artifacts_version}"
+ },
+ {
+ "param-name": "install_script_version",
+ "param-value": "${install_script_version}"
+ },
+ {
+ "param-name": "net_attachment_definition",
+ "param-value": "${vnf-id}-ovn-nat"
+ },
+ {
+ "param-name": "pub_key",
+ "param-value": "${pub_key}"
+ },
+ {
+ "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}"
+ },
+ {
+ "param-name": "k8s-rb-profile-name",
+ "param-value": "${k8s-rb-profile-name}"
+ },
{
- "payload": [
- {
- "param-name": "generic-vnf",
- "param-value": "generic-vnf"
- }
- ],
- "output-key-mapping": [
- {
- "resource-name": "aai-vnf-put",
- "resource-value": "${status}"
- }
- ]
+ "param-name": "k8s-rb-profile-namespace",
+ "param-value": "${k8s-rb-profile-namespace}"
}
- ]
- }
- ]
+ ]
}