3 "id": "d82ababf.4deaf",
9 "z": "158dead5.f2086d",
17 "id": "5c4ab99.de900c8",
19 "name": "method self-serve-netbox-ip-assignment",
20 "xml": "<method rpc='self-serve-netbox-ip-assignment' mode='sync'>\n",
23 "x": 247.7857208251953,
24 "y": 116.1269884109497,
25 "z": "158dead5.f2086d",
33 "id": "ad092d5.0a569d",
35 "name": "block : atomic",
36 "xml": "<block atomic=\"true\">",
40 "x": 141.32144165039062,
41 "y": 202.4286069869995,
42 "z": "158dead5.f2086d",
52 "id": "514957da.088018",
53 "type": "service-logic",
54 "name": "GENERIC-RESOURCE-API ${project.version}",
55 "module": "GENERIC-RESOURCE-API",
56 "version": "${project.version}",
58 "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}'>",
60 "x": 384.8571472167969,
61 "y": 58.42856693267822,
62 "z": "158dead5.f2086d",
70 "id": "b3535f37.0a7d5",
72 "name": "switch: ss.capability-name",
73 "xml": "<switch test='`$ss.capability-name`'>\n",
76 "x": 375.75000762939453,
77 "y": 203.75000476837158,
78 "z": "158dead5.f2086d",
86 "id": "4c0e104c.c8992",
89 "xml": "<outcome value=''>",
91 "x": 600.7500305175781,
92 "y": 204.2500033378601,
93 "z": "158dead5.f2086d",
101 "id": "3e59422c.56b57e",
102 "type": "returnFailure",
103 "name": "return failure",
104 "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",
106 "x": 760.6667022705078,
107 "y": 204.361102104187,
108 "z": "158dead5.f2086d",
112 "id": "cf52bd4f.68ddb",
113 "type": "switchNode",
114 "name": "switch: ss.capability-action",
115 "xml": "<switch test='`$ss.capability-action`'>\n",
118 "x": 377.00002670288086,
119 "y": 253.75000524520874,
120 "z": "158dead5.f2086d",
130 "id": "5c7f0bf6.ffeef4",
133 "xml": "<outcome value=''>",
136 "x": 600.5000228881836,
137 "y": 254.00000524520874,
138 "z": "158dead5.f2086d",
146 "id": "e43d474e.c67e6",
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": 760.4166946411133,
152 "y": 254.11110401153564,
153 "z": "158dead5.f2086d",
157 "id": "8699e334.7ba04",
160 "xml": "<outcome value='assign'>",
163 "x": 599.2500190734863,
164 "y": 309.00000858306885,
165 "z": "158dead5.f2086d",
173 "id": "aeaaa4c.eb96958",
176 "xml": "<outcome value='unassign'>",
179 "x": 599.1786499023438,
180 "y": 1120.642822265625,
181 "z": "158dead5.f2086d",
189 "id": "f70a5fa0.d247d",
191 "name": "call self-service-capability-param-resolution",
192 "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-service-capability-param-resolution' mode='sync' >\n",
195 "x": 1090.6666870117188,
196 "y": 309.2500123977661,
197 "z": "158dead5.f2086d",
205 "id": "14ec23cb.75b09c",
208 "xml": "<outcome value='failure'>\n",
211 "x": 1340.6666679382324,
212 "y": 309.25000858306885,
213 "z": "158dead5.f2086d",
221 "id": "7c50a969.b62318",
222 "type": "returnFailure",
223 "name": "return failure",
224 "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",
226 "x": 1499.416648864746,
227 "y": 309.2500047683716,
228 "z": "158dead5.f2086d",
232 "id": "1843f01b.23ada8",
234 "name": "set tmp.ss.param.capability-name",
235 "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",
237 "x": 1504.5634536743164,
238 "y": 365.03172874450684,
239 "z": "158dead5.f2086d",
243 "id": "a2dda04a.43ae58",
245 "name": "for pidx in param_length",
246 "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`\">",
249 "x": 1214.7776794433594,
250 "y": 365.10319900512695,
251 "z": "158dead5.f2086d",
260 "id": "943c092c.4b3b3",
261 "type": "switchNode",
262 "name": "switch: capability-name - ss vs param",
263 "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
266 "x": 1516.5276794433594,
267 "y": 408.6032028198242,
268 "z": "158dead5.f2086d",
276 "id": "740fdfdc.63143",
277 "type": "outcomeTrue",
279 "xml": "<outcome value='true'>\n",
282 "x": 1755.277687072754,
283 "y": 408.3532028198242,
284 "z": "158dead5.f2086d",
292 "id": "32fe15e5.a7bf9a",
293 "type": "switchNode",
294 "name": "switch: resource-key[].name",
295 "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",
298 "x": 1520.5081405639648,
299 "y": 498.1706771850586,
300 "z": "158dead5.f2086d",
311 "id": "dfc56a05.e2c65",
313 "name": "service-instance-id",
314 "xml": "<outcome value='service-instance-id'>\n",
317 "x": 1791.8970489501953,
318 "y": 497.64289569854736,
319 "z": "158dead5.f2086d",
327 "id": "d9a882de.1d6658",
329 "name": "set tmp.ss.service-instance-id",
330 "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",
332 "x": 2058.1470489501953,
333 "y": 497.39289569854736,
334 "z": "158dead5.f2086d",
338 "id": "318167f.d597118",
340 "name": "client-key",
341 "xml": "<outcome value='client-key'>\n",
344 "x": 1767.4804229736328,
345 "y": 633.7817506790161,
346 "z": "158dead5.f2086d",
354 "id": "bb45bf6b.de9f78",
356 "name": "set tmp.ss.client-key",
357 "xml": "<set>\n<parameter name='tmp.ss.client-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",
359 "x": 2036.4804229736328,
360 "y": 633.7817506790161,
361 "z": "158dead5.f2086d",
365 "id": "f7c84a6b.9d9108",
367 "name": "set service-data...param[].value = ip-prefix",
368 "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='`$self_serve_netbox_ip_assignement.ip-address`' />\n",
370 "x": 2028.500015258789,
372 "z": "158dead5.f2086d",
376 "id": "73427b92.9bde0c",
378 "name": "for pidx in param_length",
379 "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`\">",
382 "x": 1033.7142333984375,
383 "y": 906.8214111328125,
384 "z": "158dead5.f2086d",
392 "id": "3466ae83.83e262",
393 "type": "switchNode",
394 "name": "switch: param[].name",
395 "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].name`'>\n",
398 "x": 1281.7142333984375,
399 "y": 906.5714111328125,
400 "z": "158dead5.f2086d",
408 "id": "870cd21d.8e341",
410 "name": "ip-address",
411 "xml": "<outcome value='ip-address'>",
414 "x": 1526.249984741211,
415 "y": 906.7499847412109,
416 "z": "158dead5.f2086d",
424 "id": "52f0e6b1.b33288",
431 "x": 1757.5000114440918,
433 "z": "158dead5.f2086d",
442 "id": "b7977f7d.8ce65",
444 "name": "get-resource NETBOX_IP_ASSIGNMENTS",
445 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n\tkey='SELECT * from NETBOX_IP_ASSIGNMENTS \n\t\tWHERE service_instance_id = $tmp.ss.service-instance-id\n\t\tAND client_key = $tmp.ss.client-key'>",
448 "x": 1077.6785888671875,
449 "y": 1120.892822265625,
450 "z": "158dead5.f2086d",
459 "id": "f72ccdef.62b18",
462 "xml": "<outcome value='not-found'>\n",
465 "x": 1369.250057220459,
466 "y": 1120.46426653862,
467 "z": "158dead5.f2086d",
475 "id": "7de1e772.abc858",
482 "x": 1539.3928658621653,
483 "y": 1120.8928443363734,
484 "z": "158dead5.f2086d",
490 "id": "8dd46bd6.87c01",
493 "xml": "<outcome value='success'>\n",
496 "x": 1365.9642028808594,
497 "y": 1168.1785793304443,
498 "z": "158dead5.f2086d",
506 "id": "56d47025.86d16",
508 "name": "block : atomic",
509 "xml": "<block atomic=\"true\">",
512 "x": 768.5000152587891,
513 "y": 1121.107177734375,
514 "z": "158dead5.f2086d",
524 "id": "aec36890.ff2fb",
526 "name": "block : atomic",
527 "xml": "<block atomic=\"true\">",
531 "x": 772.0000305175781,
532 "y": 309.25000953674316,
533 "z": "158dead5.f2086d",
543 "id": "ff105b45.f52f4",
548 "x": 1893.6745948791504,
549 "y": 407.670615196228,
550 "z": "158dead5.f2086d",
554 "id": "999294fe.a69638",
556 "name": "for kidx in resource-key_length",
557 "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`\">",
560 "x": 1241.3692169189453,
561 "y": 498.03178787231445,
562 "z": "158dead5.f2086d",
570 "id": "c62e6e8f.bfa43",
577 "x": 980.0357055664062,
578 "y": 365.2261657714844,
579 "z": "158dead5.f2086d",
590 "id": "acedbb53.5c913",
592 "name": "printContext",
593 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss.eipam.log' />\n",
596 "x": 333.25000762939453,
597 "y": 419.0000066757202,
598 "z": "158dead5.f2086d",
604 "id": "4e153620.e3c8d",
606 "name": "update NETBOX_IP_ASSIGNMENTS to PENDING_DELETE...",
607 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"UPDATE NETBOX_IP_ASSIGNMENTS set ip_status = $tmp.status \n\t\tWHERE service_instance_id = $tmp.ss.service-instance-id \n\t\tAND client_key = $tmp.ss.client-key\" >",
610 "x": 1899.2262420654297,
611 "y": 1212.3929681777954,
612 "z": "158dead5.f2086d",
620 "id": "59682f69.8b602",
622 "name": "set status = PENDING_DELETE",
623 "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
625 "x": 1808.7262344360352,
626 "y": 1169.476219177246,
627 "z": "158dead5.f2086d",
631 "id": "3ca10d66.8e421a",
634 "xml": "<outcome value='failure'>\n",
637 "x": 2205.2261505126953,
638 "y": 1211.7262678146362,
639 "z": "158dead5.f2086d",
647 "id": "a79b0cd6.ba9dc",
648 "type": "returnFailure",
649 "name": "return failure",
650 "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 to unassign ip with client_key=' + $tmp.ss.client-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`\" />\n",
652 "x": 2384.2264404296875,
653 "y": 1211.535888671875,
654 "z": "158dead5.f2086d",
658 "id": "1aee94d6.e70a7b",
660 "name": "execute EIPAM unassign IP addresses",
661 "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"unassignIpAddress\">",
664 "x": 1834.2262115478516,
665 "y": 1257.393012046814,
666 "z": "158dead5.f2086d",
674 "id": "fdf0362f.fd4f4",
677 "xml": "<outcome value='failure'>\n",
680 "x": 2070.892837524414,
681 "y": 1257.392954826355,
682 "z": "158dead5.f2086d",
690 "id": "6b5c8b96.1eb51c",
691 "type": "returnFailure",
692 "name": "return failure",
693 "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 EIPAMPlugin.unassignIPAddress with client-key='+ $tmp.ss.client-key`\" />\n",
695 "x": 2232.892864227295,
696 "y": 1257.2026901245117,
697 "z": "158dead5.f2086d",
701 "id": "87ae6929.f38048",
703 "name": "block : atomic",
704 "xml": "<block atomic=\"true\">",
707 "x": 1548.1786041259766,
708 "y": 1168.8928241729736,
709 "z": "158dead5.f2086d",
719 "id": "72366483.e4dd0c",
722 "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",
725 "x": 1166.2857360839844,
726 "y": 443.6428413391113,
727 "z": "158dead5.f2086d",
733 "id": "f4971b35.f262",
735 "name": "vf-module-id",
736 "xml": "<outcome value='vf-module-id'>\n",
739 "x": 1773.7300567626953,
740 "y": 543.8928346633911,
741 "z": "158dead5.f2086d",
749 "id": "e7bc24a5.2b1688",
751 "name": "set tmp.ss.vf-module-id",
752 "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",
754 "x": 2039.7301788330078,
755 "y": 543.8928346633911,
756 "z": "158dead5.f2086d",
760 "id": "684ada9c.20cdbc",
762 "name": "for pidx in param_length",
763 "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`\">",
766 "x": 1035.9285888671875,
767 "y": 1359.7142124176025,
768 "z": "158dead5.f2086d",
776 "id": "c9290a31.bc6ba",
777 "type": "switchNode",
778 "name": "switch: param[].name",
779 "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].name`'>\n",
782 "x": 1283.9285888671875,
783 "y": 1359.4642124176025,
784 "z": "158dead5.f2086d",
792 "id": "b44fcfdb.b21448",
794 "name": "ip-address",
795 "xml": "<outcome value='ip-address'>",
798 "x": 1528.464340209961,
799 "y": 1359.642786026001,
800 "z": "158dead5.f2086d",
808 "id": "885816c2.0cf518",
810 "name": "set resource-resolution-data.status = DELETED",
811 "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",
813 "x": 1850.6429443359375,
814 "y": 1359.857177734375,
815 "z": "158dead5.f2086d",
819 "id": "c64f6887.de64e",
822 "xml": "<outcome value='prefix-id'>\n",
825 "x": 1762.7857208251953,
826 "y": 588.1428651809692,
827 "z": "158dead5.f2086d",
835 "id": "5e015d1e.a95ec4",
837 "name": "set prefix-id",
838 "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",
840 "x": 2009.2857208251953,
841 "y": 588.3928346633911,
842 "z": "158dead5.f2086d",
846 "id": "93e0546d.de75b",
848 "name": "execute NetboxClient assignIpAddress",
849 "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"assignIpAddress\">",
852 "x": 1259.285903930664,
853 "y": 713.3928346633911,
854 "z": "158dead5.f2086d",
862 "id": "a3087de2.330a5",
865 "xml": "<outcome value='failure'>\n",
868 "x": 1514.2858428955078,
869 "y": 713.3928346633911,
870 "z": "158dead5.f2086d",
878 "id": "c5dacbf8.86fe78",
880 "name": "block : atomic",
881 "xml": "<block atomic='true'>",
885 "x": 1684.2858428955078,
886 "y": 713.3928346633911,
887 "z": "158dead5.f2086d",
896 "id": "1f126d73.fa4e23",
898 "name": "set resource-resolution-data.status = FAILED",
899 "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",
901 "x": 1999.2858428955078,
902 "y": 713.3928346633911,
903 "z": "158dead5.f2086d",
907 "id": "f3e9ed8c.ec8d78",
908 "type": "returnFailure",
909 "name": "return failure",
910 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
912 "x": 1914.2857208251953,
913 "y": 778.3928346633911,
914 "z": "158dead5.f2086d",
918 "id": "3f62b174.894c0e",
920 "name": "set resource-resolution-data.status = SUCCESS",
921 "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",
925 "z": "158dead5.f2086d",