Updated dictionary entries for Frankfurt and later usecases 47/111747/2
authorandreasgeissler <andreas-geissler@telekom.de>
Wed, 26 Aug 2020 12:49:13 +0000 (14:49 +0200)
committerandreasgeissler <andreas-geissler@telekom.de>
Wed, 26 Aug 2020 13:29:05 +0000 (15:29 +0200)
Issue-ID: CCSDK-2696

Signed-off-by: andreasgeissler <andreas-geissler@telekom.de>
Change-Id: I380f94b4264cba5530138667ac5c9b5a2291d03f

components/model-catalog/resource-dictionary/starter-dictionary/service-instance-id.json
components/model-catalog/resource-dictionary/starter-dictionary/update-active-streams.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/vnf-id.json

index 9b00cae..e8d1fd7 100644 (file)
                                "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 (file)
index 0000000..631be51
--- /dev/null
@@ -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}"
+      }
+    }
+  }
+}
+
index e8c451b..f05499f 100644 (file)
       "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"
+                ]
+        }
       }
     }
 }