3 "id": "29fa8678.95f9ca",
9 "z": "af5ae803.904aa8",
17 "id": "d48a6f16.dbc94",
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": 206.28570556640625,
26 "y": 158.23811149597168,
27 "z": "af5ae803.904aa8",
35 "id": "7ed81cb7.0a51d4",
37 "name": "method site-vnf-topology-operation-deactivate",
38 "xml": "<method rpc='site-vnf-topology-operation-deactivate' mode='sync'>\n",
41 "x": 227.42861938476562,
43 "z": "af5ae803.904aa8",
51 "id": "aa23d49.327ed28",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 207.66666412353516,
58 "y": 419.6666717529297,
59 "z": "af5ae803.904aa8",
76 "id": "9bb8f3a8.802f5",
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": 660.104736328125,
83 "y": 307.06783294677734,
84 "z": "af5ae803.904aa8",
92 "id": "a5175fe3.e03a",
99 "x": 906.8829312324524,
100 "y": 307.623462411575,
101 "z": "af5ae803.904aa8",
114 "id": "a25f1f5b.132b7",
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": 1112.1048202514648,
121 "y": 262.62343978881836,
122 "z": "af5ae803.904aa8",
130 "id": "e1ea29c6.845788",
131 "type": "outcomeTrue",
133 "xml": "<outcome value='true'>\n",
136 "x": 1299.1048202514648,
137 "y": 258.62343978881836,
138 "z": "af5ae803.904aa8",
146 "id": "cda20cf5.41ce9",
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": 1467.1048202514648,
152 "y": 259.223445892334,
153 "z": "af5ae803.904aa8",
159 "id": "617dd8fe.aa7948",
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": 1129.944538116455,
166 "y": 305.6234350204468,
167 "z": "af5ae803.904aa8",
175 "id": "9accb009.2112d",
176 "type": "outcomeTrue",
178 "xml": "<outcome value='true'>\n",
181 "x": 1316.944538116455,
182 "y": 301.6234350204468,
183 "z": "af5ae803.904aa8",
191 "id": "8ca9a7db.ec8f18",
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": 1478.278018951416,
197 "y": 301.0845947265625,
198 "z": "af5ae803.904aa8",
204 "id": "15ed8251.27c1ce",
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": 1120.0306510925293,
211 "y": 348.03077697753906,
212 "z": "af5ae803.904aa8",
220 "id": "8dc32f9.9a097d",
221 "type": "outcomeTrue",
223 "xml": "<outcome value='true'>\n",
226 "x": 1307.0306510925293,
227 "y": 344.03077697753906,
228 "z": "af5ae803.904aa8",
236 "id": "c9cae02e.83783",
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": 1475.0306510925293,
242 "y": 344.6307830810547,
243 "z": "af5ae803.904aa8",
249 "id": "984a8326.9a457",
250 "type": "switchNode",
252 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'id'`\">\n",
255 "x": 1109.9999694824219,
256 "y": 216.59676361083984,
257 "z": "af5ae803.904aa8",
265 "id": "96a74444.b53228",
266 "type": "outcomeTrue",
268 "xml": "<outcome value='true'>\n",
271 "x": 1296.9999694824219,
272 "y": 212.59676361083984,
273 "z": "af5ae803.904aa8",
281 "id": "df6964b4.228f78",
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": 1464.9999694824219,
287 "y": 213.19676971435547,
288 "z": "af5ae803.904aa8",
294 "id": "ff594d8d.7aa95",
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": 1118.9999694824219,
301 "y": 391.5967559814453,
302 "z": "af5ae803.904aa8",
310 "id": "343eddcc.c79502",
311 "type": "outcomeTrue",
313 "xml": "<outcome value='true'>\n",
316 "x": 1305.9999694824219,
317 "y": 387.5967559814453,
318 "z": "af5ae803.904aa8",
326 "id": "c923d4d2.c53e48",
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": 1473.9999694824219,
332 "y": 388.19676208496094,
333 "z": "af5ae803.904aa8",
339 "id": "20f2971f.ecec88",
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": 1121.9999694824219,
346 "y": 434.5967559814453,
347 "z": "af5ae803.904aa8",
355 "id": "4a74022c.fbbfdc",
356 "type": "outcomeTrue",
358 "xml": "<outcome value='true'>\n",
361 "x": 1308.9999694824219,
362 "y": 430.5967559814453,
363 "z": "af5ae803.904aa8",
371 "id": "ed0bb784.6f5f28",
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": 1516.9999694824219,
377 "y": 430.19676971435547,
378 "z": "af5ae803.904aa8",
384 "id": "15d3779a.2c8a88",
385 "type": "switchNode",
386 "name": "switch service-data.vnfs.vnf_length",
387 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
390 "x": 667.9895935058594,
391 "y": 108.98958587646484,
392 "z": "af5ae803.904aa8",
402 "id": "ce757eba.3051d",
405 "xml": "<outcome value=''>\n",
408 "x": 1080.9895935058594,
409 "y": 101.9896469116211,
410 "z": "af5ae803.904aa8",
418 "id": "3a71c6fc.a403ea",
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": 1299.7670593261719,
424 "y": 77.87859344482422,
425 "z": "af5ae803.904aa8",
431 "id": "317e6180.be733e",
434 "xml": "<outcome value='Other'>\n",
437 "x": 992.9899597167969,
438 "y": 155.98966217041016,
439 "z": "af5ae803.904aa8",
447 "id": "6231a17a.01c0e",
449 "name": "block : atomic",
450 "xml": "<block atomic=\"true\">",
453 "x": 1164.2594909667969,
454 "y": 139.54419708251953,
455 "z": "af5ae803.904aa8",
464 "id": "b34aef0c.acf71",
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": 1462.2754821777344,
471 "y": 120.41820526123047,
472 "z": "af5ae803.904aa8",
480 "id": "8f0f5852.1fb888",
481 "type": "switchNode",
482 "name": "switch tmp.vidx ",
483 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
486 "x": 1383.5768737792969,
487 "y": 163.4013900756836,
488 "z": "af5ae803.904aa8",
496 "id": "790650c4.ec7c",
499 "xml": "<outcome value=''>\n",
502 "x": 1584.0054626464844,
503 "y": 168.9728012084961,
504 "z": "af5ae803.904aa8",
512 "id": "dbdd8064.8b575",
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": 1772.7040710449219,
519 "y": 118.66829681396484,
520 "z": "af5ae803.904aa8",
528 "id": "3c6f340.b39b3cc",
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": 1755.4339294433594,
534 "y": 169.11565399169922,
535 "z": "af5ae803.904aa8",
541 "id": "442b99c7.862238",
542 "type": "outcomeTrue",
544 "xml": "<outcome value='true'>\n",
547 "x": 1978.6563415527344,
548 "y": 117.56102752685547,
549 "z": "af5ae803.904aa8",
557 "id": "9a4c2f33.323f8",
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": 2217.1880798339844,
563 "y": 113.31102752685547,
564 "z": "af5ae803.904aa8",
570 "id": "355929c1.e3c516",
573 "xml": "<outcome value='0'>\n",
576 "x": 1074.9583435058594,
577 "y": 65.95833587646484,
578 "z": "af5ae803.904aa8",
586 "id": "28632f1f.75eb4",
588 "name": "TODO: Check validation",
591 "x": 624.9895935058594,
592 "y": 60.989585876464844,
593 "z": "af5ae803.904aa8",
599 "id": "9540c63d.a06978",
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": 603.3332824707031,
605 "y": 757.3333358764648,
606 "z": "af5ae803.904aa8",
612 "id": "78df0c0e.576094",
614 "name": "set vnf-level-oper-status to PendingDelete",
615 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\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": 682.8133850097656,
618 "y": 585.6704711914062,
619 "z": "af5ae803.904aa8",
625 "id": "99b35972.99c3a8",
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": 649.6665344238281,
631 "y": 542.6667098999023,
632 "z": "af5ae803.904aa8",
638 "id": "61eb6b8d.7cad14",
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='PendingDelete' />\n<parameter name='operational-status' value='PendingDelete' />\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",
645 "y": 665.5556030273438,
646 "z": "af5ae803.904aa8",
654 "id": "4080214.adfeae",
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": 651.0000305175781,
661 "y": 708.3333358764648,
662 "z": "af5ae803.904aa8",
670 "id": "6f647857.5c6b48",
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": 656.5000305175781,
676 "y": 625.3333358764648,
677 "z": "af5ae803.904aa8",
683 "id": "1364166a.1d494a",
684 "type": "switchNode",
685 "name": "switch sdwan.site",
686 "xml": "<switch test=\"`$tmp.sdwan.site`\">\n",
689 "x": 611.9895935058594,
690 "y": 387.98958587646484,
691 "z": "af5ae803.904aa8",
700 "id": "4302e938.be3ef8",
702 "name": "set sdwan.site",
703 "xml": "<set>\n<parameter name='tmp.sdwan.site' value='false' />\n",
705 "x": 602.9895935058594,
706 "y": 256.98958587646484,
707 "z": "af5ae803.904aa8",
713 "id": "c3598024.ef229",
714 "type": "outcomeTrue",
716 "xml": "<outcome value='true'>\n",
719 "x": 747.9895935058594,
720 "y": 480.98958587646484,
721 "z": "af5ae803.904aa8",
729 "id": "2e02ce5b.120d72",
730 "type": "outcomeTrue",
732 "xml": "<outcome value='false'>\n",
735 "x": 791.8783874511719,
736 "y": 400.9896469116211,
737 "z": "af5ae803.904aa8",
745 "id": "ad672f8e.2adcd",
752 "x": 930.9895935058594,
753 "y": 400.98958587646484,
754 "z": "af5ae803.904aa8",
762 "id": "38d8d2a8.f58c0e",
764 "name": "block : atomic",
765 "xml": "<block atomic=\"true\">",
768 "x": 909.9895935058594,
769 "y": 479.98958587646484,
770 "z": "af5ae803.904aa8",
778 "id": "d9bbd64d.c1dfa8",
780 "name": "TODO: SDWAN implementation for site",
783 "x": 1067.9895935058594,
784 "y": 521.9895858764648,
785 "z": "af5ae803.904aa8",
791 "id": "dfb2bb0b.f25f38",
798 "z": "af5ae803.904aa8",