3 "id": "72ace04a.7be558",
9 "z": "8e64cd0a.c97ea8",
17 "id": "4683e336.13fbec",
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}'>",
27 "z": "8e64cd0a.c97ea8",
35 "id": "1e499485.148aab",
37 "name": "self-serve-generate-name-changeassign",
38 "xml": "<method rpc='self-serve-generate-name-changeassign' mode='sync'>\n",
43 "z": "8e64cd0a.c97ea8",
51 "id": "fce9c766.afb09",
53 "name": "block atomic",
54 "xml": "<block atomic=\"true\">\n",
60 "z": "8e64cd0a.c97ea8",
70 "id": "a1151215.a41af8",
73 "xml": "<switch test='`$ss.capability-type`'>\n\n",
77 "y": 457.86114501953125,
78 "z": "8e64cd0a.c97ea8",
89 "id": "2d8e8b63.2be73c",
92 "xml": "<outcome value='vnf'>\n",
97 "z": "8e64cd0a.c97ea8",
105 "id": "8641945a.85d85",
108 "xml": "<outcome value='vf-module'>\n",
111 "x": 570.1944580078125,
112 "y": 1370.527587890625,
113 "z": "8e64cd0a.c97ea8",
121 "id": "87d6f1d6.fde57",
124 "xml": "<outcome value='Other'>\n",
127 "x": 540.861083984375,
128 "y": 2097.3056030273438,
129 "z": "8e64cd0a.c97ea8",
137 "id": "b49433f5.4f0a18",
140 "xml": "<outcome value=''>",
143 "x": 543.861083984375,
144 "y": 2167.3056030273438,
145 "z": "8e64cd0a.c97ea8",
153 "id": "440694ff.4f3a6c",
154 "type": "returnFailure",
155 "name": "return failure",
156 "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=\"capability-type is not vnf or vf-module\" />\n",
158 "x": 728.861083984375,
159 "y": 2127.3056030273438,
160 "z": "8e64cd0a.c97ea8",
164 "id": "96c99a94.2dd13",
165 "type": "switchNode",
167 "xml": "<switch test='`$ss.input.param.index`'>\n\n",
172 "z": "8e64cd0a.c97ea8",
180 "id": "d2f322ed.7ab698",
181 "type": "switchNode",
183 "xml": "<switch test='`$ss.service-data.param.index`'>\n\n",
188 "z": "8e64cd0a.c97ea8",
196 "id": "a6eb425f.b8bdd",
199 "xml": "<outcome value=''>",
204 "z": "8e64cd0a.c97ea8",
212 "id": "4bd1595c.013718",
215 "xml": "<outcome value=''>",
220 "z": "8e64cd0a.c97ea8",
228 "id": "150b73ba.cd1f84",
229 "type": "returnFailure",
230 "name": "return failure",
231 "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=\"ss.input.param.index is null\" />\n",
235 "z": "8e64cd0a.c97ea8",
239 "id": "2339ed70.e452d2",
240 "type": "returnFailure",
241 "name": "return failure",
242 "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=\"ss.service-data.param.index is null\" />\n",
246 "z": "8e64cd0a.c97ea8",
250 "id": "fa65e5dc.08b3d8",
252 "name": "execute NameGenerationNode-changeassign",
253 "xml": "<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n <parameter name='payload' value='`$tmp.vnf.changeassign.naming-data-payload`' />\n <parameter name=\"prifix\" value=\"vnf.changeassign.nameGenResponse\" />\n",
258 "z": "8e64cd0a.c97ea8",
267 "id": "2e29dd23.0f7632",
270 "xml": "<outcome value='failure'>\n",
275 "z": "8e64cd0a.c97ea8",
283 "id": "268c5fb8.e45f3",
286 "xml": "<outcome value='not-found'>\n",
291 "z": "8e64cd0a.c97ea8",
299 "id": "a64477a3.5d098",
301 "name": "block : atomic",
302 "xml": "<block atomic='true'>",
308 "z": "8e64cd0a.c97ea8",
317 "id": "735acfc0.69263",
319 "name": "set status as FAILED",
320 "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
324 "z": "8e64cd0a.c97ea8",
328 "id": "9f441bcd.48c91",
329 "type": "returnFailure",
330 "name": "return failure",
331 "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 from NameGenerationNode ChangeAssign vnf ' + $error-message`\" />\n",
335 "z": "8e64cd0a.c97ea8",
339 "id": "8257892.ab90ef8",
341 "name": "block : atomic",
342 "xml": "<block atomic='true'>",
348 "z": "8e64cd0a.c97ea8",
361 "id": "53e3c0e3.64d5d8",
363 "name": "for service-data.vnf-parameters-data.param index i",
364 "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key_length`' >",
369 "z": "8e64cd0a.c97ea8",
377 "id": "67ae549.369122c",
378 "type": "switchNode",
380 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].name`'>\n\n",
385 "z": "8e64cd0a.c97ea8",
393 "id": "408a6d52.bca67c",
395 "name": "external-key",
396 "xml": "<outcome value='external-key'>\n",
401 "z": "8e64cd0a.c97ea8",
409 "id": "9801ba33.1a3de",
411 "name": "set tmp.external-key.value",
412 "xml": "<set>\n<parameter name='tmp.external-key.value' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].value`' />\n",
416 "z": "8e64cd0a.c97ea8",
420 "id": "1f68cda.b8d8b32",
422 "name": "set payload data",
423 "xml": "<set>\n<parameter name=\"tmp.vnf.changeassign.naming-data-payload\" value=\"`'{"elements":[{' + '"resource-name":"' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].name + '","resource-value":"' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].value + '","external-key":"' + $tmp.external-key.value + '"}]'`\"/>",
427 "z": "8e64cd0a.c97ea8",
431 "id": "50624aa7.268ebc",
432 "type": "switchNode",
434 "xml": "<switch test='`$tmp.external-key.value`'>\n\n",
439 "z": "8e64cd0a.c97ea8",
447 "id": "c1a7e7c7.bb67c",
450 "xml": "<outcome value=''>",
455 "z": "8e64cd0a.c97ea8",
463 "id": "17d289d6.1a9e5e",
464 "type": "returnFailure",
465 "name": "return failure",
466 "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=\"self-service-generate-name-changeassign error : external-key is null for vnf\" />\n",
470 "z": "8e64cd0a.c97ea8",
474 "id": "420ba6ad.26a838",
476 "name": "execute NameGenerationNode-changeassign",
477 "xml": "<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n <parameter name='payload' value='`$tmp.vf-module.changeassign.naming-data-payload`' />\n <parameter name=\"prifix\" value=\"vf-module.changeassign.nameGenResponse\" />\n",
480 "x": 900.1944580078125,
481 "y": 1686.527587890625,
482 "z": "8e64cd0a.c97ea8",
491 "id": "40004b3f.e2bedc",
494 "xml": "<outcome value='failure'>\n",
497 "x": 1137.1944580078125,
498 "y": 1640.527587890625,
499 "z": "8e64cd0a.c97ea8",
507 "id": "a93541ba.8e68b8",
510 "xml": "<outcome value='not-found'>\n",
513 "x": 1143.1944580078125,
514 "y": 1740.527587890625,
515 "z": "8e64cd0a.c97ea8",
523 "id": "89d30d0a.86861",
525 "name": "block : atomic",
526 "xml": "<block atomic='true'>",
530 "x": 1290.1944580078125,
531 "y": 1682.527587890625,
532 "z": "8e64cd0a.c97ea8",
541 "id": "fc409ea5.e85ae",
543 "name": "set status as FAILED",
544 "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-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
546 "x": 1499.1944580078125,
547 "y": 1631.527587890625,
548 "z": "8e64cd0a.c97ea8",
552 "id": "e3c25f44.0cb21",
553 "type": "returnFailure",
554 "name": "return failure",
555 "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 from NameGenerationNode ChangeAssign vf-module ' + $error-message`\" />\n",
557 "x": 1485.1944580078125,
558 "y": 1740.527587890625,
559 "z": "8e64cd0a.c97ea8",
563 "id": "3b7a5a5b.0869d6",
565 "name": "block : atomic",
566 "xml": "<block atomic='true'>",
570 "x": 779.1944580078125,
571 "y": 1371.527587890625,
572 "z": "8e64cd0a.c97ea8",
585 "id": "2cccc824.ad2a78",
587 "name": "for service-data.vnf-parameters-data.param index i",
588 "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key_length`' >",
591 "x": 947.1944580078125,
592 "y": 1434.527587890625,
593 "z": "8e64cd0a.c97ea8",
601 "id": "5e430810.e35d5",
602 "type": "switchNode",
604 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].name`'>\n\n",
607 "x": 1101.1944580078125,
608 "y": 1496.527587890625,
609 "z": "8e64cd0a.c97ea8",
617 "id": "1cd2631e.5000ad",
619 "name": "external-key",
620 "xml": "<outcome value='external-key'>\n",
623 "x": 1287.1944580078125,
624 "y": 1496.527587890625,
625 "z": "8e64cd0a.c97ea8",
633 "id": "b5e021a4.2b14",
635 "name": "set tmp.external-key.value",
636 "xml": "<set>\n<parameter name='tmp.external-key.value' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].value`' />\n",
638 "x": 1519.1944580078125,
639 "y": 1496.527587890625,
640 "z": "8e64cd0a.c97ea8",
644 "id": "2c11cde8.d352fa",
646 "name": "set payload data",
647 "xml": "<set>\n<parameter name=\"tmp.vf-module.changeassign.naming-data-payload\" value=\"`'{"elements":[{' + '"resource-name":"' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].name + '","resource-value":"' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value + '","external-key":"' + $tmp.external-key.value + '"}]'`\"/>",
649 "x": 836.1944580078125,
650 "y": 1620.527587890625,
651 "z": "8e64cd0a.c97ea8",
655 "id": "231cd5d7.8b6a1a",
656 "type": "switchNode",
658 "xml": "<switch test='`$tmp.external-key.value`'>\n\n",
661 "x": 807.1944580078125,
662 "y": 1563.527587890625,
663 "z": "8e64cd0a.c97ea8",
671 "id": "c92f1042.b4f728",
674 "xml": "<outcome value=''>",
677 "x": 960.1944580078125,
678 "y": 1562.527587890625,
679 "z": "8e64cd0a.c97ea8",
687 "id": "928dfda3.a334e",
688 "type": "returnFailure",
689 "name": "return failure",
690 "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=\"self-service-generate-name-changeassign error : external-key is null for vf-module\" />\n",
692 "x": 1121.1944580078125,
693 "y": 1562.527587890625,
694 "z": "8e64cd0a.c97ea8",
698 "id": "e9758b29.f137c8",
701 "xml": "<outcome value='failure'>\n",
704 "x": 893.7499389648438,
705 "y": 956.6388549804688,
706 "z": "8e64cd0a.c97ea8",
714 "id": "866c1fb3.eb77a",
716 "name": "block : atomic",
717 "xml": "<block atomic='true'>",
721 "x": 1059.3056640625,
722 "y": 1001.1944427490234,
723 "z": "8e64cd0a.c97ea8",
732 "id": "e7f01e3.2acaae",
734 "name": "set status as FAILED",
735 "xml": "<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
739 "z": "8e64cd0a.c97ea8",
743 "id": "712546c8.9b5af",
744 "type": "returnFailure",
745 "name": "return failure",
746 "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=\"`'Failed to update generic-vnf.vnf-name to ' + $ss.changeassign.vnf-name + ' in AnAI'`\" />\n",
750 "z": "8e64cd0a.c97ea8",
754 "id": "5380e841.bea77",
756 "name": "set success",
757 "xml": "<set>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].value`' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].value`'/>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='SUCCESS' />",
759 "x": 690.8611450195312,
760 "y": 1085.6388549804688,
761 "z": "8e64cd0a.c97ea8",
765 "id": "c57b7486.a57b1",
768 "xml": "<outcome value='failure'>\n",
771 "x": 961.861083984375,
772 "y": 1811.8609008789062,
773 "z": "8e64cd0a.c97ea8",
781 "id": "4fc9b736.8d6e3",
783 "name": "block : atomic",
784 "xml": "<block atomic='true'>",
788 "x": 1125.1944580078125,
789 "y": 1847.527587890625,
790 "z": "8e64cd0a.c97ea8",
799 "id": "c4cb3411.ce3c08",
801 "name": "set status as FAILED",
802 "xml": "<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
804 "x": 1340.1944580078125,
805 "y": 1807.527587890625,
806 "z": "8e64cd0a.c97ea8",
810 "id": "5be64b3b.d3de2c",
811 "type": "returnFailure",
812 "name": "return failure",
813 "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=\"`'Failed to update vf-module.vf-module-name to ' + $ss.changeassign.vf-module-name + ' in AnAI'`\" />\n",
815 "x": 1328.1944580078125,
816 "y": 1895.527587890625,
817 "z": "8e64cd0a.c97ea8",
821 "id": "bd0adc9e.3de71",
823 "name": "set success",
824 "xml": "<set>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].value`' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value`'/>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.service-data.param.index].resource-resolution-data.status`' value='SUCCESS' />",
826 "x": 791.1944580078125,
827 "y": 1937.527587890625,
828 "z": "8e64cd0a.c97ea8",
832 "id": "3ab1de2e.107f4a",
834 "name": "For VNF genname changeassign",
837 "x": 634.9722290039062,
838 "y": 457.9722595214844,
839 "z": "8e64cd0a.c97ea8",
843 "id": "acf466b0.cd99d",
845 "name": "For VF-MODULE genname changeassign",
848 "x": 670.5277709960938,
849 "y": 1280.194580078125,
850 "z": "8e64cd0a.c97ea8",
854 "id": "8643313e.d4e4a8",
856 "name": "update generic-vnf",
857 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-loopback0-address\" value='`$ss.param.ipv4-loopback0-address`' />\n<parameter name=\"ipv4-oam-address\" value='`$ss.param.ipv4-oam-address`' />\n<parameter name=\"as-number\" value='`$ss.param.as-number`' />\n<parameter name=\"vlan-id-outer\" value='`$ss.param.vlan-id-outer`' />\n\n",
860 "x": 714.97216796875,
861 "y": 997.9722900390625,
862 "z": "8e64cd0a.c97ea8",
871 "id": "828d5f62.22b218",
873 "name": "update vf-module",
874 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vf-module\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\t\tAND vf-module.vf-module-id = $ss.param.vf-module-id \" >\n<parameter name=\"vf-module-name\" value='`$ss.param.vf-module-name`' />\n",
878 "y": 1847.9722900390625,
879 "z": "8e64cd0a.c97ea8",
888 "id": "5cf0712f.35945",
891 "xml": "<outcome value='not-found'>\n",
894 "x": 959.4166870117188,
895 "y": 1897.9719848632812,
896 "z": "8e64cd0a.c97ea8",
904 "id": "291e7999.8fd276",
907 "xml": "<outcome value='not-found'>\n",
910 "x": 897.1945190429688,
911 "y": 1046.8611450195312,
912 "z": "8e64cd0a.c97ea8",