From 77891f46278488702aeed2fe970861a2f1b9a1a7 Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Fri, 26 Aug 2022 23:44:34 +0200 Subject: Templating constants added to ResourceAssignment Fixed values of inputs for resource assignment allow to build data dictionaries that are generic. Along with templating of outputs mapping, path, url and payload sdnc and aai dictionary entry may be one for support of all the attributes of specified object like for instance generic vnf one. Issue-ID: CCSDK-3716 Signed-off-by: Lukasz Rajewski Change-Id: I1817303e997a4dfb7dda9c32d9ac690ec723b3d8 --- .../Definitions/resources_definition_types.json | 32 ++++++++++++++++++++++ .../data_type/datatype-resource-assignment.json | 7 +++++ 2 files changed, 39 insertions(+) (limited to 'components/model-catalog') diff --git a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json index 98f77266a..757210167 100644 --- a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json +++ b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json @@ -100,6 +100,38 @@ } } }, + "vnf_parameter": { + "tags": "vnf_parameter", + "name": "vnf_parameter", + "property": { + "description": "vnf_parameter", + "type": "string" + }, + "updated-by": "Rajewski, Lukasz ", + "sources": { + "sdnc": { + "type": "source-rest", + "properties": { + "verb": "GET", + "type": "JSON", + "url-path": "/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/$parameter-name", + "path": "/param/0/value", + "input-key-mapping": { + "service-instance-id": "service-instance-id", + "vnf-id": "vnf-id", + "parameter-name": "parameter-name" + }, + "output-key-mapping": { + "vnf_name": "value" + }, + "key-dependencies": [ + "service-instance-id", + "vnf-id" + ] + } + } + } + }, "aai-get-resource": { "tags": "aai-get", "name": "aai-get-resource", diff --git a/components/model-catalog/definition-type/starter-type/data_type/datatype-resource-assignment.json b/components/model-catalog/definition-type/starter-type/data_type/datatype-resource-assignment.json index 8fa595a15..67c3e3ce7 100644 --- a/components/model-catalog/definition-type/starter-type/data_type/datatype-resource-assignment.json +++ b/components/model-catalog/definition-type/starter-type/data_type/datatype-resource-assignment.json @@ -18,6 +18,13 @@ "required": false, "type": "string" }, + "templating-constants": { + "required": false, + "type": "map", + "entry_schema": { + "type": "string" + } + }, "dependencies": { "required": true, "type": "list", -- cgit 1.2.3-korg