From 1591ba7289f34c1c44881c169e91c3a6ceda9531 Mon Sep 17 00:00:00 2001 From: Jozsef Csongvai Date: Mon, 25 May 2020 11:23:21 -0400 Subject: Fix sub-attribute parsing for accessing resolved values Added assignment-map attribute to ResourceResolutionComponent. This attribute will hold a json object with the resolved values for each artifact-prefix. It will enable accessing any resolved value, using get_attribute with JsonPath. Issue-ID: CCSDK-2389 Signed-off-by: Jozsef Csongvai Change-Id: I3441569d9766fbd79703d2f224de448edd56dbb2 --- .../starter-type/node_type/component-resource-resolution.json | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'components/model-catalog') diff --git a/components/model-catalog/definition-type/starter-type/node_type/component-resource-resolution.json b/components/model-catalog/definition-type/starter-type/node_type/component-resource-resolution.json index ff1b5260e..cc2013076 100644 --- a/components/model-catalog/definition-type/starter-type/node_type/component-resource-resolution.json +++ b/components/model-catalog/definition-type/starter-type/node_type/component-resource-resolution.json @@ -3,8 +3,14 @@ "version": "1.0.0", "attributes": { "assignment-params": { + "description": "Holds resolved template, resolution-summary or key-value", "required": true, "type": "string" + }, + "assignment-map": { + "description": "Holds resolved values for each artifact prefix eg. { vdns: { vnf-id: 123 } }", + "required": true, + "type": "map" } }, "capabilities": { @@ -77,6 +83,10 @@ "required": true, "type": "string" }, + "resource-assignment-map" : { + "required": true, + "type": "string" + }, "status": { "required": true, "type": "string" -- cgit 1.2.3-korg