3 "id": "b3e2f5b2.d1ec88",
7 "x": 108.33332824707031,
17 "id": "dab5982.c2d8368",
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": 183.61903381347656,
26 "y": 125.23811149597168,
27 "z": "836e826a.3ec22",
35 "id": "c935cee3.ef7d4",
37 "name": "method vf-module-topology-operation-activate",
38 "xml": "<method rpc='vf-module-topology-operation-activate' mode='sync'>\n",
41 "x": 221.76195526123047,
43 "z": "836e826a.3ec22",
51 "id": "5cec4e55.d222e",
53 "name": "vf-module-topology-operation-activate",
56 "x": 502.67818450927734,
57 "y": 32.58634376525879,
58 "z": "836e826a.3ec22",
62 "id": "f55136c4.7d1fa8",
64 "name": "switch request-action",
65 "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
68 "x": 511.85713958740234,
69 "y": 263.8571376800537,
70 "z": "836e826a.3ec22",
79 "id": "a5be9328.059ac",
81 "name": "CreateVfModuleInstance",
82 "xml": "<outcome value='CreateVfModuleInstance'>\n",
85 "x": 762.9047546386719,
86 "y": 241.0000238418579,
87 "z": "836e826a.3ec22",
95 "id": "268e67a.bb73198",
98 "xml": "<outcome value='Other'>\n",
101 "x": 706.5713996887207,
102 "y": 286.38101291656494,
103 "z": "836e826a.3ec22",
111 "id": "e97fb6eb.1f8fb8",
118 "x": 952.7619190216064,
119 "y": 241.00005531311035,
120 "z": "836e826a.3ec22",
126 "id": "9d82fd59.8a632",
127 "type": "returnFailure",
128 "name": "return failure",
129 "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=\"If svc-action is 'activate' then request-action must be 'CreateVfModuleInstance'\" />\n",
131 "x": 971.5714073181152,
132 "y": 286.71432542800903,
133 "z": "836e826a.3ec22",
137 "id": "c8f7adca.75964",
139 "name": "block : atomic",
140 "xml": "<block atomic=\"true\">",
143 "x": 153.3333282470703,
144 "y": 493.3332939147949,
145 "z": "836e826a.3ec22",
165 "id": "2c1ab3ca.482e0c",
166 "type": "switchNode",
167 "name": "switch service-data.vnfs.vnf_length",
168 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
171 "x": 556.6666564941406,
172 "y": 394.9999647140503,
173 "z": "836e826a.3ec22",
182 "id": "d78e72e2.ad098",
185 "xml": "<outcome value=''>\n",
188 "x": 797.3809280395508,
189 "y": 372.1427049636841,
190 "z": "836e826a.3ec22",
198 "id": "224b172.962d2e8",
201 "xml": "<outcome value='Other'>\n",
204 "x": 797.1427688598633,
205 "y": 413.09522342681885,
206 "z": "836e826a.3ec22",
214 "id": "d7ea4aa1.bfcb38",
215 "type": "returnFailure",
216 "name": "return failure",
217 "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=\"There are no VNFs defined in MD-SAL\" />\n",
219 "x": 964.0475425720215,
220 "y": 371.4284601211548,
221 "z": "836e826a.3ec22",
225 "id": "42ba44cf.9db11c",
227 "name": "for each vnf",
228 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
231 "x": 959.3809127807617,
232 "y": 412.7618417739868,
233 "z": "836e826a.3ec22",
241 "id": "7209f5e7.76dcfc",
242 "type": "switchNode",
243 "name": "switch service data vnf == input vnf",
244 "xml": "<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n",
247 "x": 1210.7141304016113,
248 "y": 412.42852878570557,
249 "z": "836e826a.3ec22",
257 "id": "42a9a01e.4621d",
258 "type": "outcomeTrue",
260 "xml": "<outcome value='true'>\n",
263 "x": 1440.7142219543457,
264 "y": 411.7618827819824,
265 "z": "836e826a.3ec22",
273 "id": "33462c4c.518eb4",
275 "name": "set vnf-index to -1",
276 "xml": "<set>\n<parameter name='vnf-index' value='-1' />\n",
278 "x": 500.7142562866211,
279 "y": 333.09513664245605,
280 "z": "836e826a.3ec22",
284 "id": "717cff05.1de83",
286 "name": "set vnf-index to idx",
287 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
290 "y": 382.7618408203125,
291 "z": "836e826a.3ec22",
295 "id": "979e92c5.d53fe",
296 "type": "switchNode",
297 "name": "switch vnf-index",
298 "xml": "<switch test='`$vnf-index`'>\n",
301 "x": 492.3809394836426,
302 "y": 459.76183891296387,
303 "z": "836e826a.3ec22",
311 "id": "4d87c876.5adff8",
314 "xml": "<outcome value='-1'>\n",
317 "x": 670.7143249511719,
318 "y": 459.09521484375,
319 "z": "836e826a.3ec22",
327 "id": "f087e977.afc1b8",
328 "type": "returnFailure",
329 "name": "return failure",
330 "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=\"`'Unable to find VNF ID ' + $vf-module-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'`\" />\n",
332 "x": 830.7142333984375,
333 "y": 458.4285182952881,
334 "z": "836e826a.3ec22",
338 "id": "cdb3bc66.5a0d1",
345 "x": 1589.0476837158203,
346 "y": 410.6815814971924,
347 "z": "836e826a.3ec22",
356 "id": "ee458420.1b46d8",
361 "x": 1724.047649383545,
362 "y": 432.3481674194336,
363 "z": "836e826a.3ec22",
367 "id": "aae32e5.23f3cd",
368 "type": "switchNode",
369 "name": "switch service-data...vf-module_length",
370 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
373 "x": 564.9999694824219,
374 "y": 558.3333358764648,
375 "z": "836e826a.3ec22",
384 "id": "9b945904.62b6c8",
387 "xml": "<outcome value=''>\n",
390 "x": 815.7142791748047,
391 "y": 537.1427392959595,
392 "z": "836e826a.3ec22",
400 "id": "9b02b5f9.8a49d8",
403 "xml": "<outcome value='Other'>\n",
406 "x": 815.4761199951172,
407 "y": 578.0952577590942,
408 "z": "836e826a.3ec22",
416 "id": "67892bd4.9c5464",
417 "type": "returnFailure",
418 "name": "return failure",
419 "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=\"`'There are no VF modules defined in MD-SAL for VNF ' + $vf-module-topology-operation-input.vnf-information.vnf-id`\" />\n",
421 "x": 982.3808937072754,
422 "y": 536.4284944534302,
423 "z": "836e826a.3ec22",
427 "id": "526cbef0.bed3f",
429 "name": "for each vf-module",
430 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
433 "x": 977.7142639160156,
434 "y": 577.7618761062622,
435 "z": "836e826a.3ec22",
443 "id": "4f0d7647.56b958",
444 "type": "switchNode",
445 "name": "switch service data vf-module == input vf-module",
446 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`'>\n",
449 "x": 1284.0474243164062,
450 "y": 577.4286117553711,
451 "z": "836e826a.3ec22",
459 "id": "44af7ab9.eed234",
460 "type": "outcomeTrue",
462 "xml": "<outcome value='true'>\n",
465 "x": 1554.047477722168,
466 "y": 575.0952167510986,
467 "z": "836e826a.3ec22",
475 "id": "ea5f4c6f.d1309",
477 "name": "set vf-module-index to -1",
478 "xml": "<set>\n<parameter name='vf-module-index' value='-1' />\n",
480 "x": 520.714241027832,
481 "y": 508.0951747894287,
482 "z": "836e826a.3ec22",
486 "id": "89c9c4bd.a873a8",
488 "name": "set vf-module-index to idx",
489 "xml": "<set>\n<parameter name='vf-module-index' value='`$idx`' />\n",
491 "x": 1884.0475692749023,
492 "y": 546.0951957702637,
493 "z": "836e826a.3ec22",
497 "id": "98ce7a09.d3e438",
498 "type": "switchNode",
499 "name": "switch vf-module-index",
500 "xml": "<switch test='`$vf-module-index`'>\n",
503 "x": 517.3809432983398,
504 "y": 626.4285945892334,
505 "z": "836e826a.3ec22",
513 "id": "b9c45c6b.a9187",
516 "xml": "<outcome value='-1'>\n",
519 "x": 695.7143287658691,
520 "y": 625.7619705200195,
521 "z": "836e826a.3ec22",
529 "id": "d59bf3a9.b26b2",
530 "type": "returnFailure",
531 "name": "return failure",
532 "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=\"`'Unable to find VF module ID ' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + ' in MD-SAL'`\" />\n",
534 "x": 855.7142372131348,
535 "y": 625.0952739715576,
536 "z": "836e826a.3ec22",
540 "id": "b035b372.13799",
547 "x": 1687.3810195922852,
548 "y": 574.0149564743042,
549 "z": "836e826a.3ec22",
558 "id": "520e0d13.8fb9c4",
563 "x": 1822.3809852600098,
564 "y": 595.6815423965454,
565 "z": "836e826a.3ec22",
569 "id": "41d0df4e.5c136",
571 "name": "set order-status to Created",
572 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'\n value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
574 "x": 535.0000610351562,
575 "y": 945.0000171661377,
576 "z": "836e826a.3ec22",
580 "id": "65dc8315.181b9c",
581 "type": "switchNode",
582 "name": "switch order-status",
583 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status`'>\n",
586 "x": 508.33329010009766,
587 "y": 695.6666564941406,
588 "z": "836e826a.3ec22",
597 "id": "6bec43cd.c6ce2c",
599 "name": "PendingCreate",
600 "xml": "<outcome value='PendingCreate'>\n",
603 "x": 720.0000343322754,
604 "y": 673.9999809265137,
605 "z": "836e826a.3ec22",
613 "id": "a5ffb8bd.544748",
616 "xml": "<outcome value='Other'>\n",
619 "x": 697.0000228881836,
620 "y": 719.380952835083,
621 "z": "836e826a.3ec22",
629 "id": "b627f4fa.590738",
636 "x": 874.8571701049805,
637 "y": 673.3333835601807,
638 "z": "836e826a.3ec22",
644 "id": "69bb9844.70fda8",
645 "type": "returnFailure",
646 "name": "return failure",
647 "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=\"`'Order status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status + ' instead of PendingCreate'`\" />\n",
649 "x": 894.3333206176758,
650 "y": 719.3810129165649,
651 "z": "836e826a.3ec22",
655 "id": "cb036b0b.8b11c8",
657 "name": "copy input data",
658 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.sdnc-request-header.'\n value='$vf-module-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.request-information.'\n value='$vf-module-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.'\n value='$vf-module-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.'\n value='$vf-module-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.'\n value='$vf-module-topology-operation-input.vf-module-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.'\n value='$vf-module-topology-operation-input.vf-module-request-input.' />\n\n",
661 "y": 896.6666622161865,
662 "z": "836e826a.3ec22",
666 "id": "78ecfd34.349dc4",
668 "name": "update vf-module to Active",
669 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vf-module\"\n key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"orchestration-status\" value=\"Active\" />\n",
672 "x": 533.3332672119141,
673 "y": 783.3332824707031,
674 "z": "836e826a.3ec22",
683 "id": "e2726395.5642b",
684 "type": "returnFailure",
685 "name": "return failure",
686 "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=\"`'No vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n",
688 "x": 930.0000267028809,
689 "y": 806.666651725769,
690 "z": "836e826a.3ec22",
694 "id": "c27006c0.c436d8",
697 "xml": "<outcome value='failure'>\n",
700 "x": 742.6905937194824,
701 "y": 763.6191215515137,
702 "z": "836e826a.3ec22",
710 "id": "912d9db6.973d9",
713 "xml": "<outcome value='not-found'>\n",
716 "x": 751.2620239257812,
717 "y": 807.9048347473145,
718 "z": "836e826a.3ec22",
726 "id": "463820fb.52f55",
727 "type": "returnFailure",
728 "name": "return failure",
729 "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=\"Error updating vf-module in AAI\" />\n",
731 "x": 932.6906204223633,
732 "y": 763.4288568496704,
733 "z": "836e826a.3ec22",
737 "id": "e0f8a4a9.becc18",
739 "name": "Update EIPAM_IP_ASSIGNMENTS to ACTIVE",
740 "xml": "<update resource='SQL' force='true' plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' \n key='UPDATE EIPAM_IP_ASSIGNMENTS SET status = \"ACTIVE\" WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id'>\n",
743 "x": 596.6666564941406,
744 "y": 853.333306312561,
745 "z": "836e826a.3ec22",
753 "id": "d47fe482.1f7428",
756 "xml": "<outcome value='failure'>\n",
759 "x": 863.3333282470703,
760 "y": 851.6666460037231,
761 "z": "836e826a.3ec22",
769 "id": "3aa8408e.a33f6",
770 "type": "returnFailure",
771 "name": "return failure",
772 "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=\"Error updating EIPAM_IP_ASSIGNMENTS table\" />\n",
774 "x": 1013.3333282470703,
775 "y": 849.9999589920044,
776 "z": "836e826a.3ec22",
780 "id": "c3cab201.2d1ef",
781 "type": "returnSuccess",
782 "name": "return success",
783 "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",
785 "x": 494.9999694824219,
786 "y": 993.3333129882812,
787 "z": "836e826a.3ec22",