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"
36 "topology_template": {
56 "resource-assignment-process": {
62 "dg-resource-assignment-process"
65 "dependency-node-templates": [
70 "dg-resource-assignment-process": {
71 "type": "artifact-directed-graph",
72 "file": "Plans/CONFIG_ResourceAssignment_1.0.0.xml"
85 "dependency-node-templates": [
90 "dg-activate-process": {
91 "type": "artifact-directed-graph",
92 "file": "Plans/CONFIG_ActivateNetconf_1.0.0.xml"
96 "assign-activate-process": {
102 "dg-assign-activate-process"
105 "dependency-node-templates": [
106 "resource-assignment",
111 "dg-assign-activate-process": {
112 "type": "artifact-directed-graph",
113 "file": "Plans/CONFIG_AssignActivateNetconf_1.0.0.xml"
117 "resource-assignment": {
118 "type": "component-resource-resolution",
120 "ResourceResolutionComponent": {
125 "get_input": "action-name"
127 "resource-type": "vnf-type",
129 "get_input": "request-id"
132 "get_input": "hostname"
134 "artifact-prefix-names": [
139 "resource-assignment-params": {
152 "baseconfig-template": {
153 "type": "artifact-template-velocity",
154 "file": "Templates/baseconfig-template.vtl"
156 "baseconfig-mapping": {
157 "type": "artifact-mapping-resource",
158 "file": "Definitions/baseconfig-mapping.json"
162 "resource-assignment-py": {
163 "type": "component-resource-resolution",
165 "ResourceResolutionComponent": {
169 "primary": "component-script"
173 "get_input": "action-name"
177 "resource-assignment-params": "",
185 "component-script": {
186 "type": "artifact-script-jython",
187 "file": "Scripts/python/SamplePythonComponentNode.py"
192 "type": "component-jython-executor",
194 "ComponentJythonExecutor": {
198 "primary": "component-script"
201 "instance-dependencies": [
202 "json-parser-service"
214 "component-script": {
215 "type": "artifact-script-jython",
216 "file": "Scripts/python/SamplePythonComponentNode.py"
220 "activate-netconf": {
221 "type": "component-netconf-executor",
223 "ComponentNetconfExecutor": {
227 "primary": "component-script"
230 "script-type": "jython",
231 "script-class-reference": "Scripts/python/NetconfRpcExample.py",
232 "instance-dependencies": [
244 "netconf-connection": {
245 "capability": "netconf",
246 "node": "sample-netconf-device",
247 "relationship": "tosca.relationships.ConnectsTo"
251 "hostname-template": {
252 "type": "artifact-template-velocity",
253 "file": "Templates/hostname-template.vtl"
255 "hostname-mapping": {
256 "type": "artifact-mapping-resource",
257 "file": "Definitions/hostname-mapping.json"
259 "component-script": {
260 "type": "artifact-script-jython",
261 "file": "Scripts/python/NetconfRpcExample.py"
265 "sample-netconf-device": {
266 "type": "vnf-netconf-device",
270 "login-key": "sample-key",
271 "login-account": "sample-account",
272 "target-ip-address": {
274 "resource-assignment",
281 "connection-time-out": 30
288 "resource-assignment": {
290 "resource-assignment-properties": {
292 "type": "dt-resource-assignment-properties"
296 "call-resource-assignment": {
297 "description": "Resource Assignment Workflow",
298 "target": "resource-assignment-process",
301 "call_operation": "CONFIG.ResourceAssignment"
327 "activate-process": {
328 "description": "Netconf Activation Workflow",
329 "target": "activate-process",
332 "call_operation": "CONFIG.ActivateProcess"
340 "assign-activate-properties": {
342 "type": "dt-assign-activate-properties"
346 "activate-process": {
347 "description": "Resource Assign and Netconf Activation Workflow",
348 "target": "assign-activate-process",
351 "call_operation": "CONFIG.AssignActivateProcess"