2 "tosca_definitions_version" : "controller_blueprint_1_0_0",
4 "template_author" : "Raj Gumma",
5 "author-email" : "raj.gumma@est.tech",
6 "user-groups" : "ADMIN, OPERATION",
7 "template_name" : "PNF_CDS_RESTCONF",
8 "template_version" : "1.0.0",
9 "template_tags" : "PNF, Restconf, config, configuration, software upgrade"
12 "file" : "Definitions/data_types.json"
14 "file" : "Definitions/relationship_types.json"
16 "file" : "Definitions/artifact_types.json"
18 "file" : "Definitions/node_types.json"
20 "file" : "Definitions/policy_types.json"
23 "config-deploy-properties" : {
25 "get_input" : "resolution-key"
28 "precheck-properties" : {
30 "get_input" : "resolution-key"
33 "downloadNeSw-properties" : {
35 "get_input" : "resolution-key"
38 "activateNeSw-properties" : {
40 "get_input" : "resolution-key"
43 "postcheck-properties" : {
45 "get_input" : "resolution-key"
49 "topology_template" : {
53 "activate-process" : {
54 "description" : "Create a configlet",
55 "target" : "config-assign",
70 "config-assign-properties" : {
71 "description" : "Dynamic PropertyDefinition for workflow(config-assign).",
73 "type" : "dt-config-assign-properties"
79 "activate-process" : {
80 "description" : "Send a configlet to the pnf",
81 "target" : "config-deploy",
92 "config-deploy-properties" : {
93 "description" : "Dynamic PropertyDefinition for workflow(config-deploy).",
95 "type" : "dt-config-deploy-properties"
101 "activate-process" : {
102 "description" : "Check if pnf ready for sw upgrade",
103 "target" : "precheck",
105 "call_operation" : ""
114 "precheck-properties" : {
115 "description" : "Dynamic PropertyDefinition for precheck workflow(software-upgrade).",
117 "type" : "dt-precheck-properties"
123 "activate-process" : {
124 "description" : "Trigger download new software for sw upgrade",
125 "target" : "downloadNeSw",
127 "call_operation" : ""
136 "downloadNeSw-properties" : {
137 "description" : "Dynamic PropertyDefinition for downloadNeSw workflow(software-upgrade).",
139 "type" : "dt-downloadNeSw-properties"
145 "activate-process" : {
146 "description" : "Trigger activation of target software version for pnf upgrade",
147 "target" : "activateNeSw",
149 "call_operation" : ""
158 "activateNeSw-properties" : {
159 "description" : "Dynamic PropertyDefinition for activateNeSw workflow(software-upgrade).",
161 "type" : "dt-activateNeSw-properties"
167 "activate-process" : {
168 "description" : "Check if pnf upgrade is completed",
169 "target" : "postcheck",
171 "call_operation" : ""
180 "postcheck-properties" : {
181 "description" : "Dynamic PropertyDefinition for postcheck workflow(software-upgrade).",
183 "type" : "dt-postcheck-properties"
190 "type" : "component-resource-resolution",
192 "ResourceResolutionComponent" : {
197 "get_input" : "resolution-key"
199 "store-result" : true,
200 "artifact-prefix-names" : [ "config-assign" ]
203 "resource-assignment-params" : {
204 "get_attribute" : [ "SELF", "assignment-params" ]
213 "config-assign-template" : {
214 "type" : "artifact-template-velocity",
215 "file" : "Templates/config-assign-restconf-configlet-template.vtl"
217 "config-assign-mapping" : {
218 "type" : "artifact-mapping-resource",
219 "file" : "Definitions/config-assign-pnf-mapping.json"
224 "type" : "component-script-executor",
226 "ComponentScriptExecutor" : {
230 "primary" : "component-script",
232 "operation_host" : "SELF"
235 "script-type" : "kotlin",
236 "script-class-reference" : "cba.pnf.config.aai.RestconfConfigDeploy",
237 "dynamic-properties" : "*config-deploy-properties"
240 "response-data" : "",
248 "config-deploy-template" : {
249 "type" : "artifact-template-velocity",
250 "file" : "Templates/restconf-mount-template.vtl"
252 "config-deploy-mapping" : {
253 "type" : "artifact-mapping-resource",
254 "file" : "Definitions/config-deploy-pnf-mapping.json"
259 "type" : "component-script-executor",
261 "ComponentScriptExecutor" : {
265 "primary" : "component-script",
267 "operation_host" : "SELF"
270 "script-type" : "kotlin",
271 "script-class-reference" : "cba.pnf.swug.RestconfSoftwareUpgrade",
272 "dynamic-properties" : "*precheck-properties"
275 "response-data" : "",
283 "mount-node-template" : {
284 "type" : "artifact-template-velocity",
285 "file" : "Templates/restconf-mount-template.vtl"
287 "mount-node-mapping" : {
288 "type" : "artifact-mapping-resource",
289 "file" : "Definitions/pnf-software-upgrade-mapping.json"
294 "type" : "component-script-executor",
296 "ComponentScriptExecutor" : {
300 "primary" : "component-script",
302 "operation_host" : "SELF"
305 "script-type" : "kotlin",
306 "script-class-reference" : "cba.pnf.swug.RestconfSoftwareUpgrade",
307 "dynamic-properties" : "*downloadNeSw-properties"
310 "response-data" : "",
318 "mount-node-template" : {
319 "type" : "artifact-template-velocity",
320 "file" : "Templates/restconf-mount-template.vtl"
322 "mount-node-mapping" : {
323 "type" : "artifact-mapping-resource",
324 "file" : "Definitions/pnf-software-upgrade-mapping.json"
326 "configure-template" : {
327 "type" : "artifact-template-velocity",
328 "file" : "Templates/pnf-swug-config-template.vtl"
330 "configure-mapping" : {
331 "type" : "artifact-mapping-resource",
332 "file" : "Definitions/pnf-software-upgrade-mapping.json"
334 "download-ne-sw-template" : {
335 "type" : "artifact-template-velocity",
336 "file" : "Templates/pnf-swug-download-ne-sw-template.vtl"
338 "download-ne-sw-mapping" : {
339 "type" : "artifact-mapping-resource",
340 "file" : "Definitions/pnf-software-upgrade-mapping.json"
345 "type" : "component-script-executor",
347 "ComponentScriptExecutor" : {
351 "primary" : "component-script",
353 "operation_host" : "SELF"
356 "script-type" : "kotlin",
357 "script-class-reference" : "cba.pnf.swug.RestconfSoftwareUpgrade",
358 "dynamic-properties" : "*activateNeSw-properties"
361 "response-data" : "",
369 "mount-node-template" : {
370 "type" : "artifact-template-velocity",
371 "file" : "Templates/restconf-mount-template.vtl"
373 "mount-node-mapping" : {
374 "type" : "artifact-mapping-resource",
375 "file" : "Definitions/pnf-software-upgrade-mapping.json"
377 "configure-template" : {
378 "type" : "artifact-template-velocity",
379 "file" : "Templates/pnf-swug-config-template.vtl"
381 "configure-mapping" : {
382 "type" : "artifact-mapping-resource",
383 "file" : "Definitions/pnf-software-upgrade-mapping.json"
388 "type" : "component-script-executor",
390 "ComponentScriptExecutor" : {
394 "primary" : "component-script",
396 "operation_host" : "SELF"
399 "script-type" : "kotlin",
400 "script-class-reference" : "cba.pnf.swug.RestconfSoftwareUpgrade",
401 "dynamic-properties" : "*postcheck-properties"
404 "response-data" : "",
412 "mount-node-template" : {
413 "type" : "artifact-template-velocity",
414 "file" : "Templates/restconf-mount-template.vtl"
416 "mount-node-mapping" : {
417 "type" : "artifact-mapping-resource",
418 "file" : "Definitions/pnf-software-upgrade-mapping.json"