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": []
312 "sample-netconf-device": {
313 "type": "vnf-netconf-device",
317 "login-key": "sample-key",
318 "login-account": "sample-account",
319 "target-ip-address": {
321 "resource-assignment",
328 "connection-time-out": 30
335 "resource-assignment": {
337 "resource-assignment-properties": {
339 "type": "dt-resource-assignment-properties"
343 "call-resource-assignment": {
344 "description": "Resource Assignment Workflow",
345 "target": "resource-assignment-process",
348 "call_operation": "CONFIG.ResourceAssignment"
354 "response-property": {
358 "template-properties": {
362 "resource-assignment",
389 "activate-process": {
390 "description": "Netconf Activation Workflow",
391 "target": "activate-process",
394 "call_operation": "CONFIG.ActivateProcess"
400 "activate-restconf": {
402 "activate-process": {
403 "description": "Activate Restconf flow",
404 "target": "activate-restconf",
407 "call_operation": "ComponentRestconfExecutor.process"
415 "assign-activate-properties": {
417 "type": "dt-assign-activate-properties"
421 "activate-process": {
422 "description": "Resource Assign and Netconf Activation Workflow",
423 "target": "assign-activate-process",
426 "call_operation": "CONFIG.AssignActivateProcess"