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
355 "relationship_templates": {
356 "cli-device-properties": {
357 "type": "tosca.relationships.ConnectsTo.SshClient",
358 "description": "SSH Connection",
360 "connection-config": {
361 "password": "sample-password",
363 "get_input": "hostname"
365 "type": "basic-auth",
366 "connectionTimeOut": 30,
367 "username": "sample-user"
373 "resource-assignment": {
375 "resource-assignment-properties": {
377 "type": "dt-resource-assignment-properties"
381 "call-resource-assignment": {
382 "description": "Resource Assignment Workflow",
383 "target": "resource-assignment-process",
386 "call_operation": "CONFIG.ResourceAssignment"
392 "response-property": {
396 "template-properties": {
400 "resource-assignment",
427 "activate-process": {
428 "description": "Netconf Activation Workflow",
429 "target": "activate-process",
432 "call_operation": "CONFIG.ActivateProcess"
438 "activate-restconf": {
440 "activate-process": {
441 "description": "Activate Restconf flow",
442 "target": "activate-restconf",
445 "call_operation": "ComponentRestconfExecutor.process"
453 "activate-process": {
454 "description": "Activate CLI flow",
455 "target": "activate-cli",
458 "call_operation": "ComponentScriptExecutor.process"
466 "assign-activate-properties": {
468 "type": "dt-assign-activate-properties"
472 "activate-process": {
473 "description": "Resource Assign and Netconf Activation Workflow",
474 "target": "assign-activate-process",
477 "call_operation": "CONFIG.AssignActivateProcess"
483 "imperative-test-wf": {
486 "description": "Activate CLI flow 1",
487 "target": "activate-cli",
490 "call_operation": "ComponentScriptExecutor.process"
498 "description": "Activate CLI flow 2",
499 "target": "activate-cli",
502 "call_operation": "ComponentScriptExecutor.process"
510 "description": "Activate CLI flow 3",
511 "target": "activate-cli",
514 "call_operation": "ComponentScriptExecutor.process"