correct pidx in self-serve-netbox-ip-assign 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": "39b306a6.ed3522",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 100,
8         "y": 63.57143306732178,
9         "z": "1e0169fe.460196",
10         "wires": [
11             [
12                 "79f0b111.72d778"
13             ]
14         ]
15     },
16     {
17         "id": "1b629c80.7881d4",
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": 235.7857208251953,
24         "y": 120.69842147827148,
25         "z": "1e0169fe.460196",
26         "wires": [
27             [
28                 "56a052c7.058c9c"
29             ]
30         ]
31     },
32     {
33         "id": "56a052c7.058c9c",
34         "type": "block",
35         "name": "block : atomic",
36         "xml": "<block atomic=\"true\">",
37         "atomic": "true",
38         "comments": "",
39         "outputs": 1,
40         "x": 129.32144165039062,
41         "y": 207.0000400543213,
42         "z": "1e0169fe.460196",
43         "wires": [
44             [
45                 "90086e75.cd6fc",
46                 "3efa365b.993a9a",
47                 "7e104793.732a5",
48                 "f91de1d4.ae1798",
49                 "2734c8ea.c23828"
50             ]
51         ]
52     },
53     {
54         "id": "79f0b111.72d778",
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": 372.8571472167969,
63         "y": 63,
64         "z": "1e0169fe.460196",
65         "wires": [
66             [
67                 "1b629c80.7881d4"
68             ]
69         ]
70     },
71     {
72         "id": "90086e75.cd6fc",
73         "type": "switchNode",
74         "name": "switch: ss.capability-name",
75         "xml": "<switch test='`$ss.capability-name`'>\n",
76         "comments": "",
77         "outputs": 1,
78         "x": 387.4999694824219,
79         "y": 210.82144165039062,
80         "z": "1e0169fe.460196",
81         "wires": [
82             [
83                 "b10180d1.330c9"
84             ]
85         ]
86     },
87     {
88         "id": "b10180d1.330c9",
89         "type": "outcome",
90         "name": "NULL",
91         "xml": "<outcome value=''>",
92         "outputs": 1,
93         "x": 612.4999923706055,
94         "y": 211.32144021987915,
95         "z": "1e0169fe.460196",
96         "wires": [
97             [
98                 "66f17fa3.bde278"
99             ]
100         ]
101     },
102     {
103         "id": "66f17fa3.bde278",
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": 772.4166641235352,
109         "y": 211.43253898620605,
110         "z": "1e0169fe.460196",
111         "wires": []
112     },
113     {
114         "id": "3efa365b.993a9a",
115         "type": "switchNode",
116         "name": "switch: ss.capability-action",
117         "xml": "<switch test='`$ss.capability-action`'>\n",
118         "comments": "",
119         "outputs": 1,
120         "x": 390.74996185302734,
121         "y": 286.82143688201904,
122         "z": "1e0169fe.460196",
123         "wires": [
124             [
125                 "8acb2cf7.4ff328"
126             ]
127         ]
128     },
129     {
130         "id": "8acb2cf7.4ff328",
131         "type": "outcome",
132         "name": "NULL",
133         "xml": "<outcome value=''>",
134         "comments": "",
135         "outputs": 1,
136         "x": 614.2499618530273,
137         "y": 287.07143688201904,
138         "z": "1e0169fe.460196",
139         "wires": [
140             [
141                 "307ed0c1.fb7998"
142             ]
143         ]
144     },
145     {
146         "id": "307ed0c1.fb7998",
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": 774.166633605957,
152         "y": 287.18253564834595,
153         "z": "1e0169fe.460196",
154         "wires": []
155     },
156     {
157         "id": "7e104793.732a5",
158         "type": "call",
159         "name": "call self-serve-capability-param-resolution",
160         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n",
161         "comments": "",
162         "outputs": 1,
163         "x": 441.41680908203125,
164         "y": 361.82147216796875,
165         "z": "1e0169fe.460196",
166         "wires": [
167             [
168                 "47c181e5.fedda"
169             ]
170         ]
171     },
172     {
173         "id": "47c181e5.fedda",
174         "type": "failure",
175         "name": "failure",
176         "xml": "<outcome value='failure'>\n",
177         "comments": "",
178         "outputs": 1,
179         "x": 745.6667060852051,
180         "y": 363.821475982666,
181         "z": "1e0169fe.460196",
182         "wires": [
183             [
184                 "fe0e4241.5b80e8"
185             ]
186         ]
187     },
188     {
189         "id": "fe0e4241.5b80e8",
190         "type": "returnFailure",
191         "name": "return failure",
192         "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",
193         "comments": "",
194         "x": 904.4166870117188,
195         "y": 363.82147216796875,
196         "z": "1e0169fe.460196",
197         "wires": []
198     },
199     {
200         "id": "a92c49b1.faf6c",
201         "type": "set",
202         "name": "set tmp.ss.param.capability-name",
203         "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",
204         "comments": "",
205         "x": 1187.0635833740234,
206         "y": 1973.7697825431824,
207         "z": "1e0169fe.460196",
208         "wires": []
209     },
210     {
211         "id": "ca92a840.cb9a5",
212         "type": "for",
213         "name": "for pidx in param_length",
214         "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`\">",
215         "comments": "",
216         "outputs": 1,
217         "x": 897.2778091430664,
218         "y": 1973.8412528038025,
219         "z": "1e0169fe.460196",
220         "wires": [
221             [
222                 "864a8266.73cc7",
223                 "b15a003.31b4b",
224                 "a92c49b1.faf6c"
225             ]
226         ]
227     },
228     {
229         "id": "b15a003.31b4b",
230         "type": "switchNode",
231         "name": "switch: capability-name - ss vs param",
232         "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
233         "comments": "",
234         "outputs": 1,
235         "x": 1200.139045715332,
236         "y": 2055.119035243988,
237         "z": "1e0169fe.460196",
238         "wires": [
239             [
240                 "5f27f686.c72e78"
241             ]
242         ]
243     },
244     {
245         "id": "5f27f686.c72e78",
246         "type": "outcomeTrue",
247         "name": "true",
248         "xml": "<outcome value='true'>\n",
249         "comments": "",
250         "outputs": 1,
251         "x": 1438.8890533447266,
252         "y": 2054.869035243988,
253         "z": "1e0169fe.460196",
254         "wires": [
255             [
256                 "b6e45a86.008848"
257             ]
258         ]
259     },
260     {
261         "id": "52a3fa95.c6446c",
262         "type": "switchNode",
263         "name": "switch: resource-key[].name",
264         "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",
265         "comments": "",
266         "outputs": 1,
267         "x": 1688.7783126831055,
268         "y": 2305.1630301475525,
269         "z": "1e0169fe.460196",
270         "wires": [
271             [
272                 "12d1fbad.020824",
273                 "31df3307.8fd214",
274                 "8556b639.07cc4",
275                 "32ab7f7f.33dea",
276                 "28ed7d99.2fd922"
277             ]
278         ]
279     },
280     {
281         "id": "31df3307.8fd214",
282         "type": "outcome",
283         "name": "service-instance-id",
284         "xml": "<outcome value='service-instance-id'>\n",
285         "comments": "",
286         "outputs": 1,
287         "x": 1960.167221069336,
288         "y": 2304.6352486610413,
289         "z": "1e0169fe.460196",
290         "wires": [
291             [
292                 "15e0f6f3.464d99"
293             ]
294         ]
295     },
296     {
297         "id": "15e0f6f3.464d99",
298         "type": "set",
299         "name": "set tmp.ss.service-instance-id",
300         "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",
301         "comments": "",
302         "x": 2226.417221069336,
303         "y": 2304.3852486610413,
304         "z": "1e0169fe.460196",
305         "wires": []
306     },
307     {
308         "id": "702f24b8.ab2b14",
309         "type": "set",
310         "name": "set service-data...param[].value = ip-address",
311         "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",
312         "comments": "",
313         "x": 3014.388885498047,
314         "y": 2875.3416357040405,
315         "z": "1e0169fe.460196",
316         "wires": []
317     },
318     {
319         "id": "daef3d9b.976aa",
320         "type": "update",
321         "name": "get-resource IPAM_IP_ASSIGNEMENT",
322         "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' >",
323         "comments": "",
324         "outputs": 1,
325         "x": 2188.472640991211,
326         "y": 2976.2020263671875,
327         "z": "1e0169fe.460196",
328         "wires": [
329             [
330                 "c57f67d2.fa9d8",
331                 "b7a6dad5.6dc8c"
332             ]
333         ]
334     },
335     {
336         "id": "c57f67d2.fa9d8",
337         "type": "not-found",
338         "name": "not-found",
339         "xml": "<outcome value='not-found'>\n",
340         "comments": "",
341         "outputs": 1,
342         "x": 2483.0599784851074,
343         "y": 2977.20205950737,
344         "z": "1e0169fe.460196",
345         "wires": [
346             [
347                 "e5ae09f3.4e9b7"
348             ]
349         ]
350     },
351     {
352         "id": "9e365126.584608",
353         "type": "block",
354         "name": "block : atomic",
355         "xml": "<block atomic=\"true\">",
356         "atomic": "true",
357         "outputs": 1,
358         "x": 1882.3099365234375,
359         "y": 2977.844970703125,
360         "z": "1e0169fe.460196",
361         "wires": [
362             [
363                 "daef3d9b.976aa"
364             ]
365         ]
366     },
367     {
368         "id": "b0815fb0.6c8c58",
369         "type": "for",
370         "name": "for kidx in resource-key_length",
371         "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`\">",
372         "comments": "",
373         "outputs": 1,
374         "x": 1405.6393966674805,
375         "y": 2303.0241141319275,
376         "z": "1e0169fe.460196",
377         "wires": [
378             [
379                 "52a3fa95.c6446c"
380             ]
381         ]
382     },
383     {
384         "id": "9d646260.b0f88",
385         "type": "block",
386         "name": "block",
387         "xml": "<block>\n",
388         "atomic": "false",
389         "comments": "",
390         "outputs": 1,
391         "x": 613.5358581542969,
392         "y": 1971.9642333984375,
393         "z": "1e0169fe.460196",
394         "wires": [
395             [
396                 "ca92a840.cb9a5",
397                 "dddd3293.e9766"
398             ]
399         ]
400     },
401     {
402         "id": "12508de3.d24ce2",
403         "type": "update",
404         "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
405         "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\" >",
406         "comments": "",
407         "outputs": 1,
408         "x": 3011.369613647461,
409         "y": 3067.8807373046875,
410         "z": "1e0169fe.460196",
411         "wires": [
412             [
413                 "e08179b3.30edc"
414             ]
415         ]
416     },
417     {
418         "id": "86f22edb.c1e37",
419         "type": "set",
420         "name": "set status = PENDING_DELETE",
421         "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
422         "comments": "",
423         "x": 2921.286117553711,
424         "y": 3026.2139892578125,
425         "z": "1e0169fe.460196",
426         "wires": []
427     },
428     {
429         "id": "e08179b3.30edc",
430         "type": "failure",
431         "name": "failure",
432         "xml": "<outcome value='failure'>\n",
433         "comments": "",
434         "outputs": 1,
435         "x": 3319.0360717773438,
436         "y": 3068.4640607833862,
437         "z": "1e0169fe.460196",
438         "wires": [
439             [
440                 "a80cdb69.81f35"
441             ]
442         ]
443     },
444     {
445         "id": "a80cdb69.81f35",
446         "type": "returnFailure",
447         "name": "return failure",
448         "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",
449         "comments": "",
450         "x": 3498.036361694336,
451         "y": 3068.273681640625,
452         "z": "1e0169fe.460196",
453         "wires": []
454     },
455     {
456         "id": "2ba87204.72c89e",
457         "type": "execute",
458         "name": "execute Netbox unassign IP addresses",
459         "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`\" />",
460         "comments": "",
461         "outputs": 1,
462         "x": 2941.3694915771484,
463         "y": 3114.1307983398438,
464         "z": "1e0169fe.460196",
465         "wires": [
466             [
467                 "d761dd7d.5daac",
468                 "70a92bf3.d01214"
469             ]
470         ]
471     },
472     {
473         "id": "d761dd7d.5daac",
474         "type": "failure",
475         "name": "failure",
476         "xml": "<outcome value='failure'>\n",
477         "comments": "",
478         "outputs": 1,
479         "x": 3184.7027587890625,
480         "y": 3114.130747795105,
481         "z": "1e0169fe.460196",
482         "wires": [
483             [
484                 "ac3185a3.0297d8"
485             ]
486         ]
487     },
488     {
489         "id": "ac3185a3.0297d8",
490         "type": "returnFailure",
491         "name": "return failure",
492         "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",
493         "comments": "",
494         "x": 3346.7027854919434,
495         "y": 3113.9404830932617,
496         "z": "1e0169fe.460196",
497         "wires": []
498     },
499     {
500         "id": "9487046d.9fad68",
501         "type": "block",
502         "name": "block : atomic",
503         "xml": "<block atomic=\"true\">",
504         "atomic": "true",
505         "outputs": 1,
506         "x": 2661.988525390625,
507         "y": 3025.6306171417236,
508         "z": "1e0169fe.460196",
509         "wires": [
510             [
511                 "86f22edb.c1e37",
512                 "12508de3.d24ce2",
513                 "2ba87204.72c89e"
514             ]
515         ]
516     },
517     {
518         "id": "dddd3293.e9766",
519         "type": "record",
520         "name": "record",
521         "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",
522         "comments": "",
523         "outputs": 1,
524         "x": 849.3414611816406,
525         "y": 2028.9087219238281,
526         "z": "1e0169fe.460196",
527         "wires": [
528             []
529         ]
530     },
531     {
532         "id": "12d1fbad.020824",
533         "type": "outcome",
534         "name": "vf-module-id",
535         "xml": "<outcome value='vf-module-id'>\n",
536         "comments": "",
537         "outputs": 1,
538         "x": 1942.000228881836,
539         "y": 2350.885187625885,
540         "z": "1e0169fe.460196",
541         "wires": [
542             [
543                 "e91a4a82.52be28"
544             ]
545         ]
546     },
547     {
548         "id": "e91a4a82.52be28",
549         "type": "set",
550         "name": "set tmp.ss.vf-module-id",
551         "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",
552         "comments": "",
553         "x": 2208.0003509521484,
554         "y": 2350.885187625885,
555         "z": "1e0169fe.460196",
556         "wires": []
557     },
558     {
559         "id": "ae56d16c.edce5",
560         "type": "set",
561         "name": "set resource-resolution-data.status = DELETED",
562         "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",
563         "comments": "",
564         "x": 3451.595443725586,
565         "y": 3169.4514989852905,
566         "z": "1e0169fe.460196",
567         "wires": []
568     },
569     {
570         "id": "8556b639.07cc4",
571         "type": "outcome",
572         "name": "prefix-id",
573         "xml": "<outcome value='prefix-id'>\n",
574         "comments": "",
575         "outputs": 1,
576         "x": 1931.055892944336,
577         "y": 2395.135218143463,
578         "z": "1e0169fe.460196",
579         "wires": [
580             [
581                 "246a1d6a.080fa2"
582             ]
583         ]
584     },
585     {
586         "id": "246a1d6a.080fa2",
587         "type": "set",
588         "name": "set prefix-id",
589         "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",
590         "comments": "",
591         "x": 2177.555892944336,
592         "y": 2395.385187625885,
593         "z": "1e0169fe.460196",
594         "wires": []
595     },
596     {
597         "id": "d994622b.100b98",
598         "type": "execute",
599         "name": "execute NetboxClient assignIpAddress",
600         "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`\" />",
601         "comments": "",
602         "outputs": 1,
603         "x": 2204.38134765625,
604         "y": 2695.3692626953125,
605         "z": "1e0169fe.460196",
606         "wires": [
607             [
608                 "5fcd5073.23e8c8",
609                 "1a67a440.ccf65c"
610             ]
611         ]
612     },
613     {
614         "id": "5fcd5073.23e8c8",
615         "type": "failure",
616         "name": "failure",
617         "xml": "<outcome value='failure'>\n",
618         "comments": "",
619         "outputs": 1,
620         "x": 2521.38134765625,
621         "y": 2697.3692016601562,
622         "z": "1e0169fe.460196",
623         "wires": [
624             [
625                 "b53fc0c4.6e6db"
626             ]
627         ]
628     },
629     {
630         "id": "b53fc0c4.6e6db",
631         "type": "block",
632         "name": "block : atomic",
633         "xml": "<block atomic='true'>",
634         "atomic": "true",
635         "comments": "",
636         "outputs": 1,
637         "x": 2729.38134765625,
638         "y": 2701.3692016601562,
639         "z": "1e0169fe.460196",
640         "wires": [
641             [
642                 "aefd9233.639b38",
643                 "5924f9f1.b07eb"
644             ]
645         ]
646     },
647     {
648         "id": "aefd9233.639b38",
649         "type": "set",
650         "name": "set resource-resolution-data.status = FAILED",
651         "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",
652         "comments": "",
653         "x": 3046.3814086914062,
654         "y": 2705.369171142578,
655         "z": "1e0169fe.460196",
656         "wires": []
657     },
658     {
659         "id": "5924f9f1.b07eb",
660         "type": "returnFailure",
661         "name": "return failure",
662         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
663         "comments": "",
664         "x": 2943.7622680664062,
665         "y": 2754.9724340438843,
666         "z": "1e0169fe.460196",
667         "wires": []
668     },
669     {
670         "id": "8459943a.0741",
671         "type": "set",
672         "name": "set resource-resolution-data.status = SUCCESS",
673         "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",
674         "comments": "",
675         "x": 3031.4644470214844,
676         "y": 2926.059958457947,
677         "z": "1e0169fe.460196",
678         "wires": []
679     },
680     {
681         "id": "32ab7f7f.33dea",
682         "type": "outcome",
683         "name": "ip-address-id",
684         "xml": "<outcome value='ip-address-id'>\n",
685         "comments": "",
686         "outputs": 1,
687         "x": 1944.9370422363281,
688         "y": 2439.9922919273376,
689         "z": "1e0169fe.460196",
690         "wires": [
691             [
692                 "1be9a0f0.cb1137"
693             ]
694         ]
695     },
696     {
697         "id": "1be9a0f0.cb1137",
698         "type": "set",
699         "name": "ip-address-id",
700         "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",
701         "comments": "",
702         "x": 2179.9369201660156,
703         "y": 2439.992352962494,
704         "z": "1e0169fe.460196",
705         "wires": []
706     },
707     {
708         "id": "28ed7d99.2fd922",
709         "type": "outcome",
710         "name": "external_key",
711         "xml": "<outcome value='external_key'>\n",
712         "comments": "",
713         "outputs": 1,
714         "x": 1932.5560607910156,
715         "y": 2485.7065863609314,
716         "z": "1e0169fe.460196",
717         "wires": [
718             [
719                 "e3062b19.33e69"
720             ]
721         ]
722     },
723     {
724         "id": "e3062b19.33e69",
725         "type": "set",
726         "name": "set external-key",
727         "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",
728         "comments": "",
729         "x": 2181.127471923828,
730         "y": 2485.7066473960876,
731         "z": "1e0169fe.460196",
732         "wires": []
733     },
734     {
735         "id": "864a8266.73cc7",
736         "type": "set",
737         "name": "set tmp.ss.param.name",
738         "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",
739         "comments": "",
740         "x": 1158.8495254516602,
741         "y": 2013.9602675437927,
742         "z": "1e0169fe.460196",
743         "wires": []
744     },
745     {
746         "id": "b6e45a86.008848",
747         "type": "block",
748         "name": "block",
749         "xml": "<block>\n",
750         "atomic": "false",
751         "comments": "",
752         "outputs": 1,
753         "x": 1154.1429138183594,
754         "y": 2299.9287719726562,
755         "z": "1e0169fe.460196",
756         "wires": [
757             [
758                 "b0815fb0.6c8c58",
759                 "ea11f211.eef478"
760             ]
761         ]
762     },
763     {
764         "id": "ea11f211.eef478",
765         "type": "switchNode",
766         "name": "switch: ss.capability-action",
767         "xml": "<switch test='`$ss.capability-action`'>\n",
768         "comments": "",
769         "outputs": 1,
770         "x": 976.0000305175781,
771         "y": 2705.738320350647,
772         "z": "1e0169fe.460196",
773         "wires": [
774             [
775                 "398f1da9.7fc262",
776                 "c615cc08.6cc77"
777             ]
778         ]
779     },
780     {
781         "id": "b4174ab1.8632e",
782         "type": "block",
783         "name": "block : atomic",
784         "xml": "<block atomic='true'>",
785         "atomic": "true",
786         "comments": "",
787         "outputs": 1,
788         "x": 1878.8573608398438,
789         "y": 2694.3097534179688,
790         "z": "1e0169fe.460196",
791         "wires": [
792             [
793                 "d994622b.100b98"
794             ]
795         ]
796     },
797     {
798         "id": "b7a6dad5.6dc8c",
799         "type": "success",
800         "name": "success",
801         "xml": "<outcome value='success'>\n",
802         "comments": "",
803         "outputs": 1,
804         "x": 2479.774124145508,
805         "y": 3024.9163722991943,
806         "z": "1e0169fe.460196",
807         "wires": [
808             [
809                 "9487046d.9fad68"
810             ]
811         ]
812     },
813     {
814         "id": "1a67a440.ccf65c",
815         "type": "success",
816         "name": "success",
817         "xml": "<outcome value='success'>\n",
818         "comments": "",
819         "outputs": 1,
820         "x": 2529.4287719726562,
821         "y": 2760.880820274353,
822         "z": "1e0169fe.460196",
823         "wires": [
824             [
825                 "6b7d48cd.fe82"
826             ]
827         ]
828     },
829     {
830         "id": "e5ae09f3.4e9b7",
831         "type": "block",
832         "name": "block",
833         "xml": "<block>\n",
834         "atomic": "false",
835         "comments": "",
836         "outputs": 1,
837         "x": 2653.2027871268137,
838         "y": 2977.6306373051234,
839         "z": "1e0169fe.460196",
840         "wires": [
841             []
842         ]
843     },
844     {
845         "id": "6b7d48cd.fe82",
846         "type": "block",
847         "name": "block",
848         "xml": "<block>\n",
849         "atomic": "false",
850         "comments": "",
851         "outputs": 1,
852         "x": 2723.7144165039062,
853         "y": 2840.8809423446655,
854         "z": "1e0169fe.460196",
855         "wires": [
856             [
857                 "8459943a.0741",
858                 "702f24b8.ab2b14",
859                 "722fee02.ac2218"
860             ]
861         ]
862     },
863     {
864         "id": "70a92bf3.d01214",
865         "type": "success",
866         "name": "success",
867         "xml": "<outcome value='success'>\n",
868         "comments": "",
869         "outputs": 1,
870         "x": 3189.667465209961,
871         "y": 3168.023398399353,
872         "z": "1e0169fe.460196",
873         "wires": [
874             [
875                 "ae56d16c.edce5"
876             ]
877         ]
878     },
879     {
880         "id": "612ded0b.7aa5c4",
881         "type": "not-found",
882         "name": "true",
883         "xml": "<outcome value='true'>\n",
884         "comments": "",
885         "outputs": 1,
886         "x": 588.4285583496094,
887         "y": 451.4284896850586,
888         "z": "1e0169fe.460196",
889         "wires": [
890             [
891                 "c436ca39.dad55"
892             ]
893         ]
894     },
895     {
896         "id": "f91de1d4.ae1798",
897         "type": "switchNode",
898         "name": "switch capability-type. vnf",
899         "xml": "<switch test=\"`$ss.capability-type == 'vnf'`\">\n",
900         "comments": "",
901         "outputs": 1,
902         "x": 385,
903         "y": 452.14276123046875,
904         "z": "1e0169fe.460196",
905         "wires": [
906             [
907                 "612ded0b.7aa5c4"
908             ]
909         ]
910     },
911     {
912         "id": "2734c8ea.c23828",
913         "type": "switchNode",
914         "name": "switch capability-type vf-module",
915         "xml": "<switch test=\"`$ss.capability-type == 'vf-module'`\">\n",
916         "comments": "",
917         "outputs": 1,
918         "x": 407.28582763671875,
919         "y": 1837.6666259765625,
920         "z": "1e0169fe.460196",
921         "wires": [
922             [
923                 "76727ba.3b8bb04"
924             ]
925         ]
926     },
927     {
928         "id": "76727ba.3b8bb04",
929         "type": "not-found",
930         "name": "true",
931         "xml": "<outcome value='true'>\n",
932         "comments": "",
933         "outputs": 1,
934         "x": 626.2858276367188,
935         "y": 1838.6666870117188,
936         "z": "1e0169fe.460196",
937         "wires": [
938             [
939                 "9d646260.b0f88"
940             ]
941         ]
942     },
943     {
944         "id": "74139423.e17614",
945         "type": "outcome",
946         "name": "unassign",
947         "xml": "<outcome value='unassign'>",
948         "comments": "",
949         "outputs": 1,
950         "x": 1177.5833129882812,
951         "y": 1389.8692016601562,
952         "z": "1e0169fe.460196",
953         "wires": [
954             [
955                 "e51b7888.989928"
956             ]
957         ]
958     },
959     {
960         "id": "b8362705.36557",
961         "type": "set",
962         "name": "set tmp.ss.param.capability-name",
963         "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",
964         "comments": "",
965         "x": 1210.1705474853516,
966         "y": 547.4722971916199,
967         "z": "1e0169fe.460196",
968         "wires": []
969     },
970     {
971         "id": "37af35ce.c8f9aa",
972         "type": "for",
973         "name": "for pidx in param_length",
974         "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",
975         "comments": "",
976         "outputs": 1,
977         "x": 920.3847732543945,
978         "y": 547.54376745224,
979         "z": "1e0169fe.460196",
980         "wires": [
981             [
982                 "f4266bba.68463",
983                 "ea3f1334.a266f8",
984                 "b8362705.36557"
985             ]
986         ]
987     },
988     {
989         "id": "ea3f1334.a266f8",
990         "type": "switchNode",
991         "name": "switch: capability-name - ss vs param",
992         "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
993         "comments": "",
994         "outputs": 1,
995         "x": 1223.2460098266602,
996         "y": 628.8215498924255,
997         "z": "1e0169fe.460196",
998         "wires": [
999             [
1000                 "d7993c29.a6c5f8"
1001             ]
1002         ]
1003     },
1004     {
1005         "id": "d7993c29.a6c5f8",
1006         "type": "outcomeTrue",
1007         "name": "true",
1008         "xml": "<outcome value='true'>\n",
1009         "comments": "",
1010         "outputs": 1,
1011         "x": 1461.9960174560547,
1012         "y": 628.5715498924255,
1013         "z": "1e0169fe.460196",
1014         "wires": [
1015             [
1016                 "35313136.60f71e"
1017             ]
1018         ]
1019     },
1020     {
1021         "id": "85af5a4b.a2187",
1022         "type": "switchNode",
1023         "name": "switch: resource-key[].name",
1024         "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",
1025         "comments": "",
1026         "outputs": 1,
1027         "x": 1650.2185287475586,
1028         "y": 820.8654227256775,
1029         "z": "1e0169fe.460196",
1030         "wires": [
1031             [
1032                 "6c06e68b.da7eb8",
1033                 "8b40c4df.047c2",
1034                 "5bcfaea0.c0c0f8",
1035                 "714a9ad3.25a814"
1036             ]
1037         ]
1038     },
1039     {
1040         "id": "8b40c4df.047c2",
1041         "type": "outcome",
1042         "name": "service-instance-id",
1043         "xml": "<outcome value='service-instance-id'>\n",
1044         "comments": "",
1045         "outputs": 1,
1046         "x": 1921.607437133789,
1047         "y": 820.3376412391663,
1048         "z": "1e0169fe.460196",
1049         "wires": [
1050             [
1051                 "ee744de2.8b10f8"
1052             ]
1053         ]
1054     },
1055     {
1056         "id": "ee744de2.8b10f8",
1057         "type": "set",
1058         "name": "set tmp.ss.service-instance-id",
1059         "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",
1060         "comments": "",
1061         "x": 2187.857437133789,
1062         "y": 820.0876412391663,
1063         "z": "1e0169fe.460196",
1064         "wires": []
1065     },
1066     {
1067         "id": "53877355.ae41ac",
1068         "type": "update",
1069         "name": "get-resource IPAM_IP_ASSIGNEMENT",
1070         "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' >",
1071         "comments": "",
1072         "outputs": 1,
1073         "x": 2175.3888549804688,
1074         "y": 1491.9048852920532,
1075         "z": "1e0169fe.460196",
1076         "wires": [
1077             [
1078                 "1455e2db.491d8d",
1079                 "f61d39ca.54246"
1080             ]
1081         ]
1082     },
1083     {
1084         "id": "1455e2db.491d8d",
1085         "type": "not-found",
1086         "name": "not-found",
1087         "xml": "<outcome value='not-found'>\n",
1088         "comments": "",
1089         "outputs": 1,
1090         "x": 2469.9761924743652,
1091         "y": 1492.9049184322357,
1092         "z": "1e0169fe.460196",
1093         "wires": [
1094             [
1095                 "4d3d930a.c74edc"
1096             ]
1097         ]
1098     },
1099     {
1100         "id": "2e96e14a.d8a666",
1101         "type": "block",
1102         "name": "block : atomic",
1103         "xml": "<block atomic=\"true\">",
1104         "atomic": "true",
1105         "outputs": 1,
1106         "x": 1872.9761352539062,
1107         "y": 1408.5477905273438,
1108         "z": "1e0169fe.460196",
1109         "wires": [
1110             [
1111                 "53877355.ae41ac"
1112             ]
1113         ]
1114     },
1115     {
1116         "id": "8b797c86.449c88",
1117         "type": "for",
1118         "name": "for kidx in resource-key_length",
1119         "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`\">",
1120         "comments": "",
1121         "outputs": 1,
1122         "x": 1367.0796127319336,
1123         "y": 818.7265067100525,
1124         "z": "1e0169fe.460196",
1125         "wires": [
1126             [
1127                 "85af5a4b.a2187"
1128             ]
1129         ]
1130     },
1131     {
1132         "id": "c436ca39.dad55",
1133         "type": "block",
1134         "name": "block",
1135         "xml": "<block>\n",
1136         "atomic": "false",
1137         "comments": "",
1138         "outputs": 1,
1139         "x": 636.642822265625,
1140         "y": 545.666748046875,
1141         "z": "1e0169fe.460196",
1142         "wires": [
1143             [
1144                 "37af35ce.c8f9aa",
1145                 "419443bc.89754c"
1146             ]
1147         ]
1148     },
1149     {
1150         "id": "7d36e25f.6ea3f4",
1151         "type": "update",
1152         "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
1153         "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\" >",
1154         "comments": "",
1155         "outputs": 1,
1156         "x": 2998.2858276367188,
1157         "y": 1583.5835962295532,
1158         "z": "1e0169fe.460196",
1159         "wires": [
1160             [
1161                 "ca94a980.5b06e"
1162             ]
1163         ]
1164     },
1165     {
1166         "id": "954b1950.33da8",
1167         "type": "set",
1168         "name": "set status = PENDING_DELETE",
1169         "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
1170         "comments": "",
1171         "x": 2908.2023315429688,
1172         "y": 1541.9168481826782,
1173         "z": "1e0169fe.460196",
1174         "wires": []
1175     },
1176     {
1177         "id": "ca94a980.5b06e",
1178         "type": "failure",
1179         "name": "failure",
1180         "xml": "<outcome value='failure'>\n",
1181         "comments": "",
1182         "outputs": 1,
1183         "x": 3305.9522857666016,
1184         "y": 1584.166919708252,
1185         "z": "1e0169fe.460196",
1186         "wires": [
1187             [
1188                 "ddd93d50.c85558"
1189             ]
1190         ]
1191     },
1192     {
1193         "id": "ddd93d50.c85558",
1194         "type": "returnFailure",
1195         "name": "return failure",
1196         "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",
1197         "comments": "",
1198         "x": 3484.9525756835938,
1199         "y": 1583.9765405654907,
1200         "z": "1e0169fe.460196",
1201         "wires": []
1202     },
1203     {
1204         "id": "d3428a19.b74a38",
1205         "type": "execute",
1206         "name": "execute Netbox unassign IP addresses",
1207         "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`\" />",
1208         "comments": "",
1209         "outputs": 1,
1210         "x": 2928.2857055664062,
1211         "y": 1629.8336572647095,
1212         "z": "1e0169fe.460196",
1213         "wires": [
1214             [
1215                 "a11ee488.c69c1",
1216                 "bacc37f5.251158"
1217             ]
1218         ]
1219     },
1220     {
1221         "id": "a11ee488.c69c1",
1222         "type": "failure",
1223         "name": "failure",
1224         "xml": "<outcome value='failure'>\n",
1225         "comments": "",
1226         "outputs": 1,
1227         "x": 3171.6189727783203,
1228         "y": 1629.8336067199707,
1229         "z": "1e0169fe.460196",
1230         "wires": [
1231             [
1232                 "727fae.421bc054"
1233             ]
1234         ]
1235     },
1236     {
1237         "id": "727fae.421bc054",
1238         "type": "returnFailure",
1239         "name": "return failure",
1240         "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",
1241         "comments": "",
1242         "x": 3333.618999481201,
1243         "y": 1629.6433420181274,
1244         "z": "1e0169fe.460196",
1245         "wires": []
1246     },
1247     {
1248         "id": "199cb084.41994f",
1249         "type": "block",
1250         "name": "block : atomic",
1251         "xml": "<block atomic=\"true\">",
1252         "atomic": "true",
1253         "outputs": 1,
1254         "x": 2648.904739379883,
1255         "y": 1541.3334760665894,
1256         "z": "1e0169fe.460196",
1257         "wires": [
1258             [
1259                 "954b1950.33da8",
1260                 "7d36e25f.6ea3f4",
1261                 "d3428a19.b74a38"
1262             ]
1263         ]
1264     },
1265     {
1266         "id": "419443bc.89754c",
1267         "type": "record",
1268         "name": "record",
1269         "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",
1270         "comments": "",
1271         "outputs": 1,
1272         "x": 872.4484252929688,
1273         "y": 602.6112365722656,
1274         "z": "1e0169fe.460196",
1275         "wires": [
1276             []
1277         ]
1278     },
1279     {
1280         "id": "6c06e68b.da7eb8",
1281         "type": "outcome",
1282         "name": "vnf-id",
1283         "xml": "<outcome value='vnf-id'>\n",
1284         "comments": "",
1285         "outputs": 1,
1286         "x": 1903.440444946289,
1287         "y": 866.58758020401,
1288         "z": "1e0169fe.460196",
1289         "wires": [
1290             [
1291                 "48b45ebc.19189"
1292             ]
1293         ]
1294     },
1295     {
1296         "id": "48b45ebc.19189",
1297         "type": "set",
1298         "name": "set tmp.ss.vnf-id",
1299         "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",
1300         "comments": "",
1301         "x": 2169.4405670166016,
1302         "y": 866.58758020401,
1303         "z": "1e0169fe.460196",
1304         "wires": []
1305     },
1306     {
1307         "id": "4c0830f.966f55",
1308         "type": "set",
1309         "name": "set resource-resolution-data.status = DELETED",
1310         "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",
1311         "comments": "",
1312         "x": 3438.5116577148438,
1313         "y": 1685.1543579101562,
1314         "z": "1e0169fe.460196",
1315         "wires": []
1316     },
1317     {
1318         "id": "5bcfaea0.c0c0f8",
1319         "type": "outcome",
1320         "name": "prefix-id",
1321         "xml": "<outcome value='prefix-id'>\n",
1322         "comments": "",
1323         "outputs": 1,
1324         "x": 1892.496109008789,
1325         "y": 910.8376107215881,
1326         "z": "1e0169fe.460196",
1327         "wires": [
1328             [
1329                 "dd169952.c2ddc8"
1330             ]
1331         ]
1332     },
1333     {
1334         "id": "dd169952.c2ddc8",
1335         "type": "set",
1336         "name": "set prefix-id",
1337         "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",
1338         "comments": "",
1339         "x": 2138.996109008789,
1340         "y": 911.08758020401,
1341         "z": "1e0169fe.460196",
1342         "wires": []
1343     },
1344     {
1345         "id": "3246d2cf.e446ce",
1346         "type": "execute",
1347         "name": "execute NetboxClient assignIpAddress",
1348         "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`\" />",
1349         "comments": "",
1350         "outputs": 1,
1351         "x": 2200.1068725585938,
1352         "y": 1209.6432886123657,
1353         "z": "1e0169fe.460196",
1354         "wires": [
1355             [
1356                 "bc02f9c5.d3009",
1357                 "5a42ccdf.863d7c"
1358             ]
1359         ]
1360     },
1361     {
1362         "id": "bc02f9c5.d3009",
1363         "type": "failure",
1364         "name": "failure",
1365         "xml": "<outcome value='failure'>\n",
1366         "comments": "",
1367         "outputs": 1,
1368         "x": 2517.1068725585938,
1369         "y": 1211.6432275772095,
1370         "z": "1e0169fe.460196",
1371         "wires": [
1372             [
1373                 "9be2285f.3688f8"
1374             ]
1375         ]
1376     },
1377     {
1378         "id": "9be2285f.3688f8",
1379         "type": "block",
1380         "name": "block : atomic",
1381         "xml": "<block atomic='true'>",
1382         "atomic": "true",
1383         "comments": "",
1384         "outputs": 1,
1385         "x": 2725.1068725585938,
1386         "y": 1215.6432275772095,
1387         "z": "1e0169fe.460196",
1388         "wires": [
1389             [
1390                 "be8fa4c5.70a7a",
1391                 "742a806a.1c8b48"
1392             ]
1393         ]
1394     },
1395     {
1396         "id": "be8fa4c5.70a7a",
1397         "type": "set",
1398         "name": "set resource-resolution-data.status = FAILED",
1399         "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",
1400         "comments": "",
1401         "x": 3042.10693359375,
1402         "y": 1219.6431970596313,
1403         "z": "1e0169fe.460196",
1404         "wires": []
1405     },
1406     {
1407         "id": "742a806a.1c8b48",
1408         "type": "returnFailure",
1409         "name": "return failure",
1410         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
1411         "comments": "",
1412         "x": 2939.48779296875,
1413         "y": 1269.2464599609375,
1414         "z": "1e0169fe.460196",
1415         "wires": []
1416     },
1417     {
1418         "id": "291a0f5b.065428",
1419         "type": "set",
1420         "name": "set resource-resolution-data.status = SUCCESS",
1421         "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",
1422         "comments": "",
1423         "x": 3019.1900634765625,
1424         "y": 1414.3340454101562,
1425         "z": "1e0169fe.460196",
1426         "wires": []
1427     },
1428     {
1429         "id": "714a9ad3.25a814",
1430         "type": "outcome",
1431         "name": "external_key",
1432         "xml": "<outcome value='external_key'>\n",
1433         "comments": "",
1434         "outputs": 1,
1435         "x": 1915.246337890625,
1436         "y": 961.4089965820312,
1437         "z": "1e0169fe.460196",
1438         "wires": [
1439             [
1440                 "bc0a0828.40d9d8"
1441             ]
1442         ]
1443     },
1444     {
1445         "id": "bc0a0828.40d9d8",
1446         "type": "set",
1447         "name": "set external-key",
1448         "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",
1449         "comments": "",
1450         "x": 2163.8177490234375,
1451         "y": 961.4090576171875,
1452         "z": "1e0169fe.460196",
1453         "wires": []
1454     },
1455     {
1456         "id": "f4266bba.68463",
1457         "type": "set",
1458         "name": "set tmp.ss.param.name",
1459         "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",
1460         "comments": "",
1461         "x": 1181.9564895629883,
1462         "y": 587.6627821922302,
1463         "z": "1e0169fe.460196",
1464         "wires": []
1465     },
1466     {
1467         "id": "35313136.60f71e",
1468         "type": "block",
1469         "name": "block",
1470         "xml": "<block>\n",
1471         "atomic": "false",
1472         "comments": "",
1473         "outputs": 1,
1474         "x": 1115.5831298828125,
1475         "y": 815.6311645507812,
1476         "z": "1e0169fe.460196",
1477         "wires": [
1478             [
1479                 "8b797c86.449c88",
1480                 "f17ee439.871ec"
1481             ]
1482         ]
1483     },
1484     {
1485         "id": "3ab742ab.07506e",
1486         "type": "outcome",
1487         "name": "assign",
1488         "xml": "<outcome value='assign'>",
1489         "comments": "",
1490         "outputs": 1,
1491         "x": 1172.190185546875,
1492         "y": 1227.190673828125,
1493         "z": "1e0169fe.460196",
1494         "wires": [
1495             [
1496                 "ac9eaafc.1d31a"
1497             ]
1498         ]
1499     },
1500     {
1501         "id": "f17ee439.871ec",
1502         "type": "switchNode",
1503         "name": "switch: ss.capability-action",
1504         "xml": "<switch test='`$ss.capability-action`'>\n",
1505         "comments": "",
1506         "outputs": 1,
1507         "x": 934.9402770996094,
1508         "y": 1232.690673828125,
1509         "z": "1e0169fe.460196",
1510         "wires": [
1511             [
1512                 "3ab742ab.07506e",
1513                 "74139423.e17614"
1514             ]
1515         ]
1516     },
1517     {
1518         "id": "26e5147.b2e3b6c",
1519         "type": "block",
1520         "name": "block : atomic",
1521         "xml": "<block atomic='true'>",
1522         "atomic": "true",
1523         "comments": "",
1524         "outputs": 1,
1525         "x": 1920.8328857421875,
1526         "y": 1214.8339233398438,
1527         "z": "1e0169fe.460196",
1528         "wires": [
1529             [
1530                 "3246d2cf.e446ce"
1531             ]
1532         ]
1533     },
1534     {
1535         "id": "f61d39ca.54246",
1536         "type": "success",
1537         "name": "success",
1538         "xml": "<outcome value='success'>\n",
1539         "comments": "",
1540         "outputs": 1,
1541         "x": 2466.6903381347656,
1542         "y": 1540.61923122406,
1543         "z": "1e0169fe.460196",
1544         "wires": [
1545             [
1546                 "199cb084.41994f"
1547             ]
1548         ]
1549     },
1550     {
1551         "id": "5a42ccdf.863d7c",
1552         "type": "success",
1553         "name": "success",
1554         "xml": "<outcome value='success'>\n",
1555         "comments": "",
1556         "outputs": 1,
1557         "x": 2525.154296875,
1558         "y": 1275.154846191406,
1559         "z": "1e0169fe.460196",
1560         "wires": [
1561             [
1562                 "82bf193e.1c3e9"
1563             ]
1564         ]
1565     },
1566     {
1567         "id": "4d3d930a.c74edc",
1568         "type": "block",
1569         "name": "block",
1570         "xml": "<block>\n",
1571         "atomic": "false",
1572         "comments": "",
1573         "outputs": 1,
1574         "x": 2640.1190011160716,
1575         "y": 1493.3334962299891,
1576         "z": "1e0169fe.460196",
1577         "wires": [
1578             []
1579         ]
1580     },
1581     {
1582         "id": "82bf193e.1c3e9",
1583         "type": "block",
1584         "name": "block",
1585         "xml": "<block>\n",
1586         "atomic": "false",
1587         "comments": "",
1588         "outputs": 1,
1589         "x": 2719.43994140625,
1590         "y": 1355.1549682617188,
1591         "z": "1e0169fe.460196",
1592         "wires": [
1593             [
1594                 "291a0f5b.065428",
1595                 "ddc0044e.197a88",
1596                 "96318d27.c30ac8"
1597             ]
1598         ]
1599     },
1600     {
1601         "id": "bacc37f5.251158",
1602         "type": "success",
1603         "name": "success",
1604         "xml": "<outcome value='success'>\n",
1605         "comments": "",
1606         "outputs": 1,
1607         "x": 3176.5836791992188,
1608         "y": 1683.7262573242188,
1609         "z": "1e0169fe.460196",
1610         "wires": [
1611             [
1612                 "4c0830f.966f55"
1613             ]
1614         ]
1615     },
1616     {
1617         "id": "96318d27.c30ac8",
1618         "type": "set",
1619         "name": "set service-data...param[].value = ip-address",
1620         "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",
1621         "comments": "",
1622         "x": 3008.7139892578125,
1623         "y": 1374.2858276367188,
1624         "z": "1e0169fe.460196",
1625         "wires": []
1626     },
1627     {
1628         "id": "ddc0044e.197a88",
1629         "type": "execute",
1630         "name": "SliStringUtils - split subnet",
1631         "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",
1632         "comments": "",
1633         "outputs": 1,
1634         "x": 2952.7139892578125,
1635         "y": 1334.2858276367188,
1636         "z": "1e0169fe.460196",
1637         "wires": [
1638             []
1639         ]
1640     },
1641     {
1642         "id": "722fee02.ac2218",
1643         "type": "execute",
1644         "name": "SliStringUtils - split subnet",
1645         "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",
1646         "comments": "",
1647         "outputs": 1,
1648         "x": 2960.428680419922,
1649         "y": 2824.7141942977905,
1650         "z": "1e0169fe.460196",
1651         "wires": [
1652             []
1653         ]
1654     },
1655     {
1656         "id": "ac9eaafc.1d31a",
1657         "type": "switchNode",
1658         "name": "switch: resource-resolution-data.status",
1659         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
1660         "comments": "",
1661         "outputs": 1,
1662         "x": 1408.392822265625,
1663         "y": 1221.9642944335938,
1664         "z": "1e0169fe.460196",
1665         "wires": [
1666             [
1667                 "e91661da.3b8608",
1668                 "bf37d131.8b2478"
1669             ]
1670         ]
1671     },
1672     {
1673         "id": "e91661da.3b8608",
1674         "type": "not-found",
1675         "name": "FAILED",
1676         "xml": "<outcome value='FAILED'>\n",
1677         "comments": "",
1678         "outputs": 1,
1679         "x": 1694.643310546875,
1680         "y": 1191.53564453125,
1681         "z": "1e0169fe.460196",
1682         "wires": [
1683             [
1684                 "26e5147.b2e3b6c"
1685             ]
1686         ]
1687     },
1688     {
1689         "id": "bf37d131.8b2478",
1690         "type": "success",
1691         "name": "PENDING",
1692         "xml": "<outcome value='PENDING'>\n",
1693         "comments": "",
1694         "outputs": 1,
1695         "x": 1693.678466796875,
1696         "y": 1235.3931274414062,
1697         "z": "1e0169fe.460196",
1698         "wires": [
1699             [
1700                 "26e5147.b2e3b6c"
1701             ]
1702         ]
1703     },
1704     {
1705         "id": "e51b7888.989928",
1706         "type": "switchNode",
1707         "name": "switch: resource-resolution-data.status",
1708         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
1709         "comments": "",
1710         "outputs": 1,
1711         "x": 1431.249755859375,
1712         "y": 1393.750244140625,
1713         "z": "1e0169fe.460196",
1714         "wires": [
1715             [
1716                 "26889fb2.5ce19"
1717             ]
1718         ]
1719     },
1720     {
1721         "id": "26889fb2.5ce19",
1722         "type": "success",
1723         "name": "SUCCESS",
1724         "xml": "<outcome value='SUCCESS'>\n",
1725         "comments": "",
1726         "outputs": 1,
1727         "x": 1688.678466796875,
1728         "y": 1393.9644775390625,
1729         "z": "1e0169fe.460196",
1730         "wires": [
1731             [
1732                 "2e96e14a.d8a666"
1733             ]
1734         ]
1735     },
1736     {
1737         "id": "c615cc08.6cc77",
1738         "type": "outcome",
1739         "name": "unassign",
1740         "xml": "<outcome value='unassign'>",
1741         "comments": "",
1742         "outputs": 1,
1743         "x": 1181.428466796875,
1744         "y": 2975.71435546875,
1745         "z": "1e0169fe.460196",
1746         "wires": [
1747             [
1748                 "5bd2efc8.0cc53"
1749             ]
1750         ]
1751     },
1752     {
1753         "id": "398f1da9.7fc262",
1754         "type": "outcome",
1755         "name": "assign",
1756         "xml": "<outcome value='assign'>",
1757         "comments": "",
1758         "outputs": 1,
1759         "x": 1181.749755859375,
1760         "y": 2705.8930053710938,
1761         "z": "1e0169fe.460196",
1762         "wires": [
1763             [
1764                 "71585e8c.8a959"
1765             ]
1766         ]
1767     },
1768     {
1769         "id": "71585e8c.8a959",
1770         "type": "switchNode",
1771         "name": "switch: resource-resolution-data.status",
1772         "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",
1773         "comments": "",
1774         "outputs": 1,
1775         "x": 1417.952392578125,
1776         "y": 2700.6666259765625,
1777         "z": "1e0169fe.460196",
1778         "wires": [
1779             [
1780                 "83c2a9a4.58aa98",
1781                 "bd2c6000.241588"
1782             ]
1783         ]
1784     },
1785     {
1786         "id": "83c2a9a4.58aa98",
1787         "type": "not-found",
1788         "name": "FAILED",
1789         "xml": "<outcome value='FAILED'>\n",
1790         "comments": "",
1791         "outputs": 1,
1792         "x": 1704.202880859375,
1793         "y": 2670.2379760742188,
1794         "z": "1e0169fe.460196",
1795         "wires": [
1796             [
1797                 "b4174ab1.8632e"
1798             ]
1799         ]
1800     },
1801     {
1802         "id": "bd2c6000.241588",
1803         "type": "success",
1804         "name": "PENDING",
1805         "xml": "<outcome value='PENDING'>\n",
1806         "comments": "",
1807         "outputs": 1,
1808         "x": 1703.238037109375,
1809         "y": 2714.095458984375,
1810         "z": "1e0169fe.460196",
1811         "wires": [
1812             [
1813                 "b4174ab1.8632e"
1814             ]
1815         ]
1816     },
1817     {
1818         "id": "5bd2efc8.0cc53",
1819         "type": "switchNode",
1820         "name": "switch: resource-resolution-data.status",
1821         "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",
1822         "comments": "",
1823         "outputs": 1,
1824         "x": 1435.0949096679688,
1825         "y": 2979.5953979492188,
1826         "z": "1e0169fe.460196",
1827         "wires": [
1828             [
1829                 "9c7404ad.aa898"
1830             ]
1831         ]
1832     },
1833     {
1834         "id": "9c7404ad.aa898",
1835         "type": "success",
1836         "name": "SUCCESS",
1837         "xml": "<outcome value='SUCCESS'>\n",
1838         "comments": "",
1839         "outputs": 1,
1840         "x": 1692.5236206054688,
1841         "y": 2979.8096313476562,
1842         "z": "1e0169fe.460196",
1843         "wires": [
1844             [
1845                 "9e365126.584608"
1846             ]
1847         ]
1848     }
1849 ]