3 "template_author": "Brinda Santh Muthuramalingam",
4 "author-email": "brindasanth@in.ibm.com",
5 "user-groups": "ADMIN, OPERATION",
6 "template_name": "baseconfiguration",
7 "template_version": "1.0.0",
8 "template_tags": "brinda, tosca"
12 "file": "Definitions/data_types.json"
15 "file": "Definitions/relationship_types.json"
18 "file": "Definitions/artifact_types.json"
21 "file": "Definitions/node_types.json"
24 "file": "Definitions/policy_types.json"
28 "dynamic-netconf-properties": {
29 "device-name": "netconf device",
30 "host-name": "sample-host"
32 "dynamic-rest-source": {
34 "url": "http://localhost:8080",
36 "get_input": "rest-user-name"
39 "dynamic-db-source": {
41 "url": "jdbc:mysql://localhost:3306/sdnctl",
46 "dynamic-db-source.password"
51 "topology_template": {
71 "resource-assignment-process": {
77 "dg-resource-assignment-process"
80 "dependency-node-templates": [
85 "dg-resource-assignment-process": {
86 "type": "artifact-directed-graph",
87 "file": "Plans/CONFIG_ResourceAssignment_1.0.0.xml"
100 "dependency-node-templates": [
105 "dg-activate-process": {
106 "type": "artifact-directed-graph",
107 "file": "Plans/CONFIG_ActivateNetconf_1.0.0.xml"
111 "assign-activate-process": {
112 "type": "dg-generic",
117 "dg-assign-activate-process"
120 "dependency-node-templates": [
121 "resource-assignment",
126 "dg-assign-activate-process": {
127 "type": "artifact-directed-graph",
128 "file": "Plans/CONFIG_AssignActivateNetconf_1.0.0.xml"
132 "resource-assignment": {
133 "type": "component-resource-resolution",
135 "ResourceResolutionComponent": {
140 "get_input": "action-name"
142 "resource-type": "vnf-type",
144 "get_input": "request-id"
147 "get_input": "hostname"
149 "artifact-prefix-names": [
154 "resource-assignment-params": {
167 "baseconfig-template": {
168 "type": "artifact-template-velocity",
169 "file": "Templates/baseconfig-template.vtl"
171 "baseconfig-mapping": {
172 "type": "artifact-mapping-resource",
173 "file": "Definitions/baseconfig-mapping.json"
175 "another-template": {
176 "type": "artifact-template-jinja",
177 "file": "Templates/another-template.jinja"
180 "type": "artifact-mapping-resource",
181 "file": "Definitions/another-mapping.json"
185 "resource-assignment-py": {
186 "type": "component-resource-resolution",
188 "ResourceResolutionComponent": {
192 "primary": "component-script"
196 "get_input": "action-name"
200 "resource-assignment-params": "",
208 "component-script": {
209 "type": "artifact-script-jython",
210 "file": "Scripts/python/SamplePythonComponentNode.py"
215 "type": "component-jython-executor",
217 "ComponentJythonExecutor": {
221 "primary": "component-script"
224 "instance-dependencies": [
225 "json-parser-service"
237 "component-script": {
238 "type": "artifact-script-jython",
239 "file": "Scripts/python/SamplePythonComponentNode.py"
243 "activate-netconf": {
244 "type": "component-netconf-executor",
246 "ComponentNetconfExecutor": {
250 "primary": "component-script"
253 "script-type": "jython",
254 "script-class-reference": "Scripts/python/NetconfRpcExample.py",
255 "instance-dependencies": [
257 "dynamic-properties": "*dynamic-netconf-properties"
268 "netconf-connection": {
269 "capability": "netconf",
270 "node": "sample-netconf-device",
271 "relationship": "tosca.relationships.ConnectsTo"
275 "hostname-template": {
276 "type": "artifact-template-velocity",
277 "file": "Templates/hostname-template.vtl"
279 "hostname-mapping": {
280 "type": "artifact-mapping-resource",
281 "file": "Definitions/hostname-mapping.json"
283 "component-script": {
284 "type": "artifact-script-jython",
285 "file": "Scripts/python/NetconfRpcExample.py"
289 "activate-restconf": {
290 "type": "component-script-executor",
292 "ComponentScriptExecutor": {
296 "primary": "component-script"
299 "script-type": "kotlin",
300 "script-class-reference": "DefaultRestconf_cba$MountNEditConfigure"
312 "type": "component-script-executor",
314 "ComponentScriptExecutor": {
318 "primary": "component-script"
321 "script-type": "internal",
322 "script-class-reference": "internal.scripts.TestCliScriptFunction"
333 "sample-netconf-device": {
334 "type": "vnf-netconf-device",
338 "login-key": "sample-key",
339 "login-account": "sample-account",
340 "target-ip-address": {
342 "resource-assignment",
349 "connection-time-out": 30
356 "resource-assignment": {
358 "resource-assignment-properties": {
360 "type": "dt-resource-assignment-properties"
364 "call-resource-assignment": {
365 "description": "Resource Assignment Workflow",
366 "target": "resource-assignment-process",
369 "call_operation": "CONFIG.ResourceAssignment"
375 "response-property": {
379 "template-properties": {
383 "resource-assignment",
410 "activate-process": {
411 "description": "Netconf Activation Workflow",
412 "target": "activate-process",
415 "call_operation": "CONFIG.ActivateProcess"
421 "activate-restconf": {
423 "activate-process": {
424 "description": "Activate Restconf flow",
425 "target": "activate-restconf",
428 "call_operation": "ComponentRestconfExecutor.process"
436 "activate-process": {
437 "description": "Activate CLI flow",
438 "target": "activate-cli",
441 "call_operation": "ComponentScriptExecutor.process"
449 "assign-activate-properties": {
451 "type": "dt-assign-activate-properties"
455 "activate-process": {
456 "description": "Resource Assign and Netconf Activation Workflow",
457 "target": "assign-activate-process",
460 "call_operation": "CONFIG.AssignActivateProcess"