diff options
3 files changed, 74 insertions, 0 deletions
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 <bruno.sakoto@bell.ca>", + "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" + ] + } } } } |