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 --- .../cba/Templates/base_template-template.vtl | 112 +++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 heat/vFW_CNF_CDS/templates/cba/Templates/base_template-template.vtl (limited to 'heat/vFW_CNF_CDS/templates/cba/Templates/base_template-template.vtl') diff --git a/heat/vFW_CNF_CDS/templates/cba/Templates/base_template-template.vtl b/heat/vFW_CNF_CDS/templates/cba/Templates/base_template-template.vtl new file mode 100644 index 00000000..c2e92ade --- /dev/null +++ b/heat/vFW_CNF_CDS/templates/cba/Templates/base_template-template.vtl @@ -0,0 +1,112 @@ +{ + "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": "int_private1_net_cidr", + "param-value": "${int_private1_net_cidr}" + }, + + { + "param-name": "int_private2_net_cidr", + "param-value": "${int_private2_net_cidr}" + }, + + { + "param-name": "pub_key", + "param-value": "${pub_key}" + } + + ], + "capability-data": [ + { + "capability-name": "generate-name", + "key-mapping": [ + { + "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": "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