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"
183 "maxoccurrence-template": {
184 "type": "artifact-template-velocity",
185 "file": "Templates/maxoccurrence-template.vtl"
187 "maxoccurrence-mapping": {
188 "type": "artifact-mapping-resource",
189 "file": "Definitions/maxoccurrence-mapping.json"
191 "transform-template": {
192 "type": "artifact-template-velocity",
193 "file": "Templates/baseconfig-template.vtl"
195 "transform-mapping": {
196 "type": "artifact-mapping-resource",
197 "file": "Definitions/transform-mapping.json"
199 "notemplate-mapping": {
200 "type": "artifact-mapping-resource",
201 "file": "Definitions/notemplate-mapping.json"
205 "resource-assignment-py": {
206 "type": "component-resource-resolution",
208 "ResourceResolutionComponent": {
212 "primary": "component-script"
216 "get_input": "action-name"
220 "resource-assignment-params": "",
228 "component-script": {
229 "type": "artifact-script-jython",
230 "file": "Scripts/python/SamplePythonComponentNode.py"
235 "type": "component-jython-executor",
237 "ComponentJythonExecutor": {
241 "primary": "component-script"
244 "instance-dependencies": [
245 "json-parser-service"
257 "component-script": {
258 "type": "artifact-script-jython",
259 "file": "Scripts/python/SamplePythonComponentNode.py"
263 "activate-netconf": {
264 "type": "component-netconf-executor",
266 "ComponentNetconfExecutor": {
270 "primary": "component-script"
273 "script-type": "jython",
274 "script-class-reference": "Scripts/python/NetconfRpcExample.py",
275 "instance-dependencies": [
277 "dynamic-properties": "*dynamic-netconf-properties"
288 "netconf-connection": {
289 "capability": "netconf",
290 "node": "sample-netconf-device",
291 "relationship": "tosca.relationships.ConnectsTo"
295 "hostname-template": {
296 "type": "artifact-template-velocity",
297 "file": "Templates/hostname-template.vtl"
299 "hostname-mapping": {
300 "type": "artifact-mapping-resource",
301 "file": "Definitions/hostname-mapping.json"
303 "component-script": {
304 "type": "artifact-script-jython",
305 "file": "Scripts/python/NetconfRpcExample.py"
309 "activate-restconf": {
310 "type": "component-script-executor",
312 "ComponentScriptExecutor": {
316 "primary": "component-script"
319 "script-type": "kotlin",
320 "script-class-reference": "DefaultRestconf_cba$MountNEditConfigure"
332 "type": "component-script-executor",
334 "ComponentScriptExecutor": {
338 "primary": "component-script"
341 "script-type": "internal",
342 "script-class-reference": "internal.scripts.TestCliScriptFunction"
353 "sample-netconf-device": {
354 "type": "vnf-netconf-device",
358 "login-key": "sample-key",
359 "login-account": "sample-account",
360 "target-ip-address": {
362 "resource-assignment",
369 "connection-time-out": 30
375 "relationship_templates": {
376 "cli-device-properties": {
377 "type": "tosca.relationships.ConnectsTo.SshClient",
378 "description": "SSH Connection",
380 "connection-config": {
381 "password": "sample-password",
383 "get_input": "hostname"
385 "type": "basic-auth",
386 "connectionTimeOut": 30,
387 "username": "sample-user"
393 "resource-assignment": {
395 "resource-assignment-properties": {
397 "type": "dt-resource-assignment-properties"
401 "call-resource-assignment": {
402 "description": "Resource Assignment Workflow",
403 "target": "resource-assignment-process",
406 "call_operation": "CONFIG.ResourceAssignment"
412 "response-property": {
416 "template-properties": {
420 "resource-assignment",
447 "activate-process": {
448 "description": "Netconf Activation Workflow",
449 "target": "activate-process",
452 "call_operation": "CONFIG.ActivateProcess"
458 "activate-restconf": {
460 "activate-process": {
461 "description": "Activate Restconf flow",
462 "target": "activate-restconf",
465 "call_operation": "ComponentRestconfExecutor.process"
473 "activate-process": {
474 "description": "Activate CLI flow",
475 "target": "activate-cli",
478 "call_operation": "ComponentScriptExecutor.process"
486 "assign-activate-properties": {
488 "type": "dt-assign-activate-properties"
492 "activate-process": {
493 "description": "Resource Assign and Netconf Activation Workflow",
494 "target": "assign-activate-process",
497 "call_operation": "CONFIG.AssignActivateProcess"
503 "imperative-test-wf": {
506 "description": "Activate CLI flow 1",
507 "target": "activate-cli",
510 "call_operation": "ComponentScriptExecutor.process"
518 "description": "Activate CLI flow 2",
519 "target": "activate-cli",
522 "call_operation": "ComponentScriptExecutor.process"
530 "description": "Activate CLI flow 3",
531 "target": "activate-cli",
534 "call_operation": "ComponentScriptExecutor.process"