Fix self serve DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.json
1 [
2     {
3         "id": "77c2b18.8d31ed",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 112,
8         "y": 53.57143306732178,
9         "z": "9db1531d.07a1a",
10         "wires": [
11             [
12                 "9dcfa1bf.c57ff"
13             ]
14         ]
15     },
16     {
17         "id": "f8a5c87f.00d498",
18         "type": "method",
19         "name": "method self-serve-netbox-ip-assign",
20         "xml": "<method rpc='self-serve-netbox-ip-assign' mode='sync'>\n",
21         "comments": "",
22         "outputs": 1,
23         "x": 247.7857208251953,
24         "y": 110.69842147827148,
25         "z": "9db1531d.07a1a",
26         "wires": [
27             [
28                 "547eae19.add57"
29             ]
30         ]
31     },
32     {
33         "id": "547eae19.add57",
34         "type": "block",
35         "name": "block : atomic",
36         "xml": "<block atomic=\"true\">",
37         "atomic": "true",
38         "comments": "",
39         "outputs": 1,
40         "x": 141.32144165039062,
41         "y": 197.0000400543213,
42         "z": "9db1531d.07a1a",
43         "wires": [
44             [
45                 "74f4f85d.362368",
46                 "511e7db4.d38c5c",
47                 "1c580da3.ca9442",
48                 "9b5b9dd.e182f6",
49                 "727a4c78.25da9c"
50             ]
51         ]
52     },
53     {
54         "id": "9dcfa1bf.c57ff",
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": 384.8571472167969,
63         "y": 53,
64         "z": "9db1531d.07a1a",
65         "wires": [
66             [
67                 "f8a5c87f.00d498"
68             ]
69         ]
70     },
71     {
72         "id": "74f4f85d.362368",
73         "type": "switchNode",
74         "name": "switch: ss.capability-name",
75         "xml": "<switch test='`$ss.capability-name`'>\n",
76         "comments": "",
77         "outputs": 1,
78         "x": 399.4999694824219,
79         "y": 200.82144165039062,
80         "z": "9db1531d.07a1a",
81         "wires": [
82             [
83                 "b9e21b14.67ef6"
84             ]
85         ]
86     },
87     {
88         "id": "b9e21b14.67ef6",
89         "type": "outcome",
90         "name": "NULL",
91         "xml": "<outcome value=''>",
92         "outputs": 1,
93         "x": 624.4999923706055,
94         "y": 201.32144021987915,
95         "z": "9db1531d.07a1a",
96         "wires": [
97             [
98                 "73fe504e.4705c"
99             ]
100         ]
101     },
102     {
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",
107         "comments": "",
108         "x": 784.4166641235352,
109         "y": 201.43253898620605,
110         "z": "9db1531d.07a1a",
111         "wires": []
112     },
113     {
114         "id": "511e7db4.d38c5c",
115         "type": "switchNode",
116         "name": "switch: ss.capability-action",
117         "xml": "<switch test='`$ss.capability-action`'>\n",
118         "comments": "",
119         "outputs": 1,
120         "x": 402.74996185302734,
121         "y": 276.82143688201904,
122         "z": "9db1531d.07a1a",
123         "wires": [
124             [
125                 "44dc8d7e.430a74"
126             ]
127         ]
128     },
129     {
130         "id": "44dc8d7e.430a74",
131         "type": "outcome",
132         "name": "NULL",
133         "xml": "<outcome value=''>",
134         "comments": "",
135         "outputs": 1,
136         "x": 626.2499618530273,
137         "y": 277.07143688201904,
138         "z": "9db1531d.07a1a",
139         "wires": [
140             [
141                 "1a43de2d.0a450a"
142             ]
143         ]
144     },
145     {
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",
150         "comments": "",
151         "x": 786.166633605957,
152         "y": 277.18253564834595,
153         "z": "9db1531d.07a1a",
154         "wires": []
155     },
156     {
157         "id": "19870db6.43192a",
158         "type": "outcome",
159         "name": "unassign",
160         "xml": "<outcome value='unassign'>",
161         "comments": "",
162         "outputs": 1,
163         "x": 1251.8930969238281,
164         "y": 3041.6666650772095,
165         "z": "9db1531d.07a1a",
166         "wires": [
167             [
168                 "d275ec9.837569"
169             ]
170         ]
171     },
172     {
173         "id": "1c580da3.ca9442",
174         "type": "call",
175         "name": "call self-serve-capability-param-resolution",
176         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n",
177         "comments": "",
178         "outputs": 1,
179         "x": 453.41680908203125,
180         "y": 351.82147216796875,
181         "z": "9db1531d.07a1a",
182         "wires": [
183             [
184                 "5d40b27c.221a9c"
185             ]
186         ]
187     },
188     {
189         "id": "5d40b27c.221a9c",
190         "type": "failure",
191         "name": "failure",
192         "xml": "<outcome value='failure'>\n",
193         "comments": "",
194         "outputs": 1,
195         "x": 757.6667060852051,
196         "y": 353.821475982666,
197         "z": "9db1531d.07a1a",
198         "wires": [
199             [
200                 "edcc63af.4dd9d8"
201             ]
202         ]
203     },
204     {
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",
209         "comments": "",
210         "x": 916.4166870117188,
211         "y": 353.82147216796875,
212         "z": "9db1531d.07a1a",
213         "wires": []
214     },
215     {
216         "id": "4f9c6ac7.4bbeac",
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": 1199.0635833740234,
222         "y": 1963.7697825431824,
223         "z": "9db1531d.07a1a",
224         "wires": []
225     },
226     {
227         "id": "c92d4312.5079b8",
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": 909.2778091430664,
234         "y": 1963.8412528038025,
235         "z": "9db1531d.07a1a",
236         "wires": [
237             [
238                 "f2a77014.d729d8",
239                 "864fa674.d2c07",
240                 "4f9c6ac7.4bbeac"
241             ]
242         ]
243     },
244     {
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",
249         "comments": "",
250         "outputs": 1,
251         "x": 1212.139045715332,
252         "y": 2045.119035243988,
253         "z": "9db1531d.07a1a",
254         "wires": [
255             [
256                 "27ca1b50.7b7b94"
257             ]
258         ]
259     },
260     {
261         "id": "27ca1b50.7b7b94",
262         "type": "outcomeTrue",
263         "name": "true",
264         "xml": "<outcome value='true'>\n",
265         "comments": "",
266         "outputs": 1,
267         "x": 1450.8890533447266,
268         "y": 2044.869035243988,
269         "z": "9db1531d.07a1a",
270         "wires": [
271             [
272                 "8094ff69.1f8708"
273             ]
274         ]
275     },
276     {
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",
281         "comments": "",
282         "outputs": 1,
283         "x": 1700.7783126831055,
284         "y": 2295.1630301475525,
285         "z": "9db1531d.07a1a",
286         "wires": [
287             [
288                 "33db91f0.e9f01e",
289                 "e6bd6a68.08413",
290                 "5e2abf9b.b85b4",
291                 "a20a3dc.5fc3fc",
292                 "82eaeb00.f8a53"
293             ]
294         ]
295     },
296     {
297         "id": "e6bd6a68.08413",
298         "type": "outcome",
299         "name": "service-instance-id",
300         "xml": "<outcome value='service-instance-id'>\n",
301         "comments": "",
302         "outputs": 1,
303         "x": 1972.167221069336,
304         "y": 2294.6352486610413,
305         "z": "9db1531d.07a1a",
306         "wires": [
307             [
308                 "ef960f90.e62e4"
309             ]
310         ]
311     },
312     {
313         "id": "ef960f90.e62e4",
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": 2238.417221069336,
319         "y": 2294.3852486610413,
320         "z": "9db1531d.07a1a",
321         "wires": []
322     },
323     {
324         "id": "b434a262.2a412",
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='`$ip[0]`' />\n",
328         "comments": "",
329         "x": 2534.960205078125,
330         "y": 2879.62744140625,
331         "z": "9db1531d.07a1a",
332         "wires": []
333     },
334     {
335         "id": "7e13641e.d9c954",
336         "type": "update",
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' >",
339         "comments": "",
340         "outputs": 1,
341         "x": 1727.3771667480469,
342         "y": 3040.488076210022,
343         "z": "9db1531d.07a1a",
344         "wires": [
345             [
346                 "986620e4.a7ba3",
347                 "95406bea.6b1b6"
348             ]
349         ]
350     },
351     {
352         "id": "986620e4.a7ba3",
353         "type": "not-found",
354         "name": "not-found",
355         "xml": "<outcome value='not-found'>\n",
356         "comments": "",
357         "outputs": 1,
358         "x": 2021.9645042419434,
359         "y": 3041.4881093502045,
360         "z": "9db1531d.07a1a",
361         "wires": [
362             [
363                 "d043ccbb.6e195"
364             ]
365         ]
366     },
367     {
368         "id": "d275ec9.837569",
369         "type": "block",
370         "name": "block : atomic",
371         "xml": "<block atomic=\"true\">",
372         "atomic": "true",
373         "outputs": 1,
374         "x": 1421.2144622802734,
375         "y": 3042.1310205459595,
376         "z": "9db1531d.07a1a",
377         "wires": [
378             [
379                 "7e13641e.d9c954"
380             ]
381         ]
382     },
383     {
384         "id": "eabe3654.2861f",
385         "type": "for",
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`\">",
388         "comments": "",
389         "outputs": 1,
390         "x": 1417.6393966674805,
391         "y": 2293.0241141319275,
392         "z": "9db1531d.07a1a",
393         "wires": [
394             [
395                 "e4dea9e2.e240e8"
396             ]
397         ]
398     },
399     {
400         "id": "3a044c4d.1e750c",
401         "type": "block",
402         "name": "block",
403         "xml": "<block>\n",
404         "atomic": "false",
405         "comments": "",
406         "outputs": 1,
407         "x": 625.5358581542969,
408         "y": 1961.9642333984375,
409         "z": "9db1531d.07a1a",
410         "wires": [
411             [
412                 "c92d4312.5079b8",
413                 "4ffc883e.37e15"
414             ]
415         ]
416     },
417     {
418         "id": "776bc197.c4cea8",
419         "type": "update",
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\" >",
422         "comments": "",
423         "outputs": 1,
424         "x": 2550.274139404297,
425         "y": 3132.166787147522,
426         "z": "9db1531d.07a1a",
427         "wires": [
428             [
429                 "b463a755.296e38"
430             ]
431         ]
432     },
433     {
434         "id": "e61cd52d.9b53c8",
435         "type": "set",
436         "name": "set status = PENDING_DELETE",
437         "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
438         "comments": "",
439         "x": 2460.190643310547,
440         "y": 3090.500039100647,
441         "z": "9db1531d.07a1a",
442         "wires": []
443     },
444     {
445         "id": "b463a755.296e38",
446         "type": "failure",
447         "name": "failure",
448         "xml": "<outcome value='failure'>\n",
449         "comments": "",
450         "outputs": 1,
451         "x": 2857.9405975341797,
452         "y": 3132.7501106262207,
453         "z": "9db1531d.07a1a",
454         "wires": [
455             [
456                 "623c3038.c77a88"
457             ]
458         ]
459     },
460     {
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",
465         "comments": "",
466         "x": 3036.940887451172,
467         "y": 3132.5597314834595,
468         "z": "9db1531d.07a1a",
469         "wires": []
470     },
471     {
472         "id": "46730243.5a19d4",
473         "type": "execute",
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`\" />",
476         "comments": "",
477         "outputs": 1,
478         "x": 2480.2740173339844,
479         "y": 3178.416848182678,
480         "z": "9db1531d.07a1a",
481         "wires": [
482             [
483                 "41c93106.7eb858",
484                 "7f8823ca.cd3dd4"
485             ]
486         ]
487     },
488     {
489         "id": "41c93106.7eb858",
490         "type": "failure",
491         "name": "failure",
492         "xml": "<outcome value='failure'>\n",
493         "comments": "",
494         "outputs": 1,
495         "x": 2723.6072845458984,
496         "y": 3178.4167976379395,
497         "z": "9db1531d.07a1a",
498         "wires": [
499             [
500                 "572457e6.ddb978"
501             ]
502         ]
503     },
504     {
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",
509         "comments": "",
510         "x": 2885.6073112487793,
511         "y": 3178.226532936096,
512         "z": "9db1531d.07a1a",
513         "wires": []
514     },
515     {
516         "id": "a33aa0af.bd279",
517         "type": "block",
518         "name": "block : atomic",
519         "xml": "<block atomic=\"true\">",
520         "atomic": "true",
521         "outputs": 1,
522         "x": 2200.893051147461,
523         "y": 3089.916666984558,
524         "z": "9db1531d.07a1a",
525         "wires": [
526             [
527                 "e61cd52d.9b53c8",
528                 "776bc197.c4cea8",
529                 "46730243.5a19d4"
530             ]
531         ]
532     },
533     {
534         "id": "4ffc883e.37e15",
535         "type": "record",
536         "name": "record",
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",
538         "comments": "",
539         "outputs": 1,
540         "x": 861.3414611816406,
541         "y": 2018.9087219238281,
542         "z": "9db1531d.07a1a",
543         "wires": [
544             []
545         ]
546     },
547     {
548         "id": "33db91f0.e9f01e",
549         "type": "outcome",
550         "name": "vf-module-id",
551         "xml": "<outcome value='vf-module-id'>\n",
552         "comments": "",
553         "outputs": 1,
554         "x": 1954.000228881836,
555         "y": 2340.885187625885,
556         "z": "9db1531d.07a1a",
557         "wires": [
558             [
559                 "6181952e.31b6cc"
560             ]
561         ]
562     },
563     {
564         "id": "6181952e.31b6cc",
565         "type": "set",
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",
568         "comments": "",
569         "x": 2220.0003509521484,
570         "y": 2340.885187625885,
571         "z": "9db1531d.07a1a",
572         "wires": []
573     },
574     {
575         "id": "369a3888.44684",
576         "type": "set",
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",
579         "comments": "",
580         "x": 2990.499969482422,
581         "y": 3233.737548828125,
582         "z": "9db1531d.07a1a",
583         "wires": []
584     },
585     {
586         "id": "5e2abf9b.b85b4",
587         "type": "outcome",
588         "name": "prefix-id",
589         "xml": "<outcome value='prefix-id'>\n",
590         "comments": "",
591         "outputs": 1,
592         "x": 1943.055892944336,
593         "y": 2385.135218143463,
594         "z": "9db1531d.07a1a",
595         "wires": [
596             [
597                 "6a64ea7a.aa0bac"
598             ]
599         ]
600     },
601     {
602         "id": "6a64ea7a.aa0bac",
603         "type": "set",
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",
606         "comments": "",
607         "x": 2189.555892944336,
608         "y": 2385.385187625885,
609         "z": "9db1531d.07a1a",
610         "wires": []
611     },
612     {
613         "id": "5ddc29c0.4ba838",
614         "type": "execute",
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`\" />",
617         "comments": "",
618         "outputs": 1,
619         "x": 1724.9526672363281,
620         "y": 2699.655068397522,
621         "z": "9db1531d.07a1a",
622         "wires": [
623             [
624                 "b4f4fccf.d98da",
625                 "69e14266.f416c4"
626             ]
627         ]
628     },
629     {
630         "id": "b4f4fccf.d98da",
631         "type": "failure",
632         "name": "failure",
633         "xml": "<outcome value='failure'>\n",
634         "comments": "",
635         "outputs": 1,
636         "x": 2041.9526672363281,
637         "y": 2701.6550073623657,
638         "z": "9db1531d.07a1a",
639         "wires": [
640             [
641                 "3690386c.790168"
642             ]
643         ]
644     },
645     {
646         "id": "3690386c.790168",
647         "type": "block",
648         "name": "block : atomic",
649         "xml": "<block atomic='true'>",
650         "atomic": "true",
651         "comments": "",
652         "outputs": 1,
653         "x": 2249.952667236328,
654         "y": 2705.6550073623657,
655         "z": "9db1531d.07a1a",
656         "wires": [
657             [
658                 "e87ee382.86daa8",
659                 "8cda7799.2cc048"
660             ]
661         ]
662     },
663     {
664         "id": "e87ee382.86daa8",
665         "type": "set",
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",
668         "comments": "",
669         "x": 2566.9527282714844,
670         "y": 2709.6549768447876,
671         "z": "9db1531d.07a1a",
672         "wires": []
673     },
674     {
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",
679         "comments": "",
680         "x": 2464.3335876464844,
681         "y": 2759.2582397460938,
682         "z": "9db1531d.07a1a",
683         "wires": []
684     },
685     {
686         "id": "e9502efd.cfacb8",
687         "type": "set",
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",
690         "comments": "",
691         "x": 2552.0357666015625,
692         "y": 2930.3457641601562,
693         "z": "9db1531d.07a1a",
694         "wires": []
695     },
696     {
697         "id": "a20a3dc.5fc3fc",
698         "type": "outcome",
699         "name": "ip-address-id",
700         "xml": "<outcome value='ip-address-id'>\n",
701         "comments": "",
702         "outputs": 1,
703         "x": 1956.9370422363281,
704         "y": 2429.9922919273376,
705         "z": "9db1531d.07a1a",
706         "wires": [
707             [
708                 "a24b6a2f.50759"
709             ]
710         ]
711     },
712     {
713         "id": "a24b6a2f.50759",
714         "type": "set",
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",
717         "comments": "",
718         "x": 2191.9369201660156,
719         "y": 2429.992352962494,
720         "z": "9db1531d.07a1a",
721         "wires": []
722     },
723     {
724         "id": "82eaeb00.f8a53",
725         "type": "outcome",
726         "name": "external_key",
727         "xml": "<outcome value='external_key'>\n",
728         "comments": "",
729         "outputs": 1,
730         "x": 1944.5560607910156,
731         "y": 2475.7065863609314,
732         "z": "9db1531d.07a1a",
733         "wires": [
734             [
735                 "f64e7f28.5f1c28"
736             ]
737         ]
738     },
739     {
740         "id": "f64e7f28.5f1c28",
741         "type": "set",
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",
744         "comments": "",
745         "x": 2193.127471923828,
746         "y": 2475.7066473960876,
747         "z": "9db1531d.07a1a",
748         "wires": []
749     },
750     {
751         "id": "f2a77014.d729d8",
752         "type": "set",
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",
755         "comments": "",
756         "x": 1170.8495254516602,
757         "y": 2003.9602675437927,
758         "z": "9db1531d.07a1a",
759         "wires": []
760     },
761     {
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",
766         "comments": "",
767         "outputs": 1,
768         "x": 773.2856140136719,
769         "y": 2269.9287109375,
770         "z": "9db1531d.07a1a",
771         "wires": [
772             [
773                 "8231bfda.4aa0f8",
774                 "4c0fccb3.f454ac"
775             ]
776         ]
777     },
778     {
779         "id": "8231bfda.4aa0f8",
780         "type": "not-found",
781         "name": "FAILED",
782         "xml": "<outcome value='FAILED'>\n",
783         "comments": "",
784         "outputs": 1,
785         "x": 1004.7144165039062,
786         "y": 2265.928756713867,
787         "z": "9db1531d.07a1a",
788         "wires": [
789             [
790                 "575caaa7.2470a4"
791             ]
792         ]
793     },
794     {
795         "id": "4c0fccb3.f454ac",
796         "type": "success",
797         "name": "PENDING",
798         "xml": "<outcome value='PENDING'>\n",
799         "comments": "",
800         "outputs": 1,
801         "x": 1011.4285926818848,
802         "y": 2317.6430847644806,
803         "z": "9db1531d.07a1a",
804         "wires": [
805             [
806                 "575caaa7.2470a4"
807             ]
808         ]
809     },
810     {
811         "id": "575caaa7.2470a4",
812         "type": "block",
813         "name": "block",
814         "xml": "<block>\n",
815         "atomic": "false",
816         "comments": "",
817         "outputs": 1,
818         "x": 1166.1429138183594,
819         "y": 2289.9287719726562,
820         "z": "9db1531d.07a1a",
821         "wires": [
822             [
823                 "eabe3654.2861f",
824                 "423ab3ab.c683cc"
825             ]
826         ]
827     },
828     {
829         "id": "e4db42f9.ac9b4",
830         "type": "outcome",
831         "name": "assign",
832         "xml": "<outcome value='assign'>",
833         "comments": "",
834         "outputs": 1,
835         "x": 1224.0000305175781,
836         "y": 2697.738320350647,
837         "z": "9db1531d.07a1a",
838         "wires": [
839             [
840                 "de47a062.0e7368"
841             ]
842         ]
843     },
844     {
845         "id": "423ab3ab.c683cc",
846         "type": "switchNode",
847         "name": "switch: ss.capability-action",
848         "xml": "<switch test='`$ss.capability-action`'>\n",
849         "comments": "",
850         "outputs": 1,
851         "x": 988.0000305175781,
852         "y": 2695.738320350647,
853         "z": "9db1531d.07a1a",
854         "wires": [
855             [
856                 "e4db42f9.ac9b4",
857                 "19870db6.43192a"
858             ]
859         ]
860     },
861     {
862         "id": "de47a062.0e7368",
863         "type": "block",
864         "name": "block : atomic",
865         "xml": "<block atomic='true'>",
866         "atomic": "true",
867         "comments": "",
868         "outputs": 1,
869         "x": 1399.4286804199219,
870         "y": 2698.595559120178,
871         "z": "9db1531d.07a1a",
872         "wires": [
873             [
874                 "5ddc29c0.4ba838"
875             ]
876         ]
877     },
878     {
879         "id": "95406bea.6b1b6",
880         "type": "success",
881         "name": "success",
882         "xml": "<outcome value='success'>\n",
883         "comments": "",
884         "outputs": 1,
885         "x": 2018.6786499023438,
886         "y": 3089.202422142029,
887         "z": "9db1531d.07a1a",
888         "wires": [
889             [
890                 "a33aa0af.bd279"
891             ]
892         ]
893     },
894     {
895         "id": "69e14266.f416c4",
896         "type": "success",
897         "name": "success",
898         "xml": "<outcome value='success'>\n",
899         "comments": "",
900         "outputs": 1,
901         "x": 2050.0000915527344,
902         "y": 2765.1666259765625,
903         "z": "9db1531d.07a1a",
904         "wires": [
905             [
906                 "3337d755.bc6f9"
907             ]
908         ]
909     },
910     {
911         "id": "d043ccbb.6e195",
912         "type": "block",
913         "name": "block",
914         "xml": "<block>\n",
915         "atomic": "false",
916         "comments": "",
917         "outputs": 1,
918         "x": 2192.1073128836497,
919         "y": 3041.916687147958,
920         "z": "9db1531d.07a1a",
921         "wires": [
922             []
923         ]
924     },
925     {
926         "id": "3337d755.bc6f9",
927         "type": "block",
928         "name": "block",
929         "xml": "<block>\n",
930         "atomic": "false",
931         "comments": "",
932         "outputs": 1,
933         "x": 2244.2857360839844,
934         "y": 2845.166748046875,
935         "z": "9db1531d.07a1a",
936         "wires": [
937             [
938                 "e9502efd.cfacb8",
939                 "b434a262.2a412",
940                 "fd2e7345.c27e6"
941             ]
942         ]
943     },
944     {
945         "id": "7f8823ca.cd3dd4",
946         "type": "success",
947         "name": "success",
948         "xml": "<outcome value='success'>\n",
949         "comments": "",
950         "outputs": 1,
951         "x": 2728.571990966797,
952         "y": 3232.3094482421875,
953         "z": "9db1531d.07a1a",
954         "wires": [
955             [
956                 "369a3888.44684"
957             ]
958         ]
959     },
960     {
961         "id": "a51df821.acc4",
962         "type": "not-found",
963         "name": "true",
964         "xml": "<outcome value='true'>\n",
965         "comments": "",
966         "outputs": 1,
967         "x": 600.4285583496094,
968         "y": 441.4284896850586,
969         "z": "9db1531d.07a1a",
970         "wires": [
971             [
972                 "a0639b3c.7eba9"
973             ]
974         ]
975     },
976     {
977         "id": "9b5b9dd.e182f6",
978         "type": "switchNode",
979         "name": "switch capability-type. vnf",
980         "xml": "<switch test=\"`$ss.capability-type == 'vnf'`\">\n",
981         "comments": "",
982         "outputs": 1,
983         "x": 397,
984         "y": 442.14276123046875,
985         "z": "9db1531d.07a1a",
986         "wires": [
987             [
988                 "a51df821.acc4"
989             ]
990         ]
991     },
992     {
993         "id": "727a4c78.25da9c",
994         "type": "switchNode",
995         "name": "switch capability-type vf-module",
996         "xml": "<switch test=\"`$ss.capability-type == 'vf-module'`\">\n",
997         "comments": "",
998         "outputs": 1,
999         "x": 419.28582763671875,
1000         "y": 1827.6666259765625,
1001         "z": "9db1531d.07a1a",
1002         "wires": [
1003             [
1004                 "5b0a7046.83e3"
1005             ]
1006         ]
1007     },
1008     {
1009         "id": "5b0a7046.83e3",
1010         "type": "not-found",
1011         "name": "true",
1012         "xml": "<outcome value='true'>\n",
1013         "comments": "",
1014         "outputs": 1,
1015         "x": 638.2858276367188,
1016         "y": 1828.6666870117188,
1017         "z": "9db1531d.07a1a",
1018         "wires": [
1019             [
1020                 "3a044c4d.1e750c"
1021             ]
1022         ]
1023     },
1024     {
1025         "id": "25965467.621de4",
1026         "type": "outcome",
1027         "name": "unassign",
1028         "xml": "<outcome value='unassign'>",
1029         "comments": "",
1030         "outputs": 1,
1031         "x": 1213.3333129882812,
1032         "y": 1557.3690576553345,
1033         "z": "9db1531d.07a1a",
1034         "wires": [
1035             [
1036                 "f0b88a86.aebb68"
1037             ]
1038         ]
1039     },
1040     {
1041         "id": "e7afaccf.d0036",
1042         "type": "set",
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",
1045         "comments": "",
1046         "x": 1222.1705474853516,
1047         "y": 537.4722971916199,
1048         "z": "9db1531d.07a1a",
1049         "wires": []
1050     },
1051     {
1052         "id": "bfedad8c.b95118",
1053         "type": "for",
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",
1056         "comments": "",
1057         "outputs": 1,
1058         "x": 932.3847732543945,
1059         "y": 537.54376745224,
1060         "z": "9db1531d.07a1a",
1061         "wires": [
1062             [
1063                 "eadf5468.9c709",
1064                 "f0ad10ad.1e953",
1065                 "e7afaccf.d0036"
1066             ]
1067         ]
1068     },
1069     {
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",
1074         "comments": "",
1075         "outputs": 1,
1076         "x": 1235.2460098266602,
1077         "y": 618.8215498924255,
1078         "z": "9db1531d.07a1a",
1079         "wires": [
1080             [
1081                 "6a7d5101.40aa8"
1082             ]
1083         ]
1084     },
1085     {
1086         "id": "6a7d5101.40aa8",
1087         "type": "outcomeTrue",
1088         "name": "true",
1089         "xml": "<outcome value='true'>\n",
1090         "comments": "",
1091         "outputs": 1,
1092         "x": 1473.9960174560547,
1093         "y": 618.5715498924255,
1094         "z": "9db1531d.07a1a",
1095         "wires": [
1096             [
1097                 "b4530e81.fa1df"
1098             ]
1099         ]
1100     },
1101     {
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",
1106         "comments": "",
1107         "outputs": 1,
1108         "x": 1662.2185287475586,
1109         "y": 810.8654227256775,
1110         "z": "9db1531d.07a1a",
1111         "wires": [
1112             [
1113                 "2eeaa08a.1d2c78",
1114                 "9af0367b.dbd1f8",
1115                 "f747f187.002e28",
1116                 "81e1796a.cad958"
1117             ]
1118         ]
1119     },
1120     {
1121         "id": "9af0367b.dbd1f8",
1122         "type": "outcome",
1123         "name": "service-instance-id",
1124         "xml": "<outcome value='service-instance-id'>\n",
1125         "comments": "",
1126         "outputs": 1,
1127         "x": 1933.607437133789,
1128         "y": 810.3376412391663,
1129         "z": "9db1531d.07a1a",
1130         "wires": [
1131             [
1132                 "c656a145.06dbc"
1133             ]
1134         ]
1135     },
1136     {
1137         "id": "c656a145.06dbc",
1138         "type": "set",
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",
1141         "comments": "",
1142         "x": 2199.857437133789,
1143         "y": 810.0876412391663,
1144         "z": "9db1531d.07a1a",
1145         "wires": []
1146     },
1147     {
1148         "id": "41f4db04.700f14",
1149         "type": "update",
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' >",
1152         "comments": "",
1153         "outputs": 1,
1154         "x": 1688.8173828125,
1155         "y": 1556.190468788147,
1156         "z": "9db1531d.07a1a",
1157         "wires": [
1158             [
1159                 "b267b2b4.23a3e8",
1160                 "9b01dbab.a7a7a8"
1161             ]
1162         ]
1163     },
1164     {
1165         "id": "b267b2b4.23a3e8",
1166         "type": "not-found",
1167         "name": "not-found",
1168         "xml": "<outcome value='not-found'>\n",
1169         "comments": "",
1170         "outputs": 1,
1171         "x": 1983.4047203063965,
1172         "y": 1557.1905019283295,
1173         "z": "9db1531d.07a1a",
1174         "wires": [
1175             [
1176                 "c67fc199.97dec"
1177             ]
1178         ]
1179     },
1180     {
1181         "id": "f0b88a86.aebb68",
1182         "type": "block",
1183         "name": "block : atomic",
1184         "xml": "<block atomic=\"true\">",
1185         "atomic": "true",
1186         "outputs": 1,
1187         "x": 1382.6546783447266,
1188         "y": 1557.8334131240845,
1189         "z": "9db1531d.07a1a",
1190         "wires": [
1191             [
1192                 "41f4db04.700f14"
1193             ]
1194         ]
1195     },
1196     {
1197         "id": "e6246ef9.3e7788",
1198         "type": "for",
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`\">",
1201         "comments": "",
1202         "outputs": 1,
1203         "x": 1379.0796127319336,
1204         "y": 808.7265067100525,
1205         "z": "9db1531d.07a1a",
1206         "wires": [
1207             [
1208                 "e13f79d4.74035"
1209             ]
1210         ]
1211     },
1212     {
1213         "id": "a0639b3c.7eba9",
1214         "type": "block",
1215         "name": "block",
1216         "xml": "<block>\n",
1217         "atomic": "false",
1218         "comments": "",
1219         "outputs": 1,
1220         "x": 648.642822265625,
1221         "y": 535.666748046875,
1222         "z": "9db1531d.07a1a",
1223         "wires": [
1224             [
1225                 "bfedad8c.b95118",
1226                 "dd52194f.db49b8"
1227             ]
1228         ]
1229     },
1230     {
1231         "id": "37aec3a4.7d6aa4",
1232         "type": "update",
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\" >",
1235         "comments": "",
1236         "outputs": 1,
1237         "x": 2511.71435546875,
1238         "y": 1647.869179725647,
1239         "z": "9db1531d.07a1a",
1240         "wires": [
1241             [
1242                 "f17fba04.5953f8"
1243             ]
1244         ]
1245     },
1246     {
1247         "id": "f7bb8b39.bef09",
1248         "type": "set",
1249         "name": "set status = PENDING_DELETE",
1250         "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
1251         "comments": "",
1252         "x": 2421.630859375,
1253         "y": 1606.202431678772,
1254         "z": "9db1531d.07a1a",
1255         "wires": []
1256     },
1257     {
1258         "id": "f17fba04.5953f8",
1259         "type": "failure",
1260         "name": "failure",
1261         "xml": "<outcome value='failure'>\n",
1262         "comments": "",
1263         "outputs": 1,
1264         "x": 2819.380813598633,
1265         "y": 1648.4525032043457,
1266         "z": "9db1531d.07a1a",
1267         "wires": [
1268             [
1269                 "7d1f077f.575248"
1270             ]
1271         ]
1272     },
1273     {
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",
1278         "comments": "",
1279         "x": 2998.381103515625,
1280         "y": 1648.2621240615845,
1281         "z": "9db1531d.07a1a",
1282         "wires": []
1283     },
1284     {
1285         "id": "91f6c6fc.2974a8",
1286         "type": "execute",
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`\" />",
1289         "comments": "",
1290         "outputs": 1,
1291         "x": 2441.7142333984375,
1292         "y": 1694.1192407608032,
1293         "z": "9db1531d.07a1a",
1294         "wires": [
1295             [
1296                 "54af54c4.b3a344",
1297                 "286269c8.56b2fe"
1298             ]
1299         ]
1300     },
1301     {
1302         "id": "54af54c4.b3a344",
1303         "type": "failure",
1304         "name": "failure",
1305         "xml": "<outcome value='failure'>\n",
1306         "comments": "",
1307         "outputs": 1,
1308         "x": 2685.0475006103516,
1309         "y": 1694.1191902160645,
1310         "z": "9db1531d.07a1a",
1311         "wires": [
1312             [
1313                 "3d527d1f.8bda2a"
1314             ]
1315         ]
1316     },
1317     {
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",
1322         "comments": "",
1323         "x": 2847.0475273132324,
1324         "y": 1693.9289255142212,
1325         "z": "9db1531d.07a1a",
1326         "wires": []
1327     },
1328     {
1329         "id": "8bad1bbc.e7a648",
1330         "type": "block",
1331         "name": "block : atomic",
1332         "xml": "<block atomic=\"true\">",
1333         "atomic": "true",
1334         "outputs": 1,
1335         "x": 2162.333267211914,
1336         "y": 1605.619059562683,
1337         "z": "9db1531d.07a1a",
1338         "wires": [
1339             [
1340                 "f7bb8b39.bef09",
1341                 "37aec3a4.7d6aa4",
1342                 "91f6c6fc.2974a8"
1343             ]
1344         ]
1345     },
1346     {
1347         "id": "dd52194f.db49b8",
1348         "type": "record",
1349         "name": "record",
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",
1351         "comments": "",
1352         "outputs": 1,
1353         "x": 884.4484252929688,
1354         "y": 592.6112365722656,
1355         "z": "9db1531d.07a1a",
1356         "wires": [
1357             []
1358         ]
1359     },
1360     {
1361         "id": "2eeaa08a.1d2c78",
1362         "type": "outcome",
1363         "name": "vnf-id",
1364         "xml": "<outcome value='vnf-id'>\n",
1365         "comments": "",
1366         "outputs": 1,
1367         "x": 1915.440444946289,
1368         "y": 856.58758020401,
1369         "z": "9db1531d.07a1a",
1370         "wires": [
1371             [
1372                 "e99c4040.fdfb6"
1373             ]
1374         ]
1375     },
1376     {
1377         "id": "e99c4040.fdfb6",
1378         "type": "set",
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",
1381         "comments": "",
1382         "x": 2181.4405670166016,
1383         "y": 856.58758020401,
1384         "z": "9db1531d.07a1a",
1385         "wires": []
1386     },
1387     {
1388         "id": "8b1d70.bdf8029",
1389         "type": "set",
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",
1392         "comments": "",
1393         "x": 2951.940185546875,
1394         "y": 1749.43994140625,
1395         "z": "9db1531d.07a1a",
1396         "wires": []
1397     },
1398     {
1399         "id": "f747f187.002e28",
1400         "type": "outcome",
1401         "name": "prefix-id",
1402         "xml": "<outcome value='prefix-id'>\n",
1403         "comments": "",
1404         "outputs": 1,
1405         "x": 1904.496109008789,
1406         "y": 900.8376107215881,
1407         "z": "9db1531d.07a1a",
1408         "wires": [
1409             [
1410                 "2ed5a6cf.2a2e6a"
1411             ]
1412         ]
1413     },
1414     {
1415         "id": "2ed5a6cf.2a2e6a",
1416         "type": "set",
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",
1419         "comments": "",
1420         "x": 2150.996109008789,
1421         "y": 901.08758020401,
1422         "z": "9db1531d.07a1a",
1423         "wires": []
1424     },
1425     {
1426         "id": "cb98d7d9.b5a08",
1427         "type": "execute",
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`\" />",
1430         "comments": "",
1431         "outputs": 1,
1432         "x": 1686.3928833007812,
1433         "y": 1215.357460975647,
1434         "z": "9db1531d.07a1a",
1435         "wires": [
1436             [
1437                 "158c4088.3cd6c7",
1438                 "2aec43bd.80530c"
1439             ]
1440         ]
1441     },
1442     {
1443         "id": "158c4088.3cd6c7",
1444         "type": "failure",
1445         "name": "failure",
1446         "xml": "<outcome value='failure'>\n",
1447         "comments": "",
1448         "outputs": 1,
1449         "x": 2003.3928833007812,
1450         "y": 1217.3573999404907,
1451         "z": "9db1531d.07a1a",
1452         "wires": [
1453             [
1454                 "2e7a036b.bc0adc"
1455             ]
1456         ]
1457     },
1458     {
1459         "id": "2e7a036b.bc0adc",
1460         "type": "block",
1461         "name": "block : atomic",
1462         "xml": "<block atomic='true'>",
1463         "atomic": "true",
1464         "comments": "",
1465         "outputs": 1,
1466         "x": 2211.3928833007812,
1467         "y": 1221.3573999404907,
1468         "z": "9db1531d.07a1a",
1469         "wires": [
1470             [
1471                 "51bf773d.df62b",
1472                 "bc6879f4.baae4"
1473             ]
1474         ]
1475     },
1476     {
1477         "id": "51bf773d.df62b",
1478         "type": "set",
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",
1481         "comments": "",
1482         "x": 2528.3929443359375,
1483         "y": 1225.3573694229126,
1484         "z": "9db1531d.07a1a",
1485         "wires": []
1486     },
1487     {
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",
1492         "comments": "",
1493         "x": 2425.7738037109375,
1494         "y": 1274.9606323242188,
1495         "z": "9db1531d.07a1a",
1496         "wires": []
1497     },
1498     {
1499         "id": "49b2f547.09aa04",
1500         "type": "set",
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",
1503         "comments": "",
1504         "x": 2505.47607421875,
1505         "y": 1420.0482177734375,
1506         "z": "9db1531d.07a1a",
1507         "wires": []
1508     },
1509     {
1510         "id": "81e1796a.cad958",
1511         "type": "outcome",
1512         "name": "external_key",
1513         "xml": "<outcome value='external_key'>\n",
1514         "comments": "",
1515         "outputs": 1,
1516         "x": 1927.246337890625,
1517         "y": 951.4089965820312,
1518         "z": "9db1531d.07a1a",
1519         "wires": [
1520             [
1521                 "96f2e2c3.446d68"
1522             ]
1523         ]
1524     },
1525     {
1526         "id": "96f2e2c3.446d68",
1527         "type": "set",
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",
1530         "comments": "",
1531         "x": 2175.8177490234375,
1532         "y": 951.4090576171875,
1533         "z": "9db1531d.07a1a",
1534         "wires": []
1535     },
1536     {
1537         "id": "eadf5468.9c709",
1538         "type": "set",
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",
1541         "comments": "",
1542         "x": 1193.9564895629883,
1543         "y": 577.6627821922302,
1544         "z": "9db1531d.07a1a",
1545         "wires": []
1546     },
1547     {
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",
1552         "comments": "",
1553         "outputs": 1,
1554         "x": 734.725830078125,
1555         "y": 785.631103515625,
1556         "z": "9db1531d.07a1a",
1557         "wires": [
1558             [
1559                 "ef20c0ae.2f0268",
1560                 "fe2c0013.43141"
1561             ]
1562         ]
1563     },
1564     {
1565         "id": "ef20c0ae.2f0268",
1566         "type": "not-found",
1567         "name": "FAILED",
1568         "xml": "<outcome value='FAILED'>\n",
1569         "comments": "",
1570         "outputs": 1,
1571         "x": 966.1546325683594,
1572         "y": 781.6311492919922,
1573         "z": "9db1531d.07a1a",
1574         "wires": [
1575             [
1576                 "b3e8cd71.0d271"
1577             ]
1578         ]
1579     },
1580     {
1581         "id": "fe2c0013.43141",
1582         "type": "success",
1583         "name": "PENDING",
1584         "xml": "<outcome value='PENDING'>\n",
1585         "comments": "",
1586         "outputs": 1,
1587         "x": 972.8688087463379,
1588         "y": 833.3454773426056,
1589         "z": "9db1531d.07a1a",
1590         "wires": [
1591             [
1592                 "b3e8cd71.0d271"
1593             ]
1594         ]
1595     },
1596     {
1597         "id": "b3e8cd71.0d271",
1598         "type": "block",
1599         "name": "block",
1600         "xml": "<block>\n",
1601         "atomic": "false",
1602         "comments": "",
1603         "outputs": 1,
1604         "x": 1127.5831298828125,
1605         "y": 805.6311645507812,
1606         "z": "9db1531d.07a1a",
1607         "wires": [
1608             [
1609                 "e6246ef9.3e7788",
1610                 "e6294bd0.41d4c8"
1611             ]
1612         ]
1613     },
1614     {
1615         "id": "c1c70c33.d44a98",
1616         "type": "outcome",
1617         "name": "assign",
1618         "xml": "<outcome value='assign'>",
1619         "comments": "",
1620         "outputs": 1,
1621         "x": 1185.4402465820312,
1622         "y": 1213.440712928772,
1623         "z": "9db1531d.07a1a",
1624         "wires": [
1625             [
1626                 "1bb6495a.fa8da7"
1627             ]
1628         ]
1629     },
1630     {
1631         "id": "e6294bd0.41d4c8",
1632         "type": "switchNode",
1633         "name": "switch: ss.capability-action",
1634         "xml": "<switch test='`$ss.capability-action`'>\n",
1635         "comments": "",
1636         "outputs": 1,
1637         "x": 949.4402465820312,
1638         "y": 1211.440712928772,
1639         "z": "9db1531d.07a1a",
1640         "wires": [
1641             [
1642                 "c1c70c33.d44a98",
1643                 "25965467.621de4"
1644             ]
1645         ]
1646     },
1647     {
1648         "id": "1bb6495a.fa8da7",
1649         "type": "block",
1650         "name": "block : atomic",
1651         "xml": "<block atomic='true'>",
1652         "atomic": "true",
1653         "comments": "",
1654         "outputs": 1,
1655         "x": 1360.868896484375,
1656         "y": 1214.2979516983032,
1657         "z": "9db1531d.07a1a",
1658         "wires": [
1659             [
1660                 "cb98d7d9.b5a08"
1661             ]
1662         ]
1663     },
1664     {
1665         "id": "9b01dbab.a7a7a8",
1666         "type": "success",
1667         "name": "success",
1668         "xml": "<outcome value='success'>\n",
1669         "comments": "",
1670         "outputs": 1,
1671         "x": 1980.1188659667969,
1672         "y": 1604.9048147201538,
1673         "z": "9db1531d.07a1a",
1674         "wires": [
1675             [
1676                 "8bad1bbc.e7a648"
1677             ]
1678         ]
1679     },
1680     {
1681         "id": "2aec43bd.80530c",
1682         "type": "success",
1683         "name": "success",
1684         "xml": "<outcome value='success'>\n",
1685         "comments": "",
1686         "outputs": 1,
1687         "x": 2011.4403076171875,
1688         "y": 1280.8690185546873,
1689         "z": "9db1531d.07a1a",
1690         "wires": [
1691             [
1692                 "b964039a.43a1a"
1693             ]
1694         ]
1695     },
1696     {
1697         "id": "c67fc199.97dec",
1698         "type": "block",
1699         "name": "block",
1700         "xml": "<block>\n",
1701         "atomic": "false",
1702         "comments": "",
1703         "outputs": 1,
1704         "x": 2153.547528948103,
1705         "y": 1557.6190797260829,
1706         "z": "9db1531d.07a1a",
1707         "wires": [
1708             []
1709         ]
1710     },
1711     {
1712         "id": "b964039a.43a1a",
1713         "type": "block",
1714         "name": "block",
1715         "xml": "<block>\n",
1716         "atomic": "false",
1717         "comments": "",
1718         "outputs": 1,
1719         "x": 2205.7259521484375,
1720         "y": 1360.869140625,
1721         "z": "9db1531d.07a1a",
1722         "wires": [
1723             [
1724                 "49b2f547.09aa04",
1725                 "3bdfdc4f.b39f24",
1726                 "4628865b.a3d7d"
1727             ]
1728         ]
1729     },
1730     {
1731         "id": "286269c8.56b2fe",
1732         "type": "success",
1733         "name": "success",
1734         "xml": "<outcome value='success'>\n",
1735         "comments": "",
1736         "outputs": 1,
1737         "x": 2690.01220703125,
1738         "y": 1748.0118408203125,
1739         "z": "9db1531d.07a1a",
1740         "wires": [
1741             [
1742                 "8b1d70.bdf8029"
1743             ]
1744         ]
1745     },
1746     {
1747         "id": "4628865b.a3d7d",
1748         "type": "set",
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",
1751         "comments": "",
1752         "x": 2495,
1753         "y": 1380,
1754         "z": "9db1531d.07a1a",
1755         "wires": []
1756     },
1757     {
1758         "id": "3bdfdc4f.b39f24",
1759         "type": "execute",
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",
1762         "comments": "",
1763         "outputs": 1,
1764         "x": 2439,
1765         "y": 1340,
1766         "z": "9db1531d.07a1a",
1767         "wires": [
1768             []
1769         ]
1770     },
1771     {
1772         "id": "fd2e7345.c27e6",
1773         "type": "execute",
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",
1776         "comments": "",
1777         "outputs": 1,
1778         "x": 2481,
1779         "y": 2829,
1780         "z": "9db1531d.07a1a",
1781         "wires": [
1782             []
1783         ]
1784     }
1785 ]