3 "id": "39b306a6.ed3522",
8 "y": 63.57143306732178,
9 "z": "1e0169fe.460196",
17 "id": "1b629c80.7881d4",
19 "name": "method self-serve-netbox-ip-assign",
20 "xml": "<method rpc='self-serve-netbox-ip-assign' mode='sync'>\n",
23 "x": 235.7857208251953,
24 "y": 120.69842147827148,
25 "z": "1e0169fe.460196",
33 "id": "56a052c7.058c9c",
35 "name": "block : atomic",
36 "xml": "<block atomic=\"true\">",
40 "x": 129.32144165039062,
41 "y": 207.0000400543213,
42 "z": "1e0169fe.460196",
54 "id": "79f0b111.72d778",
55 "type": "service-logic",
56 "name": "GENERIC-RESOURCE-API ${project.version}",
57 "module": "GENERIC-RESOURCE-API",
58 "version": "${project.version}",
60 "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}'>",
62 "x": 372.8571472167969,
64 "z": "1e0169fe.460196",
72 "id": "90086e75.cd6fc",
74 "name": "switch: ss.capability-name",
75 "xml": "<switch test='`$ss.capability-name`'>\n",
78 "x": 387.4999694824219,
79 "y": 210.82144165039062,
80 "z": "1e0169fe.460196",
88 "id": "b10180d1.330c9",
91 "xml": "<outcome value=''>",
93 "x": 612.4999923706055,
94 "y": 211.32144021987915,
95 "z": "1e0169fe.460196",
103 "id": "66f17fa3.bde278",
104 "type": "returnFailure",
105 "name": "return failure",
106 "xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"ss.capability-name is null\" />\n",
108 "x": 772.4166641235352,
109 "y": 211.43253898620605,
110 "z": "1e0169fe.460196",
114 "id": "3efa365b.993a9a",
115 "type": "switchNode",
116 "name": "switch: ss.capability-action",
117 "xml": "<switch test='`$ss.capability-action`'>\n",
120 "x": 390.74996185302734,
121 "y": 286.82143688201904,
122 "z": "1e0169fe.460196",
130 "id": "8acb2cf7.4ff328",
133 "xml": "<outcome value=''>",
136 "x": 614.2499618530273,
137 "y": 287.07143688201904,
138 "z": "1e0169fe.460196",
146 "id": "307ed0c1.fb7998",
147 "type": "returnFailure",
148 "name": "return failure",
149 "xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"ss.capability-action is null\" />\n",
151 "x": 774.166633605957,
152 "y": 287.18253564834595,
153 "z": "1e0169fe.460196",
157 "id": "7e104793.732a5",
159 "name": "call self-serve-capability-param-resolution",
160 "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n",
163 "x": 441.41680908203125,
164 "y": 361.82147216796875,
165 "z": "1e0169fe.460196",
173 "id": "47c181e5.fedda",
176 "xml": "<outcome value='failure'>\n",
179 "x": 745.6667060852051,
180 "y": 363.821475982666,
181 "z": "1e0169fe.460196",
189 "id": "fe0e4241.5b80e8",
190 "type": "returnFailure",
191 "name": "return failure",
192 "xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"`'Not all assignments are resolved' + $error-message`\" />\n",
194 "x": 904.4166870117188,
195 "y": 363.82147216796875,
196 "z": "1e0169fe.460196",
200 "id": "a92c49b1.faf6c",
202 "name": "set tmp.ss.param.capability-name",
203 "xml": "<set>\n<parameter name='tmp.ss.param.capability-name' \n\tvalue='`$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[$pidx].resource-resolution-data.capability-name`' />\n",
205 "x": 1187.0635833740234,
206 "y": 1973.7697825431824,
207 "z": "1e0169fe.460196",
211 "id": "ca92a840.cb9a5",
213 "name": "for pidx in param_length",
214 "xml": "<for index=\"pidx\" start=\"0\" end=\"`$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_length`\">",
217 "x": 897.2778091430664,
218 "y": 1973.8412528038025,
219 "z": "1e0169fe.460196",
229 "id": "b15a003.31b4b",
230 "type": "switchNode",
231 "name": "switch: capability-name - ss vs param",
232 "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
235 "x": 1200.139045715332,
236 "y": 2055.119035243988,
237 "z": "1e0169fe.460196",
245 "id": "5f27f686.c72e78",
246 "type": "outcomeTrue",
248 "xml": "<outcome value='true'>\n",
251 "x": 1438.8890533447266,
252 "y": 2054.869035243988,
253 "z": "1e0169fe.460196",
261 "id": "52a3fa95.c6446c",
262 "type": "switchNode",
263 "name": "switch: resource-key[].name",
264 "xml": "<switch test='`$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[$pidx].resource-resolution-data.resource-key[$kidx].name`'>\n",
267 "x": 1688.7783126831055,
268 "y": 2305.1630301475525,
269 "z": "1e0169fe.460196",
281 "id": "31df3307.8fd214",
283 "name": "service-instance-id",
284 "xml": "<outcome value='service-instance-id'>\n",
287 "x": 1960.167221069336,
288 "y": 2304.6352486610413,
289 "z": "1e0169fe.460196",
297 "id": "15e0f6f3.464d99",
299 "name": "set tmp.ss.service-instance-id",
300 "xml": "<set>\n<parameter name='tmp.ss.service-instance-id' value='`$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[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
302 "x": 2226.417221069336,
303 "y": 2304.3852486610413,
304 "z": "1e0169fe.460196",
308 "id": "702f24b8.ab2b14",
310 "name": "set service-data...param[].value = ip-address",
311 "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[$pidx].value' \n\tvalue='`$ip[0]`' />\n",
313 "x": 3014.388885498047,
314 "y": 2875.3416357040405,
315 "z": "1e0169fe.460196",
319 "id": "daef3d9b.976aa",
321 "name": "get-resource IPAM_IP_ASSIGNEMENT",
322 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n\tkey='SELECT * from IPAM_IP_ASSIGNEMENT \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id' >",
325 "x": 2188.472640991211,
326 "y": 2976.2020263671875,
327 "z": "1e0169fe.460196",
336 "id": "c57f67d2.fa9d8",
339 "xml": "<outcome value='not-found'>\n",
342 "x": 2483.0599784851074,
343 "y": 2977.20205950737,
344 "z": "1e0169fe.460196",
352 "id": "9e365126.584608",
354 "name": "block : atomic",
355 "xml": "<block atomic=\"true\">",
358 "x": 1882.3099365234375,
359 "y": 2977.844970703125,
360 "z": "1e0169fe.460196",
368 "id": "b0815fb0.6c8c58",
370 "name": "for kidx in resource-key_length",
371 "xml": "<for index=\"kidx\" start=\"0\" end=\"`$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[$pidx].resource-resolution-data.resource-key_length`\">",
374 "x": 1405.6393966674805,
375 "y": 2303.0241141319275,
376 "z": "1e0169fe.460196",
384 "id": "9d646260.b0f88",
391 "x": 613.5358581542969,
392 "y": 1971.9642333984375,
393 "z": "1e0169fe.460196",
402 "id": "12508de3.d24ce2",
404 "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
405 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"UPDATE IPAM_IP_ASSIGNEMENT set ip_status = $tmp.status \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id\" >",
408 "x": 3011.369613647461,
409 "y": 3067.8807373046875,
410 "z": "1e0169fe.460196",
418 "id": "86f22edb.c1e37",
420 "name": "set status = PENDING_DELETE",
421 "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
423 "x": 2921.286117553711,
424 "y": 3026.2139892578125,
425 "z": "1e0169fe.460196",
429 "id": "e08179b3.30edc",
432 "xml": "<outcome value='failure'>\n",
435 "x": 3319.0360717773438,
436 "y": 3068.4640607833862,
437 "z": "1e0169fe.460196",
445 "id": "a80cdb69.81f35",
446 "type": "returnFailure",
447 "name": "return failure",
448 "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 NETBOX_IP_ASSIGNMENTS table to unassign ip with external_key=' + $tmp.ss.external-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`\" />\n",
450 "x": 3498.036361694336,
451 "y": 3068.273681640625,
452 "z": "1e0169fe.460196",
456 "id": "2ba87204.72c89e",
458 "name": "execute Netbox unassign IP addresses",
459 "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"unassignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
462 "x": 2941.3694915771484,
463 "y": 3114.1307983398438,
464 "z": "1e0169fe.460196",
473 "id": "d761dd7d.5daac",
476 "xml": "<outcome value='failure'>\n",
479 "x": 3184.7027587890625,
480 "y": 3114.130747795105,
481 "z": "1e0169fe.460196",
489 "id": "ac3185a3.0297d8",
490 "type": "returnFailure",
491 "name": "return failure",
492 "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 in NetboxClient#unassignIPAddress with external-key='+ $tmp.ss.external-key`\" />\n",
494 "x": 3346.7027854919434,
495 "y": 3113.9404830932617,
496 "z": "1e0169fe.460196",
500 "id": "9487046d.9fad68",
502 "name": "block : atomic",
503 "xml": "<block atomic=\"true\">",
506 "x": 2661.988525390625,
507 "y": 3025.6306171417236,
508 "z": "1e0169fe.460196",
518 "id": "dddd3293.e9766",
521 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'SS: pidx: ' + $pidx`\"/>\n",
524 "x": 849.3414611816406,
525 "y": 2028.9087219238281,
526 "z": "1e0169fe.460196",
532 "id": "12d1fbad.020824",
534 "name": "vf-module-id",
535 "xml": "<outcome value='vf-module-id'>\n",
538 "x": 1942.000228881836,
539 "y": 2350.885187625885,
540 "z": "1e0169fe.460196",
548 "id": "e91a4a82.52be28",
550 "name": "set tmp.ss.vf-module-id",
551 "xml": "<set>\n<parameter name='tmp.ss.vf-module-id' value='`$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[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
553 "x": 2208.0003509521484,
554 "y": 2350.885187625885,
555 "z": "1e0169fe.460196",
559 "id": "ae56d16c.edce5",
561 "name": "set resource-resolution-data.status = DELETED",
562 "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[$pidx].resource-resolution-data.status' \n\tvalue='DELETED' />\n",
564 "x": 3451.595443725586,
565 "y": 3169.4514989852905,
566 "z": "1e0169fe.460196",
570 "id": "8556b639.07cc4",
573 "xml": "<outcome value='prefix-id'>\n",
576 "x": 1931.055892944336,
577 "y": 2395.135218143463,
578 "z": "1e0169fe.460196",
586 "id": "246a1d6a.080fa2",
588 "name": "set prefix-id",
589 "xml": "<set>\n<parameter name='tmp.ss.prefix-id' value='`$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[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
591 "x": 2177.555892944336,
592 "y": 2395.385187625885,
593 "z": "1e0169fe.460196",
597 "id": "d994622b.100b98",
599 "name": "execute NetboxClient assignIpAddress",
600 "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"assignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"vf_module_id\" value=\"`$tmp.ss.vf-module-id`\" />\n<parameter name=\"prefix_id\" value=\"`$tmp.ss.prefix-id`\" />\n<parameter name=\"resource_name\" value=\"`$tmp.ss.param.name`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
603 "x": 2204.38134765625,
604 "y": 2695.3692626953125,
605 "z": "1e0169fe.460196",
614 "id": "5fcd5073.23e8c8",
617 "xml": "<outcome value='failure'>\n",
620 "x": 2521.38134765625,
621 "y": 2697.3692016601562,
622 "z": "1e0169fe.460196",
630 "id": "b53fc0c4.6e6db",
632 "name": "block : atomic",
633 "xml": "<block atomic='true'>",
637 "x": 2729.38134765625,
638 "y": 2701.3692016601562,
639 "z": "1e0169fe.460196",
648 "id": "aefd9233.639b38",
650 "name": "set resource-resolution-data.status = FAILED",
651 "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[$pidx].resource-resolution-data.status' value='FAILED' />\n",
653 "x": 3046.3814086914062,
654 "y": 2705.369171142578,
655 "z": "1e0169fe.460196",
659 "id": "5924f9f1.b07eb",
660 "type": "returnFailure",
661 "name": "return failure",
662 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
664 "x": 2943.7622680664062,
665 "y": 2754.9724340438843,
666 "z": "1e0169fe.460196",
670 "id": "8459943a.0741",
672 "name": "set resource-resolution-data.status = SUCCESS",
673 "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[$pidx].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n",
675 "x": 3031.4644470214844,
676 "y": 2926.059958457947,
677 "z": "1e0169fe.460196",
681 "id": "32ab7f7f.33dea",
683 "name": "ip-address-id",
684 "xml": "<outcome value='ip-address-id'>\n",
687 "x": 1944.9370422363281,
688 "y": 2439.9922919273376,
689 "z": "1e0169fe.460196",
697 "id": "1be9a0f0.cb1137",
699 "name": "ip-address-id",
700 "xml": "<set>\n<parameter name='tmp.ss.ip-address-id' value='`$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[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
702 "x": 2179.9369201660156,
703 "y": 2439.992352962494,
704 "z": "1e0169fe.460196",
708 "id": "28ed7d99.2fd922",
710 "name": "external_key",
711 "xml": "<outcome value='external_key'>\n",
714 "x": 1932.5560607910156,
715 "y": 2485.7065863609314,
716 "z": "1e0169fe.460196",
724 "id": "e3062b19.33e69",
726 "name": "set external-key",
727 "xml": "<set>\n<parameter name='tmp.ss.external-key' value='`$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[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
729 "x": 2181.127471923828,
730 "y": 2485.7066473960876,
731 "z": "1e0169fe.460196",
735 "id": "864a8266.73cc7",
737 "name": "set tmp.ss.param.name",
738 "xml": "<set>\n<parameter name='tmp.ss.param.name' \n\tvalue='`$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[$pidx].name`' />\n",
740 "x": 1158.8495254516602,
741 "y": 2013.9602675437927,
742 "z": "1e0169fe.460196",
746 "id": "b6e45a86.008848",
753 "x": 1154.1429138183594,
754 "y": 2299.9287719726562,
755 "z": "1e0169fe.460196",
764 "id": "ea11f211.eef478",
765 "type": "switchNode",
766 "name": "switch: ss.capability-action",
767 "xml": "<switch test='`$ss.capability-action`'>\n",
770 "x": 976.0000305175781,
771 "y": 2705.738320350647,
772 "z": "1e0169fe.460196",
781 "id": "b4174ab1.8632e",
783 "name": "block : atomic",
784 "xml": "<block atomic='true'>",
788 "x": 1878.8573608398438,
789 "y": 2694.3097534179688,
790 "z": "1e0169fe.460196",
798 "id": "b7a6dad5.6dc8c",
801 "xml": "<outcome value='success'>\n",
804 "x": 2479.774124145508,
805 "y": 3024.9163722991943,
806 "z": "1e0169fe.460196",
814 "id": "1a67a440.ccf65c",
817 "xml": "<outcome value='success'>\n",
820 "x": 2529.4287719726562,
821 "y": 2760.880820274353,
822 "z": "1e0169fe.460196",
830 "id": "e5ae09f3.4e9b7",
837 "x": 2653.2027871268137,
838 "y": 2977.6306373051234,
839 "z": "1e0169fe.460196",
845 "id": "6b7d48cd.fe82",
852 "x": 2723.7144165039062,
853 "y": 2840.8809423446655,
854 "z": "1e0169fe.460196",
864 "id": "70a92bf3.d01214",
867 "xml": "<outcome value='success'>\n",
870 "x": 3189.667465209961,
871 "y": 3168.023398399353,
872 "z": "1e0169fe.460196",
880 "id": "612ded0b.7aa5c4",
883 "xml": "<outcome value='true'>\n",
886 "x": 588.4285583496094,
887 "y": 451.4284896850586,
888 "z": "1e0169fe.460196",
896 "id": "f91de1d4.ae1798",
897 "type": "switchNode",
898 "name": "switch capability-type. vnf",
899 "xml": "<switch test=\"`$ss.capability-type == 'vnf'`\">\n",
903 "y": 452.14276123046875,
904 "z": "1e0169fe.460196",
912 "id": "2734c8ea.c23828",
913 "type": "switchNode",
914 "name": "switch capability-type vf-module",
915 "xml": "<switch test=\"`$ss.capability-type == 'vf-module'`\">\n",
918 "x": 407.28582763671875,
919 "y": 1837.6666259765625,
920 "z": "1e0169fe.460196",
928 "id": "76727ba.3b8bb04",
931 "xml": "<outcome value='true'>\n",
934 "x": 626.2858276367188,
935 "y": 1838.6666870117188,
936 "z": "1e0169fe.460196",
944 "id": "74139423.e17614",
947 "xml": "<outcome value='unassign'>",
950 "x": 1177.5833129882812,
951 "y": 1389.8692016601562,
952 "z": "1e0169fe.460196",
960 "id": "b8362705.36557",
962 "name": "set tmp.ss.param.capability-name",
963 "xml": "<set>\n<parameter name='tmp.ss.param.capability-name' \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.capability-name`' />\n",
965 "x": 1210.1705474853516,
966 "y": 547.4722971916199,
967 "z": "1e0169fe.460196",
971 "id": "37af35ce.c8f9aa",
973 "name": "for pidx in param_length",
974 "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",
977 "x": 920.3847732543945,
978 "y": 547.54376745224,
979 "z": "1e0169fe.460196",
989 "id": "ea3f1334.a266f8",
990 "type": "switchNode",
991 "name": "switch: capability-name - ss vs param",
992 "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
995 "x": 1223.2460098266602,
996 "y": 628.8215498924255,
997 "z": "1e0169fe.460196",
1005 "id": "d7993c29.a6c5f8",
1006 "type": "outcomeTrue",
1008 "xml": "<outcome value='true'>\n",
1011 "x": 1461.9960174560547,
1012 "y": 628.5715498924255,
1013 "z": "1e0169fe.460196",
1021 "id": "85af5a4b.a2187",
1022 "type": "switchNode",
1023 "name": "switch: resource-key[].name",
1024 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>\n",
1027 "x": 1650.2185287475586,
1028 "y": 820.8654227256775,
1029 "z": "1e0169fe.460196",
1040 "id": "8b40c4df.047c2",
1042 "name": "service-instance-id",
1043 "xml": "<outcome value='service-instance-id'>\n",
1046 "x": 1921.607437133789,
1047 "y": 820.3376412391663,
1048 "z": "1e0169fe.460196",
1056 "id": "ee744de2.8b10f8",
1058 "name": "set tmp.ss.service-instance-id",
1059 "xml": "<set>\n<parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
1061 "x": 2187.857437133789,
1062 "y": 820.0876412391663,
1063 "z": "1e0169fe.460196",
1067 "id": "53877355.ae41ac",
1069 "name": "get-resource IPAM_IP_ASSIGNEMENT",
1070 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n\tkey='SELECT * from IPAM_IP_ASSIGNEMENT \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id' >",
1073 "x": 2175.3888549804688,
1074 "y": 1491.9048852920532,
1075 "z": "1e0169fe.460196",
1084 "id": "1455e2db.491d8d",
1085 "type": "not-found",
1086 "name": "not-found",
1087 "xml": "<outcome value='not-found'>\n",
1090 "x": 2469.9761924743652,
1091 "y": 1492.9049184322357,
1092 "z": "1e0169fe.460196",
1100 "id": "2e96e14a.d8a666",
1102 "name": "block : atomic",
1103 "xml": "<block atomic=\"true\">",
1106 "x": 1872.9761352539062,
1107 "y": 1408.5477905273438,
1108 "z": "1e0169fe.460196",
1116 "id": "8b797c86.449c88",
1118 "name": "for kidx in resource-key_length",
1119 "xml": "<for index=\"kidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key_length`\">",
1122 "x": 1367.0796127319336,
1123 "y": 818.7265067100525,
1124 "z": "1e0169fe.460196",
1132 "id": "c436ca39.dad55",
1139 "x": 636.642822265625,
1140 "y": 545.666748046875,
1141 "z": "1e0169fe.460196",
1150 "id": "7d36e25f.6ea3f4",
1152 "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
1153 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"UPDATE IPAM_IP_ASSIGNEMENT set ip_status = $tmp.status \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id\" >",
1156 "x": 2998.2858276367188,
1157 "y": 1583.5835962295532,
1158 "z": "1e0169fe.460196",
1166 "id": "954b1950.33da8",
1168 "name": "set status = PENDING_DELETE",
1169 "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
1171 "x": 2908.2023315429688,
1172 "y": 1541.9168481826782,
1173 "z": "1e0169fe.460196",
1177 "id": "ca94a980.5b06e",
1180 "xml": "<outcome value='failure'>\n",
1183 "x": 3305.9522857666016,
1184 "y": 1584.166919708252,
1185 "z": "1e0169fe.460196",
1193 "id": "ddd93d50.c85558",
1194 "type": "returnFailure",
1195 "name": "return failure",
1196 "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 NETBOX_IP_ASSIGNMENTS table to unassign ip with external_key=' + $tmp.ss.external-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`\" />\n",
1198 "x": 3484.9525756835938,
1199 "y": 1583.9765405654907,
1200 "z": "1e0169fe.460196",
1204 "id": "d3428a19.b74a38",
1206 "name": "execute Netbox unassign IP addresses",
1207 "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"unassignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
1210 "x": 2928.2857055664062,
1211 "y": 1629.8336572647095,
1212 "z": "1e0169fe.460196",
1221 "id": "a11ee488.c69c1",
1224 "xml": "<outcome value='failure'>\n",
1227 "x": 3171.6189727783203,
1228 "y": 1629.8336067199707,
1229 "z": "1e0169fe.460196",
1237 "id": "727fae.421bc054",
1238 "type": "returnFailure",
1239 "name": "return failure",
1240 "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 in NetboxClient#unassignIPAddress with external-key='+ $tmp.ss.external-key`\" />\n",
1242 "x": 3333.618999481201,
1243 "y": 1629.6433420181274,
1244 "z": "1e0169fe.460196",
1248 "id": "199cb084.41994f",
1250 "name": "block : atomic",
1251 "xml": "<block atomic=\"true\">",
1254 "x": 2648.904739379883,
1255 "y": 1541.3334760665894,
1256 "z": "1e0169fe.460196",
1266 "id": "419443bc.89754c",
1269 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'SS: pidx: ' + $pidx`\"/>\n",
1272 "x": 872.4484252929688,
1273 "y": 602.6112365722656,
1274 "z": "1e0169fe.460196",
1280 "id": "6c06e68b.da7eb8",
1283 "xml": "<outcome value='vnf-id'>\n",
1286 "x": 1903.440444946289,
1287 "y": 866.58758020401,
1288 "z": "1e0169fe.460196",
1296 "id": "48b45ebc.19189",
1298 "name": "set tmp.ss.vnf-id",
1299 "xml": "<set>\n<parameter name='tmp.ss.vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
1301 "x": 2169.4405670166016,
1302 "y": 866.58758020401,
1303 "z": "1e0169fe.460196",
1307 "id": "4c0830f.966f55",
1309 "name": "set resource-resolution-data.status = DELETED",
1310 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' \n\tvalue='DELETED' />\n",
1312 "x": 3438.5116577148438,
1313 "y": 1685.1543579101562,
1314 "z": "1e0169fe.460196",
1318 "id": "5bcfaea0.c0c0f8",
1320 "name": "prefix-id",
1321 "xml": "<outcome value='prefix-id'>\n",
1324 "x": 1892.496109008789,
1325 "y": 910.8376107215881,
1326 "z": "1e0169fe.460196",
1334 "id": "dd169952.c2ddc8",
1336 "name": "set prefix-id",
1337 "xml": "<set>\n<parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
1339 "x": 2138.996109008789,
1340 "y": 911.08758020401,
1341 "z": "1e0169fe.460196",
1345 "id": "3246d2cf.e446ce",
1347 "name": "execute NetboxClient assignIpAddress",
1348 "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"assignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"vf_module_id\" value=\"`$tmp.ss.vnf-id`\" />\n<parameter name=\"prefix_id\" value=\"`$tmp.ss.prefix-id`\" />\n<parameter name=\"resource_name\" value=\"`$tmp.ss.param.name`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
1351 "x": 2200.1068725585938,
1352 "y": 1209.6432886123657,
1353 "z": "1e0169fe.460196",
1362 "id": "bc02f9c5.d3009",
1365 "xml": "<outcome value='failure'>\n",
1368 "x": 2517.1068725585938,
1369 "y": 1211.6432275772095,
1370 "z": "1e0169fe.460196",
1378 "id": "9be2285f.3688f8",
1380 "name": "block : atomic",
1381 "xml": "<block atomic='true'>",
1385 "x": 2725.1068725585938,
1386 "y": 1215.6432275772095,
1387 "z": "1e0169fe.460196",
1396 "id": "be8fa4c5.70a7a",
1398 "name": "set resource-resolution-data.status = FAILED",
1399 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' value='FAILED' />\n",
1401 "x": 3042.10693359375,
1402 "y": 1219.6431970596313,
1403 "z": "1e0169fe.460196",
1407 "id": "742a806a.1c8b48",
1408 "type": "returnFailure",
1409 "name": "return failure",
1410 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
1412 "x": 2939.48779296875,
1413 "y": 1269.2464599609375,
1414 "z": "1e0169fe.460196",
1418 "id": "291a0f5b.065428",
1420 "name": "set resource-resolution-data.status = SUCCESS",
1421 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n",
1423 "x": 3019.1900634765625,
1424 "y": 1414.3340454101562,
1425 "z": "1e0169fe.460196",
1429 "id": "714a9ad3.25a814",
1431 "name": "external_key",
1432 "xml": "<outcome value='external_key'>\n",
1435 "x": 1915.246337890625,
1436 "y": 961.4089965820312,
1437 "z": "1e0169fe.460196",
1445 "id": "bc0a0828.40d9d8",
1447 "name": "set external-key",
1448 "xml": "<set>\n<parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
1450 "x": 2163.8177490234375,
1451 "y": 961.4090576171875,
1452 "z": "1e0169fe.460196",
1456 "id": "f4266bba.68463",
1458 "name": "set tmp.ss.param.name",
1459 "xml": "<set>\n<parameter name='tmp.ss.param.name' \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].name`' />\n",
1461 "x": 1181.9564895629883,
1462 "y": 587.6627821922302,
1463 "z": "1e0169fe.460196",
1467 "id": "35313136.60f71e",
1474 "x": 1115.5831298828125,
1475 "y": 815.6311645507812,
1476 "z": "1e0169fe.460196",
1485 "id": "3ab742ab.07506e",
1488 "xml": "<outcome value='assign'>",
1491 "x": 1172.190185546875,
1492 "y": 1227.190673828125,
1493 "z": "1e0169fe.460196",
1501 "id": "f17ee439.871ec",
1502 "type": "switchNode",
1503 "name": "switch: ss.capability-action",
1504 "xml": "<switch test='`$ss.capability-action`'>\n",
1507 "x": 934.9402770996094,
1508 "y": 1232.690673828125,
1509 "z": "1e0169fe.460196",
1518 "id": "26e5147.b2e3b6c",
1520 "name": "block : atomic",
1521 "xml": "<block atomic='true'>",
1525 "x": 1920.8328857421875,
1526 "y": 1214.8339233398438,
1527 "z": "1e0169fe.460196",
1535 "id": "f61d39ca.54246",
1538 "xml": "<outcome value='success'>\n",
1541 "x": 2466.6903381347656,
1542 "y": 1540.61923122406,
1543 "z": "1e0169fe.460196",
1551 "id": "5a42ccdf.863d7c",
1554 "xml": "<outcome value='success'>\n",
1557 "x": 2525.154296875,
1558 "y": 1275.154846191406,
1559 "z": "1e0169fe.460196",
1567 "id": "4d3d930a.c74edc",
1574 "x": 2640.1190011160716,
1575 "y": 1493.3334962299891,
1576 "z": "1e0169fe.460196",
1582 "id": "82bf193e.1c3e9",
1589 "x": 2719.43994140625,
1590 "y": 1355.1549682617188,
1591 "z": "1e0169fe.460196",
1601 "id": "bacc37f5.251158",
1604 "xml": "<outcome value='success'>\n",
1607 "x": 3176.5836791992188,
1608 "y": 1683.7262573242188,
1609 "z": "1e0169fe.460196",
1617 "id": "96318d27.c30ac8",
1619 "name": "set service-data...param[].value = ip-address",
1620 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].value' \n\tvalue='`$ip[0]`' />\n",
1622 "x": 3008.7139892578125,
1623 "y": 1374.2858276367188,
1624 "z": "1e0169fe.460196",
1628 "id": "ddc0044e.197a88",
1630 "name": "SliStringUtils - split subnet",
1631 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n <parameter name=\"original_string\" value=\"`$self_serve_netbox_ip_assignement.ip-address`\" />\n <parameter name=\"regex\" value=\"/\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"ip\" />\n \n",
1634 "x": 2952.7139892578125,
1635 "y": 1334.2858276367188,
1636 "z": "1e0169fe.460196",
1642 "id": "722fee02.ac2218",
1644 "name": "SliStringUtils - split subnet",
1645 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n <parameter name=\"original_string\" value=\"`$self_serve_netbox_ip_assignement.ip-address`\" />\n <parameter name=\"regex\" value=\"/\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"ip\" />\n \n",
1648 "x": 2960.428680419922,
1649 "y": 2824.7141942977905,
1650 "z": "1e0169fe.460196",
1656 "id": "ac9eaafc.1d31a",
1657 "type": "switchNode",
1658 "name": "switch: resource-resolution-data.status",
1659 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
1662 "x": 1408.392822265625,
1663 "y": 1221.9642944335938,
1664 "z": "1e0169fe.460196",
1673 "id": "e91661da.3b8608",
1674 "type": "not-found",
1676 "xml": "<outcome value='FAILED'>\n",
1679 "x": 1694.643310546875,
1680 "y": 1191.53564453125,
1681 "z": "1e0169fe.460196",
1689 "id": "bf37d131.8b2478",
1692 "xml": "<outcome value='PENDING'>\n",
1695 "x": 1693.678466796875,
1696 "y": 1235.3931274414062,
1697 "z": "1e0169fe.460196",
1705 "id": "e51b7888.989928",
1706 "type": "switchNode",
1707 "name": "switch: resource-resolution-data.status",
1708 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
1711 "x": 1431.249755859375,
1712 "y": 1393.750244140625,
1713 "z": "1e0169fe.460196",
1721 "id": "26889fb2.5ce19",
1724 "xml": "<outcome value='SUCCESS'>\n",
1727 "x": 1688.678466796875,
1728 "y": 1393.9644775390625,
1729 "z": "1e0169fe.460196",
1737 "id": "c615cc08.6cc77",
1740 "xml": "<outcome value='unassign'>",
1743 "x": 1181.428466796875,
1744 "y": 2975.71435546875,
1745 "z": "1e0169fe.460196",
1753 "id": "398f1da9.7fc262",
1756 "xml": "<outcome value='assign'>",
1759 "x": 1181.749755859375,
1760 "y": 2705.8930053710938,
1761 "z": "1e0169fe.460196",
1769 "id": "71585e8c.8a959",
1770 "type": "switchNode",
1771 "name": "switch: resource-resolution-data.status",
1772 "xml": "<switch test='`$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[$pidx].resource-resolution-data.status`'>\n",
1775 "x": 1417.952392578125,
1776 "y": 2700.6666259765625,
1777 "z": "1e0169fe.460196",
1786 "id": "83c2a9a4.58aa98",
1787 "type": "not-found",
1789 "xml": "<outcome value='FAILED'>\n",
1792 "x": 1704.202880859375,
1793 "y": 2670.2379760742188,
1794 "z": "1e0169fe.460196",
1802 "id": "bd2c6000.241588",
1805 "xml": "<outcome value='PENDING'>\n",
1808 "x": 1703.238037109375,
1809 "y": 2714.095458984375,
1810 "z": "1e0169fe.460196",
1818 "id": "5bd2efc8.0cc53",
1819 "type": "switchNode",
1820 "name": "switch: resource-resolution-data.status",
1821 "xml": "<switch test='`$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[$pidx].resource-resolution-data.status`'>\n",
1824 "x": 1435.0949096679688,
1825 "y": 2979.5953979492188,
1826 "z": "1e0169fe.460196",
1834 "id": "9c7404ad.aa898",
1837 "xml": "<outcome value='SUCCESS'>\n",
1840 "x": 1692.5236206054688,
1841 "y": 2979.8096313476562,
1842 "z": "1e0169fe.460196",