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-rest-source": {
29 "type" : "basic-type",
30 "url" : "http://localhost:8080",
32 "get_input": "rest-user-name"
35 "dynamic-db-source": {
37 "url" : "jdbc:mysql://localhost:3306/sdnctl",
38 "username" : "sdnctl",
42 "dynamic-db-source.password"
47 "topology_template": {
67 "resource-assignment-process": {
73 "dg-resource-assignment-process"
76 "dependency-node-templates": [
81 "dg-resource-assignment-process": {
82 "type": "artifact-directed-graph",
83 "file": "Plans/CONFIG_ResourceAssignment_1.0.0.xml"
96 "dependency-node-templates": [
101 "dg-activate-process": {
102 "type": "artifact-directed-graph",
103 "file": "Plans/CONFIG_ActivateNetconf_1.0.0.xml"
107 "assign-activate-process": {
108 "type": "dg-generic",
113 "dg-assign-activate-process"
116 "dependency-node-templates": [
117 "resource-assignment",
122 "dg-assign-activate-process": {
123 "type": "artifact-directed-graph",
124 "file": "Plans/CONFIG_AssignActivateNetconf_1.0.0.xml"
128 "resource-assignment": {
129 "type": "component-resource-resolution",
131 "ResourceResolutionComponent": {
136 "get_input": "action-name"
138 "resource-type": "vnf-type",
140 "get_input": "request-id"
143 "get_input": "hostname"
145 "artifact-prefix-names": [
150 "resource-assignment-params": {
163 "baseconfig-template": {
164 "type": "artifact-template-velocity",
165 "file": "Templates/baseconfig-template.vtl"
167 "baseconfig-mapping": {
168 "type": "artifact-mapping-resource",
169 "file": "Definitions/baseconfig-mapping.json"
173 "resource-assignment-py": {
174 "type": "component-resource-resolution",
176 "ResourceResolutionComponent": {
180 "primary": "component-script"
184 "get_input": "action-name"
188 "resource-assignment-params": "",
196 "component-script": {
197 "type": "artifact-script-jython",
198 "file": "Scripts/python/SamplePythonComponentNode.py"
203 "type": "component-jython-executor",
205 "ComponentJythonExecutor": {
209 "primary": "component-script"
212 "instance-dependencies": [
213 "json-parser-service"
225 "component-script": {
226 "type": "artifact-script-jython",
227 "file": "Scripts/python/SamplePythonComponentNode.py"
231 "activate-netconf": {
232 "type": "component-netconf-executor",
234 "ComponentNetconfExecutor": {
238 "primary": "component-script"
241 "script-type": "jython",
242 "script-class-reference": "Scripts/python/NetconfRpcExample.py",
243 "instance-dependencies": [
255 "netconf-connection": {
256 "capability": "netconf",
257 "node": "sample-netconf-device",
258 "relationship": "tosca.relationships.ConnectsTo"
262 "hostname-template": {
263 "type": "artifact-template-velocity",
264 "file": "Templates/hostname-template.vtl"
266 "hostname-mapping": {
267 "type": "artifact-mapping-resource",
268 "file": "Definitions/hostname-mapping.json"
270 "component-script": {
271 "type": "artifact-script-jython",
272 "file": "Scripts/python/NetconfRpcExample.py"
276 "sample-netconf-device": {
277 "type": "vnf-netconf-device",
281 "login-key": "sample-key",
282 "login-account": "sample-account",
283 "target-ip-address": {
285 "resource-assignment",
292 "connection-time-out": 30
299 "resource-assignment": {
301 "resource-assignment-properties": {
303 "type": "dt-resource-assignment-properties"
307 "call-resource-assignment": {
308 "description": "Resource Assignment Workflow",
309 "target": "resource-assignment-process",
312 "call_operation": "CONFIG.ResourceAssignment"
338 "activate-process": {
339 "description": "Netconf Activation Workflow",
340 "target": "activate-process",
343 "call_operation": "CONFIG.ActivateProcess"
351 "assign-activate-properties": {
353 "type": "dt-assign-activate-properties"
357 "activate-process": {
358 "description": "Resource Assign and Netconf Activation Workflow",
359 "target": "assign-activate-process",
362 "call_operation": "CONFIG.AssignActivateProcess"