3 "id": "8213d9f3.3e3b78",
7 "x": 134.01040649414062,
8 "y": 78.01041412353516,
9 "z": "68309cb5.9fbe94",
17 "id": "3fd007b3.454158",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
23 "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
25 "x": 209.29611206054688,
26 "y": 118.24852561950684,
27 "z": "68309cb5.9fbe94",
35 "id": "f3d8ce84.4fd8",
37 "name": "method site-vnf-topology-operation-activate",
38 "xml": "<method rpc='site-vnf-topology-operation-activate' mode='sync'>\n",
41 "x": 230.43902587890625,
42 "y": 208.01041412353516,
43 "z": "68309cb5.9fbe94",
51 "id": "931047c0.e29ba8",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 210.67707061767578,
58 "y": 379.67708587646484,
59 "z": "68309cb5.9fbe94",
76 "id": "87b79277.d3a8",
78 "name": "for loop i - VNF input parameters",
79 "xml": "<for index='idx' start='0' end='`$ctx.vnf-data.vnf-request-input.vnf-input-parameters.param_length`' >\n",
82 "x": 663.1151428222656,
83 "y": 267.0782470703125,
84 "z": "68309cb5.9fbe94",
92 "id": "73aa520a.b2adbc",
99 "x": 909.893337726593,
100 "y": 267.6338765351102,
101 "z": "68309cb5.9fbe94",
114 "id": "ac680e81.777c9",
115 "type": "switchNode",
116 "name": "switch name",
117 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
120 "x": 1115.1152267456055,
121 "y": 222.63385391235352,
122 "z": "68309cb5.9fbe94",
130 "id": "f0bc6f88.f42a7",
131 "type": "outcomeTrue",
133 "xml": "<outcome value='true'>\n",
136 "x": 1302.1152267456055,
137 "y": 218.63385391235352,
138 "z": "68309cb5.9fbe94",
146 "id": "a80ac0f1.029e7",
149 "xml": "<set>\n<parameter name='prop.site.name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
151 "x": 1470.1152267456055,
152 "y": 219.23386001586914,
153 "z": "68309cb5.9fbe94",
159 "id": "27ece0ee.53311",
160 "type": "switchNode",
161 "name": "switch description",
162 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'description'`\">\n",
165 "x": 1132.9549446105957,
166 "y": 265.63384914398193,
167 "z": "68309cb5.9fbe94",
175 "id": "3c96f97e.2329d6",
176 "type": "outcomeTrue",
178 "xml": "<outcome value='true'>\n",
181 "x": 1319.9549446105957,
182 "y": 261.63384914398193,
183 "z": "68309cb5.9fbe94",
191 "id": "38a8969d.eda21a",
193 "name": "set description",
194 "xml": "<set>\n<parameter name='prop.site.description' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
196 "x": 1481.2884254455566,
197 "y": 261.09500885009766,
198 "z": "68309cb5.9fbe94",
204 "id": "2e9d64a5.63180c",
205 "type": "switchNode",
206 "name": "switch location",
207 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'location'`\">\n",
210 "x": 1123.04105758667,
211 "y": 308.0411911010742,
212 "z": "68309cb5.9fbe94",
220 "id": "4384d4ab.76bf6c",
221 "type": "outcomeTrue",
223 "xml": "<outcome value='true'>\n",
226 "x": 1310.04105758667,
227 "y": 304.0411911010742,
228 "z": "68309cb5.9fbe94",
236 "id": "3079a852.4cd8f8",
238 "name": "set location",
239 "xml": "<set>\n<parameter name='prop.site.location' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
241 "x": 1478.04105758667,
242 "y": 304.64119720458984,
243 "z": "68309cb5.9fbe94",
249 "id": "ad341ac7.a856e8",
250 "type": "switchNode",
252 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'id'`\">\n",
255 "x": 1113.0103759765625,
256 "y": 176.607177734375,
257 "z": "68309cb5.9fbe94",
265 "id": "653e71ed.565a9",
266 "type": "outcomeTrue",
268 "xml": "<outcome value='true'>\n",
271 "x": 1300.0103759765625,
272 "y": 172.607177734375,
273 "z": "68309cb5.9fbe94",
281 "id": "2466a0b0.31d85",
284 "xml": "<set>\n<parameter name='prop.site.id' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
286 "x": 1468.0103759765625,
287 "y": 173.20718383789062,
288 "z": "68309cb5.9fbe94",
294 "id": "43160102.ca0c8",
295 "type": "switchNode",
296 "name": "switch type",
297 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n",
300 "x": 1122.0103759765625,
301 "y": 351.60717010498047,
302 "z": "68309cb5.9fbe94",
310 "id": "5f80b289.c102cc",
311 "type": "outcomeTrue",
313 "xml": "<outcome value='true'>\n",
316 "x": 1309.0103759765625,
317 "y": 347.60717010498047,
318 "z": "68309cb5.9fbe94",
326 "id": "123b0821.89fa08",
328 "name": "set type & sdwan.site",
329 "xml": "<set>\n<parameter name='prop.site.type' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='tmp.sdwan.site' value='true' />",
331 "x": 1507.0103759765625,
332 "y": 347.2071838378906,
333 "z": "68309cb5.9fbe94",
339 "id": "8a88d2d2.3cbb4",
340 "type": "switchNode",
341 "name": "switch role",
342 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
345 "x": 1125.0103759765625,
346 "y": 394.60717010498047,
347 "z": "68309cb5.9fbe94",
355 "id": "dbc514.9b453af",
356 "type": "outcomeTrue",
358 "xml": "<outcome value='true'>\n",
361 "x": 1312.0103759765625,
362 "y": 390.60717010498047,
363 "z": "68309cb5.9fbe94",
371 "id": "78dc31fa.1149c",
373 "name": "set role & sdwan.site",
374 "xml": "<set>\n<parameter name='prop.site.role' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='tmp.sdwan.site' value='true' />\n",
376 "x": 1520.0103759765625,
377 "y": 390.2071838378906,
378 "z": "68309cb5.9fbe94",
384 "id": "443f31de.8f2cf",
385 "type": "switchNode",
386 "name": "switch service-data.vnfs.vnf_length",
387 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
392 "z": "68309cb5.9fbe94",
402 "id": "d2748c44.5140a",
405 "xml": "<outcome value=''>\n",
409 "y": 62.00006103515625,
410 "z": "68309cb5.9fbe94",
418 "id": "910f30c.abfcad",
419 "type": "returnFailure",
420 "name": "return failure",
421 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
423 "x": 1302.7774658203125,
424 "y": 37.889007568359375,
425 "z": "68309cb5.9fbe94",
431 "id": "132b0e47.fe6172",
434 "xml": "<outcome value='Other'>\n",
437 "x": 996.0003662109375,
438 "y": 116.00007629394531,
439 "z": "68309cb5.9fbe94",
447 "id": "2df38444.65759c",
449 "name": "block : atomic",
450 "xml": "<block atomic=\"true\">",
453 "x": 1167.2698974609375,
454 "y": 99.55461120605469,
455 "z": "68309cb5.9fbe94",
464 "id": "1580b603.a7115a",
466 "name": "for vidx..service-data.vnfs.vnf_length[]",
467 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
470 "x": 1465.285888671875,
471 "y": 80.42861938476562,
472 "z": "68309cb5.9fbe94",
480 "id": "2393097b.207106",
481 "type": "switchNode",
482 "name": "switch tmp.vidx ",
483 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
486 "x": 1386.5872802734375,
487 "y": 123.41180419921875,
488 "z": "68309cb5.9fbe94",
496 "id": "dd032095.3aded",
499 "xml": "<outcome value=''>\n",
502 "x": 1587.015869140625,
503 "y": 128.98321533203125,
504 "z": "68309cb5.9fbe94",
512 "id": "d610b844.0652c8",
513 "type": "switchNode",
514 "name": "switch vnfid found",
515 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
518 "x": 1775.7144775390625,
520 "z": "68309cb5.9fbe94",
528 "id": "40072c93.943294",
529 "type": "returnFailure",
530 "name": "return failure",
531 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
533 "x": 1758.4443359375,
534 "y": 129.12606811523438,
535 "z": "68309cb5.9fbe94",
541 "id": "fc26d8de.94b0a8",
542 "type": "outcomeTrue",
544 "xml": "<outcome value='true'>\n",
547 "x": 1981.666748046875,
548 "y": 77.57144165039062,
549 "z": "68309cb5.9fbe94",
557 "id": "7149eeb8.6b351",
559 "name": "set tmp.vidx and ctx.vnf-data",
560 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
562 "x": 2220.198486328125,
563 "y": 73.32144165039062,
564 "z": "68309cb5.9fbe94",
570 "id": "6c7ae40f.24628c",
573 "xml": "<outcome value='0'>\n",
578 "z": "68309cb5.9fbe94",
586 "id": "cdf59db6.a5688",
588 "name": "TODO: Check validation",
593 "z": "68309cb5.9fbe94",
599 "id": "e48e518f.1dc2a",
600 "type": "returnSuccess",
601 "name": "return success",
602 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
604 "x": 606.3436889648438,
606 "z": "68309cb5.9fbe94",
612 "id": "4a014615.6e9cf8",
614 "name": "set vnf-level-oper-status to Active",
615 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
617 "x": 662.8237915039062,
618 "y": 543.680908203125,
619 "z": "68309cb5.9fbe94",
625 "id": "bf95d9ae.8087f8",
627 "name": "copy input data to service data",
628 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n\n",
630 "x": 652.6769409179688,
631 "y": 502.6771240234375,
632 "z": "68309cb5.9fbe94",
638 "id": "c850e5af.e42fa8",
640 "name": "update siteInstance configuration in AAI",
641 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf' \n key='generic-vnf.vnf-id = $prop.vnf-index' >\n<parameter name='vnf-id' value='`$prop.vnf-index`' />\n<parameter name='in-maint' value='true' />\n<parameter name='is-closed-loop-disabled' value='false' />\n<parameter name='orchestration-status' value='Active' />\n<parameter name='operational-status' value='Active' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />\n",
644 "x": 683.0104370117188,
645 "y": 627.5659790039062,
646 "z": "68309cb5.9fbe94",
654 "id": "b4c6f1a.73d561",
656 "name": "save service relationship in AAI",
657 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" />",
660 "x": 654.0104370117188,
662 "z": "68309cb5.9fbe94",
670 "id": "d7008318.12e1b",
672 "name": "set vnf-index and vnf-object-path",
673 "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />",
675 "x": 659.5104370117188,
677 "z": "68309cb5.9fbe94",
683 "id": "2b37bcac.68f084",
684 "type": "switchNode",
685 "name": "switch sdwan.site",
686 "xml": "<switch test=\"`$tmp.sdwan.site`\">\n",
691 "z": "68309cb5.9fbe94",
700 "id": "3993fb6.79aca04",
702 "name": "set sdwan.site",
703 "xml": "<set>\n<parameter name='tmp.sdwan.site' value='false' />\n",
707 "z": "68309cb5.9fbe94",
713 "id": "27d5839b.ac9ebc",
714 "type": "outcomeTrue",
716 "xml": "<outcome value='true'>\n",
721 "z": "68309cb5.9fbe94",
729 "id": "a9004d13.a7ec4",
730 "type": "outcomeTrue",
732 "xml": "<outcome value='false'>\n",
735 "x": 794.8887939453125,
736 "y": 361.00006103515625,
737 "z": "68309cb5.9fbe94",
745 "id": "289c3fbe.f462",
754 "z": "68309cb5.9fbe94",
762 "id": "1ed61d3a.a1c323",
764 "name": "block : atomic",
765 "xml": "<block atomic=\"true\">",
770 "z": "68309cb5.9fbe94",
778 "id": "ce5d0a29.098d18",
780 "name": "TODO: SDWAN implementation for site",
785 "z": "68309cb5.9fbe94",
791 "id": "ba135787.4aba08",
793 "name": "Site and role will be used to identify SDWAN service",
798 "z": "68309cb5.9fbe94",
804 "id": "c30ca451.c8aa78",
811 "z": "68309cb5.9fbe94",