Data dictionary fixes and improvements from vFW CNF demo
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / onap_private_net_cidr.json
1 {
2     "tags": "onap_private_net_cidr",
3     "name": "onap_private_net_cidr",
4     "group":"default",
5     "property": {
6         "description": "onap_private_net_cidr",
7         "type": "string"
8     },
9     "updated-by": "MALAKOV, YURIY <yuriy.malakov@att.com>",
10     "sources": {
11         "input": {
12             "type": "source-input"
13         },
14         "default": {
15             "type": "source-default",
16             "properties": {}
17         },
18         "processor-db": {
19             "type": "source-db",
20             "properties": {
21                 "type": "SQL",
22                 "query": "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"management\"",
23                 "input-key-mapping": {},
24                 "output-key-mapping": {
25                     "onap_private_net_cidr": "prefix"
26                 }
27             }
28         },
29         "sdnc": {
30             "type": "source-rest",
31             "properties": {
32                 "verb": "GET",
33                 "type": "JSON",
34                 "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/onap_private_net_cidr",
35                 "path": "/param/0/value",
36                 "input-key-mapping": {
37                     "service-instance-id": "service-instance-id",
38                     "vnf-id": "vnf-id"
39                 },
40                 "output-key-mapping": {
41                     "onap_private_net_cidr": "value"
42                 },
43                 "key-dependencies": [
44                     "service-instance-id",
45                     "vnf-id"
46                 ]
47             }
48         }
49     }
50 }