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-restconf-executor",
292 "ComponentRestconfExecutor": {
296 "primary": "component-script"
299 "script-type": "kotlin",
300 "script-class-reference": "DefaultRestconf_cba$MountNEditConfigure",
301 "instance-dependencies": []
313 "type": "component-cli-executor",
315 "ComponentCliExecutor": {
319 "primary": "component-script"
322 "script-type": "kotlin",
323 "script-class-reference": "InternalSimpleCli_cba$TestCliScriptFunction",
324 "instance-dependencies": []
335 "sample-netconf-device": {
336 "type": "vnf-netconf-device",
340 "login-key": "sample-key",
341 "login-account": "sample-account",
342 "target-ip-address": {
344 "resource-assignment",
351 "connection-time-out": 30
358 "resource-assignment": {
360 "resource-assignment-properties": {
362 "type": "dt-resource-assignment-properties"
366 "call-resource-assignment": {
367 "description": "Resource Assignment Workflow",
368 "target": "resource-assignment-process",
371 "call_operation": "CONFIG.ResourceAssignment"
377 "response-property": {
381 "template-properties": {
385 "resource-assignment",
412 "activate-process": {
413 "description": "Netconf Activation Workflow",
414 "target": "activate-process",
417 "call_operation": "CONFIG.ActivateProcess"
423 "activate-restconf": {
425 "activate-process": {
426 "description": "Activate Restconf flow",
427 "target": "activate-restconf",
430 "call_operation": "ComponentRestconfExecutor.process"
438 "activate-process": {
439 "description": "Activate CLI flow",
440 "target": "activate-cli",
443 "call_operation": "ComponentCliExecutor.process"
451 "assign-activate-properties": {
453 "type": "dt-assign-activate-properties"
457 "activate-process": {
458 "description": "Resource Assign and Netconf Activation Workflow",
459 "target": "assign-activate-process",
462 "call_operation": "CONFIG.AssignActivateProcess"