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 "notemplate-mapping": {
184 "type": "artifact-mapping-resource",
185 "file": "Definitions/notemplate-mapping.json"
189 "resource-assignment-py": {
190 "type": "component-resource-resolution",
192 "ResourceResolutionComponent": {
196 "primary": "component-script"
200 "get_input": "action-name"
204 "resource-assignment-params": "",
212 "component-script": {
213 "type": "artifact-script-jython",
214 "file": "Scripts/python/SamplePythonComponentNode.py"
219 "type": "component-jython-executor",
221 "ComponentJythonExecutor": {
225 "primary": "component-script"
228 "instance-dependencies": [
229 "json-parser-service"
241 "component-script": {
242 "type": "artifact-script-jython",
243 "file": "Scripts/python/SamplePythonComponentNode.py"
247 "activate-netconf": {
248 "type": "component-netconf-executor",
250 "ComponentNetconfExecutor": {
254 "primary": "component-script"
257 "script-type": "jython",
258 "script-class-reference": "Scripts/python/NetconfRpcExample.py",
259 "instance-dependencies": [
261 "dynamic-properties": "*dynamic-netconf-properties"
272 "netconf-connection": {
273 "capability": "netconf",
274 "node": "sample-netconf-device",
275 "relationship": "tosca.relationships.ConnectsTo"
279 "hostname-template": {
280 "type": "artifact-template-velocity",
281 "file": "Templates/hostname-template.vtl"
283 "hostname-mapping": {
284 "type": "artifact-mapping-resource",
285 "file": "Definitions/hostname-mapping.json"
287 "component-script": {
288 "type": "artifact-script-jython",
289 "file": "Scripts/python/NetconfRpcExample.py"
293 "activate-restconf": {
294 "type": "component-script-executor",
296 "ComponentScriptExecutor": {
300 "primary": "component-script"
303 "script-type": "kotlin",
304 "script-class-reference": "DefaultRestconf_cba$MountNEditConfigure"
316 "type": "component-script-executor",
318 "ComponentScriptExecutor": {
322 "primary": "component-script"
325 "script-type": "internal",
326 "script-class-reference": "internal.scripts.TestCliScriptFunction"
337 "sample-netconf-device": {
338 "type": "vnf-netconf-device",
342 "login-key": "sample-key",
343 "login-account": "sample-account",
344 "target-ip-address": {
346 "resource-assignment",
353 "connection-time-out": 30
359 "relationship_templates": {
360 "cli-device-properties": {
361 "type": "tosca.relationships.ConnectsTo.SshClient",
362 "description": "SSH Connection",
364 "connection-config": {
365 "password": "sample-password",
367 "get_input": "hostname"
369 "type": "basic-auth",
370 "connectionTimeOut": 30,
371 "username": "sample-user"
377 "resource-assignment": {
379 "resource-assignment-properties": {
381 "type": "dt-resource-assignment-properties"
385 "call-resource-assignment": {
386 "description": "Resource Assignment Workflow",
387 "target": "resource-assignment-process",
390 "call_operation": "CONFIG.ResourceAssignment"
396 "response-property": {
400 "template-properties": {
404 "resource-assignment",
431 "activate-process": {
432 "description": "Netconf Activation Workflow",
433 "target": "activate-process",
436 "call_operation": "CONFIG.ActivateProcess"
442 "activate-restconf": {
444 "activate-process": {
445 "description": "Activate Restconf flow",
446 "target": "activate-restconf",
449 "call_operation": "ComponentRestconfExecutor.process"
457 "activate-process": {
458 "description": "Activate CLI flow",
459 "target": "activate-cli",
462 "call_operation": "ComponentScriptExecutor.process"
470 "assign-activate-properties": {
472 "type": "dt-assign-activate-properties"
476 "activate-process": {
477 "description": "Resource Assign and Netconf Activation Workflow",
478 "target": "assign-activate-process",
481 "call_operation": "CONFIG.AssignActivateProcess"
487 "imperative-test-wf": {
490 "description": "Activate CLI flow 1",
491 "target": "activate-cli",
494 "call_operation": "ComponentScriptExecutor.process"
502 "description": "Activate CLI flow 2",
503 "target": "activate-cli",
506 "call_operation": "ComponentScriptExecutor.process"
514 "description": "Activate CLI flow 3",
515 "target": "activate-cli",
518 "call_operation": "ComponentScriptExecutor.process"