Bug fix: Enrichment fails for processor-db source
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / onap_private_net_cidr.json
index 42765ee..90d674c 100755 (executable)
@@ -1,21 +1,49 @@
-{
-  "name" : "onap_private_net_cidr",
-  "tags" : "onap_private_net_cidr",
-  "updated-by" : "Singal, Kapil <ks220y@att.com>",
-  "property" : {
-    "description" : "onap_private_net_cidr",
-    "type" : "string"
-  },
-  "sources" : {
-    "primary-db" : {
-      "type" : "source-primary-db",
-      "properties" : {
-        "type" : "SQL",
-        "query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private\"",
-        "output-key-mapping" : {
-          "onap_private_net_cidr" : "prefix"
-        }      
-         }
-    }
-  }
+{\r
+  "tags": "onap_private_net_cidr",\r
+  "name": "onap_private_net_cidr",\r
+  "property": {\r
+    "description": "onap_private_net_cidr",\r
+    "type": "string"\r
+  },\r
+  "updated-by": "MALAKOV, YURIY <yuriy.malakov@att.com>",\r
+  "sources": {\r
+    "input": {\r
+      "type": "source-input"\r
+    },\r
+    "default": {\r
+      "type": "source-default",\r
+      "properties": {}\r
+    },\r
+    "primary-config-data": {\r
+      "type": "source-rest",\r
+      "properties": {\r
+        "type": "JSON",\r
+        "url-path": "config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/onap_private_net_cidr",\r
+        "path": "/param/0/value",\r
+        "input-key-mapping": {\r
+          "service-instance-id": "service-instance-id",\r
+          "vnf-id": "vnf-id"\r
+        },\r
+        "output-key-mapping": {\r
+          "onap_private_net_cidr": "value"\r
+        },\r
+        "key-dependencies": [\r
+          "service-instance-id",\r
+          "vnf-id"\r
+        ]\r
+      }\r
+    },\r
+    "processor-db": {\r
+      "type": "source-processor-db",\r
+      "properties": {\r
+        "endpoint-selector": "dynamic-db-source",\r
+        "type": "SQL",\r
+        "query": "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"management\"",\r
+        "input-key-mapping": {},\r
+        "output-key-mapping": {\r
+          "onap_private_net_cidr": "prefix"\r
+        }\r
+      }\r
+    }\r
+  }\r
 }
\ No newline at end of file