Fix for a foreign key constraint fails
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.json
1 [
2     {
3         "id": "1ac00e46.c3e9e2",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 114,
8         "y": 47,
9         "z": "143c1488.728ec3",
10         "wires": [
11             [
12                 "52295e06.9cc6c"
13             ]
14         ]
15     },
16     {
17         "id": "df5325d5.fd4748",
18         "type": "method",
19         "name": "method self-serve-netbox-ip-assignment",
20         "xml": "<method rpc='self-serve-netbox-ip-assignment' mode='sync'>\n",
21         "comments": "",
22         "outputs": 1,
23         "x": 249.7857208251953,
24         "y": 104.1269884109497,
25         "z": "143c1488.728ec3",
26         "wires": [
27             [
28                 "63c730e0.c25018"
29             ]
30         ]
31     },
32     {
33         "id": "63c730e0.c25018",
34         "type": "block",
35         "name": "block : atomic",
36         "xml": "<block atomic=\"true\">",
37         "atomic": "true",
38         "comments": "",
39         "outputs": 1,
40         "x": 143.32144165039062,
41         "y": 190.4286069869995,
42         "z": "143c1488.728ec3",
43         "wires": [
44             [
45                 "5df07877.d41d48",
46                 "317924e0.177cf4",
47                 "66e86dab.782c14",
48                 "fe9daa10.860a48",
49                 "cd60dd04.3a49e"
50             ]
51         ]
52     },
53     {
54         "id": "52295e06.9cc6c",
55         "type": "service-logic",
56         "name": "GENERIC-RESOURCE-API ${project.version}",
57         "module": "GENERIC-RESOURCE-API",
58         "version": "${project.version}",
59         "comments": "",
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}'>",
61         "outputs": 1,
62         "x": 386.8571472167969,
63         "y": 46.42856693267822,
64         "z": "143c1488.728ec3",
65         "wires": [
66             [
67                 "df5325d5.fd4748"
68             ]
69         ]
70     },
71     {
72         "id": "5df07877.d41d48",
73         "type": "switchNode",
74         "name": "switch: ss.capability-name",
75         "xml": "<switch test='`$ss.capability-name`'>\n",
76         "comments": "",
77         "outputs": 1,
78         "x": 401.4999694824219,
79         "y": 194.25000858306885,
80         "z": "143c1488.728ec3",
81         "wires": [
82             [
83                 "1172f991.e8e1ce"
84             ]
85         ]
86     },
87     {
88         "id": "1172f991.e8e1ce",
89         "type": "outcome",
90         "name": "NULL",
91         "xml": "<outcome value=''>",
92         "outputs": 1,
93         "x": 626.4999923706055,
94         "y": 194.75000715255737,
95         "z": "143c1488.728ec3",
96         "wires": [
97             [
98                 "788ea450.d0af24"
99             ]
100         ]
101     },
102     {
103         "id": "788ea450.d0af24",
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",
107         "comments": "",
108         "x": 786.4166641235352,
109         "y": 194.86110591888428,
110         "z": "143c1488.728ec3",
111         "wires": []
112     },
113     {
114         "id": "317924e0.177cf4",
115         "type": "switchNode",
116         "name": "switch: ss.capability-action",
117         "xml": "<switch test='`$ss.capability-action`'>\n",
118         "comments": "",
119         "outputs": 1,
120         "x": 404.74996185302734,
121         "y": 270.25000381469727,
122         "z": "143c1488.728ec3",
123         "wires": [
124             [
125                 "ef7a453e.505a28"
126             ]
127         ]
128     },
129     {
130         "id": "ef7a453e.505a28",
131         "type": "outcome",
132         "name": "NULL",
133         "xml": "<outcome value=''>",
134         "comments": "",
135         "outputs": 1,
136         "x": 628.2499618530273,
137         "y": 270.50000381469727,
138         "z": "143c1488.728ec3",
139         "wires": [
140             [
141                 "2cd2be60.fa73d2"
142             ]
143         ]
144     },
145     {
146         "id": "2cd2be60.fa73d2",
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",
150         "comments": "",
151         "x": 788.166633605957,
152         "y": 270.61110258102417,
153         "z": "143c1488.728ec3",
154         "wires": []
155     },
156     {
157         "id": "dd9f2f74.302358",
158         "type": "outcome",
159         "name": "unassign",
160         "xml": "<outcome value='unassign'>",
161         "comments": "",
162         "outputs": 1,
163         "x": 908.8930053710938,
164         "y": 1550.9286060333252,
165         "z": "143c1488.728ec3",
166         "wires": [
167             [
168                 "d2384164.43d4b8"
169             ]
170         ]
171     },
172     {
173         "id": "fe9daa10.860a48",
174         "type": "call",
175         "name": "call self-service-capability-param-resolution",
176         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-service-capability-param-resolution' mode='sync' >\n",
177         "comments": "",
178         "outputs": 1,
179         "x": 455.41680908203125,
180         "y": 345.250039100647,
181         "z": "143c1488.728ec3",
182         "wires": [
183             [
184                 "6271ac3c.dbb524"
185             ]
186         ]
187     },
188     {
189         "id": "6271ac3c.dbb524",
190         "type": "failure",
191         "name": "failure",
192         "xml": "<outcome value='failure'>\n",
193         "comments": "",
194         "outputs": 1,
195         "x": 759.6667060852051,
196         "y": 347.25004291534424,
197         "z": "143c1488.728ec3",
198         "wires": [
199             [
200                 "6983c90c.9f085"
201             ]
202         ]
203     },
204     {
205         "id": "6983c90c.9f085",
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",
209         "comments": "",
210         "x": 918.4166870117188,
211         "y": 347.250039100647,
212         "z": "143c1488.728ec3",
213         "wires": []
214     },
215     {
216         "id": "a1557c8b.0af52",
217         "type": "set",
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",
220         "comments": "",
221         "x": 918.5634307861328,
222         "y": 403.0317540168762,
223         "z": "143c1488.728ec3",
224         "wires": []
225     },
226     {
227         "id": "dcc3036b.be682",
228         "type": "for",
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`\">",
231         "comments": "",
232         "outputs": 1,
233         "x": 628.7776565551758,
234         "y": 403.10322427749634,
235         "z": "143c1488.728ec3",
236         "wires": [
237             [
238                 "ac1bc695.ba30f8",
239                 "a1557c8b.0af52",
240                 "a8c879d0.2e224"
241             ]
242         ]
243     },
244     {
245         "id": "ac1bc695.ba30f8",
246         "type": "switchNode",
247         "name": "switch: capability-name - ss vs param",
248         "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
249         "comments": "",
250         "outputs": 1,
251         "x": 931.6388931274414,
252         "y": 484.3810067176819,
253         "z": "143c1488.728ec3",
254         "wires": [
255             [
256                 "95d45cef.739a4"
257             ]
258         ]
259     },
260     {
261         "id": "95d45cef.739a4",
262         "type": "outcomeTrue",
263         "name": "true",
264         "xml": "<outcome value='true'>\n",
265         "comments": "",
266         "outputs": 1,
267         "x": 1170.388900756836,
268         "y": 484.1310067176819,
269         "z": "143c1488.728ec3",
270         "wires": [
271             [
272                 "58a7e2ac.369edc"
273             ]
274         ]
275     },
276     {
277         "id": "ae0c0642.b8f398",
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",
281         "comments": "",
282         "outputs": 1,
283         "x": 1357.778221130371,
284         "y": 804.4249711036682,
285         "z": "143c1488.728ec3",
286         "wires": [
287             [
288                 "30dba812.eebad",
289                 "9ccc6ec3.307098",
290                 "17e282ca.caa0c5",
291                 "79d8a08e.f34778",
292                 "a090c1a0.159c8"
293             ]
294         ]
295     },
296     {
297         "id": "9ccc6ec3.307098",
298         "type": "outcome",
299         "name": "service-instance-id",
300         "xml": "<outcome value='service-instance-id'>\n",
301         "comments": "",
302         "outputs": 1,
303         "x": 1629.1671295166016,
304         "y": 803.897189617157,
305         "z": "143c1488.728ec3",
306         "wires": [
307             [
308                 "c862bfff.9602c"
309             ]
310         ]
311     },
312     {
313         "id": "c862bfff.9602c",
314         "type": "set",
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",
317         "comments": "",
318         "x": 1895.4171295166016,
319         "y": 803.647189617157,
320         "z": "143c1488.728ec3",
321         "wires": []
322     },
323     {
324         "id": "ae459d03.790da",
325         "type": "set",
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='`$self_serve_netbox_ip_assignement.ip-address`' />\n",
328         "comments": "",
329         "x": 2387.3892211914062,
330         "y": 1346.746416091919,
331         "z": "143c1488.728ec3",
332         "wires": []
333     },
334     {
335         "id": "e576077c.d41a68",
336         "type": "for",
337         "name": "for pidx in param_length",
338         "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`\">",
339         "comments": "",
340         "outputs": 1,
341         "x": 1363.7142944335938,
342         "y": 1345.6789722442627,
343         "z": "143c1488.728ec3",
344         "wires": [
345             [
346                 "b57441f1.40176"
347             ]
348         ]
349     },
350     {
351         "id": "b57441f1.40176",
352         "type": "switchNode",
353         "name": "switch: param[].name",
354         "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",
355         "comments": "",
356         "outputs": 1,
357         "x": 1609.4920043945312,
358         "y": 1345.4289112091064,
359         "z": "143c1488.728ec3",
360         "wires": [
361             [
362                 "afe763c2.be4ad"
363             ]
364         ]
365     },
366     {
367         "id": "8b2de334.ba017",
368         "type": "block",
369         "name": "block",
370         "xml": "<block>\n",
371         "atomic": "false",
372         "comments": "",
373         "outputs": 1,
374         "x": 2117.5001945495605,
375         "y": 1347.6076221466064,
376         "z": "143c1488.728ec3",
377         "wires": [
378             [
379                 "ae459d03.790da",
380                 "2123959.27e4fea"
381             ]
382         ]
383     },
384     {
385         "id": "bd927868.04ca28",
386         "type": "update",
387         "name": "get-resource IPAM_IP_ASSIGNEMENT",
388         "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' >",
389         "comments": "",
390         "outputs": 1,
391         "x": 1384.3770751953125,
392         "y": 1549.7500171661377,
393         "z": "143c1488.728ec3",
394         "wires": [
395             [
396                 "97c050e3.e78ef8",
397                 "fcaae989.8a065"
398             ]
399         ]
400     },
401     {
402         "id": "97c050e3.e78ef8",
403         "type": "not-found",
404         "name": "not-found",
405         "xml": "<outcome value='not-found'>\n",
406         "comments": "",
407         "outputs": 1,
408         "x": 1678.964412689209,
409         "y": 1550.7500503063202,
410         "z": "143c1488.728ec3",
411         "wires": [
412             [
413                 "e707327c.c14c1"
414             ]
415         ]
416     },
417     {
418         "id": "e707327c.c14c1",
419         "type": "block",
420         "name": "block",
421         "xml": "<block>\n",
422         "atomic": "false",
423         "comments": "",
424         "outputs": 1,
425         "x": 1849.1072213309153,
426         "y": 1551.1786281040736,
427         "z": "143c1488.728ec3",
428         "wires": [
429             []
430         ]
431     },
432     {
433         "id": "fcaae989.8a065",
434         "type": "success",
435         "name": "success",
436         "xml": "<outcome value='success'>\n",
437         "comments": "",
438         "outputs": 1,
439         "x": 1675.6785583496094,
440         "y": 1598.4643630981445,
441         "z": "143c1488.728ec3",
442         "wires": [
443             [
444                 "1905e389.47be1c"
445             ]
446         ]
447     },
448     {
449         "id": "d2384164.43d4b8",
450         "type": "block",
451         "name": "block : atomic",
452         "xml": "<block atomic=\"true\">",
453         "atomic": "true",
454         "outputs": 1,
455         "x": 1078.214370727539,
456         "y": 1551.3929615020752,
457         "z": "143c1488.728ec3",
458         "wires": [
459             [
460                 "bd927868.04ca28",
461                 "8b0e1626.d5a95"
462             ]
463         ]
464     },
465     {
466         "id": "dd1d0acb.f3d9f",
467         "type": "for",
468         "name": "for kidx in resource-key_length",
469         "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`\">",
470         "comments": "",
471         "outputs": 1,
472         "x": 1074.639305114746,
473         "y": 802.2860550880432,
474         "z": "143c1488.728ec3",
475         "wires": [
476             [
477                 "ae0c0642.b8f398"
478             ]
479         ]
480     },
481     {
482         "id": "cd60dd04.3a49e",
483         "type": "block",
484         "name": "block",
485         "xml": "<block>\n",
486         "atomic": "false",
487         "comments": "",
488         "outputs": 1,
489         "x": 345.03570556640625,
490         "y": 401.22620487213135,
491         "z": "143c1488.728ec3",
492         "wires": [
493             [
494                 "dcc3036b.be682",
495                 "8f13f8ba.2b7f7"
496             ]
497         ]
498     },
499     {
500         "id": "66e86dab.782c14",
501         "type": "execute",
502         "name": "printContext",
503         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss.eipam.log' />\n",
504         "comments": "",
505         "outputs": 1,
506         "x": 143.5833740234375,
507         "y": 1909.6664819717407,
508         "z": "143c1488.728ec3",
509         "wires": [
510             []
511         ]
512     },
513     {
514         "id": "178de813.ea0878",
515         "type": "update",
516         "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
517         "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\" >",
518         "comments": "",
519         "outputs": 1,
520         "x": 2207.2740478515625,
521         "y": 1641.4287281036377,
522         "z": "143c1488.728ec3",
523         "wires": [
524             [
525                 "22ea54b4.9a4a5c"
526             ]
527         ]
528     },
529     {
530         "id": "c8aa945e.cb553",
531         "type": "set",
532         "name": "set status = PENDING_DELETE",
533         "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
534         "comments": "",
535         "x": 2117.1905517578125,
536         "y": 1599.7619800567627,
537         "z": "143c1488.728ec3",
538         "wires": []
539     },
540     {
541         "id": "22ea54b4.9a4a5c",
542         "type": "failure",
543         "name": "failure",
544         "xml": "<outcome value='failure'>\n",
545         "comments": "",
546         "outputs": 1,
547         "x": 2514.9405059814453,
548         "y": 1642.0120515823364,
549         "z": "143c1488.728ec3",
550         "wires": [
551             [
552                 "29d7a55a.db16a2"
553             ]
554         ]
555     },
556     {
557         "id": "29d7a55a.db16a2",
558         "type": "returnFailure",
559         "name": "return failure",
560         "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",
561         "comments": "",
562         "x": 2693.9407958984375,
563         "y": 1641.8216724395752,
564         "z": "143c1488.728ec3",
565         "wires": []
566     },
567     {
568         "id": "e13d8645.38dff8",
569         "type": "execute",
570         "name": "execute Netbox unassign IP addresses",
571         "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`\" />",
572         "comments": "",
573         "outputs": 1,
574         "x": 2137.27392578125,
575         "y": 1687.678789138794,
576         "z": "143c1488.728ec3",
577         "wires": [
578             [
579                 "8a2f8559.485e"
580             ]
581         ]
582     },
583     {
584         "id": "8a2f8559.485e",
585         "type": "failure",
586         "name": "failure",
587         "xml": "<outcome value='failure'>\n",
588         "comments": "",
589         "outputs": 1,
590         "x": 2380.607192993164,
591         "y": 1687.6787385940552,
592         "z": "143c1488.728ec3",
593         "wires": [
594             [
595                 "745a09ce.fc0c18"
596             ]
597         ]
598     },
599     {
600         "id": "745a09ce.fc0c18",
601         "type": "returnFailure",
602         "name": "return failure",
603         "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",
604         "comments": "",
605         "x": 2542.607219696045,
606         "y": 1687.488473892212,
607         "z": "143c1488.728ec3",
608         "wires": []
609     },
610     {
611         "id": "1905e389.47be1c",
612         "type": "block",
613         "name": "block : atomic",
614         "xml": "<block atomic=\"true\">",
615         "atomic": "true",
616         "outputs": 1,
617         "x": 1857.8929595947266,
618         "y": 1599.1786079406738,
619         "z": "143c1488.728ec3",
620         "wires": [
621             [
622                 "c8aa945e.cb553",
623                 "178de813.ea0878",
624                 "e13d8645.38dff8"
625             ]
626         ]
627     },
628     {
629         "id": "8f13f8ba.2b7f7",
630         "type": "record",
631         "name": "record",
632         "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",
633         "comments": "",
634         "outputs": 1,
635         "x": 580.84130859375,
636         "y": 458.170693397522,
637         "z": "143c1488.728ec3",
638         "wires": [
639             []
640         ]
641     },
642     {
643         "id": "30dba812.eebad",
644         "type": "outcome",
645         "name": "vf-module-id",
646         "xml": "<outcome value='vf-module-id'>\n",
647         "comments": "",
648         "outputs": 1,
649         "x": 1611.0001373291016,
650         "y": 850.1471285820007,
651         "z": "143c1488.728ec3",
652         "wires": [
653             [
654                 "c1e7f26f.85c74"
655             ]
656         ]
657     },
658     {
659         "id": "c1e7f26f.85c74",
660         "type": "set",
661         "name": "set tmp.ss.vf-module-id",
662         "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",
663         "comments": "",
664         "x": 1877.000259399414,
665         "y": 850.1471285820007,
666         "z": "143c1488.728ec3",
667         "wires": []
668     },
669     {
670         "id": "8b0e1626.d5a95",
671         "type": "for",
672         "name": "for pidx in param_length",
673         "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`\">",
674         "comments": "",
675         "outputs": 1,
676         "x": 1345.6429443359375,
677         "y": 1789.9999961853027,
678         "z": "143c1488.728ec3",
679         "wires": [
680             [
681                 "81010aef.f49a18"
682             ]
683         ]
684     },
685     {
686         "id": "81010aef.f49a18",
687         "type": "switchNode",
688         "name": "switch: param[].name",
689         "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",
690         "comments": "",
691         "outputs": 1,
692         "x": 1593.6429443359375,
693         "y": 1789.7499961853027,
694         "z": "143c1488.728ec3",
695         "wires": [
696             [
697                 "e1dfefe2.393f88"
698             ]
699         ]
700     },
701     {
702         "id": "e1dfefe2.393f88",
703         "type": "outcome",
704         "name": "ip-address",
705         "xml": "<outcome value='ip-address'>",
706         "comments": "",
707         "outputs": 1,
708         "x": 1838.178695678711,
709         "y": 1789.9285697937012,
710         "z": "143c1488.728ec3",
711         "wires": [
712             [
713                 "e87a20cc.b590a8"
714             ]
715         ]
716     },
717     {
718         "id": "e87a20cc.b590a8",
719         "type": "set",
720         "name": "set resource-resolution-data.status = DELETED",
721         "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",
722         "comments": "",
723         "x": 2160.3572998046875,
724         "y": 1790.1429615020752,
725         "z": "143c1488.728ec3",
726         "wires": []
727     },
728     {
729         "id": "17e282ca.caa0c5",
730         "type": "outcome",
731         "name": "prefix-id",
732         "xml": "<outcome value='prefix-id'>\n",
733         "comments": "",
734         "outputs": 1,
735         "x": 1600.0558013916016,
736         "y": 894.3971590995789,
737         "z": "143c1488.728ec3",
738         "wires": [
739             [
740                 "d72c0767.d2203"
741             ]
742         ]
743     },
744     {
745         "id": "d72c0767.d2203",
746         "type": "set",
747         "name": "set prefix-id",
748         "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",
749         "comments": "",
750         "x": 1846.5558013916016,
751         "y": 894.6471285820007,
752         "z": "143c1488.728ec3",
753         "wires": []
754     },
755     {
756         "id": "e8bdbae6.040f1",
757         "type": "execute",
758         "name": "execute NetboxClient assignIpAddress",
759         "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`\" />",
760         "comments": "",
761         "outputs": 1,
762         "x": 1381.9525756835938,
763         "y": 1208.9170093536377,
764         "z": "143c1488.728ec3",
765         "wires": [
766             [
767                 "6e70c100.8f1ee"
768             ]
769         ]
770     },
771     {
772         "id": "6e70c100.8f1ee",
773         "type": "failure",
774         "name": "failure",
775         "xml": "<outcome value='failure'>\n",
776         "comments": "",
777         "outputs": 1,
778         "x": 1698.9525756835938,
779         "y": 1210.9169483184814,
780         "z": "143c1488.728ec3",
781         "wires": [
782             [
783                 "1439cf99.003e9"
784             ]
785         ]
786     },
787     {
788         "id": "1439cf99.003e9",
789         "type": "block",
790         "name": "block : atomic",
791         "xml": "<block atomic='true'>",
792         "atomic": "true",
793         "comments": "",
794         "outputs": 1,
795         "x": 1906.9525756835938,
796         "y": 1214.9169483184814,
797         "z": "143c1488.728ec3",
798         "wires": [
799             [
800                 "2738f77e.bc5c7",
801                 "663a6846.85cae8"
802             ]
803         ]
804     },
805     {
806         "id": "2738f77e.bc5c7",
807         "type": "set",
808         "name": "set resource-resolution-data.status = FAILED",
809         "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",
810         "comments": "",
811         "x": 2223.95263671875,
812         "y": 1218.9169178009033,
813         "z": "143c1488.728ec3",
814         "wires": []
815     },
816     {
817         "id": "663a6846.85cae8",
818         "type": "returnFailure",
819         "name": "return failure",
820         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
821         "comments": "",
822         "x": 2125.6190795898438,
823         "y": 1272.8058032989502,
824         "z": "143c1488.728ec3",
825         "wires": []
826     },
827     {
828         "id": "2123959.27e4fea",
829         "type": "set",
830         "name": "set resource-resolution-data.status = SUCCESS",
831         "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",
832         "comments": "",
833         "x": 2408.750160217285,
834         "y": 1404.6076169013977,
835         "z": "143c1488.728ec3",
836         "wires": []
837     },
838     {
839         "id": "79d8a08e.f34778",
840         "type": "outcome",
841         "name": "ip-address-id",
842         "xml": "<outcome value='ip-address-id'>\n",
843         "comments": "",
844         "outputs": 1,
845         "x": 1613.9369506835938,
846         "y": 939.2542328834534,
847         "z": "143c1488.728ec3",
848         "wires": [
849             [
850                 "e3ef613a.32a62"
851             ]
852         ]
853     },
854     {
855         "id": "e3ef613a.32a62",
856         "type": "set",
857         "name": "ip-address-id",
858         "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",
859         "comments": "",
860         "x": 1848.9368286132812,
861         "y": 939.2542939186096,
862         "z": "143c1488.728ec3",
863         "wires": []
864     },
865     {
866         "id": "a090c1a0.159c8",
867         "type": "outcome",
868         "name": "external_key",
869         "xml": "<outcome value='external_key'>\n",
870         "comments": "",
871         "outputs": 1,
872         "x": 1601.5559692382812,
873         "y": 984.9685273170471,
874         "z": "143c1488.728ec3",
875         "wires": [
876             [
877                 "5e668590.73215c"
878             ]
879         ]
880     },
881     {
882         "id": "5e668590.73215c",
883         "type": "set",
884         "name": "set external-key",
885         "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",
886         "comments": "",
887         "x": 1850.1273803710938,
888         "y": 984.9685883522034,
889         "z": "143c1488.728ec3",
890         "wires": []
891     },
892     {
893         "id": "afe763c2.be4ad",
894         "type": "outcome",
895         "name": "tmp.ss.param.name",
896         "xml": "<outcome value='`$tmp.ss.param.name`'>\n",
897         "comments": "",
898         "outputs": 1,
899         "x": 1894.7621459960938,
900         "y": 1346.7146167755127,
901         "z": "143c1488.728ec3",
902         "wires": [
903             [
904                 "8b2de334.ba017"
905             ]
906         ]
907     },
908     {
909         "id": "a8c879d0.2e224",
910         "type": "set",
911         "name": "set tmp.ss.param.name",
912         "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",
913         "comments": "",
914         "x": 890.3493728637695,
915         "y": 443.2222390174866,
916         "z": "143c1488.728ec3",
917         "wires": []
918     },
919     {
920         "id": "58a7e2ac.369edc",
921         "type": "switchNode",
922         "name": "switch: resource-resolution-data.status",
923         "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",
924         "comments": "",
925         "outputs": 1,
926         "x": 430.2855224609375,
927         "y": 779.1906518936157,
928         "z": "143c1488.728ec3",
929         "wires": [
930             [
931                 "9a3a9127.28a32",
932                 "1a31fbda.d127d4"
933             ]
934         ]
935     },
936     {
937         "id": "9a3a9127.28a32",
938         "type": "not-found",
939         "name": "FAILED",
940         "xml": "<outcome value='FAILED'>\n",
941         "comments": "",
942         "outputs": 1,
943         "x": 661.7143249511719,
944         "y": 775.1906976699829,
945         "z": "143c1488.728ec3",
946         "wires": [
947             [
948                 "b5c2d57.1e7f9a8"
949             ]
950         ]
951     },
952     {
953         "id": "1a31fbda.d127d4",
954         "type": "success",
955         "name": "PENDING",
956         "xml": "<outcome value='PENDING'>\n",
957         "comments": "",
958         "outputs": 1,
959         "x": 668.4285011291504,
960         "y": 826.9050257205963,
961         "z": "143c1488.728ec3",
962         "wires": [
963             [
964                 "b5c2d57.1e7f9a8"
965             ]
966         ]
967     },
968     {
969         "id": "b5c2d57.1e7f9a8",
970         "type": "block",
971         "name": "block",
972         "xml": "<block>\n",
973         "atomic": "false",
974         "comments": "",
975         "outputs": 1,
976         "x": 823.142822265625,
977         "y": 799.190712928772,
978         "z": "143c1488.728ec3",
979         "wires": [
980             [
981                 "dd1d0acb.f3d9f",
982                 "1ab3438e.44fb7c"
983             ]
984         ]
985     },
986     {
987         "id": "efe3d3a6.f63418",
988         "type": "outcome",
989         "name": "assign",
990         "xml": "<outcome value='assign'>",
991         "comments": "",
992         "outputs": 1,
993         "x": 880.9999389648438,
994         "y": 1207.0002613067627,
995         "z": "143c1488.728ec3",
996         "wires": [
997             [
998                 "f69c94df.b1d828"
999             ]
1000         ]
1001     },
1002     {
1003         "id": "1ab3438e.44fb7c",
1004         "type": "switchNode",
1005         "name": "switch: ss.capability-action",
1006         "xml": "<switch test='`$ss.capability-action`'>\n",
1007         "comments": "",
1008         "outputs": 1,
1009         "x": 644.9999389648438,
1010         "y": 1205.0002613067627,
1011         "z": "143c1488.728ec3",
1012         "wires": [
1013             [
1014                 "efe3d3a6.f63418",
1015                 "dd9f2f74.302358"
1016             ]
1017         ]
1018     },
1019     {
1020         "id": "f69c94df.b1d828",
1021         "type": "block",
1022         "name": "block : atomic",
1023         "xml": "<block atomic='true'>",
1024         "atomic": "true",
1025         "comments": "",
1026         "outputs": 1,
1027         "x": 1056.4285888671875,
1028         "y": 1207.857500076294,
1029         "z": "143c1488.728ec3",
1030         "wires": [
1031             [
1032                 "e8bdbae6.040f1",
1033                 "e576077c.d41a68"
1034             ]
1035         ]
1036     }
1037 ]