summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2020-08-27 16:14:17 +0000
committerGerrit Code Review <gerrit@onap.org>2020-08-27 16:14:17 +0000
commitd7fa7de25a494d9822827b4e22625d571260e966 (patch)
treef727606670d46e692217f2e926962365714cda98
parentfd6cd05d36a46a4fa46cad2c8dd2038d24b14955 (diff)
parentfb1b892f0ca6f2ded72e28315c005cb24a6c4bb2 (diff)
Merge "Updated dictionary entries for Frankfurt and later usecases Issue-ID: CCSDK-2696"
-rw-r--r--components/model-catalog/resource-dictionary/starter-dictionary/service-instance-id.json16
-rw-r--r--components/model-catalog/resource-dictionary/starter-dictionary/update-active-streams.json38
-rw-r--r--components/model-catalog/resource-dictionary/starter-dictionary/vnf-id.json20
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"
+ ]
+ }
}
}
}