3 "id": "2530b9b4.e6f64e",
17 "id": "97a5934b.60b828",
19 "name": "method self-serve-netbox-ip-assignment",
20 "xml": "<method rpc='self-serve-netbox-ip-assignment' mode='sync'>\n",
23 "x": 257.7857208251953,
24 "y": 123.1269884109497,
25 "z": "a50b508.c70bcb",
33 "id": "439274d0.e50354",
35 "name": "block : atomic",
36 "xml": "<block atomic=\"true\">",
40 "x": 151.32144165039062,
41 "y": 209.4286069869995,
42 "z": "a50b508.c70bcb",
52 "id": "f24329c.83c4e58",
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": 394.8571472167969,
61 "y": 65.42856693267822,
62 "z": "a50b508.c70bcb",
70 "id": "4408534b.4e62fc",
72 "name": "switch: ss.capability-name",
73 "xml": "<switch test='`$ss.capability-name`'>\n",
76 "x": 385.75000762939453,
77 "y": 210.75000476837158,
78 "z": "a50b508.c70bcb",
86 "id": "e3e743cf.b5708",
89 "xml": "<outcome value=''>",
91 "x": 610.7500305175781,
92 "y": 211.2500033378601,
93 "z": "a50b508.c70bcb",
101 "id": "45c19f4e.02e1e",
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": 770.6667022705078,
107 "y": 211.361102104187,
108 "z": "a50b508.c70bcb",
112 "id": "795381cc.ae76e8",
113 "type": "switchNode",
114 "name": "switch: ss.capability-action",
115 "xml": "<switch test='`$ss.capability-action`'>\n",
118 "x": 387.00002670288086,
119 "y": 260.75000524520874,
120 "z": "a50b508.c70bcb",
130 "id": "9d04bb67.f3d528",
133 "xml": "<outcome value=''>",
136 "x": 610.5000228881836,
137 "y": 261.00000524520874,
138 "z": "a50b508.c70bcb",
146 "id": "7ed3650.ebf061c",
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": 770.4166946411133,
152 "y": 261.11110401153564,
153 "z": "a50b508.c70bcb",
157 "id": "969e4445.b0611",
160 "xml": "<outcome value='assign'>",
163 "x": 609.2500190734863,
164 "y": 316.00000858306885,
165 "z": "a50b508.c70bcb",
173 "id": "d6457743.c33b1",
176 "xml": "<outcome value='unassign'>",
179 "x": 609.1786499023438,
180 "y": 1127.642822265625,
181 "z": "a50b508.c70bcb",
189 "id": "ddde01a5.7d761",
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": 1099.416748046875,
197 "z": "a50b508.c70bcb",
205 "id": "289ac02f.fef728",
208 "xml": "<outcome value='failure'>\n",
211 "x": 1350.6666679382324,
212 "y": 316.25000858306885,
213 "z": "a50b508.c70bcb",
221 "id": "37e2330e.5ce094",
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": 1509.416648864746,
227 "y": 316.2500047683716,
228 "z": "a50b508.c70bcb",
232 "id": "193f213d.d80e7f",
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": 1514.5634536743164,
238 "y": 372.03172874450684,
239 "z": "a50b508.c70bcb",
243 "id": "667d4699.51911",
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": 1224.7776794433594,
250 "y": 372.10319900512695,
251 "z": "a50b508.c70bcb",
261 "id": "e03f298c.89ef68",
262 "type": "switchNode",
263 "name": "switch: capability-name - ss vs param",
264 "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
267 "x": 1527.638916015625,
268 "y": 453.3809814453125,
269 "z": "a50b508.c70bcb",
277 "id": "ad87e8f8.f29d8",
278 "type": "outcomeTrue",
280 "xml": "<outcome value='true'>\n",
283 "x": 1766.3889236450195,
284 "y": 453.1309814453125,
285 "z": "a50b508.c70bcb",
293 "id": "4b58ccb.9c3cd34",
294 "type": "switchNode",
295 "name": "switch: resource-key[].name",
296 "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",
299 "x": 1526.0637130737305,
300 "y": 542.9484596252441,
301 "z": "a50b508.c70bcb",
313 "id": "d37d3547.691c58",
315 "name": "service-instance-id",
316 "xml": "<outcome value='service-instance-id'>\n",
319 "x": 1797.452621459961,
320 "y": 542.4206781387329,
321 "z": "a50b508.c70bcb",
329 "id": "52db4f21.43a918",
331 "name": "set tmp.ss.service-instance-id",
332 "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",
334 "x": 2063.702621459961,
335 "y": 542.1706781387329,
336 "z": "a50b508.c70bcb",
340 "id": "daf7a5b3.f6dd1",
342 "name": "set service-data...param[].value = ip-address",
343 "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",
345 "x": 2035.96044921875,
346 "y": 980.0316772460938,
347 "z": "a50b508.c70bcb",
351 "id": "680b90a.12cf17",
353 "name": "for pidx in param_length",
354 "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`\">",
357 "x": 1042.28564453125,
358 "y": 980.9642944335938,
359 "z": "a50b508.c70bcb",
367 "id": "62315add.1e0734",
368 "type": "switchNode",
369 "name": "switch: param[].name",
370 "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",
373 "x": 1288.0633544921875,
374 "y": 980.7142333984375,
375 "z": "a50b508.c70bcb",
383 "id": "e46bc99.e09a7b8",
390 "x": 1766.0714225769043,
391 "y": 980.8928833007812,
392 "z": "a50b508.c70bcb",
401 "id": "789789b0.192b1",
403 "name": "get-resource NETBOX_IP_ASSIGNMENTS",
404 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n\tkey='SELECT * from NETBOX_IP_ASSIGNMENTS \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id\" >",
407 "x": 1084.6627197265625,
408 "y": 1126.4642333984375,
409 "z": "a50b508.c70bcb",
418 "id": "263460f3.585f6",
421 "xml": "<outcome value='not-found'>\n",
424 "x": 1379.250057220459,
425 "y": 1127.46426653862,
426 "z": "a50b508.c70bcb",
434 "id": "827adc75.f19d3",
441 "x": 1549.3928658621653,
442 "y": 1127.8928443363734,
443 "z": "a50b508.c70bcb",
449 "id": "e0cf0d4e.662af8",
452 "xml": "<outcome value='success'>\n",
455 "x": 1375.9642028808594,
456 "y": 1175.1785793304443,
457 "z": "a50b508.c70bcb",
465 "id": "6adef88c.08d9f8",
467 "name": "block : atomic",
468 "xml": "<block atomic=\"true\">",
471 "x": 778.5000152587891,
472 "y": 1128.107177734375,
473 "z": "a50b508.c70bcb",
483 "id": "f154be48.ae57c",
485 "name": "block : atomic",
486 "xml": "<block atomic=\"true\">",
490 "x": 782.0000305175781,
491 "y": 316.25000953674316,
492 "z": "a50b508.c70bcb",
503 "id": "3fea9750.333958",
508 "x": 1904.785831451416,
509 "y": 452.4483938217163,
510 "z": "a50b508.c70bcb",
514 "id": "2cc58bea.09d2f4",
516 "name": "for kidx in resource-key_length",
517 "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`\">",
520 "x": 1246.924789428711,
522 "z": "a50b508.c70bcb",
530 "id": "97394cd8.c006c",
537 "x": 990.0357055664062,
538 "y": 372.2261657714844,
539 "z": "a50b508.c70bcb",
549 "id": "9e36d81b.e4d19",
551 "name": "printContext",
552 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss.eipam.log' />\n",
555 "x": 343.25000762939453,
556 "y": 426.0000066757202,
557 "z": "a50b508.c70bcb",
563 "id": "b4c5f803.8e5ff8",
565 "name": "update NETBOX_IP_ASSIGNMENTS to PENDING_DELETE...",
566 "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 external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id\" >",
569 "x": 1907.5596923828125,
570 "y": 1218.1429443359375,
571 "z": "a50b508.c70bcb",
579 "id": "331e2fe5.e9d148",
581 "name": "set status = PENDING_DELETE",
582 "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
584 "x": 1817.4761962890625,
585 "y": 1176.4761962890625,
586 "z": "a50b508.c70bcb",
590 "id": "804b2812.ef90a8",
593 "xml": "<outcome value='failure'>\n",
596 "x": 2215.2261505126953,
597 "y": 1218.7262678146362,
598 "z": "a50b508.c70bcb",
606 "id": "5b0ce03c.02484",
607 "type": "returnFailure",
608 "name": "return failure",
609 "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",
611 "x": 2394.2264404296875,
612 "y": 1218.535888671875,
613 "z": "a50b508.c70bcb",
617 "id": "c884502.10a993",
619 "name": "execute Netbox unassign IP addresses",
620 "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`\" />",
623 "x": 1837.5595703125,
624 "y": 1264.3930053710938,
625 "z": "a50b508.c70bcb",
633 "id": "938555fd.2c9f4",
636 "xml": "<outcome value='failure'>\n",
639 "x": 2080.892837524414,
640 "y": 1264.392954826355,
641 "z": "a50b508.c70bcb",
649 "id": "73bb5af.611c4a4",
650 "type": "returnFailure",
651 "name": "return failure",
652 "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",
654 "x": 2242.892864227295,
655 "y": 1264.2026901245117,
656 "z": "a50b508.c70bcb",
660 "id": "74c412e0.e4563c",
662 "name": "block : atomic",
663 "xml": "<block atomic=\"true\">",
666 "x": 1558.1786041259766,
667 "y": 1175.8928241729736,
668 "z": "a50b508.c70bcb",
678 "id": "c6e8fa3c.1df4d8",
681 "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",
684 "x": 1171.84130859375,
685 "y": 488.4206237792969,
686 "z": "a50b508.c70bcb",
692 "id": "5c012e9d.3803c",
694 "name": "vf-module-id",
695 "xml": "<outcome value='vf-module-id'>\n",
698 "x": 1779.285629272461,
699 "y": 588.6706171035767,
700 "z": "a50b508.c70bcb",
708 "id": "b3c8659d.3706c",
710 "name": "set tmp.ss.vf-module-id",
711 "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",
713 "x": 2045.2857513427734,
714 "y": 588.6706171035767,
715 "z": "a50b508.c70bcb",
719 "id": "8a29b237.3a1ab8",
721 "name": "for pidx in param_length",
722 "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`\">",
725 "x": 1045.9285888671875,
726 "y": 1366.7142124176025,
727 "z": "a50b508.c70bcb",
735 "id": "e55f8062.b15058",
736 "type": "switchNode",
737 "name": "switch: param[].name",
738 "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",
741 "x": 1293.9285888671875,
742 "y": 1366.4642124176025,
743 "z": "a50b508.c70bcb",
751 "id": "783ce22f.9c0904",
753 "name": "ip-address",
754 "xml": "<outcome value='ip-address'>",
757 "x": 1538.464340209961,
758 "y": 1366.642786026001,
759 "z": "a50b508.c70bcb",
767 "id": "85da44f2.9478b8",
769 "name": "set resource-resolution-data.status = DELETED",
770 "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",
772 "x": 1860.6429443359375,
773 "y": 1366.857177734375,
774 "z": "a50b508.c70bcb",
778 "id": "180cc75.008d139",
781 "xml": "<outcome value='prefix-id'>\n",
784 "x": 1768.341293334961,
785 "y": 632.9206476211548,
786 "z": "a50b508.c70bcb",
794 "id": "4e3dfad.08e4684",
796 "name": "set prefix-id",
797 "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",
799 "x": 2014.841293334961,
800 "y": 633.1706171035767,
801 "z": "a50b508.c70bcb",
805 "id": "bfdda910.78af88",
807 "name": "execute NetboxClient assignIpAddress",
808 "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`\" />",
811 "x": 1094.52392578125,
812 "y": 804.2023315429688,
813 "z": "a50b508.c70bcb",
821 "id": "632677c6.e90368",
824 "xml": "<outcome value='failure'>\n",
827 "x": 1349.5238647460938,
828 "y": 804.2023315429688,
829 "z": "a50b508.c70bcb",
837 "id": "2c62cad1.235d9e",
839 "name": "block : atomic",
840 "xml": "<block atomic='true'>",
844 "x": 1519.5238647460938,
845 "y": 804.2023315429688,
846 "z": "a50b508.c70bcb",
855 "id": "db150ab3.5a407",
857 "name": "set resource-resolution-data.status = FAILED",
858 "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",
860 "x": 1834.5238647460938,
861 "y": 804.2023315429688,
862 "z": "a50b508.c70bcb",
866 "id": "5b7f4cc.962b0b4",
867 "type": "returnFailure",
868 "name": "return failure",
869 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
871 "x": 1736.1903076171875,
872 "y": 858.0912170410156,
873 "z": "a50b508.c70bcb",
877 "id": "c2ef384b.46015",
879 "name": "set resource-resolution-data.status = SUCCESS",
880 "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",
882 "x": 2057.3214111328125,
883 "y": 1037.8928833007812,
884 "z": "a50b508.c70bcb",
888 "id": "385a53b.66671ac",
890 "name": "ip-address-id",
891 "xml": "<outcome value='ip-address-id'>\n",
894 "x": 1782.2224426269531,
895 "y": 677.7777214050293,
896 "z": "a50b508.c70bcb",
904 "id": "882acfd1.857a7",
906 "name": "ip-address-id",
907 "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",
909 "x": 2017.2223205566406,
910 "y": 677.7777824401855,
911 "z": "a50b508.c70bcb",
915 "id": "6407a5bc.0cc834",
917 "name": "external_key",
918 "xml": "<outcome value='external_key'>\n",
921 "x": 1769.8414611816406,
922 "y": 723.492015838623,
923 "z": "a50b508.c70bcb",
931 "id": "51922093.53fea8",
933 "name": "set external-key",
934 "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",
936 "x": 2018.4128723144531,
937 "y": 723.4920768737793,
938 "z": "a50b508.c70bcb",
942 "id": "2bb8b8e0.b3d528",
944 "name": "tmp.ss.param.name",
945 "xml": "<outcome value='tmp.ss.param.name'>\n",
948 "x": 1543.3333740234375,
949 "y": 979.9998779296875,
950 "z": "a50b508.c70bcb",
958 "id": "4678ae91.df7428",
960 "name": "set tmp.ss.param.name",
961 "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",
963 "x": 1477.7779541015625,
964 "y": 412.22216796875,
965 "z": "a50b508.c70bcb",