3 "id": "77c2b18.8d31ed",
8 "y": 53.57143306732178,
17 "id": "f8a5c87f.00d498",
19 "name": "method self-serve-netbox-ip-assign",
20 "xml": "<method rpc='self-serve-netbox-ip-assign' mode='sync'>\n",
23 "x": 247.7857208251953,
24 "y": 110.69842147827148,
25 "z": "9db1531d.07a1a",
33 "id": "547eae19.add57",
35 "name": "block : atomic",
36 "xml": "<block atomic=\"true\">",
40 "x": 141.32144165039062,
41 "y": 197.0000400543213,
42 "z": "9db1531d.07a1a",
54 "id": "9dcfa1bf.c57ff",
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": 384.8571472167969,
64 "z": "9db1531d.07a1a",
72 "id": "74f4f85d.362368",
74 "name": "switch: ss.capability-name",
75 "xml": "<switch test='`$ss.capability-name`'>\n",
78 "x": 399.4999694824219,
79 "y": 200.82144165039062,
80 "z": "9db1531d.07a1a",
88 "id": "b9e21b14.67ef6",
91 "xml": "<outcome value=''>",
93 "x": 624.4999923706055,
94 "y": 201.32144021987915,
95 "z": "9db1531d.07a1a",
103 "id": "73fe504e.4705c",
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": 784.4166641235352,
109 "y": 201.43253898620605,
110 "z": "9db1531d.07a1a",
114 "id": "511e7db4.d38c5c",
115 "type": "switchNode",
116 "name": "switch: ss.capability-action",
117 "xml": "<switch test='`$ss.capability-action`'>\n",
120 "x": 402.74996185302734,
121 "y": 276.82143688201904,
122 "z": "9db1531d.07a1a",
130 "id": "44dc8d7e.430a74",
133 "xml": "<outcome value=''>",
136 "x": 626.2499618530273,
137 "y": 277.07143688201904,
138 "z": "9db1531d.07a1a",
146 "id": "1a43de2d.0a450a",
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": 786.166633605957,
152 "y": 277.18253564834595,
153 "z": "9db1531d.07a1a",
157 "id": "19870db6.43192a",
160 "xml": "<outcome value='unassign'>",
163 "x": 1251.8930969238281,
164 "y": 3041.6666650772095,
165 "z": "9db1531d.07a1a",
173 "id": "1c580da3.ca9442",
175 "name": "call self-serve-capability-param-resolution",
176 "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n",
179 "x": 453.41680908203125,
180 "y": 351.82147216796875,
181 "z": "9db1531d.07a1a",
189 "id": "5d40b27c.221a9c",
192 "xml": "<outcome value='failure'>\n",
195 "x": 757.6667060852051,
196 "y": 353.821475982666,
197 "z": "9db1531d.07a1a",
205 "id": "edcc63af.4dd9d8",
206 "type": "returnFailure",
207 "name": "return failure",
208 "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",
210 "x": 916.4166870117188,
211 "y": 353.82147216796875,
212 "z": "9db1531d.07a1a",
216 "id": "4f9c6ac7.4bbeac",
218 "name": "set tmp.ss.param.capability-name",
219 "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",
221 "x": 1199.0635833740234,
222 "y": 1963.7697825431824,
223 "z": "9db1531d.07a1a",
227 "id": "c92d4312.5079b8",
229 "name": "for pidx in param_length",
230 "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`\">",
233 "x": 909.2778091430664,
234 "y": 1963.8412528038025,
235 "z": "9db1531d.07a1a",
245 "id": "864fa674.d2c07",
246 "type": "switchNode",
247 "name": "switch: capability-name - ss vs param",
248 "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
251 "x": 1212.139045715332,
252 "y": 2045.119035243988,
253 "z": "9db1531d.07a1a",
261 "id": "27ca1b50.7b7b94",
262 "type": "outcomeTrue",
264 "xml": "<outcome value='true'>\n",
267 "x": 1450.8890533447266,
268 "y": 2044.869035243988,
269 "z": "9db1531d.07a1a",
277 "id": "e4dea9e2.e240e8",
278 "type": "switchNode",
279 "name": "switch: resource-key[].name",
280 "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",
283 "x": 1700.7783126831055,
284 "y": 2295.1630301475525,
285 "z": "9db1531d.07a1a",
297 "id": "e6bd6a68.08413",
299 "name": "service-instance-id",
300 "xml": "<outcome value='service-instance-id'>\n",
303 "x": 1972.167221069336,
304 "y": 2294.6352486610413,
305 "z": "9db1531d.07a1a",
313 "id": "ef960f90.e62e4",
315 "name": "set tmp.ss.service-instance-id",
316 "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",
318 "x": 2238.417221069336,
319 "y": 2294.3852486610413,
320 "z": "9db1531d.07a1a",
324 "id": "b434a262.2a412",
326 "name": "set service-data...param[].value = ip-address",
327 "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",
329 "x": 2534.960205078125,
330 "y": 2879.62744140625,
331 "z": "9db1531d.07a1a",
335 "id": "7e13641e.d9c954",
337 "name": "get-resource IPAM_IP_ASSIGNEMENT",
338 "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' >",
341 "x": 1727.3771667480469,
342 "y": 3040.488076210022,
343 "z": "9db1531d.07a1a",
352 "id": "986620e4.a7ba3",
355 "xml": "<outcome value='not-found'>\n",
358 "x": 2021.9645042419434,
359 "y": 3041.4881093502045,
360 "z": "9db1531d.07a1a",
368 "id": "d275ec9.837569",
370 "name": "block : atomic",
371 "xml": "<block atomic=\"true\">",
374 "x": 1421.2144622802734,
375 "y": 3042.1310205459595,
376 "z": "9db1531d.07a1a",
384 "id": "eabe3654.2861f",
386 "name": "for kidx in resource-key_length",
387 "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`\">",
390 "x": 1417.6393966674805,
391 "y": 2293.0241141319275,
392 "z": "9db1531d.07a1a",
400 "id": "3a044c4d.1e750c",
407 "x": 625.5358581542969,
408 "y": 1961.9642333984375,
409 "z": "9db1531d.07a1a",
418 "id": "776bc197.c4cea8",
420 "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
421 "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\" >",
424 "x": 2550.274139404297,
425 "y": 3132.166787147522,
426 "z": "9db1531d.07a1a",
434 "id": "e61cd52d.9b53c8",
436 "name": "set status = PENDING_DELETE",
437 "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
439 "x": 2460.190643310547,
440 "y": 3090.500039100647,
441 "z": "9db1531d.07a1a",
445 "id": "b463a755.296e38",
448 "xml": "<outcome value='failure'>\n",
451 "x": 2857.9405975341797,
452 "y": 3132.7501106262207,
453 "z": "9db1531d.07a1a",
461 "id": "623c3038.c77a88",
462 "type": "returnFailure",
463 "name": "return failure",
464 "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",
466 "x": 3036.940887451172,
467 "y": 3132.5597314834595,
468 "z": "9db1531d.07a1a",
472 "id": "46730243.5a19d4",
474 "name": "execute Netbox unassign IP addresses",
475 "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`\" />",
478 "x": 2480.2740173339844,
479 "y": 3178.416848182678,
480 "z": "9db1531d.07a1a",
489 "id": "41c93106.7eb858",
492 "xml": "<outcome value='failure'>\n",
495 "x": 2723.6072845458984,
496 "y": 3178.4167976379395,
497 "z": "9db1531d.07a1a",
505 "id": "572457e6.ddb978",
506 "type": "returnFailure",
507 "name": "return failure",
508 "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",
510 "x": 2885.6073112487793,
511 "y": 3178.226532936096,
512 "z": "9db1531d.07a1a",
516 "id": "a33aa0af.bd279",
518 "name": "block : atomic",
519 "xml": "<block atomic=\"true\">",
522 "x": 2200.893051147461,
523 "y": 3089.916666984558,
524 "z": "9db1531d.07a1a",
534 "id": "4ffc883e.37e15",
537 "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",
540 "x": 861.3414611816406,
541 "y": 2018.9087219238281,
542 "z": "9db1531d.07a1a",
548 "id": "33db91f0.e9f01e",
550 "name": "vf-module-id",
551 "xml": "<outcome value='vf-module-id'>\n",
554 "x": 1954.000228881836,
555 "y": 2340.885187625885,
556 "z": "9db1531d.07a1a",
564 "id": "6181952e.31b6cc",
566 "name": "set tmp.ss.vf-module-id",
567 "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",
569 "x": 2220.0003509521484,
570 "y": 2340.885187625885,
571 "z": "9db1531d.07a1a",
575 "id": "369a3888.44684",
577 "name": "set resource-resolution-data.status = DELETED",
578 "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",
580 "x": 2990.499969482422,
581 "y": 3233.737548828125,
582 "z": "9db1531d.07a1a",
586 "id": "5e2abf9b.b85b4",
589 "xml": "<outcome value='prefix-id'>\n",
592 "x": 1943.055892944336,
593 "y": 2385.135218143463,
594 "z": "9db1531d.07a1a",
602 "id": "6a64ea7a.aa0bac",
604 "name": "set prefix-id",
605 "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",
607 "x": 2189.555892944336,
608 "y": 2385.385187625885,
609 "z": "9db1531d.07a1a",
613 "id": "5ddc29c0.4ba838",
615 "name": "execute NetboxClient assignIpAddress",
616 "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`\" />",
619 "x": 1724.9526672363281,
620 "y": 2699.655068397522,
621 "z": "9db1531d.07a1a",
630 "id": "b4f4fccf.d98da",
633 "xml": "<outcome value='failure'>\n",
636 "x": 2041.9526672363281,
637 "y": 2701.6550073623657,
638 "z": "9db1531d.07a1a",
646 "id": "3690386c.790168",
648 "name": "block : atomic",
649 "xml": "<block atomic='true'>",
653 "x": 2249.952667236328,
654 "y": 2705.6550073623657,
655 "z": "9db1531d.07a1a",
664 "id": "e87ee382.86daa8",
666 "name": "set resource-resolution-data.status = FAILED",
667 "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",
669 "x": 2566.9527282714844,
670 "y": 2709.6549768447876,
671 "z": "9db1531d.07a1a",
675 "id": "8cda7799.2cc048",
676 "type": "returnFailure",
677 "name": "return failure",
678 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
680 "x": 2464.3335876464844,
681 "y": 2759.2582397460938,
682 "z": "9db1531d.07a1a",
686 "id": "e9502efd.cfacb8",
688 "name": "set resource-resolution-data.status = SUCCESS",
689 "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",
691 "x": 2552.0357666015625,
692 "y": 2930.3457641601562,
693 "z": "9db1531d.07a1a",
697 "id": "a20a3dc.5fc3fc",
699 "name": "ip-address-id",
700 "xml": "<outcome value='ip-address-id'>\n",
703 "x": 1956.9370422363281,
704 "y": 2429.9922919273376,
705 "z": "9db1531d.07a1a",
713 "id": "a24b6a2f.50759",
715 "name": "ip-address-id",
716 "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",
718 "x": 2191.9369201660156,
719 "y": 2429.992352962494,
720 "z": "9db1531d.07a1a",
724 "id": "82eaeb00.f8a53",
726 "name": "external_key",
727 "xml": "<outcome value='external_key'>\n",
730 "x": 1944.5560607910156,
731 "y": 2475.7065863609314,
732 "z": "9db1531d.07a1a",
740 "id": "f64e7f28.5f1c28",
742 "name": "set external-key",
743 "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",
745 "x": 2193.127471923828,
746 "y": 2475.7066473960876,
747 "z": "9db1531d.07a1a",
751 "id": "f2a77014.d729d8",
753 "name": "set tmp.ss.param.name",
754 "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",
756 "x": 1170.8495254516602,
757 "y": 2003.9602675437927,
758 "z": "9db1531d.07a1a",
762 "id": "8094ff69.1f8708",
763 "type": "switchNode",
764 "name": "switch: resource-resolution-data.status",
765 "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",
768 "x": 773.2856140136719,
769 "y": 2269.9287109375,
770 "z": "9db1531d.07a1a",
779 "id": "8231bfda.4aa0f8",
782 "xml": "<outcome value='FAILED'>\n",
785 "x": 1004.7144165039062,
786 "y": 2265.928756713867,
787 "z": "9db1531d.07a1a",
795 "id": "4c0fccb3.f454ac",
798 "xml": "<outcome value='PENDING'>\n",
801 "x": 1011.4285926818848,
802 "y": 2317.6430847644806,
803 "z": "9db1531d.07a1a",
811 "id": "575caaa7.2470a4",
818 "x": 1166.1429138183594,
819 "y": 2289.9287719726562,
820 "z": "9db1531d.07a1a",
829 "id": "e4db42f9.ac9b4",
832 "xml": "<outcome value='assign'>",
835 "x": 1224.0000305175781,
836 "y": 2697.738320350647,
837 "z": "9db1531d.07a1a",
845 "id": "423ab3ab.c683cc",
846 "type": "switchNode",
847 "name": "switch: ss.capability-action",
848 "xml": "<switch test='`$ss.capability-action`'>\n",
851 "x": 988.0000305175781,
852 "y": 2695.738320350647,
853 "z": "9db1531d.07a1a",
862 "id": "de47a062.0e7368",
864 "name": "block : atomic",
865 "xml": "<block atomic='true'>",
869 "x": 1399.4286804199219,
870 "y": 2698.595559120178,
871 "z": "9db1531d.07a1a",
879 "id": "95406bea.6b1b6",
882 "xml": "<outcome value='success'>\n",
885 "x": 2018.6786499023438,
886 "y": 3089.202422142029,
887 "z": "9db1531d.07a1a",
895 "id": "69e14266.f416c4",
898 "xml": "<outcome value='success'>\n",
901 "x": 2050.0000915527344,
902 "y": 2765.1666259765625,
903 "z": "9db1531d.07a1a",
911 "id": "d043ccbb.6e195",
918 "x": 2192.1073128836497,
919 "y": 3041.916687147958,
920 "z": "9db1531d.07a1a",
926 "id": "3337d755.bc6f9",
933 "x": 2244.2857360839844,
934 "y": 2845.166748046875,
935 "z": "9db1531d.07a1a",
945 "id": "7f8823ca.cd3dd4",
948 "xml": "<outcome value='success'>\n",
951 "x": 2728.571990966797,
952 "y": 3232.3094482421875,
953 "z": "9db1531d.07a1a",
961 "id": "a51df821.acc4",
964 "xml": "<outcome value='true'>\n",
967 "x": 600.4285583496094,
968 "y": 441.4284896850586,
969 "z": "9db1531d.07a1a",
977 "id": "9b5b9dd.e182f6",
978 "type": "switchNode",
979 "name": "switch capability-type. vnf",
980 "xml": "<switch test=\"`$ss.capability-type == 'vnf'`\">\n",
984 "y": 442.14276123046875,
985 "z": "9db1531d.07a1a",
993 "id": "727a4c78.25da9c",
994 "type": "switchNode",
995 "name": "switch capability-type vf-module",
996 "xml": "<switch test=\"`$ss.capability-type == 'vf-module'`\">\n",
999 "x": 419.28582763671875,
1000 "y": 1827.6666259765625,
1001 "z": "9db1531d.07a1a",
1009 "id": "5b0a7046.83e3",
1010 "type": "not-found",
1012 "xml": "<outcome value='true'>\n",
1015 "x": 638.2858276367188,
1016 "y": 1828.6666870117188,
1017 "z": "9db1531d.07a1a",
1025 "id": "25965467.621de4",
1028 "xml": "<outcome value='unassign'>",
1031 "x": 1213.3333129882812,
1032 "y": 1557.3690576553345,
1033 "z": "9db1531d.07a1a",
1041 "id": "e7afaccf.d0036",
1043 "name": "set tmp.ss.param.capability-name",
1044 "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",
1046 "x": 1222.1705474853516,
1047 "y": 537.4722971916199,
1048 "z": "9db1531d.07a1a",
1052 "id": "bfedad8c.b95118",
1054 "name": "for pidx in param_length",
1055 "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",
1058 "x": 932.3847732543945,
1059 "y": 537.54376745224,
1060 "z": "9db1531d.07a1a",
1070 "id": "f0ad10ad.1e953",
1071 "type": "switchNode",
1072 "name": "switch: capability-name - ss vs param",
1073 "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
1076 "x": 1235.2460098266602,
1077 "y": 618.8215498924255,
1078 "z": "9db1531d.07a1a",
1086 "id": "6a7d5101.40aa8",
1087 "type": "outcomeTrue",
1089 "xml": "<outcome value='true'>\n",
1092 "x": 1473.9960174560547,
1093 "y": 618.5715498924255,
1094 "z": "9db1531d.07a1a",
1102 "id": "e13f79d4.74035",
1103 "type": "switchNode",
1104 "name": "switch: resource-key[].name",
1105 "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",
1108 "x": 1662.2185287475586,
1109 "y": 810.8654227256775,
1110 "z": "9db1531d.07a1a",
1121 "id": "9af0367b.dbd1f8",
1123 "name": "service-instance-id",
1124 "xml": "<outcome value='service-instance-id'>\n",
1127 "x": 1933.607437133789,
1128 "y": 810.3376412391663,
1129 "z": "9db1531d.07a1a",
1137 "id": "c656a145.06dbc",
1139 "name": "set tmp.ss.service-instance-id",
1140 "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",
1142 "x": 2199.857437133789,
1143 "y": 810.0876412391663,
1144 "z": "9db1531d.07a1a",
1148 "id": "41f4db04.700f14",
1150 "name": "get-resource IPAM_IP_ASSIGNEMENT",
1151 "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' >",
1154 "x": 1688.8173828125,
1155 "y": 1556.190468788147,
1156 "z": "9db1531d.07a1a",
1165 "id": "b267b2b4.23a3e8",
1166 "type": "not-found",
1167 "name": "not-found",
1168 "xml": "<outcome value='not-found'>\n",
1171 "x": 1983.4047203063965,
1172 "y": 1557.1905019283295,
1173 "z": "9db1531d.07a1a",
1181 "id": "f0b88a86.aebb68",
1183 "name": "block : atomic",
1184 "xml": "<block atomic=\"true\">",
1187 "x": 1382.6546783447266,
1188 "y": 1557.8334131240845,
1189 "z": "9db1531d.07a1a",
1197 "id": "e6246ef9.3e7788",
1199 "name": "for kidx in resource-key_length",
1200 "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`\">",
1203 "x": 1379.0796127319336,
1204 "y": 808.7265067100525,
1205 "z": "9db1531d.07a1a",
1213 "id": "a0639b3c.7eba9",
1220 "x": 648.642822265625,
1221 "y": 535.666748046875,
1222 "z": "9db1531d.07a1a",
1231 "id": "37aec3a4.7d6aa4",
1233 "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
1234 "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\" >",
1237 "x": 2511.71435546875,
1238 "y": 1647.869179725647,
1239 "z": "9db1531d.07a1a",
1247 "id": "f7bb8b39.bef09",
1249 "name": "set status = PENDING_DELETE",
1250 "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
1252 "x": 2421.630859375,
1253 "y": 1606.202431678772,
1254 "z": "9db1531d.07a1a",
1258 "id": "f17fba04.5953f8",
1261 "xml": "<outcome value='failure'>\n",
1264 "x": 2819.380813598633,
1265 "y": 1648.4525032043457,
1266 "z": "9db1531d.07a1a",
1274 "id": "7d1f077f.575248",
1275 "type": "returnFailure",
1276 "name": "return failure",
1277 "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",
1279 "x": 2998.381103515625,
1280 "y": 1648.2621240615845,
1281 "z": "9db1531d.07a1a",
1285 "id": "91f6c6fc.2974a8",
1287 "name": "execute Netbox unassign IP addresses",
1288 "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`\" />",
1291 "x": 2441.7142333984375,
1292 "y": 1694.1192407608032,
1293 "z": "9db1531d.07a1a",
1302 "id": "54af54c4.b3a344",
1305 "xml": "<outcome value='failure'>\n",
1308 "x": 2685.0475006103516,
1309 "y": 1694.1191902160645,
1310 "z": "9db1531d.07a1a",
1318 "id": "3d527d1f.8bda2a",
1319 "type": "returnFailure",
1320 "name": "return failure",
1321 "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",
1323 "x": 2847.0475273132324,
1324 "y": 1693.9289255142212,
1325 "z": "9db1531d.07a1a",
1329 "id": "8bad1bbc.e7a648",
1331 "name": "block : atomic",
1332 "xml": "<block atomic=\"true\">",
1335 "x": 2162.333267211914,
1336 "y": 1605.619059562683,
1337 "z": "9db1531d.07a1a",
1347 "id": "dd52194f.db49b8",
1350 "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",
1353 "x": 884.4484252929688,
1354 "y": 592.6112365722656,
1355 "z": "9db1531d.07a1a",
1361 "id": "2eeaa08a.1d2c78",
1364 "xml": "<outcome value='vnf-id'>\n",
1367 "x": 1915.440444946289,
1368 "y": 856.58758020401,
1369 "z": "9db1531d.07a1a",
1377 "id": "e99c4040.fdfb6",
1379 "name": "set tmp.ss.vnf-id",
1380 "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",
1382 "x": 2181.4405670166016,
1383 "y": 856.58758020401,
1384 "z": "9db1531d.07a1a",
1388 "id": "8b1d70.bdf8029",
1390 "name": "set resource-resolution-data.status = DELETED",
1391 "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",
1393 "x": 2951.940185546875,
1394 "y": 1749.43994140625,
1395 "z": "9db1531d.07a1a",
1399 "id": "f747f187.002e28",
1401 "name": "prefix-id",
1402 "xml": "<outcome value='prefix-id'>\n",
1405 "x": 1904.496109008789,
1406 "y": 900.8376107215881,
1407 "z": "9db1531d.07a1a",
1415 "id": "2ed5a6cf.2a2e6a",
1417 "name": "set prefix-id",
1418 "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",
1420 "x": 2150.996109008789,
1421 "y": 901.08758020401,
1422 "z": "9db1531d.07a1a",
1426 "id": "cb98d7d9.b5a08",
1428 "name": "execute NetboxClient assignIpAddress",
1429 "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`\" />",
1432 "x": 1686.3928833007812,
1433 "y": 1215.357460975647,
1434 "z": "9db1531d.07a1a",
1443 "id": "158c4088.3cd6c7",
1446 "xml": "<outcome value='failure'>\n",
1449 "x": 2003.3928833007812,
1450 "y": 1217.3573999404907,
1451 "z": "9db1531d.07a1a",
1459 "id": "2e7a036b.bc0adc",
1461 "name": "block : atomic",
1462 "xml": "<block atomic='true'>",
1466 "x": 2211.3928833007812,
1467 "y": 1221.3573999404907,
1468 "z": "9db1531d.07a1a",
1477 "id": "51bf773d.df62b",
1479 "name": "set resource-resolution-data.status = FAILED",
1480 "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",
1482 "x": 2528.3929443359375,
1483 "y": 1225.3573694229126,
1484 "z": "9db1531d.07a1a",
1488 "id": "bc6879f4.baae4",
1489 "type": "returnFailure",
1490 "name": "return failure",
1491 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
1493 "x": 2425.7738037109375,
1494 "y": 1274.9606323242188,
1495 "z": "9db1531d.07a1a",
1499 "id": "49b2f547.09aa04",
1501 "name": "set resource-resolution-data.status = SUCCESS",
1502 "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",
1504 "x": 2505.47607421875,
1505 "y": 1420.0482177734375,
1506 "z": "9db1531d.07a1a",
1510 "id": "81e1796a.cad958",
1512 "name": "external_key",
1513 "xml": "<outcome value='external_key'>\n",
1516 "x": 1927.246337890625,
1517 "y": 951.4089965820312,
1518 "z": "9db1531d.07a1a",
1526 "id": "96f2e2c3.446d68",
1528 "name": "set external-key",
1529 "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",
1531 "x": 2175.8177490234375,
1532 "y": 951.4090576171875,
1533 "z": "9db1531d.07a1a",
1537 "id": "eadf5468.9c709",
1539 "name": "set tmp.ss.param.name",
1540 "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",
1542 "x": 1193.9564895629883,
1543 "y": 577.6627821922302,
1544 "z": "9db1531d.07a1a",
1548 "id": "b4530e81.fa1df",
1549 "type": "switchNode",
1550 "name": "switch: resource-resolution-data.status",
1551 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
1554 "x": 734.725830078125,
1555 "y": 785.631103515625,
1556 "z": "9db1531d.07a1a",
1565 "id": "ef20c0ae.2f0268",
1566 "type": "not-found",
1568 "xml": "<outcome value='FAILED'>\n",
1571 "x": 966.1546325683594,
1572 "y": 781.6311492919922,
1573 "z": "9db1531d.07a1a",
1581 "id": "fe2c0013.43141",
1584 "xml": "<outcome value='PENDING'>\n",
1587 "x": 972.8688087463379,
1588 "y": 833.3454773426056,
1589 "z": "9db1531d.07a1a",
1597 "id": "b3e8cd71.0d271",
1604 "x": 1127.5831298828125,
1605 "y": 805.6311645507812,
1606 "z": "9db1531d.07a1a",
1615 "id": "c1c70c33.d44a98",
1618 "xml": "<outcome value='assign'>",
1621 "x": 1185.4402465820312,
1622 "y": 1213.440712928772,
1623 "z": "9db1531d.07a1a",
1631 "id": "e6294bd0.41d4c8",
1632 "type": "switchNode",
1633 "name": "switch: ss.capability-action",
1634 "xml": "<switch test='`$ss.capability-action`'>\n",
1637 "x": 949.4402465820312,
1638 "y": 1211.440712928772,
1639 "z": "9db1531d.07a1a",
1648 "id": "1bb6495a.fa8da7",
1650 "name": "block : atomic",
1651 "xml": "<block atomic='true'>",
1655 "x": 1360.868896484375,
1656 "y": 1214.2979516983032,
1657 "z": "9db1531d.07a1a",
1665 "id": "9b01dbab.a7a7a8",
1668 "xml": "<outcome value='success'>\n",
1671 "x": 1980.1188659667969,
1672 "y": 1604.9048147201538,
1673 "z": "9db1531d.07a1a",
1681 "id": "2aec43bd.80530c",
1684 "xml": "<outcome value='success'>\n",
1687 "x": 2011.4403076171875,
1688 "y": 1280.8690185546873,
1689 "z": "9db1531d.07a1a",
1697 "id": "c67fc199.97dec",
1704 "x": 2153.547528948103,
1705 "y": 1557.6190797260829,
1706 "z": "9db1531d.07a1a",
1712 "id": "b964039a.43a1a",
1719 "x": 2205.7259521484375,
1720 "y": 1360.869140625,
1721 "z": "9db1531d.07a1a",
1731 "id": "286269c8.56b2fe",
1734 "xml": "<outcome value='success'>\n",
1737 "x": 2690.01220703125,
1738 "y": 1748.0118408203125,
1739 "z": "9db1531d.07a1a",
1747 "id": "4628865b.a3d7d",
1749 "name": "set service-data...param[].value = ip-address",
1750 "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",
1754 "z": "9db1531d.07a1a",
1758 "id": "3bdfdc4f.b39f24",
1760 "name": "SliStringUtils - split subnet",
1761 "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",
1766 "z": "9db1531d.07a1a",
1772 "id": "fd2e7345.c27e6",
1774 "name": "SliStringUtils - split subnet",
1775 "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",
1780 "z": "9db1531d.07a1a",