From fb1b892f0ca6f2ded72e28315c005cb24a6c4bb2 Mon Sep 17 00:00:00 2001 From: andreasgeissler Date: Wed, 26 Aug 2020 14:49:13 +0200 Subject: Updated dictionary entries for Frankfurt and later usecases Issue-ID: CCSDK-2696 Signed-off-by: andreasgeissler Change-Id: I380f94b4264cba5530138667ac5c9b5a2291d03f --- .../starter-dictionary/service-instance-id.json | 16 +++++++++ .../starter-dictionary/update-active-streams.json | 38 ++++++++++++++++++++++ .../starter-dictionary/vnf-id.json | 20 ++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 components/model-catalog/resource-dictionary/starter-dictionary/update-active-streams.json (limited to 'components/model-catalog/resource-dictionary') diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/service-instance-id.json b/components/model-catalog/resource-dictionary/starter-dictionary/service-instance-id.json index 9b00cae59..e8d1fd7a0 100644 --- a/components/model-catalog/resource-dictionary/starter-dictionary/service-instance-id.json +++ b/components/model-catalog/resource-dictionary/starter-dictionary/service-instance-id.json @@ -39,6 +39,22 @@ "script-class-reference": "SampleRAProcessor", "instance-dependencies": [] } + }, + "sdnc": { + "type": "source-rest", + "properties": { + "verb": "GET", + "type": "JSON", + "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id", + "path": "/service/0/service-instance-id", + "input-key-mapping": { + "service-instance-id": "service-instance.service-instance-id" + }, + "output-key-mapping": { + "service-instance-id": "service-instance-id" + }, + "key-dependencies": ["service-instance.service-instance-id"] + } } } } diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/update-active-streams.json b/components/model-catalog/resource-dictionary/starter-dictionary/update-active-streams.json new file mode 100644 index 000000000..631be516b --- /dev/null +++ b/components/model-catalog/resource-dictionary/starter-dictionary/update-active-streams.json @@ -0,0 +1,38 @@ +{ + "name": "update-active-streams", + "tags": "update-active-streams", + "property": { + "description": "update-active-streams", + "type": "string" + }, + "group": "default", + "updated-by": "Bruno Sakoto ", + "sources": { + "default": { + "type": "source-default", + "properties": {} + }, + "sdnc": { + "type": "source-rest", + "properties": { + "verb": "PUT", + "type": "JSON", + "path": "", + "url-path": "$vpg_onap_private_ip_0:8183/restconf/config/stream-count:stream-count/streams", + "input-key-mapping": { + "vpg_onap_private_ip_0": "vpg_onap_private_ip_0", + "data": "data" + }, + "output-key-mapping": { + }, + "key-dependencies": [ + "vpg_onap_private_ip_0", + "data" + ], + "endpoint-selector": "vpkg-rest-api", + "payload": "{\"streams\": $data}" + } + } + } +} + diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/vnf-id.json b/components/model-catalog/resource-dictionary/starter-dictionary/vnf-id.json index e8c451b2b..f05499f2a 100644 --- a/components/model-catalog/resource-dictionary/starter-dictionary/vnf-id.json +++ b/components/model-catalog/resource-dictionary/starter-dictionary/vnf-id.json @@ -14,6 +14,26 @@ "default": { "type": "source-default", "properties": {} + }, + "sdnc": { + "type": "source-rest", + "properties": { + "verb": "GET", + "type": "JSON", + "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf-id", + "path": "/param/0/value", + "input-key-mapping": { + "service-instance-id": "service-instance-id", + "vnf-id": "vnf-id" + }, + "output-key-mapping": { + "vnf-id": "value" + }, + "key-dependencies": [ + "service-instance-id", + "vnf-id" + ] + } } } } -- cgit 1.2.3-korg