Input source doesn't support dynamic values or properties 78/98378/11
authorSteve Siani <steve.djissitchi@bell.ca>
Wed, 13 Nov 2019 06:59:53 +0000 (01:59 -0500)
committerSteve Siani <alphonse.steve.siani.djissitchi@ibm.com>
Sun, 24 Nov 2019 02:08:45 +0000 (21:08 -0500)
Issue-ID: CCSDK-1890
Change-Id: I7958174bd0c0a7354ddefd2595723fdb4b4d0485
Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com>
components/model-catalog/resource-dictionary/starter-dictionary/pnf-id.json
components/model-catalog/resource-dictionary/starter-dictionary/service-instance-id.json
components/model-catalog/resource-dictionary/starter-dictionary/vf-module-id.json
components/model-catalog/resource-dictionary/starter-dictionary/vnf-id.json

index 3246853..adafc29 100755 (executable)
     "input" : {
       "type" : "source-input",
       "properties" : { }
+    },
+    "aai-data": {
+      "type": "source-rest",
+      "properties": {
+        "verb": "GET",
+        "type": "JSON",
+        "url-path": "/aai/v14/network/pnfs/pnf/$pnf-id",
+        "path": "/pnf-name",
+        "headers" : {
+          "Accept": "application/json",
+          "X-TransactionId": "AAI-Temp-Tool",
+          "X-FromAppId": "AAI-Temp-Tool"
+        },
+        "input-key-mapping": {
+          "pnf-id": "pnf.pnf-id"
+        },
+        "output-key-mapping": {
+          "pnf-id": "pnf-name"
+        },
+        "key-dependencies": [
+          "pnf.pnf-id"
+        ]
+      }
     }
   }
 }
\ No newline at end of file
index 533b804..fdebe55 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"]
+                       }
                }
        }
 }
\ No newline at end of file
index 74f9310..91aba63 100755 (executable)
     "input" : {
       "type" : "source-input",
       "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/vf-modules/vf-module/$vf-module-id",
+        "path": "/vf-module/0/vf-module-id",
+        "input-key-mapping": {
+          "service-instance-id": "service-instance-id",
+          "vnf-id": "vnf-id",
+          "vf-module-id": "vf-module.vf-module-id"
+        },
+        "output-key-mapping": {
+          "vf-module-id": "vf-module-id"
+        },
+        "key-dependencies": [
+          "service-instance-id",
+          "vnf-id",
+          "vf-module.vf-module-id"
+        ]
+      }
     }
   }
 }
\ No newline at end of file
index 7b170a6..97d6b01 100644 (file)
@@ -1,38 +1,39 @@
-  {
-      "tags": "vnf-id",
-      "name": "vnf-id",
-      "property": {
-        "description": "vnf-id",
-        "type": "string"
+{
+    "tags": "vnf-id",
+    "name": "vnf-id",
+    "property": {
+      "description": "vnf-id",
+      "type": "string"
+    },
+    "updated-by": "MALAKOV, YURIY <yuriy.malakov@att.com>",
+    "sources": {
+      "input": {
+        "type": "source-input"
       },
-      "updated-by": "MALAKOV, YURIY <yuriy.malakov@att.com>",
-      "sources": {
-        "input": {
-          "type": "source-input"
-        },
-        "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"
-            ]
-          }
+      "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/",
+          "path": "/vnf/0/vnf-id",
+          "input-key-mapping": {
+            "service-instance-id": "service-instance-id",
+            "vnf-id": "generic-vnf.vnf-id"
+          },
+          "output-key-mapping": {
+            "vnf-id": "vnf-id"
+          },
+          "key-dependencies": [
+            "service-instance-id",
+            "generic-vnf.vnf-id"
+          ]
         }
       }
     }
+}