797986fbea0c40d8edf7f0df7bbe27c132123826
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vf-module-topology-operation-activate.json
1 [
2     {
3         "id": "b3e2f5b2.d1ec88",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 108.33332824707031,
8         "y": 85,
9         "z": "836e826a.3ec22",
10         "wires": [
11             [
12                 "dab5982.c2d8368"
13             ]
14         ]
15     },
16     {
17         "id": "dab5982.c2d8368",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
23         "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}'>",
24         "outputs": 1,
25         "x": 183.61903381347656,
26         "y": 125.23811149597168,
27         "z": "836e826a.3ec22",
28         "wires": [
29             [
30                 "c935cee3.ef7d4"
31             ]
32         ]
33     },
34     {
35         "id": "c935cee3.ef7d4",
36         "type": "method",
37         "name": "method vf-module-topology-operation-activate",
38         "xml": "<method rpc='vf-module-topology-operation-activate' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 221.76195526123047,
42         "y": 165,
43         "z": "836e826a.3ec22",
44         "wires": [
45             [
46                 "c8f7adca.75964"
47             ]
48         ]
49     },
50     {
51         "id": "5cec4e55.d222e",
52         "type": "comment",
53         "name": "vf-module-topology-operation-activate",
54         "info": "",
55         "comments": "",
56         "x": 502.67818450927734,
57         "y": 32.58634376525879,
58         "z": "836e826a.3ec22",
59         "wires": []
60     },
61     {
62         "id": "f55136c4.7d1fa8",
63         "type": "switchNode",
64         "name": "switch request-action",
65         "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
66         "comments": "",
67         "outputs": 1,
68         "x": 511.85713958740234,
69         "y": 263.8571376800537,
70         "z": "836e826a.3ec22",
71         "wires": [
72             [
73                 "a5be9328.059ac",
74                 "268e67a.bb73198"
75             ]
76         ]
77     },
78     {
79         "id": "a5be9328.059ac",
80         "type": "outcome",
81         "name": "CreateVfModuleInstance",
82         "xml": "<outcome value='CreateVfModuleInstance'>\n",
83         "comments": "",
84         "outputs": 1,
85         "x": 762.9047546386719,
86         "y": 241.0000238418579,
87         "z": "836e826a.3ec22",
88         "wires": [
89             [
90                 "e97fb6eb.1f8fb8"
91             ]
92         ]
93     },
94     {
95         "id": "268e67a.bb73198",
96         "type": "other",
97         "name": "other",
98         "xml": "<outcome value='Other'>\n",
99         "comments": "",
100         "outputs": 1,
101         "x": 706.5713996887207,
102         "y": 286.38101291656494,
103         "z": "836e826a.3ec22",
104         "wires": [
105             [
106                 "9d82fd59.8a632"
107             ]
108         ]
109     },
110     {
111         "id": "e97fb6eb.1f8fb8",
112         "type": "block",
113         "name": "block",
114         "xml": "<block>\n",
115         "atomic": "false",
116         "comments": "",
117         "outputs": 1,
118         "x": 952.7619190216064,
119         "y": 241.00005531311035,
120         "z": "836e826a.3ec22",
121         "wires": [
122             []
123         ]
124     },
125     {
126         "id": "9d82fd59.8a632",
127         "type": "returnFailure",
128         "name": "return failure",
129         "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=\"If svc-action is 'activate' then request-action must be 'CreateVfModuleInstance'\" />\n",
130         "comments": "",
131         "x": 971.5714073181152,
132         "y": 286.71432542800903,
133         "z": "836e826a.3ec22",
134         "wires": []
135     },
136     {
137         "id": "c8f7adca.75964",
138         "type": "block",
139         "name": "block : atomic",
140         "xml": "<block atomic=\"true\">",
141         "atomic": "true",
142         "outputs": 1,
143         "x": 153.3333282470703,
144         "y": 493.3332939147949,
145         "z": "836e826a.3ec22",
146         "wires": [
147             [
148                 "f55136c4.7d1fa8",
149                 "33462c4c.518eb4",
150                 "2c1ab3ca.482e0c",
151                 "979e92c5.d53fe",
152                 "ea5f4c6f.d1309",
153                 "aae32e5.23f3cd",
154                 "98ce7a09.d3e438",
155                 "41d0df4e.5c136",
156                 "65dc8315.181b9c",
157                 "cb036b0b.8b11c8",
158                 "78ecfd34.349dc4",
159                 "e0f8a4a9.becc18",
160                 "c3cab201.2d1ef"
161             ]
162         ]
163     },
164     {
165         "id": "2c1ab3ca.482e0c",
166         "type": "switchNode",
167         "name": "switch service-data.vnfs.vnf_length",
168         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
169         "comments": "",
170         "outputs": 1,
171         "x": 556.6666564941406,
172         "y": 394.9999647140503,
173         "z": "836e826a.3ec22",
174         "wires": [
175             [
176                 "d78e72e2.ad098",
177                 "224b172.962d2e8"
178             ]
179         ]
180     },
181     {
182         "id": "d78e72e2.ad098",
183         "type": "other",
184         "name": "NULL",
185         "xml": "<outcome value=''>\n",
186         "comments": "",
187         "outputs": 1,
188         "x": 797.3809280395508,
189         "y": 372.1427049636841,
190         "z": "836e826a.3ec22",
191         "wires": [
192             [
193                 "d7ea4aa1.bfcb38"
194             ]
195         ]
196     },
197     {
198         "id": "224b172.962d2e8",
199         "type": "other",
200         "name": "other",
201         "xml": "<outcome value='Other'>\n",
202         "comments": "",
203         "outputs": 1,
204         "x": 797.1427688598633,
205         "y": 413.09522342681885,
206         "z": "836e826a.3ec22",
207         "wires": [
208             [
209                 "42ba44cf.9db11c"
210             ]
211         ]
212     },
213     {
214         "id": "d7ea4aa1.bfcb38",
215         "type": "returnFailure",
216         "name": "return failure",
217         "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=\"There are no VNFs defined in MD-SAL\" />\n",
218         "comments": "",
219         "x": 964.0475425720215,
220         "y": 371.4284601211548,
221         "z": "836e826a.3ec22",
222         "wires": []
223     },
224     {
225         "id": "42ba44cf.9db11c",
226         "type": "for",
227         "name": "for each vnf",
228         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
229         "comments": "",
230         "outputs": 1,
231         "x": 959.3809127807617,
232         "y": 412.7618417739868,
233         "z": "836e826a.3ec22",
234         "wires": [
235             [
236                 "7209f5e7.76dcfc"
237             ]
238         ]
239     },
240     {
241         "id": "7209f5e7.76dcfc",
242         "type": "switchNode",
243         "name": "switch service data vnf == input vnf",
244         "xml": "<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n",
245         "comments": "",
246         "outputs": 1,
247         "x": 1210.7141304016113,
248         "y": 412.42852878570557,
249         "z": "836e826a.3ec22",
250         "wires": [
251             [
252                 "42a9a01e.4621d"
253             ]
254         ]
255     },
256     {
257         "id": "42a9a01e.4621d",
258         "type": "outcomeTrue",
259         "name": "true",
260         "xml": "<outcome value='true'>\n",
261         "comments": "",
262         "outputs": 1,
263         "x": 1440.7142219543457,
264         "y": 411.7618827819824,
265         "z": "836e826a.3ec22",
266         "wires": [
267             [
268                 "cdb3bc66.5a0d1"
269             ]
270         ]
271     },
272     {
273         "id": "33462c4c.518eb4",
274         "type": "set",
275         "name": "set vnf-index to -1",
276         "xml": "<set>\n<parameter name='vnf-index' value='-1' />\n",
277         "comments": "",
278         "x": 500.7142562866211,
279         "y": 333.09513664245605,
280         "z": "836e826a.3ec22",
281         "wires": []
282     },
283     {
284         "id": "717cff05.1de83",
285         "type": "set",
286         "name": "set vnf-index to idx",
287         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
288         "comments": "",
289         "x": 1762.380859375,
290         "y": 382.7618408203125,
291         "z": "836e826a.3ec22",
292         "wires": []
293     },
294     {
295         "id": "979e92c5.d53fe",
296         "type": "switchNode",
297         "name": "switch vnf-index",
298         "xml": "<switch test='`$vnf-index`'>\n",
299         "comments": "",
300         "outputs": 1,
301         "x": 492.3809394836426,
302         "y": 459.76183891296387,
303         "z": "836e826a.3ec22",
304         "wires": [
305             [
306                 "4d87c876.5adff8"
307             ]
308         ]
309     },
310     {
311         "id": "4d87c876.5adff8",
312         "type": "outcome",
313         "name": "-1",
314         "xml": "<outcome value='-1'>\n",
315         "comments": "",
316         "outputs": 1,
317         "x": 670.7143249511719,
318         "y": 459.09521484375,
319         "z": "836e826a.3ec22",
320         "wires": [
321             [
322                 "f087e977.afc1b8"
323             ]
324         ]
325     },
326     {
327         "id": "f087e977.afc1b8",
328         "type": "returnFailure",
329         "name": "return failure",
330         "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=\"`'Unable to find VNF ID ' + $vf-module-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'`\" />\n",
331         "comments": "",
332         "x": 830.7142333984375,
333         "y": 458.4285182952881,
334         "z": "836e826a.3ec22",
335         "wires": []
336     },
337     {
338         "id": "cdb3bc66.5a0d1",
339         "type": "block",
340         "name": "block",
341         "xml": "<block>\n",
342         "atomic": "false",
343         "comments": "",
344         "outputs": 1,
345         "x": 1589.0476837158203,
346         "y": 410.6815814971924,
347         "z": "836e826a.3ec22",
348         "wires": [
349             [
350                 "717cff05.1de83",
351                 "ee458420.1b46d8"
352             ]
353         ]
354     },
355     {
356         "id": "ee458420.1b46d8",
357         "type": "break",
358         "name": "break",
359         "xml": "<break>\n",
360         "comments": "",
361         "x": 1724.047649383545,
362         "y": 432.3481674194336,
363         "z": "836e826a.3ec22",
364         "wires": []
365     },
366     {
367         "id": "aae32e5.23f3cd",
368         "type": "switchNode",
369         "name": "switch service-data...vf-module_length",
370         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
371         "comments": "",
372         "outputs": 1,
373         "x": 564.9999694824219,
374         "y": 558.3333358764648,
375         "z": "836e826a.3ec22",
376         "wires": [
377             [
378                 "9b945904.62b6c8",
379                 "9b02b5f9.8a49d8"
380             ]
381         ]
382     },
383     {
384         "id": "9b945904.62b6c8",
385         "type": "other",
386         "name": "NULL",
387         "xml": "<outcome value=''>\n",
388         "comments": "",
389         "outputs": 1,
390         "x": 815.7142791748047,
391         "y": 537.1427392959595,
392         "z": "836e826a.3ec22",
393         "wires": [
394             [
395                 "67892bd4.9c5464"
396             ]
397         ]
398     },
399     {
400         "id": "9b02b5f9.8a49d8",
401         "type": "other",
402         "name": "other",
403         "xml": "<outcome value='Other'>\n",
404         "comments": "",
405         "outputs": 1,
406         "x": 815.4761199951172,
407         "y": 578.0952577590942,
408         "z": "836e826a.3ec22",
409         "wires": [
410             [
411                 "526cbef0.bed3f"
412             ]
413         ]
414     },
415     {
416         "id": "67892bd4.9c5464",
417         "type": "returnFailure",
418         "name": "return failure",
419         "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=\"`'There are no VF modules defined in MD-SAL for VNF ' + $vf-module-topology-operation-input.vnf-information.vnf-id`\" />\n",
420         "comments": "",
421         "x": 982.3808937072754,
422         "y": 536.4284944534302,
423         "z": "836e826a.3ec22",
424         "wires": []
425     },
426     {
427         "id": "526cbef0.bed3f",
428         "type": "for",
429         "name": "for each vf-module",
430         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
431         "comments": "",
432         "outputs": 1,
433         "x": 977.7142639160156,
434         "y": 577.7618761062622,
435         "z": "836e826a.3ec22",
436         "wires": [
437             [
438                 "4f0d7647.56b958"
439             ]
440         ]
441     },
442     {
443         "id": "4f0d7647.56b958",
444         "type": "switchNode",
445         "name": "switch service data vf-module == input vf-module",
446         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`'>\n",
447         "comments": "",
448         "outputs": 1,
449         "x": 1284.0474243164062,
450         "y": 577.4286117553711,
451         "z": "836e826a.3ec22",
452         "wires": [
453             [
454                 "44af7ab9.eed234"
455             ]
456         ]
457     },
458     {
459         "id": "44af7ab9.eed234",
460         "type": "outcomeTrue",
461         "name": "true",
462         "xml": "<outcome value='true'>\n",
463         "comments": "",
464         "outputs": 1,
465         "x": 1554.047477722168,
466         "y": 575.0952167510986,
467         "z": "836e826a.3ec22",
468         "wires": [
469             [
470                 "b035b372.13799"
471             ]
472         ]
473     },
474     {
475         "id": "ea5f4c6f.d1309",
476         "type": "set",
477         "name": "set vf-module-index to -1",
478         "xml": "<set>\n<parameter name='vf-module-index' value='-1' />\n",
479         "comments": "",
480         "x": 520.714241027832,
481         "y": 508.0951747894287,
482         "z": "836e826a.3ec22",
483         "wires": []
484     },
485     {
486         "id": "89c9c4bd.a873a8",
487         "type": "set",
488         "name": "set vf-module-index to idx",
489         "xml": "<set>\n<parameter name='vf-module-index' value='`$idx`' />\n",
490         "comments": "",
491         "x": 1884.0475692749023,
492         "y": 546.0951957702637,
493         "z": "836e826a.3ec22",
494         "wires": []
495     },
496     {
497         "id": "98ce7a09.d3e438",
498         "type": "switchNode",
499         "name": "switch vf-module-index",
500         "xml": "<switch test='`$vf-module-index`'>\n",
501         "comments": "",
502         "outputs": 1,
503         "x": 517.3809432983398,
504         "y": 626.4285945892334,
505         "z": "836e826a.3ec22",
506         "wires": [
507             [
508                 "b9c45c6b.a9187"
509             ]
510         ]
511     },
512     {
513         "id": "b9c45c6b.a9187",
514         "type": "outcome",
515         "name": "-1",
516         "xml": "<outcome value='-1'>\n",
517         "comments": "",
518         "outputs": 1,
519         "x": 695.7143287658691,
520         "y": 625.7619705200195,
521         "z": "836e826a.3ec22",
522         "wires": [
523             [
524                 "d59bf3a9.b26b2"
525             ]
526         ]
527     },
528     {
529         "id": "d59bf3a9.b26b2",
530         "type": "returnFailure",
531         "name": "return failure",
532         "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=\"`'Unable to find VF module ID ' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + ' in MD-SAL'`\" />\n",
533         "comments": "",
534         "x": 855.7142372131348,
535         "y": 625.0952739715576,
536         "z": "836e826a.3ec22",
537         "wires": []
538     },
539     {
540         "id": "b035b372.13799",
541         "type": "block",
542         "name": "block",
543         "xml": "<block>\n",
544         "atomic": "false",
545         "comments": "",
546         "outputs": 1,
547         "x": 1687.3810195922852,
548         "y": 574.0149564743042,
549         "z": "836e826a.3ec22",
550         "wires": [
551             [
552                 "89c9c4bd.a873a8",
553                 "520e0d13.8fb9c4"
554             ]
555         ]
556     },
557     {
558         "id": "520e0d13.8fb9c4",
559         "type": "break",
560         "name": "break",
561         "xml": "<break>\n",
562         "comments": "",
563         "x": 1822.3809852600098,
564         "y": 595.6815423965454,
565         "z": "836e826a.3ec22",
566         "wires": []
567     },
568     {
569         "id": "41d0df4e.5c136",
570         "type": "set",
571         "name": "set order-status to Created",
572         "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-level-oper-status.order-status'\n  value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\n  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\n  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
573         "comments": "",
574         "x": 535.0000610351562,
575         "y": 945.0000171661377,
576         "z": "836e826a.3ec22",
577         "wires": []
578     },
579     {
580         "id": "65dc8315.181b9c",
581         "type": "switchNode",
582         "name": "switch order-status",
583         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status`'>\n",
584         "comments": "",
585         "outputs": 1,
586         "x": 508.33329010009766,
587         "y": 695.6666564941406,
588         "z": "836e826a.3ec22",
589         "wires": [
590             [
591                 "6bec43cd.c6ce2c",
592                 "a5ffb8bd.544748"
593             ]
594         ]
595     },
596     {
597         "id": "6bec43cd.c6ce2c",
598         "type": "outcome",
599         "name": "PendingCreate",
600         "xml": "<outcome value='PendingCreate'>\n",
601         "comments": "",
602         "outputs": 1,
603         "x": 720.0000343322754,
604         "y": 673.9999809265137,
605         "z": "836e826a.3ec22",
606         "wires": [
607             [
608                 "b627f4fa.590738"
609             ]
610         ]
611     },
612     {
613         "id": "a5ffb8bd.544748",
614         "type": "other",
615         "name": "other",
616         "xml": "<outcome value='Other'>\n",
617         "comments": "",
618         "outputs": 1,
619         "x": 697.0000228881836,
620         "y": 719.380952835083,
621         "z": "836e826a.3ec22",
622         "wires": [
623             [
624                 "69bb9844.70fda8"
625             ]
626         ]
627     },
628     {
629         "id": "b627f4fa.590738",
630         "type": "block",
631         "name": "block",
632         "xml": "<block>\n",
633         "atomic": "false",
634         "comments": "",
635         "outputs": 1,
636         "x": 874.8571701049805,
637         "y": 673.3333835601807,
638         "z": "836e826a.3ec22",
639         "wires": [
640             []
641         ]
642     },
643     {
644         "id": "69bb9844.70fda8",
645         "type": "returnFailure",
646         "name": "return failure",
647         "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=\"`'Order status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status + ' instead of PendingCreate'`\" />\n",
648         "comments": "",
649         "x": 894.3333206176758,
650         "y": 719.3810129165649,
651         "z": "836e826a.3ec22",
652         "wires": []
653     },
654     {
655         "id": "cb036b0b.8b11c8",
656         "type": "set",
657         "name": "copy input data",
658         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.sdnc-request-header.'\n   value='$vf-module-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.request-information.'\n   value='$vf-module-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.'\n   value='$vf-module-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.'\n   value='$vf-module-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.'\n   value='$vf-module-topology-operation-input.vf-module-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.'\n   value='$vf-module-topology-operation-input.vf-module-request-input.' />\n\n",
659         "comments": "",
660         "x": 500,
661         "y": 896.6666622161865,
662         "z": "836e826a.3ec22",
663         "wires": []
664     },
665     {
666         "id": "78ecfd34.349dc4",
667         "type": "save",
668         "name": "update vf-module to Active",
669         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"vf-module\"\n   key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n      AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"orchestration-status\" value=\"Active\" />\n",
670         "comments": "",
671         "outputs": 1,
672         "x": 533.3332672119141,
673         "y": 783.3332824707031,
674         "z": "836e826a.3ec22",
675         "wires": [
676             [
677                 "c27006c0.c436d8",
678                 "912d9db6.973d9"
679             ]
680         ]
681     },
682     {
683         "id": "e2726395.5642b",
684         "type": "returnFailure",
685         "name": "return failure",
686         "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=\"`'No vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n",
687         "comments": "",
688         "x": 930.0000267028809,
689         "y": 806.666651725769,
690         "z": "836e826a.3ec22",
691         "wires": []
692     },
693     {
694         "id": "c27006c0.c436d8",
695         "type": "failure",
696         "name": "failure",
697         "xml": "<outcome value='failure'>\n",
698         "comments": "",
699         "outputs": 1,
700         "x": 742.6905937194824,
701         "y": 763.6191215515137,
702         "z": "836e826a.3ec22",
703         "wires": [
704             [
705                 "463820fb.52f55"
706             ]
707         ]
708     },
709     {
710         "id": "912d9db6.973d9",
711         "type": "not-found",
712         "name": "not-found",
713         "xml": "<outcome value='not-found'>\n",
714         "comments": "",
715         "outputs": 1,
716         "x": 751.2620239257812,
717         "y": 807.9048347473145,
718         "z": "836e826a.3ec22",
719         "wires": [
720             [
721                 "e2726395.5642b"
722             ]
723         ]
724     },
725     {
726         "id": "463820fb.52f55",
727         "type": "returnFailure",
728         "name": "return failure",
729         "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 vf-module in AAI\" />\n",
730         "comments": "",
731         "x": 932.6906204223633,
732         "y": 763.4288568496704,
733         "z": "836e826a.3ec22",
734         "wires": []
735     },
736     {
737         "id": "e0f8a4a9.becc18",
738         "type": "update",
739         "name": "Update EIPAM_IP_ASSIGNMENTS to ACTIVE",
740         "xml": "<update resource='SQL' force='true' plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n  key='UPDATE EIPAM_IP_ASSIGNMENTS SET status = \"ACTIVE\" WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id'>\n",
741         "comments": "",
742         "outputs": 1,
743         "x": 596.6666564941406,
744         "y": 853.333306312561,
745         "z": "836e826a.3ec22",
746         "wires": [
747             [
748                 "d47fe482.1f7428"
749             ]
750         ]
751     },
752     {
753         "id": "d47fe482.1f7428",
754         "type": "failure",
755         "name": "failure",
756         "xml": "<outcome value='failure'>\n",
757         "comments": "",
758         "outputs": 1,
759         "x": 863.3333282470703,
760         "y": 851.6666460037231,
761         "z": "836e826a.3ec22",
762         "wires": [
763             [
764                 "3aa8408e.a33f6"
765             ]
766         ]
767     },
768     {
769         "id": "3aa8408e.a33f6",
770         "type": "returnFailure",
771         "name": "return failure",
772         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating EIPAM_IP_ASSIGNMENTS table\" />\n",
773         "comments": "",
774         "x": 1013.3333282470703,
775         "y": 849.9999589920044,
776         "z": "836e826a.3ec22",
777         "wires": []
778     },
779     {
780         "id": "c3cab201.2d1ef",
781         "type": "returnSuccess",
782         "name": "return success",
783         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
784         "comments": "",
785         "x": 494.9999694824219,
786         "y": 993.3333129882812,
787         "z": "836e826a.3ec22",
788         "wires": []
789     }
790 ]