c8e3e6a9376e352970802ad31a2f6edb717d01ce
[ccsdk/cds.git] /
1 {
2   "node_types" : {
3     "component-restconf-executor" : {
4       "description" : "This is Restconf Configuration Component API",
5       "version" : "1.0.0",
6       "capabilities" : {
7         "component-node" : {
8           "type" : "tosca.capabilities.Node"
9         }
10       },
11       "requirements" : {
12         "restconf-connection" : {
13           "capability" : "restconf",
14           "node" : "pnf-restconf-device",
15           "relationship" : "tosca.relationships.ConnectsTo"
16         }
17       },
18       "interfaces" : {
19         "ComponentRestconfExecutor" : {
20           "operations" : {
21             "process" : {
22               "inputs" : {
23                 "script-type" : {
24                   "description" : "Script type, kotlin type is supported",
25                   "required" : true,
26                   "type" : "string",
27                   "constraints" : [ {
28                     "valid_values" : [ "kotlin", "jython", "internal" ]
29                   } ],
30                   "default" : "internal"
31                 },
32                 "script-class-reference" : {
33                   "description" : "Kotlin Script class name or jython script name.",
34                   "required" : true,
35                   "type" : "string"
36                 },
37                 "instance-dependencies" : {
38                   "description" : "Instance names to inject to Jython or Kotlin Script.",
39                   "required" : true,
40                   "type" : "list",
41                   "entry_schema" : {
42                     "type" : "string"
43                   }
44                 }
45               },
46               "outputs" : {
47                 "response-data" : {
48                   "description" : "Execution Response Data in JSON format.",
49                   "required" : false,
50                   "type" : "string"
51                 },
52                 "status" : {
53                   "description" : "Status of the Component Execution ( success or failure )",
54                   "required" : true,
55                   "type" : "string"
56                 }
57               }
58             }
59           }
60         }
61       },
62       "derived_from" : "tosca.nodes.Component"
63     },
64     "dg-generic" : {
65       "description" : "This is Generic Directed Graph Type",
66       "version" : "1.0.0",
67       "properties" : {
68         "content" : {
69           "required" : true,
70           "type" : "string"
71         },
72         "dependency-node-templates" : {
73           "description" : "Dependent Step Components NodeTemplate name.",
74           "required" : true,
75           "type" : "list",
76           "entry_schema" : {
77             "type" : "string"
78           }
79         }
80       },
81       "derived_from" : "tosca.nodes.DG"
82     },
83     "source-input" : {
84       "description" : "This is Input Resource Source Node Type",
85       "version" : "1.0.0",
86       "properties" : {
87         "key" : {
88           "required" : false,
89           "type" : "string"
90         },
91         "key-dependencies" : {
92           "required" : true,
93           "type" : "list",
94           "entry_schema" : {
95             "type" : "string"
96           }
97         }
98       },
99       "derived_from" : "tosca.nodes.ResourceSource"
100     },
101     "tosca.nodes.Component" : {
102       "description" : "This is default Component Node",
103       "version" : "1.0.0",
104       "derived_from" : "tosca.nodes.Root"
105     },
106     "tosca.nodes.DG" : {
107       "description" : "This is Directed Graph Node Type",
108       "version" : "1.0.0",
109       "derived_from" : "tosca.nodes.Root"
110     },
111     "tosca.nodes.ResourceSource" : {
112       "description" : "TOSCA base type for Resource Sources",
113       "version" : "1.0.0",
114       "derived_from" : "tosca.nodes.Root"
115     },
116     "tosca.nodes.Vnf" : {
117       "description" : "This is VNF Node Type",
118       "version" : "1.0.0",
119       "derived_from" : "tosca.nodes.Root"
120     },
121     "tosca.nodes.Pnf": {
122       "description": "This is the PNF Node Type",
123       "version": "1.0.0",
124       "derived_from": "tosca.nodes.Root"
125     },
126      "pnf-restconf-device" : {
127       "description" : "This is a PNF Device with Restconf Capability",
128       "version" : "1.0.0",
129       "capabilities" : {
130         "netconf" : {
131           "type" : "tosca.capabilities.Restconf",
132           "properties" : {
133             "login-key" : {
134               "required" : true,
135               "type" : "string",
136               "default" : "sdnc"
137             },
138             "login-account" : {
139               "required" : true,
140               "type" : "string",
141               "default" : "sdnc-tacacs"
142             },
143             "source" : {
144               "required" : false,
145               "type" : "string",
146               "default" : "npm"
147             },
148             "target-ip-address" : {
149               "required" : true,
150               "type" : "string"
151             },
152             "port-number" : {
153               "required" : true,
154               "type" : "integer",
155               "default" : 830
156             },
157             "connection-time-out" : {
158               "required" : false,
159               "type" : "integer",
160               "default" : 30
161             }
162           }
163         }
164       },
165       "derived_from" : "tosca.nodes.Pnf"
166     }
167   }
168 }