Remove active printContexts from DGs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vf-module-topology-operation-assign.json
1 [
2   {
3     "id":"2e8304f2.d1333c",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":140,
8     "y":102,
9     "z":"e6090836.aef008",
10     "wires":[
11       [
12         "30732ff9.e0c76"
13       ]
14     ]
15   },
16   {
17     "id":"30732ff9.e0c76",
18     "type":"service-logic",
19     "name":"GENERIC-RESOURCE-API 1.2.0-SNAPSHOT-INT110901",
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='1.2.0-SNAPSHOT-INT110901'>",
24     "outputs":1,
25     "x":253.85713577270508,
26     "y":141.80953788757324,
27     "z":"e6090836.aef008",
28     "wires":[
29       [
30         "9c4b6ed9.61ebe"
31       ]
32     ]
33   },
34   {
35     "id":"9c4b6ed9.61ebe",
36     "type":"method",
37     "name":"method vf-module-topology-operation-assign",
38     "xml":"<method rpc='vf-module-topology-operation-assign' mode='sync'>\n",
39     "comments":"",
40     "outputs":1,
41     "x":253.42862701416016,
42     "y":182,
43     "z":"e6090836.aef008",
44     "wires":[
45       [
46         "4a26d4a8.22be7c"
47       ]
48     ]
49   },
50   {
51     "id":"5527c1d7.da9d7",
52     "type":"comment",
53     "name":"vf-module-topology-operation-assign",
54     "info":"",
55     "comments":"",
56     "x":545.3210983276367,
57     "y":44.97569942474365,
58     "z":"e6090836.aef008",
59     "wires":[
60
61     ]
62   },
63   {
64     "id":"2e530cdc.f4ef94",
65     "type":"switchNode",
66     "name":"switch request-action",
67     "xml":"<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
68     "comments":"",
69     "outputs":1,
70     "x":545.1905097961426,
71     "y":357.52382230758667,
72     "z":"e6090836.aef008",
73     "wires":[
74       [
75         "bfda8f90.6e24d",
76         "77f2de42.6ba9a"
77       ]
78     ]
79   },
80   {
81     "id":"bfda8f90.6e24d",
82     "type":"outcome",
83     "name":"CreateVfModuleInstance",
84     "xml":"<outcome value='CreateVfModuleInstance'>\n",
85     "comments":"",
86     "outputs":1,
87     "x":807.2381248474121,
88     "y":334.66670846939087,
89     "z":"e6090836.aef008",
90     "wires":[
91       [
92         "40654d05.71fd14"
93       ]
94     ]
95   },
96   {
97     "id":"77f2de42.6ba9a",
98     "type":"other",
99     "name":"other",
100     "xml":"<outcome value='Other'>\n",
101     "comments":"",
102     "outputs":1,
103     "x":750.9047698974609,
104     "y":380.0476975440979,
105     "z":"e6090836.aef008",
106     "wires":[
107       [
108         "8b7d596e.984638"
109       ]
110     ]
111   },
112   {
113     "id":"40654d05.71fd14",
114     "type":"block",
115     "name":"block",
116     "xml":"<block>\n",
117     "atomic":"false",
118     "comments":"",
119     "outputs":1,
120     "x":997.0952892303467,
121     "y":334.6667399406433,
122     "z":"e6090836.aef008",
123     "wires":[
124       [
125
126       ]
127     ]
128   },
129   {
130     "id":"8b7d596e.984638",
131     "type":"returnFailure",
132     "name":"return failure",
133     "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 'assign' then request-action must be 'CreateVfModuleInstance'\" />\n",
134     "comments":"",
135     "x":1015.9047775268555,
136     "y":380.381010055542,
137     "z":"e6090836.aef008",
138     "wires":[
139
140     ]
141   },
142   {
143     "id":"aea9b344.20b1b",
144     "type":"get-resource",
145     "name":"get-resource VF_MODULE_MODEL",
146     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-module-model'>\n\n",
147     "comments":"",
148     "outputs":1,
149     "x":592.5237770080566,
150     "y":448.66677236557007,
151     "z":"e6090836.aef008",
152     "wires":[
153       [
154         "4b7c3e12.248ee",
155         "6ee12611.a15fe8"
156       ]
157     ]
158   },
159   {
160     "id":"f817dd96.2592f",
161     "type":"returnFailure",
162     "name":"return failure",
163     "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 model found for VF module customization UUID ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`\" />\n",
164     "comments":"",
165     "x":1033.9521980285645,
166     "y":473.09524488449097,
167     "z":"e6090836.aef008",
168     "wires":[
169
170     ]
171   },
172   {
173     "id":"4b7c3e12.248ee",
174     "type":"failure",
175     "name":"failure",
176     "xml":"<outcome value='failure'>\n",
177     "comments":"",
178     "outputs":1,
179     "x":858.3094673156738,
180     "y":429.0476031303406,
181     "z":"e6090836.aef008",
182     "wires":[
183       [
184         "d8b6dd53.baf73"
185       ]
186     ]
187   },
188   {
189     "id":"6ee12611.a15fe8",
190     "type":"not-found",
191     "name":"not-found",
192     "xml":"<outcome value='not-found'>\n",
193     "comments":"",
194     "outputs":1,
195     "x":866.8808975219727,
196     "y":473.33331632614136,
197     "z":"e6090836.aef008",
198     "wires":[
199       [
200         "f817dd96.2592f"
201       ]
202     ]
203   },
204   {
205     "id":"d8b6dd53.baf73",
206     "type":"returnFailure",
207     "name":"return failure",
208     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error reading VF_MODULE_MODEL table\" />\n",
209     "comments":"",
210     "x":1033.309398651123,
211     "y":428.1905035972595,
212     "z":"e6090836.aef008",
213     "wires":[
214
215     ]
216   },
217   {
218     "id":"a8ff9e79.0b468",
219     "type":"switchNode",
220     "name":"switch service-data.vnfs.vnf_length",
221     "xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n",
222     "comments":"",
223     "outputs":1,
224     "x":587.6190414428711,
225     "y":657.2381076812744,
226     "z":"e6090836.aef008",
227     "wires":[
228       [
229         "45e1ae95.939d1",
230         "5930857d.90f94c"
231       ]
232     ]
233   },
234   {
235     "id":"45e1ae95.939d1",
236     "type":"other",
237     "name":"NULL",
238     "xml":"<outcome value=''>\n",
239     "comments":"",
240     "outputs":1,
241     "x":828.3333129882812,
242     "y":634.3808479309082,
243     "z":"e6090836.aef008",
244     "wires":[
245       [
246         "1632f046.4d998"
247       ]
248     ]
249   },
250   {
251     "id":"5930857d.90f94c",
252     "type":"other",
253     "name":"other",
254     "xml":"<outcome value='Other'>\n",
255     "comments":"",
256     "outputs":1,
257     "x":828.0951538085938,
258     "y":675.333366394043,
259     "z":"e6090836.aef008",
260     "wires":[
261       [
262         "223ba3cb.be09fc"
263       ]
264     ]
265   },
266   {
267     "id":"4a26d4a8.22be7c",
268     "type":"block",
269     "name":"block : atomic",
270     "xml":"<block atomic=\"true\">",
271     "atomic":"true",
272     "outputs":1,
273     "x":194.99999237060547,
274     "y":2351.9999599456787,
275     "z":"e6090836.aef008",
276     "wires":[
277       [
278         "2e530cdc.f4ef94",
279         "aea9b344.20b1b",
280         "a8ff9e79.0b468",
281         "358800b1.81ab1",
282         "88b7c37.4ed0e4",
283         "eac7ee4b.07efc",
284         "e57448b6.7f55b8",
285         "aaaa0574.80d838",
286         "9a073bb9.44d298",
287         "e811de1a.3c14a",
288         "ad1485f5.221e88",
289         "98b04124.336cf",
290         "cfad5308.b616e",
291         "7923367d.eb91d8",
292         "809c73eb.2a71c",
293         "a3e0954f.9194f8",
294         "a65c32d0.f1f0d",
295         "fa12b719.f97378",
296         "1f990c33.cacfc4",
297         "714310a.b7326f",
298         "69ed6361.64762c",
299         "e47d3411.0e7818",
300         "582721c4.126f6",
301         "b0ef8497.4ea668",
302         "3ab291c1.7ed19e",
303         "8923d8d0.f4b338",
304         "4f613c00.2b7644",
305         "39e9e85.a687718",
306         "dfa4db2.9778928",
307         "14f4699d.ce7016",
308         "7ae88bfe.f72b94",
309         "aa1a950e.7071b8",
310         "1f69056.fe181fb",
311         "19070089.9bb2ff",
312         "a2e18bff.138e78",
313         "454e063f.718d08",
314         "aedcd126.656c8",
315         "c314b843.e5cd58"
316       ]
317     ]
318   },
319   {
320     "id":"1632f046.4d998",
321     "type":"returnFailure",
322     "name":"return failure",
323     "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",
324     "comments":"",
325     "x":994.999927520752,
326     "y":633.6666030883789,
327     "z":"e6090836.aef008",
328     "wires":[
329
330     ]
331   },
332   {
333     "id":"223ba3cb.be09fc",
334     "type":"for",
335     "name":"for each vnf",
336     "xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
337     "comments":"",
338     "outputs":1,
339     "x":990.3332977294922,
340     "y":674.9999847412109,
341     "z":"e6090836.aef008",
342     "wires":[
343       [
344         "220abc57.c6caa4"
345       ]
346     ]
347   },
348   {
349     "id":"220abc57.c6caa4",
350     "type":"switchNode",
351     "name":"switch service data vnf == input vnf",
352     "xml":"<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n",
353     "comments":"",
354     "outputs":1,
355     "x":1241.6665153503418,
356     "y":674.6666717529297,
357     "z":"e6090836.aef008",
358     "wires":[
359       [
360         "8fa71765.ff25a8"
361       ]
362     ]
363   },
364   {
365     "id":"8fa71765.ff25a8",
366     "type":"outcomeTrue",
367     "name":"true",
368     "xml":"<outcome value='true'>\n",
369     "comments":"",
370     "outputs":1,
371     "x":1471.6666069030762,
372     "y":674.0000257492065,
373     "z":"e6090836.aef008",
374     "wires":[
375       [
376         "99e80d15.cd3ff"
377       ]
378     ]
379   },
380   {
381     "id":"358800b1.81ab1",
382     "type":"set",
383     "name":"set vnf-index to -1",
384     "xml":"<set>\n<parameter name='vnf-index' value='-1' />\n",
385     "comments":"",
386     "x":536.6666641235352,
387     "y":588.6666069030762,
388     "z":"e6090836.aef008",
389     "wires":[
390
391     ]
392   },
393   {
394     "id":"2b9d4cfa.693254",
395     "type":"set",
396     "name":"set vnf-index to idx",
397     "xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
398     "comments":"",
399     "x":1793.3332443237305,
400     "y":644.9999837875366,
401     "z":"e6090836.aef008",
402     "wires":[
403
404     ]
405   },
406   {
407     "id":"88b7c37.4ed0e4",
408     "type":"switchNode",
409     "name":"switch vnf-index",
410     "xml":"<switch test='`$vnf-index`'>\n",
411     "comments":"",
412     "outputs":1,
413     "x":526.6666717529297,
414     "y":725.3333034515381,
415     "z":"e6090836.aef008",
416     "wires":[
417       [
418         "12b4f972.baaff7"
419       ]
420     ]
421   },
422   {
423     "id":"12b4f972.baaff7",
424     "type":"outcome",
425     "name":"-1",
426     "xml":"<outcome value='-1'>\n",
427     "comments":"",
428     "outputs":1,
429     "x":705.000057220459,
430     "y":724.6666793823242,
431     "z":"e6090836.aef008",
432     "wires":[
433       [
434         "a416b02e.8e4f1"
435       ]
436     ]
437   },
438   {
439     "id":"a416b02e.8e4f1",
440     "type":"returnFailure",
441     "name":"return failure",
442     "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",
443     "comments":"",
444     "x":864.9999656677246,
445     "y":723.9999828338623,
446     "z":"e6090836.aef008",
447     "wires":[
448
449     ]
450   },
451   {
452     "id":"eac7ee4b.07efc",
453     "type":"switchNode",
454     "name":"switch vnf order status",
455     "xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status`'>\n",
456     "comments":"",
457     "outputs":1,
458     "x":549.6666946411133,
459     "y":796.6667003631592,
460     "z":"e6090836.aef008",
461     "wires":[
462       [
463         "2fc04200.260dfe",
464         "bef7e5a8.884d58"
465       ]
466     ]
467   },
468   {
469     "id":"2fc04200.260dfe",
470     "type":"outcome",
471     "name":"Created",
472     "xml":"<outcome value='Created'>\n",
473     "comments":"",
474     "outputs":1,
475     "x":749.9999961853027,
476     "y":770.3332843780518,
477     "z":"e6090836.aef008",
478     "wires":[
479       [
480         "3cba4216.c1fc4e"
481       ]
482     ]
483   },
484   {
485     "id":"3cba4216.c1fc4e",
486     "type":"block",
487     "name":"block",
488     "xml":"<block>\n",
489     "atomic":"false",
490     "comments":"",
491     "outputs":1,
492     "x":890.0000076293945,
493     "y":770.3333263397217,
494     "z":"e6090836.aef008",
495     "wires":[
496       [
497
498       ]
499     ]
500   },
501   {
502     "id":"bef7e5a8.884d58",
503     "type":"other",
504     "name":"other",
505     "xml":"<outcome value='Other'>\n",
506     "comments":"",
507     "outputs":1,
508     "x":746.666633605957,
509     "y":811.9999618530273,
510     "z":"e6090836.aef008",
511     "wires":[
512       [
513         "fc26f30c.6bb1c"
514       ]
515     ]
516   },
517   {
518     "id":"fc26f30c.6bb1c",
519     "type":"returnFailure",
520     "name":"return failure",
521     "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=\"`'VNF order status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status + ' but should be Created'`\" />\n",
522     "comments":"",
523     "x":906.666633605957,
524     "y":811.6666488647461,
525     "z":"e6090836.aef008",
526     "wires":[
527
528     ]
529   },
530   {
531     "id":"e57448b6.7f55b8",
532     "type":"switchNode",
533     "name":"switch vf-module_length",
534     "xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
535     "comments":"",
536     "outputs":1,
537     "x":553.333381652832,
538     "y":888.6666212081909,
539     "z":"e6090836.aef008",
540     "wires":[
541       [
542         "9b350576.68ef18",
543         "22c3a3f5.72d6ac"
544       ]
545     ]
546   },
547   {
548     "id":"9b350576.68ef18",
549     "type":"other",
550     "name":"NULL",
551     "xml":"<outcome value=''>\n",
552     "comments":"",
553     "outputs":1,
554     "x":810.7143363952637,
555     "y":855.8093948364258,
556     "z":"e6090836.aef008",
557     "wires":[
558       [
559         "c6416be8.6fa798"
560       ]
561     ]
562   },
563   {
564     "id":"c6416be8.6fa798",
565     "type":"set",
566     "name":"set vf-module-index=0",
567     "xml":"<set>\n<parameter name='vf-module-index' value='0' />\n",
568     "comments":"",
569     "x":998.3333740234375,
570     "y":856.4761695861816,
571     "z":"e6090836.aef008",
572     "wires":[
573
574     ]
575   },
576   {
577     "id":"22c3a3f5.72d6ac",
578     "type":"other",
579     "name":"other",
580     "xml":"<outcome value='Other'>\n",
581     "comments":"",
582     "outputs":1,
583     "x":811.142879486084,
584     "y":920.0952529907227,
585     "z":"e6090836.aef008",
586     "wires":[
587       [
588         "19a7ad8a.4f2812"
589       ]
590     ]
591   },
592   {
593     "id":"421fd6a0.579bd8",
594     "type":"set",
595     "name":"set vf-module-index = vf-module_length",
596     "xml":"<set>\n<parameter name='vf-module-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n",
597     "comments":"",
598     "x":1196.3334197998047,
599     "y":900.2856483459473,
600     "z":"e6090836.aef008",
601     "wires":[
602
603     ]
604   },
605   {
606     "id":"1d996969.d26e67",
607     "type":"for",
608     "name":"for each existing VF module",
609     "xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
610     "comments":"",
611     "outputs":1,
612     "x":1155.4285125732422,
613     "y":944.3808784484863,
614     "z":"e6090836.aef008",
615     "wires":[
616       [
617         "a0040550.7bc5d8"
618       ]
619     ]
620   },
621   {
622     "id":"19a7ad8a.4f2812",
623     "type":"block",
624     "name":"block",
625     "xml":"<block>\n",
626     "atomic":"false",
627     "comments":"",
628     "outputs":1,
629     "x":947.8571586608887,
630     "y":920.095178604126,
631     "z":"e6090836.aef008",
632     "wires":[
633       [
634         "421fd6a0.579bd8",
635         "1d996969.d26e67"
636       ]
637     ]
638   },
639   {
640     "id":"a0040550.7bc5d8",
641     "type":"switchNode",
642     "name":"switch vf-module-information.vf-module-id == service-data.vnfs.vnf[].vf-modules.vf-module[].vf-module-id",
643     "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id`'>\n",
644     "comments":"",
645     "outputs":1,
646     "x":1659.0476150512695,
647     "y":943.9522895812988,
648     "z":"e6090836.aef008",
649     "wires":[
650       [
651         "6ba70fe.734c0f"
652       ]
653     ]
654   },
655   {
656     "id":"6ba70fe.734c0f",
657     "type":"outcomeTrue",
658     "name":"true",
659     "xml":"<outcome value='true'>\n",
660     "comments":"",
661     "outputs":1,
662     "x":2101.666664123535,
663     "y":943.5237407684326,
664     "z":"e6090836.aef008",
665     "wires":[
666       [
667         "93b8e785.9fee48"
668       ]
669     ]
670   },
671   {
672     "id":"93b8e785.9fee48",
673     "type":"returnFailure",
674     "name":"return failure",
675     "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=\"`'VF module id ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id\n       + ' already exists, and status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.vf-module-level-oper-status.order-status`\" />\n",
676     "comments":"",
677     "x":2253.571544647217,
678     "y":943.5237274169922,
679     "z":"e6090836.aef008",
680     "wires":[
681
682     ]
683   },
684   {
685     "id":"f56d52b4.a8261",
686     "type":"comment",
687     "name":"make sure this VF module doesn't exist already",
688     "info":"",
689     "comments":"",
690     "x":1685.4999618530273,
691     "y":898.5797815322876,
692     "z":"e6090836.aef008",
693     "wires":[
694
695     ]
696   },
697   {
698     "id":"aaaa0574.80d838",
699     "type":"set",
700     "name":"set new vf-module_length",
701     "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-module-index + 1`' />\n",
702     "comments":"",
703     "x":558.3333206176758,
704     "y":983.6665554046631,
705     "z":"e6090836.aef008",
706     "wires":[
707
708     ]
709   },
710   {
711     "id":"9a073bb9.44d298",
712     "type":"set",
713     "name":"set vf-module-topology data",
714     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-type' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-type`' />\n<parameter name='tmp.vf-module-topology.tenant' value='`$vf-module-topology-operation-input.vf-module-request-input.tenant`' />\n<parameter name='tmp.vf-module-topology.aic-cloud-region' value='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`' />\n",
715     "comments":"",
716     "x":564.8333396911621,
717     "y":1096.1666622161865,
718     "z":"e6090836.aef008",
719     "wires":[
720
721     ]
722   },
723   {
724     "id":"71021cf9.d2ce64",
725     "type":"set",
726     "name":"set aic-clli",
727     "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.aic-clli'\n   value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n",
728     "comments":"",
729     "x":1325.7855987548828,
730     "y":1255.4045886993408,
731     "z":"e6090836.aef008",
732     "wires":[
733
734     ]
735   },
736   {
737     "id":"e811de1a.3c14a",
738     "type":"switchNode",
739     "name":"switch aic-clli",
740     "xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli`'>\n",
741     "comments":"",
742     "outputs":1,
743     "x":524.8332595825195,
744     "y":1369.3569288253784,
745     "z":"e6090836.aef008",
746     "wires":[
747       [
748         "c686f39d.72ab2"
749       ]
750     ]
751   },
752   {
753     "id":"c686f39d.72ab2",
754     "type":"outcome",
755     "name":"NULL",
756     "xml":"<outcome value=''>",
757     "comments":"",
758     "outputs":1,
759     "x":670.1189498901367,
760     "y":1369.3569974899292,
761     "z":"e6090836.aef008",
762     "wires":[
763       [
764         "6f7dc11c.49e2c"
765       ]
766     ]
767   },
768   {
769     "id":"6f7dc11c.49e2c",
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=\"`'Unable to find aic-clli in AAI for aic-cloud-region ' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`\" />\n",
773     "comments":"",
774     "x":817.2618103027344,
775     "y":1368.9284315109253,
776     "z":"e6090836.aef008",
777     "wires":[
778
779     ]
780   },
781   {
782     "id":"ad1485f5.221e88",
783     "type":"get-resource",
784     "name":"get-resource cloud region",
785     "xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = 'CloudOwner' AND \n\t\t     cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\"\n        pfx='aai.cloud-region' local-only='false' >\n\n",
786     "comments":"",
787     "outputs":1,
788     "x":563.6904754638672,
789     "y":1169.5002002716064,
790     "z":"e6090836.aef008",
791     "wires":[
792       [
793         "8097c203.a4e64",
794         "ef1c3461.dc92d8"
795       ]
796     ]
797   },
798   {
799     "id":"ef1c3461.dc92d8",
800     "type":"failure",
801     "name":"failure",
802     "xml":"<outcome value='failure'>\n",
803     "comments":"",
804     "outputs":1,
805     "x":777.9366683959961,
806     "y":1187.6510562896729,
807     "z":"e6090836.aef008",
808     "wires":[
809       [
810         "6dfc15a7.72a2bc"
811       ]
812     ]
813   },
814   {
815     "id":"6dfc15a7.72a2bc",
816     "type":"returnFailure",
817     "name":"return failure",
818     "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 retrieving cloud region from AAI\" />\n",
819     "comments":"",
820     "x":952.9366416931152,
821     "y":1187.6510925292969,
822     "z":"e6090836.aef008",
823     "wires":[
824
825     ]
826   },
827   {
828     "id":"8097c203.a4e64",
829     "type":"not-found",
830     "name":"not-found",
831     "xml":"<outcome value='not-found'>\n",
832     "comments":"",
833     "outputs":1,
834     "x":786.8652648925781,
835     "y":1145.9367895126343,
836     "z":"e6090836.aef008",
837     "wires":[
838       [
839         "4786ef92.946f8"
840       ]
841     ]
842   },
843   {
844     "id":"4786ef92.946f8",
845     "type":"returnFailure",
846     "name":"return failure",
847     "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=\"Cloud region not found in AAI\" />\n",
848     "comments":"",
849     "x":953.214542388916,
850     "y":1145.2423667907715,
851     "z":"e6090836.aef008",
852     "wires":[
853
854     ]
855   },
856   {
857     "id":"98b04124.336cf",
858     "type":"set",
859     "name":"set vf-module-parameters",
860     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-parameters.'\n  value='vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.' />\n",
861     "comments":"",
862     "x":560.595287322998,
863     "y":1818.7860202789307,
864     "z":"e6090836.aef008",
865     "wires":[
866
867     ]
868   },
869   {
870     "id":"cfad5308.b616e",
871     "type":"set",
872     "name":"set order-status to PendingCreate",
873     "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='PendingCreate' />\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",
874     "comments":"",
875     "x":576.2262573242188,
876     "y":5020.3927001953125,
877     "z":"e6090836.aef008",
878     "wires":[
879
880     ]
881   },
882   {
883     "id":"7923367d.eb91d8",
884     "type":"get-resource",
885     "name":"get-resource VF_MODULE_TO_VFC_MAPPING",
886     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODULE_TO_VFC_MAPPING WHERE vf_module_customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-module-to-vfc-mapping[]'>\n\n",
887     "comments":"",
888     "outputs":1,
889     "x":633.9286880493164,
890     "y":1872.642807006836,
891     "z":"e6090836.aef008",
892     "wires":[
893       [
894         "61dd146a.6f14fc",
895         "cfdcc8b2.a45fb8"
896       ]
897     ]
898   },
899   {
900     "id":"61dd146a.6f14fc",
901     "type":"failure",
902     "name":"failure",
903     "xml":"<outcome value='failure'>\n",
904     "comments":"",
905     "outputs":1,
906     "x":899.7143783569336,
907     "y":1853.0236377716064,
908     "z":"e6090836.aef008",
909     "wires":[
910       [
911         "3ca0362b.6e2f9a"
912       ]
913     ]
914   },
915   {
916     "id":"cfdcc8b2.a45fb8",
917     "type":"not-found",
918     "name":"not-found",
919     "xml":"<outcome value='not-found'>\n",
920     "comments":"",
921     "outputs":1,
922     "x":908.2858085632324,
923     "y":1897.3093509674072,
924     "z":"e6090836.aef008",
925     "wires":[
926       [
927         "f2ed6314.ee329"
928       ]
929     ]
930   },
931   {
932     "id":"3ca0362b.6e2f9a",
933     "type":"returnFailure",
934     "name":"return failure",
935     "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 reading VF_MODULE_TO_VFC_MAPPING table\" />\n",
936     "comments":"",
937     "x":1074.7143096923828,
938     "y":1852.1665382385254,
939     "z":"e6090836.aef008",
940     "wires":[
941
942     ]
943   },
944   {
945     "id":"809c73eb.2a71c",
946     "type":"for",
947     "name":"for each vm-type",
948     "xml":"<for index='vm-type-index' start='0' end='`$db.vf-module-to-vfc-mapping_length`' >\n",
949     "comments":"",
950     "outputs":1,
951     "x":534.0476989746094,
952     "y":2501.6430587768555,
953     "z":"e6090836.aef008",
954     "wires":[
955       [
956         "1f699ee5.b89dd1"
957       ]
958     ]
959   },
960   {
961     "id":"ae4ef538.4223c8",
962     "type":"get-resource",
963     "name":"get-resource VFC_MODEL",
964     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VFC_MODEL WHERE customization_uuid = $db.vf-module-to-vfc-mapping[$vm-type-index].vfc-customization-uuid'\n  pfx='db.vfc-model'>\n\n",
965     "comments":"",
966     "outputs":1,
967     "x":975.9524993896484,
968     "y":1993.5477199554443,
969     "z":"e6090836.aef008",
970     "wires":[
971       [
972         "c1a94592.ef7dc8",
973         "36c932eb.81f9ae"
974       ]
975     ]
976   },
977   {
978     "id":"2749f807.59cbd8",
979     "type":"returnFailure",
980     "name":"return failure",
981     "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 entries found in VFC_MODEL table for customization UUID ' + $db.vf-module-to-vfc-mapping[$db-vm-index].vfc_customization_uuid`\" />\n",
982     "comments":"",
983     "x":1346.3808479309082,
984     "y":2017.9761123657227,
985     "z":"e6090836.aef008",
986     "wires":[
987
988     ]
989   },
990   {
991     "id":"c1a94592.ef7dc8",
992     "type":"failure",
993     "name":"failure",
994     "xml":"<outcome value='failure'>\n",
995     "comments":"",
996     "outputs":1,
997     "x":1171.7381172180176,
998     "y":1973.9284706115723,
999     "z":"e6090836.aef008",
1000     "wires":[
1001       [
1002         "480721a9.59fc5"
1003       ]
1004     ]
1005   },
1006   {
1007     "id":"36c932eb.81f9ae",
1008     "type":"not-found",
1009     "name":"not-found",
1010     "xml":"<outcome value='not-found'>\n",
1011     "comments":"",
1012     "outputs":1,
1013     "x":1180.3095474243164,
1014     "y":2018.214183807373,
1015     "z":"e6090836.aef008",
1016     "wires":[
1017       [
1018         "2749f807.59cbd8"
1019       ]
1020     ]
1021   },
1022   {
1023     "id":"480721a9.59fc5",
1024     "type":"returnFailure",
1025     "name":"return failure",
1026     "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 reading VFC_MODEL table\" />\n",
1027     "comments":"",
1028     "x":1346.7380485534668,
1029     "y":1973.0713710784912,
1030     "z":"e6090836.aef008",
1031     "wires":[
1032
1033     ]
1034   },
1035   {
1036     "id":"1f699ee5.b89dd1",
1037     "type":"block",
1038     "name":"block : atomic",
1039     "xml":"<block atomic=\"true\">",
1040     "atomic":"true",
1041     "outputs":1,
1042     "x":725.9524917602539,
1043     "y":2500.214427947998,
1044     "z":"e6090836.aef008",
1045     "wires":[
1046       [
1047         "ae4ef538.4223c8",
1048         "96edef9a.d3b33",
1049         "dc43de7f.70791",
1050         "c2deb4af.5c58c8",
1051         "8101c46.e2ef238",
1052         "f5bdc66c.11bd78",
1053         "4f18de56.831f8",
1054         "18e532bb.94aa6d"
1055       ]
1056     ]
1057   },
1058   {
1059     "id":"69ed6361.64762c",
1060     "type":"set",
1061     "name":"set vm_length",
1062     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm_length'\n  value='`$db.vf-module-to-vfc-mapping_length`' />\n",
1063     "comments":"",
1064     "x":525.833366394043,
1065     "y":1932.8334846496582,
1066     "z":"e6090836.aef008",
1067     "wires":[
1068
1069     ]
1070   },
1071   {
1072     "id":"96edef9a.d3b33",
1073     "type":"set",
1074     "name":"set vm data",
1075     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-type'\n   value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-type`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code'\n   value='`$db.vfc-model.nfc-naming-code`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-type-tag'\n   value='`$db.vfc-model.vm-type-tag`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count'\n   value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' />\n",
1076     "comments":"",
1077     "x":926.6667518615723,
1078     "y":2119.5001974105835,
1079     "z":"e6090836.aef008",
1080     "wires":[
1081
1082     ]
1083   },
1084   {
1085     "id":"99e80d15.cd3ff",
1086     "type":"block",
1087     "name":"block",
1088     "xml":"<block>\n",
1089     "atomic":"false",
1090     "comments":"",
1091     "outputs":1,
1092     "x":1620.0000686645508,
1093     "y":672.9197244644165,
1094     "z":"e6090836.aef008",
1095     "wires":[
1096       [
1097         "2b9d4cfa.693254",
1098         "e08ffaca.0297f8"
1099       ]
1100     ]
1101   },
1102   {
1103     "id":"e08ffaca.0297f8",
1104     "type":"break",
1105     "name":"break",
1106     "xml":"<break>",
1107     "comments":"",
1108     "x":1755.0000343322754,
1109     "y":694.5863103866577,
1110     "z":"e6090836.aef008",
1111     "wires":[
1112
1113     ]
1114   },
1115   {
1116     "id":"d743beeb.1dbe5",
1117     "type":"set",
1118     "name":"set from DB",
1119     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n  value='`$db.vf-module-model.invariant-uuid`' />\n",
1120     "comments":"",
1121     "x":939.1665992736816,
1122     "y":1410.7529220581055,
1123     "z":"e6090836.aef008",
1124     "wires":[
1125
1126     ]
1127   },
1128   {
1129     "id":"a3e0954f.9194f8",
1130     "type":"switchNode",
1131     "name":"switch input model-invariant-uuid",
1132     "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`'>\n",
1133     "comments":"",
1134     "outputs":1,
1135     "x":583.0236740112305,
1136     "y":1433.5773658752441,
1137     "z":"e6090836.aef008",
1138     "wires":[
1139       [
1140         "2c1d02c0.78dd0e",
1141         "a95a3eca.03f4"
1142       ]
1143     ]
1144   },
1145   {
1146     "id":"2c1d02c0.78dd0e",
1147     "type":"outcome",
1148     "name":"NULL",
1149     "xml":"<outcome value=''>",
1150     "comments":"",
1151     "outputs":1,
1152     "x":788.6903457641602,
1153     "y":1410.720329284668,
1154     "z":"e6090836.aef008",
1155     "wires":[
1156       [
1157         "d743beeb.1dbe5"
1158       ]
1159     ]
1160   },
1161   {
1162     "id":"a95a3eca.03f4",
1163     "type":"other",
1164     "name":"other",
1165     "xml":"<outcome value='Other'>\n",
1166     "comments":"",
1167     "outputs":1,
1168     "x":790.1189422607422,
1169     "y":1455.0059204101562,
1170     "z":"e6090836.aef008",
1171     "wires":[
1172       [
1173         "25dab957.580636"
1174       ]
1175     ]
1176   },
1177   {
1178     "id":"25dab957.580636",
1179     "type":"set",
1180     "name":"set from input",
1181     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n",
1182     "comments":"",
1183     "x":944.4046783447266,
1184     "y":1454.4344925880432,
1185     "z":"e6090836.aef008",
1186     "wires":[
1187
1188     ]
1189   },
1190   {
1191     "id":"638901d0.ce1ec",
1192     "type":"set",
1193     "name":"set from DB",
1194     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n  value='`$db.vf-module-model.uuid`' />\n",
1195     "comments":"",
1196     "x":940.1188697814941,
1197     "y":1499.2915983200073,
1198     "z":"e6090836.aef008",
1199     "wires":[
1200
1201     ]
1202   },
1203   {
1204     "id":"a65c32d0.f1f0d",
1205     "type":"switchNode",
1206     "name":"switch input model-uuid",
1207     "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`'>\n",
1208     "comments":"",
1209     "outputs":1,
1210     "x":555.642692565918,
1211     "y":1522.1161031723022,
1212     "z":"e6090836.aef008",
1213     "wires":[
1214       [
1215         "ed142f55.1f70c",
1216         "75273d61.353b14"
1217       ]
1218     ]
1219   },
1220   {
1221     "id":"ed142f55.1f70c",
1222     "type":"outcome",
1223     "name":"NULL",
1224     "xml":"<outcome value=''>",
1225     "comments":"",
1226     "outputs":1,
1227     "x":789.6426658630371,
1228     "y":1499.2590351104736,
1229     "z":"e6090836.aef008",
1230     "wires":[
1231       [
1232         "638901d0.ce1ec"
1233       ]
1234     ]
1235   },
1236   {
1237     "id":"75273d61.353b14",
1238     "type":"other",
1239     "name":"other",
1240     "xml":"<outcome value='Other'>\n",
1241     "comments":"",
1242     "outputs":1,
1243     "x":791.0712623596191,
1244     "y":1543.544626235962,
1245     "z":"e6090836.aef008",
1246     "wires":[
1247       [
1248         "da1cfb23.9a25e8"
1249       ]
1250     ]
1251   },
1252   {
1253     "id":"da1cfb23.9a25e8",
1254     "type":"set",
1255     "name":"set from input",
1256     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n",
1257     "comments":"",
1258     "x":945.3569984436035,
1259     "y":1542.9731984138489,
1260     "z":"e6090836.aef008",
1261     "wires":[
1262
1263     ]
1264   },
1265   {
1266     "id":"65429406.6c6b9c",
1267     "type":"set",
1268     "name":"set from DB",
1269     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n  value='`$db.vf-module-model.version`' />\n",
1270     "comments":"",
1271     "x":937.2618026733398,
1272     "y":1588.1488056182861,
1273     "z":"e6090836.aef008",
1274     "wires":[
1275
1276     ]
1277   },
1278   {
1279     "id":"fa12b719.f97378",
1280     "type":"switchNode",
1281     "name":"switch input model-version",
1282     "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`'>\n",
1283     "comments":"",
1284     "outputs":1,
1285     "x":563.7855644226074,
1286     "y":1610.9732503890991,
1287     "z":"e6090836.aef008",
1288     "wires":[
1289       [
1290         "1200d2f5.494f9d",
1291         "f5147fc0.bfa5e"
1292       ]
1293     ]
1294   },
1295   {
1296     "id":"1200d2f5.494f9d",
1297     "type":"outcome",
1298     "name":"NULL",
1299     "xml":"<outcome value=''>",
1300     "comments":"",
1301     "outputs":1,
1302     "x":786.7855491638184,
1303     "y":1588.1162128448486,
1304     "z":"e6090836.aef008",
1305     "wires":[
1306       [
1307         "65429406.6c6b9c"
1308       ]
1309     ]
1310   },
1311   {
1312     "id":"f5147fc0.bfa5e",
1313     "type":"other",
1314     "name":"other",
1315     "xml":"<outcome value='Other'>\n",
1316     "comments":"",
1317     "outputs":1,
1318     "x":788.2141456604004,
1319     "y":1632.401803970337,
1320     "z":"e6090836.aef008",
1321     "wires":[
1322       [
1323         "d74f65ed.78d448"
1324       ]
1325     ]
1326   },
1327   {
1328     "id":"d74f65ed.78d448",
1329     "type":"set",
1330     "name":"set from input",
1331     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n",
1332     "comments":"",
1333     "x":942.4998817443848,
1334     "y":1631.8303761482239,
1335     "z":"e6090836.aef008",
1336     "wires":[
1337
1338     ]
1339   },
1340   {
1341     "id":"da71a3e1.3185a",
1342     "type":"set",
1343     "name":"set from DB",
1344     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n  value='`$db.vf-module-model.name`' />\n",
1345     "comments":"",
1346     "x":937.2618026733398,
1347     "y":1675.2916278839111,
1348     "z":"e6090836.aef008",
1349     "wires":[
1350
1351     ]
1352   },
1353   {
1354     "id":"1f990c33.cacfc4",
1355     "type":"switchNode",
1356     "name":"switch input model-name",
1357     "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`'>\n",
1358     "comments":"",
1359     "outputs":1,
1360     "x":558.7855644226074,
1361     "y":1698.1160726547241,
1362     "z":"e6090836.aef008",
1363     "wires":[
1364       [
1365         "647b0438.ab102c",
1366         "663c8c44.ce20c4"
1367       ]
1368     ]
1369   },
1370   {
1371     "id":"647b0438.ab102c",
1372     "type":"outcome",
1373     "name":"NULL",
1374     "xml":"<outcome value=''>",
1375     "comments":"",
1376     "outputs":1,
1377     "x":786.7855491638184,
1378     "y":1675.2590351104736,
1379     "z":"e6090836.aef008",
1380     "wires":[
1381       [
1382         "da71a3e1.3185a"
1383       ]
1384     ]
1385   },
1386   {
1387     "id":"663c8c44.ce20c4",
1388     "type":"other",
1389     "name":"other",
1390     "xml":"<outcome value='Other'>\n",
1391     "comments":"",
1392     "outputs":1,
1393     "x":788.2141456604004,
1394     "y":1719.544626235962,
1395     "z":"e6090836.aef008",
1396     "wires":[
1397       [
1398         "e84c9dce.744b8"
1399       ]
1400     ]
1401   },
1402   {
1403     "id":"e84c9dce.744b8",
1404     "type":"set",
1405     "name":"set from input",
1406     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`' />\n",
1407     "comments":"",
1408     "x":942.4998817443848,
1409     "y":1718.9731984138489,
1410     "z":"e6090836.aef008",
1411     "wires":[
1412
1413     ]
1414   },
1415   {
1416     "id":"714310a.b7326f",
1417     "type":"set",
1418     "name":"set model-customization-uuid",
1419     "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-customization-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n",
1420     "comments":"",
1421     "x":573.2378997802734,
1422     "y":1770.6250619888306,
1423     "z":"e6090836.aef008",
1424     "wires":[
1425
1426     ]
1427   },
1428   {
1429     "id":"dc43de7f.70791",
1430     "type":"for",
1431     "name":"for each vm",
1432     "xml":"<for index='vm-index' start='0' end='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' >\n",
1433     "comments":"",
1434     "outputs":1,
1435     "x":928.3332405090332,
1436     "y":2228.7531156539917,
1437     "z":"e6090836.aef008",
1438     "wires":[
1439       [
1440         "7505754.7087a8c"
1441       ]
1442     ]
1443   },
1444   {
1445     "id":"c2deb4af.5c58c8",
1446     "type":"set",
1447     "name":"set vm-name-length",
1448     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name_length'\n  value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' />\n",
1449     "comments":"",
1450     "x":951.6666946411133,
1451     "y":2163.753373146057,
1452     "z":"e6090836.aef008",
1453     "wires":[
1454
1455     ]
1456   },
1457   {
1458     "id":"2f06bc6e.cdf504",
1459     "type":"call",
1460     "name":"call GENERIC-RESOURCE-API:generate-unique-name",
1461     "xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
1462     "comments":"",
1463     "outputs":1,
1464     "x":1394.761863708496,
1465     "y":2251.3722620010376,
1466     "z":"e6090836.aef008",
1467     "wires":[
1468       [
1469         "6c48629.77e939c",
1470         "a3fd6e6d.5788b"
1471       ]
1472     ]
1473   },
1474   {
1475     "id":"6c48629.77e939c",
1476     "type":"failure",
1477     "name":"failure",
1478     "xml":"<outcome value='failure'>\n",
1479     "comments":"",
1480     "outputs":1,
1481     "x":1690.4761517842617,
1482     "y":2224.2295246124268,
1483     "z":"e6090836.aef008",
1484     "wires":[
1485       [
1486         "8b35adee.43478"
1487       ]
1488     ]
1489   },
1490   {
1491     "id":"a3fd6e6d.5788b",
1492     "type":"success",
1493     "name":"success",
1494     "xml":"<outcome value='success'>\n",
1495     "comments":"",
1496     "outputs":1,
1497     "x":1693.8095016479492,
1498     "y":2275.896167755127,
1499     "z":"e6090836.aef008",
1500     "wires":[
1501       [
1502         "a8057f80.cfbdb"
1503       ]
1504     ]
1505   },
1506   {
1507     "id":"18ce2f16.816031",
1508     "type":"set",
1509     "name":"set variables for generating unique name",
1510     "xml":"<set>\n<parameter name='generate-unique-name-input.index-table-name' value='VM_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vm_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='VM_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-name + $db.vfc-model.nfc-naming-code`\" />\n<parameter name='generate-unique-name-input.index-length' value='3' />\n",
1511     "comments":"",
1512     "x":1351.4285774230957,
1513     "y":2199.7055883407593,
1514     "z":"e6090836.aef008",
1515     "wires":[
1516
1517     ]
1518   },
1519   {
1520     "id":"a8057f80.cfbdb",
1521     "type":"set",
1522     "name":"set generated name",
1523     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' value='`$generate-unique-name-output.generated-name`' />\n",
1524     "comments":"",
1525     "x":1878.3332176208496,
1526     "y":2275.3721857070923,
1527     "z":"e6090836.aef008",
1528     "wires":[
1529
1530     ]
1531   },
1532   {
1533     "id":"8b35adee.43478",
1534     "type":"returnFailure",
1535     "name":"return failure",
1536     "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=\"`$generate-unique-name-output.error-message`\" />\n",
1537     "comments":"",
1538     "x":1858.3332646687832,
1539     "y":2223.6580362319946,
1540     "z":"e6090836.aef008",
1541     "wires":[
1542
1543     ]
1544   },
1545   {
1546     "id":"e47d3411.0e7818",
1547     "type":"set",
1548     "name":"set vf-module-id",
1549     "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id'\n   value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n",
1550     "comments":"",
1551     "x":526.4285469055176,
1552     "y":1039.348237991333,
1553     "z":"e6090836.aef008",
1554     "wires":[
1555
1556     ]
1557   },
1558   {
1559     "id":"7505754.7087a8c",
1560     "type":"block",
1561     "name":"block : atomic",
1562     "xml":"<block atomic=\"true\">",
1563     "atomic":"true",
1564     "outputs":1,
1565     "x":1092.738182067871,
1566     "y":2228.396019935608,
1567     "z":"e6090836.aef008",
1568     "wires":[
1569       [
1570         "18ce2f16.816031",
1571         "2f06bc6e.cdf504"
1572       ]
1573     ]
1574   },
1575   {
1576     "id":"8101c46.e2ef238",
1577     "type":"get-resource",
1578     "name":"get-resource VFC_TO_NETWORK_ROLE_MAPPING",
1579     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VFC_TO_NETWORK_ROLE_MAPPING WHERE vfc_customization_uuid = $db.vf-module-to-vfc-mapping[$vm-type-index].vfc-customization-uuid'\n  pfx='db.vfc-to-network-role-mapping[]'>\n\n",
1580     "comments":"",
1581     "outputs":1,
1582     "x":1055.595329284668,
1583     "y":2351.253088951111,
1584     "z":"e6090836.aef008",
1585     "wires":[
1586       [
1587         "61785549.e0849c",
1588         "5224b8ad.063668"
1589       ]
1590     ]
1591   },
1592   {
1593     "id":"61785549.e0849c",
1594     "type":"failure",
1595     "name":"failure",
1596     "xml":"<outcome value='failure'>\n",
1597     "comments":"",
1598     "outputs":1,
1599     "x":1342.8095321655273,
1600     "y":2331.6339359283447,
1601     "z":"e6090836.aef008",
1602     "wires":[
1603       [
1604         "58d75d53.d15634"
1605       ]
1606     ]
1607   },
1608   {
1609     "id":"5224b8ad.063668",
1610     "type":"not-found",
1611     "name":"not-found",
1612     "xml":"<outcome value='not-found'>\n",
1613     "comments":"",
1614     "outputs":1,
1615     "x":1351.3809623718262,
1616     "y":2375.9196491241455,
1617     "z":"e6090836.aef008",
1618     "wires":[
1619       [
1620         "16f89ad6.193655"
1621       ]
1622     ]
1623   },
1624   {
1625     "id":"58d75d53.d15634",
1626     "type":"returnFailure",
1627     "name":"return failure",
1628     "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 reading VFC_TO_NETWORK_ROLE_MAPPING table\" />\n",
1629     "comments":"",
1630     "x":1517.8094635009766,
1631     "y":2330.7768363952637,
1632     "z":"e6090836.aef008",
1633     "wires":[
1634
1635     ]
1636   },
1637   {
1638     "id":"f5bdc66c.11bd78",
1639     "type":"for",
1640     "name":"for each network-role",
1641     "xml":"<for index='network-role-index' start='0' end='`$db.vfc-to-network-role-mapping_length`' >\n",
1642     "comments":"",
1643     "outputs":1,
1644     "x":948.6906204223633,
1645     "y":2662.4439306259155,
1646     "z":"e6090836.aef008",
1647     "wires":[
1648       [
1649         "f495fb98.6c0a18"
1650       ]
1651     ]
1652   },
1653   {
1654     "id":"f495fb98.6c0a18",
1655     "type":"block",
1656     "name":"block : atomic",
1657     "xml":"<block atomic=\"true\">",
1658     "atomic":"true",
1659     "outputs":1,
1660     "x":1155.1190719604492,
1661     "y":2659.11043548584,
1662     "z":"e6090836.aef008",
1663     "wires":[
1664       [
1665         "8d2e0b.55c471f8",
1666         "b8d6dab7.8f19b8",
1667         "46e547.478a3ab8",
1668         "1da90578.6d8f2b",
1669         "415ccc2d.a04f44",
1670         "5a0fce27.0cc5",
1671         "2cebaf.8e65f452",
1672         "c8e0f30f.8d5d8"
1673       ]
1674     ]
1675   },
1676   {
1677     "id":"8d2e0b.55c471f8",
1678     "type":"for",
1679     "name":"for each network",
1680     "xml":"<for silentFailure='true' index='idx' start='0' end='`$service-data.networks.network_length`' >\n",
1681     "comments":"",
1682     "outputs":1,
1683     "x":1364.166633605957,
1684     "y":2491.253191947937,
1685     "z":"e6090836.aef008",
1686     "wires":[
1687       [
1688         "e2ef30d6.1b483"
1689       ]
1690     ]
1691   },
1692   {
1693     "id":"b8d6dab7.8f19b8",
1694     "type":"set",
1695     "name":"set network-index to -1",
1696     "xml":"<set>\n<parameter name='network-index' value='-1' />\n",
1697     "comments":"",
1698     "x":1384.1667022705078,
1699     "y":2448.396188735962,
1700     "z":"e6090836.aef008",
1701     "wires":[
1702
1703     ]
1704   },
1705   {
1706     "id":"e2ef30d6.1b483",
1707     "type":"switchNode",
1708     "name":"switch network-role matches",
1709     "xml":"<switch test='`$service-data.networks.network[$idx].network-data.network-topology.network-topology-identifier-structure.network-role == $db.vfc-to-network-role-mapping[$network-role-index].network-role`'>\n",
1710     "comments":"",
1711     "outputs":1,
1712     "x":1592.737907409668,
1713     "y":2489.824381828308,
1714     "z":"e6090836.aef008",
1715     "wires":[
1716       [
1717         "79eba1ee.46b8"
1718       ]
1719     ]
1720   },
1721   {
1722     "id":"79eba1ee.46b8",
1723     "type":"outcomeTrue",
1724     "name":"true",
1725     "xml":"<outcome value='true'>\n",
1726     "comments":"",
1727     "outputs":1,
1728     "x":1791.3095741271973,
1729     "y":2489.824585914612,
1730     "z":"e6090836.aef008",
1731     "wires":[
1732       [
1733         "52d952.2163c6b"
1734       ]
1735     ]
1736   },
1737   {
1738     "id":"52d952.2163c6b",
1739     "type":"block",
1740     "name":"block",
1741     "xml":"<block>\n",
1742     "atomic":"false",
1743     "comments":"",
1744     "outputs":1,
1745     "x":1932.7381420135498,
1746     "y":2488.396014213562,
1747     "z":"e6090836.aef008",
1748     "wires":[
1749       [
1750         "19d3b2d3.0314cd",
1751         "b934653f.8e9748"
1752       ]
1753     ]
1754   },
1755   {
1756     "id":"19d3b2d3.0314cd",
1757     "type":"set",
1758     "name":"set network-index to idx",
1759     "xml":"<set>\n<parameter name='network-index' value='`$idx`' />\n",
1760     "comments":"",
1761     "x":2111.30965423584,
1762     "y":2465.5390100479126,
1763     "z":"e6090836.aef008",
1764     "wires":[
1765
1766     ]
1767   },
1768   {
1769     "id":"b934653f.8e9748",
1770     "type":"break",
1771     "name":"break",
1772     "xml":"<break>",
1773     "comments":"",
1774     "x":2059.8808937072754,
1775     "y":2511.2531900405884,
1776     "z":"e6090836.aef008",
1777     "wires":[
1778
1779     ]
1780   },
1781   {
1782     "id":"46e547.478a3ab8",
1783     "type":"switchNode",
1784     "name":"switch network-index",
1785     "xml":"<switch test='`$network-index`'>\n",
1786     "comments":"",
1787     "outputs":1,
1788     "x":1376.0714721679688,
1789     "y":2540.062829017639,
1790     "z":"e6090836.aef008",
1791     "wires":[
1792       [
1793         "d2ba67f.cc23298"
1794       ]
1795     ]
1796   },
1797   {
1798     "id":"d2ba67f.cc23298",
1799     "type":"outcomeTrue",
1800     "name":"-1",
1801     "xml":"<outcome value='-1'>\n",
1802     "comments":"",
1803     "outputs":1,
1804     "x":1570.3571968078613,
1805     "y":2540.062726020813,
1806     "z":"e6090836.aef008",
1807     "wires":[
1808       [
1809         "78f92d17.cec774"
1810       ]
1811     ]
1812   },
1813   {
1814     "id":"78f92d17.cec774",
1815     "type":"returnFailure",
1816     "name":"return failure",
1817     "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 network found in MD-SAL with network-role ' + $db.vfc-to-network-role-mapping[$network-role-index].network-role`\" />\n",
1818     "comments":"",
1819     "x":1727.5000457763672,
1820     "y":2538.634196281433,
1821     "z":"e6090836.aef008",
1822     "wires":[
1823
1824     ]
1825   },
1826   {
1827     "id":"582721c4.126f6",
1828     "type":"for",
1829     "name":"for each cloud-region relationship",
1830     "xml":"<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n",
1831     "comments":"",
1832     "outputs":1,
1833     "x":585.9442901611328,
1834     "y":1258.0068836212158,
1835     "z":"e6090836.aef008",
1836     "wires":[
1837       [
1838         "f632bc1b.960e"
1839       ]
1840     ]
1841   },
1842   {
1843     "id":"f632bc1b.960e",
1844     "type":"switchNode",
1845     "name":"switch related-to",
1846     "xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n",
1847     "comments":"",
1848     "outputs":1,
1849     "x":833.6228332519531,
1850     "y":1257.7568130493164,
1851     "z":"e6090836.aef008",
1852     "wires":[
1853       [
1854         "c5ce5df.fba4ea"
1855       ]
1856     ]
1857   },
1858   {
1859     "id":"c5ce5df.fba4ea",
1860     "type":"outcome",
1861     "name":"complex",
1862     "xml":"<outcome value='complex'>\n",
1863     "comments":"",
1864     "outputs":1,
1865     "x":1003.0871543884277,
1866     "y":1257.1496353149414,
1867     "z":"e6090836.aef008",
1868     "wires":[
1869       [
1870         "36cd2be.f10ccd4"
1871       ]
1872     ]
1873   },
1874   {
1875     "id":"af57b732.5de4d8",
1876     "type":"execute",
1877     "name":"split related-link",
1878     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n   <parameter name='ctx_memory_result_key' value='aai-uid-split' />\n   <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\n   <parameter name='regex' value='/' />\n",
1879     "comments":"",
1880     "outputs":1,
1881     "x":1343.1823120117188,
1882     "y":1211.5782108306885,
1883     "z":"e6090836.aef008",
1884     "wires":[
1885       [
1886
1887       ]
1888     ]
1889   },
1890   {
1891     "id":"36cd2be.f10ccd4",
1892     "type":"block",
1893     "name":"block : atomic",
1894     "xml":"<block atomic=\"true\">",
1895     "atomic":"true",
1896     "outputs":1,
1897     "x":1162.8490142822266,
1898     "y":1258.2449989318848,
1899     "z":"e6090836.aef008",
1900     "wires":[
1901       [
1902         "af57b732.5de4d8",
1903         "e276c8d3.3ab668",
1904         "71021cf9.d2ce64"
1905       ]
1906     ]
1907   },
1908   {
1909     "id":"e276c8d3.3ab668",
1910     "type":"break",
1911     "name":"break",
1912     "xml":"<break>",
1913     "comments":"",
1914     "x":1312.848976135254,
1915     "y":1301.5782957077026,
1916     "z":"e6090836.aef008",
1917     "wires":[
1918
1919     ]
1920   },
1921   {
1922     "id":"1da90578.6d8f2b",
1923     "type":"set",
1924     "name":"set network-role and tag",
1925     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].network-role`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role-tag'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].network-role-tag`' />\n",
1926     "comments":"",
1927     "x":1385.8333549499512,
1928     "y":2636.2530155181885,
1929     "z":"e6090836.aef008",
1930     "wires":[
1931
1932     ]
1933   },
1934   {
1935     "id":"4f18de56.831f8",
1936     "type":"set",
1937     "name":"set vm-network-length",
1938     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length'\n  value='`$db.vfc-to-network-role-mapping_length`' />\n",
1939     "comments":"",
1940     "x":942.4999465942383,
1941     "y":3051.2532806396484,
1942     "z":"e6090836.aef008",
1943     "wires":[
1944
1945     ]
1946   },
1947   {
1948     "id":"415ccc2d.a04f44",
1949     "type":"switchNode",
1950     "name":"switch ipv4-ip-version",
1951     "xml":"<switch test='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-ip-version`'>\n",
1952     "comments":"",
1953     "outputs":1,
1954     "x":1378.452407836914,
1955     "y":2719.5863428115845,
1956     "z":"e6090836.aef008",
1957     "wires":[
1958       [
1959         "eff505c0.4d80a8",
1960         "7ba4a75.88aab58"
1961       ]
1962     ]
1963   },
1964   {
1965     "id":"15f50ec8.ae15e1",
1966     "type":"set",
1967     "name":"set network-information-index to -1",
1968     "xml":"<set>\n<parameter name='network-information-index' value='-1' />\n\n",
1969     "comments":"",
1970     "x":1787.97603225708,
1971     "y":2684.5864477157593,
1972     "z":"e6090836.aef008",
1973     "wires":[
1974
1975     ]
1976   },
1977   {
1978     "id":"eff505c0.4d80a8",
1979     "type":"outcome",
1980     "name":"NULL",
1981     "xml":"<outcome value=''>",
1982     "comments":"",
1983     "outputs":1,
1984     "x":1555.1189270019531,
1985     "y":2684.586483001709,
1986     "z":"e6090836.aef008",
1987     "wires":[
1988       [
1989         "15f50ec8.ae15e1"
1990       ]
1991     ]
1992   },
1993   {
1994     "id":"7ba4a75.88aab58",
1995     "type":"other",
1996     "name":"4",
1997     "xml":"<outcome value='4'>\n",
1998     "comments":"",
1999     "outputs":1,
2000     "x":1553.8808784484863,
2001     "y":2750.538625717163,
2002     "z":"e6090836.aef008",
2003     "wires":[
2004       [
2005         "77d24f8f.dfe93"
2006       ]
2007     ]
2008   },
2009   {
2010     "id":"9db64306.b784b",
2011     "type":"set",
2012     "name":"set network-information-index to 0",
2013     "xml":"<set>\n<parameter name='network-information-index' value='0' />\n",
2014     "comments":"",
2015     "x":1958.4521408081055,
2016     "y":2725.0624866485596,
2017     "z":"e6090836.aef008",
2018     "wires":[
2019
2020     ]
2021   },
2022   {
2023     "id":"77d24f8f.dfe93",
2024     "type":"block",
2025     "name":"block : atomic",
2026     "xml":"<block atomic=\"true\">",
2027     "atomic":"true",
2028     "outputs":1,
2029     "x":1721.0713539123535,
2030     "y":2749.872091293335,
2031     "z":"e6090836.aef008",
2032     "wires":[
2033       [
2034         "9db64306.b784b",
2035         "ae06599.ab8ada8"
2036       ]
2037     ]
2038   },
2039   {
2040     "id":"ae06599.ab8ada8",
2041     "type":"set",
2042     "name":"set ip-version 4, use-dhcp, and ip-count",
2043     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-version'\n   value='4' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].use-dhcp'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-use-dhcp`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-count'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-count`' />\n",
2044     "comments":"",
2045     "x":1975.4047241210938,
2046     "y":2771.7294425964355,
2047     "z":"e6090836.aef008",
2048     "wires":[
2049
2050     ]
2051   },
2052   {
2053     "id":"5a0fce27.0cc5",
2054     "type":"switchNode",
2055     "name":"switch ipv6-ip-version",
2056     "xml":"<switch test='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-ip-version`'>\n",
2057     "comments":"",
2058     "outputs":1,
2059     "x":1378.9286041259766,
2060     "y":2846.4911251068115,
2061     "z":"e6090836.aef008",
2062     "wires":[
2063       [
2064         "c42cc110.b1b6c",
2065         "3f79e3b9.76574c"
2066       ]
2067     ]
2068   },
2069   {
2070     "id":"c42cc110.b1b6c",
2071     "type":"outcome",
2072     "name":"NULL",
2073     "xml":"<outcome value=''>",
2074     "comments":"",
2075     "outputs":1,
2076     "x":1557.7380981445312,
2077     "y":2816.728937149048,
2078     "z":"e6090836.aef008",
2079     "wires":[
2080       [
2081         "804f081a.ae1078"
2082       ]
2083     ]
2084   },
2085   {
2086     "id":"3f79e3b9.76574c",
2087     "type":"other",
2088     "name":"6",
2089     "xml":"<outcome value='6'>\n",
2090     "comments":"",
2091     "outputs":1,
2092     "x":1559.1666526794434,
2093     "y":2881.0144939422607,
2094     "z":"e6090836.aef008",
2095     "wires":[
2096       [
2097         "a9db339d.d7ff6"
2098       ]
2099     ]
2100   },
2101   {
2102     "id":"dae18443.96dc88",
2103     "type":"set",
2104     "name":"increment network-information-index",
2105     "xml":"<set>\n<parameter name='network-information-index' value='`$network-information-index + 1`' />\n",
2106     "comments":"",
2107     "x":1964.880744934082,
2108     "y":2855.5385236740112,
2109     "z":"e6090836.aef008",
2110     "wires":[
2111
2112     ]
2113   },
2114   {
2115     "id":"a9db339d.d7ff6",
2116     "type":"block",
2117     "name":"block : atomic",
2118     "xml":"<block atomic=\"true\">",
2119     "atomic":"true",
2120     "outputs":1,
2121     "x":1714.4048118591309,
2122     "y":2880.0622329711914,
2123     "z":"e6090836.aef008",
2124     "wires":[
2125       [
2126         "dae18443.96dc88",
2127         "d1e2a302.f2a79"
2128       ]
2129     ]
2130   },
2131   {
2132     "id":"804f081a.ae1078",
2133     "type":"block",
2134     "name":"block",
2135     "xml":"<block>\n",
2136     "atomic":"false",
2137     "comments":"",
2138     "outputs":1,
2139     "x":1700.404727935791,
2140     "y":2816.0625553131104,
2141     "z":"e6090836.aef008",
2142     "wires":[
2143       [
2144
2145       ]
2146     ]
2147   },
2148   {
2149     "id":"2cebaf.8e65f452",
2150     "type":"switchNode",
2151     "name":"switch network-information-index",
2152     "xml":"<switch test='`$network-information-index`'>\n",
2153     "comments":"",
2154     "outputs":1,
2155     "x":1414.166618347168,
2156     "y":2982.919370651245,
2157     "z":"e6090836.aef008",
2158     "wires":[
2159       [
2160         "65a0822f.ef5c1c",
2161         "83f08e39.d6a15"
2162       ]
2163     ]
2164   },
2165   {
2166     "id":"65a0822f.ef5c1c",
2167     "type":"outcome",
2168     "name":"-1",
2169     "xml":"<outcome value='-1'>",
2170     "comments":"",
2171     "outputs":1,
2172     "x":1632.4999752044678,
2173     "y":2959.5861167907715,
2174     "z":"e6090836.aef008",
2175     "wires":[
2176       [
2177         "19418e05.1e8042"
2178       ]
2179     ]
2180   },
2181   {
2182     "id":"83f08e39.d6a15",
2183     "type":"other",
2184     "name":"other",
2185     "xml":"<outcome value='Other'>\n",
2186     "comments":"",
2187     "outputs":1,
2188     "x":1632.2619380950928,
2189     "y":3005.5384311676025,
2190     "z":"e6090836.aef008",
2191     "wires":[
2192       [
2193         "5955caa.70cc334"
2194       ]
2195     ]
2196   },
2197   {
2198     "id":"19418e05.1e8042",
2199     "type":"block",
2200     "name":"block",
2201     "xml":"<block>\n",
2202     "atomic":"false",
2203     "comments":"",
2204     "outputs":1,
2205     "x":1769.166690826416,
2206     "y":2957.919776916504,
2207     "z":"e6090836.aef008",
2208     "wires":[
2209       [
2210
2211       ]
2212     ]
2213   },
2214   {
2215     "id":"5955caa.70cc334",
2216     "type":"set",
2217     "name":"set network-information-item_length",
2218     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length'\n   value='`$network-information-index + 1`' />\n",
2219     "comments":"",
2220     "x":1860.8333053588867,
2221     "y":3002.919569015503,
2222     "z":"e6090836.aef008",
2223     "wires":[
2224
2225     ]
2226   },
2227   {
2228     "id":"b0ef8497.4ea668",
2229     "type":"for",
2230     "name":"for each vm-type",
2231     "xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
2232     "comments":"",
2233     "outputs":1,
2234     "x":541,
2235     "y":3149.9194660186768,
2236     "z":"e6090836.aef008",
2237     "wires":[
2238       [
2239         "fe06fed9.aff3e"
2240       ]
2241     ]
2242   },
2243   {
2244     "id":"fe06fed9.aff3e",
2245     "type":"block",
2246     "name":"block : atomic",
2247     "xml":"<block atomic=\"true\">",
2248     "atomic":"true",
2249     "outputs":1,
2250     "x":744.5715255737305,
2251     "y":3150.1576709747314,
2252     "z":"e6090836.aef008",
2253     "wires":[
2254       [
2255         "d04bd80b.387cf8"
2256       ]
2257     ]
2258   },
2259   {
2260     "id":"c8e0f30f.8d5d8",
2261     "type":"set",
2262     "name":"save network-id",
2263     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id'\n  value='`$service-data.networks.network[$idx].network-data.network-topology.network-topology-identifier-structure.network-id`' />\n",
2264     "comments":"This isn't a node in MD-SAL, but we need to save this for later when we are doing EIPAM processing",
2265     "x":1357.9761810302734,
2266     "y":2586.253023147583,
2267     "z":"e6090836.aef008",
2268     "wires":[
2269
2270     ]
2271   },
2272   {
2273     "id":"d04bd80b.387cf8",
2274     "type":"for",
2275     "name":"for each network-role",
2276     "xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
2277     "comments":"",
2278     "outputs":1,
2279     "x":945.999885559082,
2280     "y":3149.252721786499,
2281     "z":"e6090836.aef008",
2282     "wires":[
2283       [
2284         "5ff438d4.980868"
2285       ]
2286     ]
2287   },
2288   {
2289     "id":"5ff438d4.980868",
2290     "type":"block",
2291     "name":"block : atomic",
2292     "xml":"<block atomic=\"true\">",
2293     "atomic":"true",
2294     "outputs":1,
2295     "x":1147.9047012329102,
2296     "y":3148.490758895874,
2297     "z":"e6090836.aef008",
2298     "wires":[
2299       [
2300         "5c7949ed.12f198"
2301       ]
2302     ]
2303   },
2304   {
2305     "id":"5c7949ed.12f198",
2306     "type":"for",
2307     "name":"for each network-information-item",
2308     "xml":"<for index='ip-version-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length`' >\n",
2309     "comments":"",
2310     "outputs":1,
2311     "x":1392.6665725708008,
2312     "y":3148.0151510238647,
2313     "z":"e6090836.aef008",
2314     "wires":[
2315       [
2316         "3c49e4a4.13796c"
2317       ]
2318     ]
2319   },
2320   {
2321     "id":"97b8ba37.35fdb8",
2322     "type":"block",
2323     "name":"block : atomic",
2324     "xml":"<block atomic=\"true\">",
2325     "atomic":"true",
2326     "outputs":1,
2327     "x":637.666633605957,
2328     "y":3353.9195766448975,
2329     "z":"e6090836.aef008",
2330     "wires":[
2331       [
2332         "c20748cc.14a758",
2333         "f73ba212.a9db1",
2334         "eccb2ab1.4ecf58",
2335         "6c51c35e.c8107c",
2336         "373238a0.60e488"
2337       ]
2338     ]
2339   },
2340   {
2341     "id":"c20748cc.14a758",
2342     "type":"get-resource",
2343     "name":"get-resource EIPAM_IP_SUBNETS",
2344     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNETS WHERE network_id = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id\n    AND address_family = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version'\n  pfx='db.eipam-ip-subnets[]'>\n\n",
2345     "comments":"",
2346     "outputs":1,
2347     "x":1017.6666564941406,
2348     "y":3315.586072921753,
2349     "z":"e6090836.aef008",
2350     "wires":[
2351       [
2352         "e7cc33.f38f63d",
2353         "6e4ec0e0.26982"
2354       ]
2355     ]
2356   },
2357   {
2358     "id":"1c2857df.d8b0a8",
2359     "type":"returnFailure",
2360     "name":"return failure",
2361     "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 entries found in EIPAM_IP_SUBNETS table for network ID '\n        + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id\n        + ' and address family ' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version`\" />\n",
2362     "comments":"",
2363     "x":1407.6665954589844,
2364     "y":3337.2528343200684,
2365     "z":"e6090836.aef008",
2366     "wires":[
2367
2368     ]
2369   },
2370   {
2371     "id":"e7cc33.f38f63d",
2372     "type":"failure",
2373     "name":"failure",
2374     "xml":"<outcome value='failure'>\n",
2375     "comments":"",
2376     "outputs":1,
2377     "x":1233.0238647460938,
2378     "y":3293.205192565918,
2379     "z":"e6090836.aef008",
2380     "wires":[
2381       [
2382         "6c1c41f9.cb5ac"
2383       ]
2384     ]
2385   },
2386   {
2387     "id":"6e4ec0e0.26982",
2388     "type":"not-found",
2389     "name":"not-found",
2390     "xml":"<outcome value='not-found'>\n",
2391     "comments":"",
2392     "outputs":1,
2393     "x":1241.5952949523926,
2394     "y":3337.4909057617188,
2395     "z":"e6090836.aef008",
2396     "wires":[
2397       [
2398         "1c2857df.d8b0a8"
2399       ]
2400     ]
2401   },
2402   {
2403     "id":"6c1c41f9.cb5ac",
2404     "type":"returnFailure",
2405     "name":"return failure",
2406     "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 reading EIPAM_IP_SUBNETS table\" />\n",
2407     "comments":"",
2408     "x":1408.023796081543,
2409     "y":3292.348093032837,
2410     "z":"e6090836.aef008",
2411     "wires":[
2412
2413     ]
2414   },
2415   {
2416     "id":"f73ba212.a9db1",
2417     "type":"for",
2418     "name":"for each record in EIPAM_IP_SUBNETS",
2419     "xml":"<for index='subnets-index' start='0' end='`$db.eipam-ip-subnets_length`' >\n",
2420     "comments":"",
2421     "outputs":1,
2422     "x":1036.9524688720703,
2423     "y":3620.82426071167,
2424     "z":"e6090836.aef008",
2425     "wires":[
2426       [
2427         "48786485.afdfcc"
2428       ]
2429     ]
2430   },
2431   {
2432     "id":"48786485.afdfcc",
2433     "type":"block",
2434     "name":"block : atomic",
2435     "xml":"<block atomic=\"true\">",
2436     "atomic":"true",
2437     "outputs":1,
2438     "x":1293.3810195922852,
2439     "y":3621.77654838562,
2440     "z":"e6090836.aef008",
2441     "wires":[
2442       [
2443         "76f82048.a92cb",
2444         "564032f0.dfbc3c",
2445         "a8b83f38.2b35f",
2446         "802baf6d.dddb5",
2447         "d69aacbb.b1933"
2448       ]
2449     ]
2450   },
2451   {
2452     "id":"76f82048.a92cb",
2453     "type":"get-resource",
2454     "name":"get-resource EIPAM_IP_SUBNET_KEYS",
2455     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNET_KEYS WHERE entity_id = $db.eipam-ip-subnets[$subnets-index].entity-id'\n  pfx='db.eipam-ip-subnet-keys[]'>\n\n",
2456     "comments":"",
2457     "outputs":1,
2458     "x":1604.809585571289,
2459     "y":3458.205156326294,
2460     "z":"e6090836.aef008",
2461     "wires":[
2462       [
2463         "5c773ab4.c1c354",
2464         "76282e7d.401a9"
2465       ]
2466     ]
2467   },
2468   {
2469     "id":"ea3f166e.9742f8",
2470     "type":"returnFailure",
2471     "name":"return failure",
2472     "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 entries found in EIPAM_IP_SUBNET_KEYS table for entity ID '\n        + $db.eipam-ip-subnets[$subnets-index].entity-id`\" />",
2473     "comments":"",
2474     "x":2019.809585571289,
2475     "y":3478.205156326294,
2476     "z":"e6090836.aef008",
2477     "wires":[
2478
2479     ]
2480   },
2481   {
2482     "id":"5c773ab4.c1c354",
2483     "type":"failure",
2484     "name":"failure",
2485     "xml":"<outcome value='failure'>\n",
2486     "comments":"",
2487     "outputs":1,
2488     "x":1845.1668548583984,
2489     "y":3434.1575145721436,
2490     "z":"e6090836.aef008",
2491     "wires":[
2492       [
2493         "a89d01a.87957"
2494       ]
2495     ]
2496   },
2497   {
2498     "id":"76282e7d.401a9",
2499     "type":"not-found",
2500     "name":"not-found",
2501     "xml":"<outcome value='not-found'>\n",
2502     "comments":"",
2503     "outputs":1,
2504     "x":1853.7382850646973,
2505     "y":3478.4432277679443,
2506     "z":"e6090836.aef008",
2507     "wires":[
2508       [
2509         "ea3f166e.9742f8"
2510       ]
2511     ]
2512   },
2513   {
2514     "id":"a89d01a.87957",
2515     "type":"returnFailure",
2516     "name":"return failure",
2517     "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 reading EIPAM_IP_SUBNET_KEYS table\" />\n",
2518     "comments":"",
2519     "x":2020.1667861938477,
2520     "y":3433.3004150390625,
2521     "z":"e6090836.aef008",
2522     "wires":[
2523
2524     ]
2525   },
2526   {
2527     "id":"eccb2ab1.4ecf58",
2528     "type":"set",
2529     "name":"set max-level to -1",
2530     "xml":"<set>\n<parameter name='max-level' value='-1' />\n",
2531     "comments":"",
2532     "x":965.7619323730469,
2533     "y":3381.538688659668,
2534     "z":"e6090836.aef008",
2535     "wires":[
2536
2537     ]
2538   },
2539   {
2540     "id":"564032f0.dfbc3c",
2541     "type":"for",
2542     "name":"for each record in EIPAM_IP_SUBNET_KEYS",
2543     "xml":"<for index='keys-index' start='0' end='`$db.eipam-ip-subnet-keys_length`' >\n",
2544     "comments":"",
2545     "outputs":1,
2546     "x":1619.3334045410156,
2547     "y":3527.2529106140137,
2548     "z":"e6090836.aef008",
2549     "wires":[
2550       [
2551         "96321389.4c73f"
2552       ]
2553     ]
2554   },
2555   {
2556     "id":"96321389.4c73f",
2557     "type":"block",
2558     "name":"block : atomic",
2559     "xml":"<block atomic=\"true\">",
2560     "atomic":"true",
2561     "outputs":1,
2562     "x":1906.0000534057617,
2563     "y":3525.586248397827,
2564     "z":"e6090836.aef008",
2565     "wires":[
2566       [
2567         "2d3eea0b.50e1e6"
2568       ]
2569     ]
2570   },
2571   {
2572     "id":"2d3eea0b.50e1e6",
2573     "type":"switchNode",
2574     "name":"switch level > max-level?",
2575     "xml":"<switch test='`$db.eipam-ip-subnet-keys[$keys-index].level &gt; $max-level`'>\n",
2576     "comments":"",
2577     "outputs":1,
2578     "x":2122.6666717529297,
2579     "y":3525.586166381836,
2580     "z":"e6090836.aef008",
2581     "wires":[
2582       [
2583         "c87a6e6.e044e9"
2584       ]
2585     ]
2586   },
2587   {
2588     "id":"c87a6e6.e044e9",
2589     "type":"outcomeTrue",
2590     "name":"true",
2591     "xml":"<outcome value='true'>\n",
2592     "comments":"",
2593     "outputs":1,
2594     "x":2314.333599090576,
2595     "y":3525.58616065979,
2596     "z":"e6090836.aef008",
2597     "wires":[
2598       [
2599         "f7e5553.b6c1fa8"
2600       ]
2601     ]
2602   },
2603   {
2604     "id":"f7e5553.b6c1fa8",
2605     "type":"set",
2606     "name":"set max-level, selected-entity-id, selected-plan-name",
2607     "xml":"<set>\n<parameter name='max-level' value='`$db.eipam-ip-subnet-keys[$keys-index].level`' />\n<parameter name='selected-entity-id' value='`$db.eipam-ip-subnet-keys[$keys-index].entity-id`' />\n<parameter name='selected-plan-name' value='`$db.eipam-ip-subnets[$subnets-index].plan-name`' />\n",
2608     "comments":"",
2609     "x":2606.0001068115234,
2610     "y":3523.9194173812866,
2611     "z":"e6090836.aef008",
2612     "wires":[
2613
2614     ]
2615   },
2616   {
2617     "id":"a8b83f38.2b35f",
2618     "type":"get-resource",
2619     "name":"get-resource EIPAM_IP_SUBNET_KEYS",
2620     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNET_KEYS WHERE entity_id = $selected-entity-id order by level'\n  pfx='db.eipam-ip-subnet-keys[]'>\n\n",
2621     "comments":"",
2622     "outputs":1,
2623     "x":1606.000015258789,
2624     "y":3599.157615661621,
2625     "z":"e6090836.aef008",
2626     "wires":[
2627       [
2628         "d369bc07.5b51d",
2629         "ce7c7e60.3e34b"
2630       ]
2631     ]
2632   },
2633   {
2634     "id":"7b19e8c7.72e078",
2635     "type":"returnFailure",
2636     "name":"return failure",
2637     "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 entries found in EIPAM_IP_SUBNET_KEYS table for entity ID '\n        + $selected-entity-id`\" />",
2638     "comments":"",
2639     "x":2021.000015258789,
2640     "y":3619.157615661621,
2641     "z":"e6090836.aef008",
2642     "wires":[
2643
2644     ]
2645   },
2646   {
2647     "id":"d369bc07.5b51d",
2648     "type":"failure",
2649     "name":"failure",
2650     "xml":"<outcome value='failure'>\n",
2651     "comments":"",
2652     "outputs":1,
2653     "x":1846.3572845458984,
2654     "y":3575.1099739074707,
2655     "z":"e6090836.aef008",
2656     "wires":[
2657       [
2658         "404aa28f.128f4c"
2659       ]
2660     ]
2661   },
2662   {
2663     "id":"ce7c7e60.3e34b",
2664     "type":"not-found",
2665     "name":"not-found",
2666     "xml":"<outcome value='not-found'>\n",
2667     "comments":"",
2668     "outputs":1,
2669     "x":1854.9287147521973,
2670     "y":3619.3956871032715,
2671     "z":"e6090836.aef008",
2672     "wires":[
2673       [
2674         "7b19e8c7.72e078"
2675       ]
2676     ]
2677   },
2678   {
2679     "id":"404aa28f.128f4c",
2680     "type":"returnFailure",
2681     "name":"return failure",
2682     "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 reading EIPAM_IP_SUBNET_KEYS table\" />\n",
2683     "comments":"",
2684     "x":2021.3572158813477,
2685     "y":3574.2528743743896,
2686     "z":"e6090836.aef008",
2687     "wires":[
2688
2689     ]
2690   },
2691   {
2692     "id":"f31caaf8.dddbb8",
2693     "type":"for",
2694     "name":"for each record in EIPAM_IP_SUBNET_KEYS",
2695     "xml":"<for index='level-index' start='0' end='`$db.eipam-ip-subnet-keys_length`' >\n",
2696     "comments":"",
2697     "outputs":1,
2698     "x":2051.952362060547,
2699     "y":3667.729072570801,
2700     "z":"e6090836.aef008",
2701     "wires":[
2702       [
2703         "b8b8da21.b44008"
2704       ]
2705     ]
2706   },
2707   {
2708     "id":"b21661ec.87447",
2709     "type":"block",
2710     "name":"block : atomic",
2711     "xml":"<block atomic=\"true\">",
2712     "atomic":"true",
2713     "outputs":1,
2714     "x":1744.8093643188477,
2715     "y":3751.5385093688965,
2716     "z":"e6090836.aef008",
2717     "wires":[
2718       [
2719         "f31caaf8.dddbb8",
2720         "18077655.54097a",
2721         "b9fd5f75.b5e8a",
2722         "df5529a.8c63fd8",
2723         "863bfcf2.a453f"
2724       ]
2725     ]
2726   },
2727   {
2728     "id":"802baf6d.dddb5",
2729     "type":"for",
2730     "name":"for each ip in ip-count",
2731     "xml":"<for index='request-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-count`' >\n",
2732     "comments":"",
2733     "outputs":1,
2734     "x":1543.142807006836,
2735     "y":3751.5401363372803,
2736     "z":"e6090836.aef008",
2737     "wires":[
2738       [
2739         "b21661ec.87447"
2740       ]
2741     ]
2742   },
2743   {
2744     "id":"b8b8da21.b44008",
2745     "type":"set",
2746     "name":"set eipam data for level",
2747     "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools[$level-index].key-name'\n   value='`$db.eipam-ip-subnet-keys[$level-index].key-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools[$level-index].key-value'\n   value='`$db.eipam-ip-subnet-keys[$level-index].key-value`' />\n",
2748     "comments":"",
2749     "x":2358.8571243286133,
2750     "y":3667.4918384552,
2751     "z":"e6090836.aef008",
2752     "wires":[
2753
2754     ]
2755   },
2756   {
2757     "id":"18077655.54097a",
2758     "type":"set",
2759     "name":"set eipam data pools_length",
2760     "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools_length'\n   value='`$db.eipam-ip-subnet-keys_length`' />\n",
2761     "comments":"",
2762     "x":1998.142677307129,
2763     "y":3713.2054557800293,
2764     "z":"e6090836.aef008",
2765     "wires":[
2766
2767     ]
2768   },
2769   {
2770     "id":"3ab291c1.7ed19e",
2771     "type":"set",
2772     "name":"set plans-index to 0",
2773     "xml":"<set>\n<parameter name='plans-index' value='0' />\n",
2774     "comments":"",
2775     "x":549.7619171142578,
2776     "y":3093.8717365264893,
2777     "z":"e6090836.aef008",
2778     "wires":[
2779
2780     ]
2781   },
2782   {
2783     "id":"6c51c35e.c8107c",
2784     "type":"set",
2785     "name":"increment plans-index",
2786     "xml":"<set>\n<parameter name='plans-index' value='`$plans-index + 1`' />\n",
2787     "comments":"",
2788     "x":981.0952224731445,
2789     "y":4012.871983528137,
2790     "z":"e6090836.aef008",
2791     "wires":[
2792
2793     ]
2794   },
2795   {
2796     "id":"d69aacbb.b1933",
2797     "type":"set",
2798     "name":"set eipam requests_length",
2799     "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests_length'\n   value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-count`' />\n",
2800     "comments":"",
2801     "x":1553.6191711425781,
2802     "y":3893.2055082321167,
2803     "z":"e6090836.aef008",
2804     "wires":[
2805
2806     ]
2807   },
2808   {
2809     "id":"373238a0.60e488",
2810     "type":"set",
2811     "name":"set eipam plan-name, address-family",
2812     "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].plan-name' value='`$selected-plan-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].address-family'\n   value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version`' />\n",
2813     "comments":"",
2814     "x":1029.6666564941406,
2815     "y":3965.7284650802612,
2816     "z":"e6090836.aef008",
2817     "wires":[
2818
2819     ]
2820   },
2821   {
2822     "id":"8923d8d0.f4b338",
2823     "type":"set",
2824     "name":"set eipam plans_length",
2825     "xml":"<set>\n<parameter name='eipam-ip-block.plans_length' value='`$plans-index`' />\n",
2826     "comments":"",
2827     "x":553.4285697937012,
2828     "y":4037.919857978821,
2829     "z":"e6090836.aef008",
2830     "wires":[
2831
2832     ]
2833   },
2834   {
2835     "id":"4f613c00.2b7644",
2836     "type":"returnSuccess",
2837     "name":"return success",
2838     "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",
2839     "comments":"",
2840     "x":512.7975616455078,
2841     "y":5113.011030197144,
2842     "z":"e6090836.aef008",
2843     "wires":[
2844
2845     ]
2846   },
2847   {
2848     "id":"39e9e85.a687718",
2849     "type":"set",
2850     "name":"copy input data",
2851     "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",
2852     "comments":"",
2853     "x":524.5832290649414,
2854     "y":4888.990794181824,
2855     "z":"e6090836.aef008",
2856     "wires":[
2857
2858     ]
2859   },
2860   {
2861     "id":"dfa4db2.9778928",
2862     "type":"set",
2863     "name":"copy vf-module-topology data",
2864     "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.' value='$tmp.vf-module-topology.' />\n",
2865     "comments":"",
2866     "x":569.4642333984375,
2867     "y":4840.776306152344,
2868     "z":"e6090836.aef008",
2869     "wires":[
2870
2871     ]
2872   },
2873   {
2874     "id":"ff59520e.ec557",
2875     "type":"execute",
2876     "name":"printContext",
2877     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmodule.log' />\n",
2878     "comments":"",
2879     "outputs":1,
2880     "x":507.6785125732422,
2881     "y":5065.240846633911,
2882     "z":"e6090836.aef008",
2883     "wires":[
2884       [
2885
2886       ]
2887     ]
2888   },
2889   {
2890     "id":"26166f96.2f2dc",
2891     "type":"execute",
2892     "name":"call EIPAM assignIPAddress",
2893     "xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"assignIPAddress\">",
2894     "comments":"",
2895     "outputs":1,
2896     "x":933.5952911376953,
2897     "y":4126.880926132202,
2898     "z":"e6090836.aef008",
2899     "wires":[
2900       [
2901         "3cca0436.97a71c"
2902       ]
2903     ]
2904   },
2905   {
2906     "id":"3cca0436.97a71c",
2907     "type":"failure",
2908     "name":"failure",
2909     "xml":"<outcome value='failure'>",
2910     "outputs":1,
2911     "x":1147.5952911376953,
2912     "y":4126.880926132202,
2913     "z":"e6090836.aef008",
2914     "wires":[
2915       [
2916         "3c2970af.d2cab"
2917       ]
2918     ]
2919   },
2920   {
2921     "id":"3c2970af.d2cab",
2922     "type":"returnFailure",
2923     "name":"return failure",
2924     "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=\"An error occured while obtaining new address blocks from EIPAM.\" />\n",
2925     "comments":"",
2926     "x":1286.5952911376953,
2927     "y":4126.880926132202,
2928     "z":"e6090836.aef008",
2929     "wires":[
2930
2931     ]
2932   },
2933   {
2934     "id":"b9fd5f75.b5e8a",
2935     "type":"set",
2936     "name":"set eipam client-key, mask",
2937     "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].client-key'\n   value='`$generate-unique-name-output.generated-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].info'\n   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].mask'\n   value='32' />\n",
2938     "comments":"",
2939     "x":1995.2857284545898,
2940     "y":3847.015483856201,
2941     "z":"e6090836.aef008",
2942     "wires":[
2943
2944     ]
2945   },
2946   {
2947     "id":"7ae88bfe.f72b94",
2948     "type":"for",
2949     "name":"for each vm-type",
2950     "xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
2951     "comments":"",
2952     "outputs":1,
2953     "x":533,
2954     "y":4236.252558708191,
2955     "z":"e6090836.aef008",
2956     "wires":[
2957       [
2958         "42f93af5.a0fff4"
2959       ]
2960     ]
2961   },
2962   {
2963     "id":"42f93af5.a0fff4",
2964     "type":"for",
2965     "name":"for each vm-network",
2966     "xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
2967     "comments":"",
2968     "outputs":1,
2969     "x":741.6666831970215,
2970     "y":4236.252884864807,
2971     "z":"e6090836.aef008",
2972     "wires":[
2973       [
2974         "75df27a.fd89ad8"
2975       ]
2976     ]
2977   },
2978   {
2979     "id":"75df27a.fd89ad8",
2980     "type":"for",
2981     "name":"for each network-information-item",
2982     "xml":"<for index='ip-version-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length`' >\n",
2983     "comments":"",
2984     "outputs":1,
2985     "x":1006.6666717529297,
2986     "y":4237.919226646423,
2987     "z":"e6090836.aef008",
2988     "wires":[
2989       [
2990         "fd735d1.2d1f0a"
2991       ]
2992     ]
2993   },
2994   {
2995     "id":"14f4699d.ce7016",
2996     "type":"set",
2997     "name":"set plans-index = 0",
2998     "xml":"<set>\n<parameter name='plans-index' value='0' />\n",
2999     "comments":"",
3000     "x":539.9999923706055,
3001     "y":4181.252646446228,
3002     "z":"e6090836.aef008",
3003     "wires":[
3004
3005     ]
3006   },
3007   {
3008     "id":"2d342044.e7473",
3009     "type":"for",
3010     "name":"for each eipam request",
3011     "xml":"<for index='ip-index' start='0' end='`$eipam-ip-block.plans[$plans-index].requests_length`' >\n",
3012     "comments":"",
3013     "outputs":1,
3014     "x":1776.6666259765625,
3015     "y":4209.586531639099,
3016     "z":"e6090836.aef008",
3017     "wires":[
3018       [
3019         "c211fc94.3e7ba"
3020       ]
3021     ]
3022   },
3023   {
3024     "id":"c211fc94.3e7ba",
3025     "type":"set",
3026     "name":"set ip address",
3027     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].network-ips.network-ip[$ip-index]'\n  value='`$eipam-ip-block.plans[$plans-index].requests[$ip-index].ip-prefix`' />\n",
3028     "comments":"",
3029     "x":1988.3332633972168,
3030     "y":4207.919702529907,
3031     "z":"e6090836.aef008",
3032     "wires":[
3033
3034     ]
3035   },
3036   {
3037     "id":"bffc2bb7.1135f8",
3038     "type":"block",
3039     "name":"block : atomic",
3040     "xml":"<block atomic=\"true\">",
3041     "atomic":"true",
3042     "outputs":1,
3043     "x":1576.6664581298828,
3044     "y":4234.586045265198,
3045     "z":"e6090836.aef008",
3046     "wires":[
3047       [
3048         "2d342044.e7473",
3049         "2cedc5a4.ab6bba"
3050       ]
3051     ]
3052   },
3053   {
3054     "id":"2cedc5a4.ab6bba",
3055     "type":"set",
3056     "name":"increment plans-index",
3057     "xml":"<set>\n<parameter name='plans-index' value='`$plans-index + 1`' />\n",
3058     "comments":"",
3059     "x":1771.66650390625,
3060     "y":4256.252387046814,
3061     "z":"e6090836.aef008",
3062     "wires":[
3063
3064     ]
3065   },
3066   {
3067     "id":"1f69056.fe181fb",
3068     "type":"save",
3069     "name":"update vf-module",
3070     "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=\"vf-module-name\" value=\"`$tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name`\" />\n<parameter name=\"model-invariant-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vf-module-object-path`\" />\n",
3071     "comments":"",
3072     "outputs":1,
3073     "x":534.9999694824219,
3074     "y":4381.252729415894,
3075     "z":"e6090836.aef008",
3076     "wires":[
3077       [
3078         "80694bdc.1daa28",
3079         "7fffbd12.aef484"
3080       ]
3081     ]
3082   },
3083   {
3084     "id":"753f20c5.bbede",
3085     "type":"returnFailure",
3086     "name":"return failure",
3087     "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",
3088     "comments":"",
3089     "x":1028.333396911621,
3090     "y":4434.585899353027,
3091     "z":"e6090836.aef008",
3092     "wires":[
3093
3094     ]
3095   },
3096   {
3097     "id":"80694bdc.1daa28",
3098     "type":"failure",
3099     "name":"failure",
3100     "xml":"<outcome value='failure'>\n",
3101     "comments":"",
3102     "outputs":1,
3103     "x":704.3573303222656,
3104     "y":4348.204874038696,
3105     "z":"e6090836.aef008",
3106     "wires":[
3107       [
3108         "1dc4fe5.fac6902"
3109       ]
3110     ]
3111   },
3112   {
3113     "id":"7fffbd12.aef484",
3114     "type":"not-found",
3115     "name":"not-found",
3116     "xml":"<outcome value='not-found'>\n",
3117     "comments":"",
3118     "outputs":1,
3119     "x":712.9286842346191,
3120     "y":4410.823854446411,
3121     "z":"e6090836.aef008",
3122     "wires":[
3123       [
3124         "34139b45.2d0504"
3125       ]
3126     ]
3127   },
3128   {
3129     "id":"8f30d2e9.eb03c",
3130     "type":"returnFailure",
3131     "name":"return failure",
3132     "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",
3133     "comments":"",
3134     "x":1039.3572845458984,
3135     "y":4366.348430633545,
3136     "z":"e6090836.aef008",
3137     "wires":[
3138
3139     ]
3140   },
3141   {
3142     "id":"aa1a950e.7071b8",
3143     "type":"set",
3144     "name":"set vf-module-object-path",
3145     "xml":"<set>\n<parameter name='vf-module-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-topology.service-topology-identifier.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n\n",
3146     "comments":"",
3147     "x":561.666633605957,
3148     "y":4306.252715110779,
3149     "z":"e6090836.aef008",
3150     "wires":[
3151
3152     ]
3153   },
3154   {
3155     "id":"df808ad1.2e9658",
3156     "type":"save",
3157     "name":"save vf-module relationships",
3158     "xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"vf-module:relationship-list\"\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=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id`\" />\n",
3159     "comments":"",
3160     "outputs":1,
3161     "x":994.3094787597656,
3162     "y":4509.975717544556,
3163     "z":"e6090836.aef008",
3164     "wires":[
3165       [
3166         "64c1b4ac.c2087c",
3167         "f9da1963.2589e8"
3168       ]
3169     ]
3170   },
3171   {
3172     "id":"64c1b4ac.c2087c",
3173     "type":"failure",
3174     "name":"failure",
3175     "xml":"<outcome value='failure'>\n",
3176     "comments":"",
3177     "outputs":1,
3178     "x":1219.1428108215332,
3179     "y":4470.847640037537,
3180     "z":"e6090836.aef008",
3181     "wires":[
3182       [
3183         "e705dca.d8b482"
3184       ]
3185     ]
3186   },
3187   {
3188     "id":"f9da1963.2589e8",
3189     "type":"not-found",
3190     "name":"not-found",
3191     "xml":"<outcome value='not-found'>\n",
3192     "comments":"",
3193     "outputs":1,
3194     "x":1227.7142639160156,
3195     "y":4548.466782569885,
3196     "z":"e6090836.aef008",
3197     "wires":[
3198       [
3199         "76421cc4.4bff94"
3200       ]
3201     ]
3202   },
3203   {
3204     "id":"8b99afe7.e214",
3205     "type":"returnFailure",
3206     "name":"return failure",
3207     "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 relationships in AAI\" />\n",
3208     "comments":"",
3209     "x":1554.1429443359375,
3210     "y":4490.657536506653,
3211     "z":"e6090836.aef008",
3212     "wires":[
3213
3214     ]
3215   },
3216   {
3217     "id":"19070089.9bb2ff",
3218     "type":"for",
3219     "name":"for each vm-type",
3220     "xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
3221     "comments":"",
3222     "outputs":1,
3223     "x":535.3095092773438,
3224     "y":4511.642220497131,
3225     "z":"e6090836.aef008",
3226     "wires":[
3227       [
3228         "4fc0dd78.6aaf84"
3229       ]
3230     ]
3231   },
3232   {
3233     "id":"4fc0dd78.6aaf84",
3234     "type":"for",
3235     "name":"for each vm-network",
3236     "xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
3237     "comments":"",
3238     "outputs":1,
3239     "x":745.9761867523193,
3240     "y":4509.976043701172,
3241     "z":"e6090836.aef008",
3242     "wires":[
3243       [
3244         "df808ad1.2e9658"
3245       ]
3246     ]
3247   },
3248   {
3249     "id":"a464ded4.4fcf4",
3250     "type":"returnFailure",
3251     "name":"return failure",
3252     "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",
3253     "comments":"",
3254     "x":1555.9762382507324,
3255     "y":4565.642075538635,
3256     "z":"e6090836.aef008",
3257     "wires":[
3258
3259     ]
3260   },
3261   {
3262     "id":"d1e2a302.f2a79",
3263     "type":"set",
3264     "name":"set ip-version 6, use-dhcp, and ip-count",
3265     "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-version'\n   value='6' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].use-dhcp'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-use-dhcp`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-count'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-count`' />\n",
3266     "comments":"",
3267     "x":1974.7857208251953,
3268     "y":2900.213849067688,
3269     "z":"e6090836.aef008",
3270     "wires":[
3271
3272     ]
3273   },
3274   {
3275     "id":"3c49e4a4.13796c",
3276     "type":"switchNode",
3277     "name":"switch use-dhcp",
3278     "xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].use-dhcp`'>\n",
3279     "comments":"",
3280     "outputs":1,
3281     "x":1640.500114440918,
3282     "y":3147.356598854065,
3283     "z":"e6090836.aef008",
3284     "wires":[
3285       [
3286         "2413eb81.677464"
3287       ]
3288     ]
3289   },
3290   {
3291     "id":"2413eb81.677464",
3292     "type":"outcome",
3293     "name":"N",
3294     "xml":"<outcome value='N'>\n",
3295     "comments":"",
3296     "outputs":1,
3297     "x":1810.5000267028809,
3298     "y":3145.928201675415,
3299     "z":"e6090836.aef008",
3300     "wires":[
3301       [
3302         "97b8ba37.35fdb8"
3303       ]
3304     ]
3305   },
3306   {
3307     "id":"fd735d1.2d1f0a",
3308     "type":"switchNode",
3309     "name":"switch use-dhcp",
3310     "xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].use-dhcp`'>\n",
3311     "comments":"",
3312     "outputs":1,
3313     "x":1247.642837524414,
3314     "y":4236.642521858215,
3315     "z":"e6090836.aef008",
3316     "wires":[
3317       [
3318         "b5446bac.ef4728"
3319       ]
3320     ]
3321   },
3322   {
3323     "id":"b5446bac.ef4728",
3324     "type":"outcome",
3325     "name":"N",
3326     "xml":"<outcome value='N'>\n",
3327     "comments":"",
3328     "outputs":1,
3329     "x":1417.642749786377,
3330     "y":4235.214124679565,
3331     "z":"e6090836.aef008",
3332     "wires":[
3333       [
3334         "bffc2bb7.1135f8"
3335       ]
3336     ]
3337   },
3338   {
3339     "id":"a2e18bff.138e78",
3340     "type":"for",
3341     "name":"for each vm-type",
3342     "xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
3343     "comments":"",
3344     "outputs":1,
3345     "x":534.309455871582,
3346     "y":4641.642714500427,
3347     "z":"e6090836.aef008",
3348     "wires":[
3349       [
3350         "2e24847f.54fa9c"
3351       ]
3352     ]
3353   },
3354   {
3355     "id":"2e24847f.54fa9c",
3356     "type":"for",
3357     "name":"for each vm",
3358     "xml":"<for index='vm-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count`' >\n",
3359     "comments":"",
3360     "outputs":1,
3361     "x":729.3094863891602,
3362     "y":4640.975722312927,
3363     "z":"e6090836.aef008",
3364     "wires":[
3365       [
3366         "2284873e.c8dbc8"
3367       ]
3368     ]
3369   },
3370   {
3371     "id":"cae20484.4fdb28",
3372     "type":"save",
3373     "name":"save VIPR_CONFIGURATION",
3374     "xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"INSERT INTO VIPR_CONFIGURATION (vnf_id, vnf_name, ecomp_service_instance_id, vm_name, cloud_region_id, cloud_owner) VALUES ( $service-data.vnfs.vnf[$vnf-index].vnf-id , $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name , $service-data.service-information.service-instance-id , $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index] , $tmp.vf-module-topology.aic-cloud-region , 'CloudOwner')\" >",
3375     "comments":"",
3376     "outputs":1,
3377     "x":1120.976188659668,
3378     "y":4663.643372535706,
3379     "z":"e6090836.aef008",
3380     "wires":[
3381       [
3382         "4d4ebb0a.8e16a4"
3383       ]
3384     ]
3385   },
3386   {
3387     "id":"317d3d10.b08102",
3388     "type":"comment",
3389     "name":"Not a failure",
3390     "info":"",
3391     "comments":"",
3392     "x":1640.976089477539,
3393     "y":4663.643377304077,
3394     "z":"e6090836.aef008",
3395     "wires":[
3396
3397     ]
3398   },
3399   {
3400     "id":"4d4ebb0a.8e16a4",
3401     "type":"failure",
3402     "name":"failure",
3403     "xml":"<outcome value='failure'>\n",
3404     "comments":"",
3405     "outputs":1,
3406     "x":1330.976173400879,
3407     "y":4663.643522262573,
3408     "z":"e6090836.aef008",
3409     "wires":[
3410       [
3411         "6df75797.6cb868"
3412       ]
3413     ]
3414   },
3415   {
3416     "id":"6df75797.6cb868",
3417     "type":"record",
3418     "name":"record",
3419     "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=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n",
3420     "comments":"",
3421     "outputs":1,
3422     "x":1474.3096160888672,
3423     "y":4663.643360137939,
3424     "z":"e6090836.aef008",
3425     "wires":[
3426       [
3427
3428       ]
3429     ]
3430   },
3431   {
3432     "id":"863bfcf2.a453f",
3433     "type":"call",
3434     "name":"call GENERIC-RESOURCE-API:generate-unique-name",
3435     "xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
3436     "comments":"",
3437     "outputs":1,
3438     "x":2084.3094940185547,
3439     "y":3801.641947746277,
3440     "z":"e6090836.aef008",
3441     "wires":[
3442       [
3443         "41e4565d.44f878"
3444       ]
3445     ]
3446   },
3447   {
3448     "id":"41e4565d.44f878",
3449     "type":"failure",
3450     "name":"failure",
3451     "xml":"<outcome value='failure'>\n",
3452     "comments":"",
3453     "outputs":1,
3454     "x":2371.6905364990234,
3455     "y":3799.4993686676025,
3456     "z":"e6090836.aef008",
3457     "wires":[
3458       [
3459         "892fb77a.70d198"
3460       ]
3461     ]
3462   },
3463   {
3464     "id":"df5529a.8c63fd8",
3465     "type":"set",
3466     "name":"set variables for generating unique name",
3467     "xml":"<set>\n<parameter name='generate-unique-name-input.index-table-name' value='EIPAM_CLIENT_KEY_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vnf_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='CLIENT_KEY' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code + ':' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id + ':' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version + ':'`\" />\n<parameter name='generate-unique-name-input.index-length' value='' />\n",
3468     "comments":"",
3469     "x":2037.6428260803223,
3470     "y":3756.6421089172363,
3471     "z":"e6090836.aef008",
3472     "wires":[
3473
3474     ]
3475   },
3476   {
3477     "id":"892fb77a.70d198",
3478     "type":"returnFailure",
3479     "name":"return failure",
3480     "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=\"`$generate-unique-name-output.error-message`\" />\n",
3481     "comments":"",
3482     "x":2539.547649383545,
3483     "y":3798.9278802871704,
3484     "z":"e6090836.aef008",
3485     "wires":[
3486
3487     ]
3488   },
3489   {
3490     "id":"18e532bb.94aa6d",
3491     "type":"switchNode",
3492     "name":"switch ecomp-generated-naming == 'Y'",
3493     "xml":"<switch test=\"$db.vfc-model.ecomp-generated-naming == 'Y'\">\n",
3494     "comments":"",
3495     "outputs":1,
3496     "x":1014.3095626831055,
3497     "y":2063.309280395508,
3498     "z":"e6090836.aef008",
3499     "wires":[
3500       [
3501         "87402ff0.1c134"
3502       ]
3503     ]
3504   },
3505   {
3506     "id":"87402ff0.1c134",
3507     "type":"outcomeFalse",
3508     "name":"false",
3509     "xml":"<outcome value='false'>\n",
3510     "comments":"",
3511     "outputs":1,
3512     "x":1245.976173400879,
3513     "y":2062.3089113235474,
3514     "z":"e6090836.aef008",
3515     "wires":[
3516       [
3517         "92edfbd1.110d28"
3518       ]
3519     ]
3520   },
3521   {
3522     "id":"92edfbd1.110d28",
3523     "type":"returnFailure",
3524     "name":"return failure",
3525     "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=\"`'ECOMP generated naming is not Y for VFC customization UUID ' + $db.vf-module-to-vfc-mapping[$db-vm-index].vfc_customization_uuid`\" />\n",
3526     "comments":"",
3527     "x":1392.6429138183594,
3528     "y":2061.6423664093018,
3529     "z":"e6090836.aef008",
3530     "wires":[
3531
3532     ]
3533   },
3534   {
3535     "id":"127d9e0e.3be312",
3536     "type":"failure",
3537     "name":"failure",
3538     "xml":"<outcome value='failure'>\n",
3539     "comments":"",
3540     "outputs":1,
3541     "x":1504.3097381591797,
3542     "y":4614.975073814392,
3543     "z":"e6090836.aef008",
3544     "wires":[
3545       [
3546         "d222b70d.a58a58"
3547       ]
3548     ]
3549   },
3550   {
3551     "id":"4cc71899.b3ae38",
3552     "type":"comment",
3553     "name":"Not a failure",
3554     "info":"",
3555     "comments":"",
3556     "x":1827.6427917480469,
3557     "y":4613.308896064758,
3558     "z":"e6090836.aef008",
3559     "wires":[
3560
3561     ]
3562   },
3563   {
3564     "id":"d222b70d.a58a58",
3565     "type":"record",
3566     "name":"record",
3567     "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=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n",
3568     "comments":"",
3569     "outputs":1,
3570     "x":1650.3096733093262,
3571     "y":4614.975707054138,
3572     "z":"e6090836.aef008",
3573     "wires":[
3574       [
3575
3576       ]
3577     ]
3578   },
3579   {
3580     "id":"2284873e.c8dbc8",
3581     "type":"block",
3582     "name":"block : atomic",
3583     "xml":"<block atomic=\"true\">",
3584     "atomic":"true",
3585     "outputs":1,
3586     "x":897.642879486084,
3587     "y":4639.975566864014,
3588     "z":"e6090836.aef008",
3589     "wires":[
3590       [
3591         "a73701c2.3e09c",
3592         "cae20484.4fdb28"
3593       ]
3594     ]
3595   },
3596   {
3597     "id":"a73701c2.3e09c",
3598     "type":"delete",
3599     "name":"delete any pre-existing records in VIPR_CONFIGURATION",
3600     "xml":"<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='DELETE from VIPR_CONFIGURATION WHERE vnf_id = $service-data.vnfs.vnf[$vnf-index].vnf-id\n     AND ecomp_service_instance_id = $service-data.service-information.service-instance-id\n     AND vm_name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' >",
3601     "comments":"",
3602     "outputs":1,
3603     "x":1210.976203918457,
3604     "y":4615.309706687927,
3605     "z":"e6090836.aef008",
3606     "wires":[
3607       [
3608         "127d9e0e.3be312"
3609       ]
3610     ]
3611   },
3612   {
3613     "id":"68800eba.46188",
3614     "type":"update",
3615     "name":"update EIPAM_IP_ASSIGNMENTS to PENDING_DELETE...",
3616     "xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id\" >",
3617     "comments":"",
3618     "outputs":1,
3619     "x":2917.6429481506348,
3620     "y":4251.64261007309,
3621     "z":"e6090836.aef008",
3622     "wires":[
3623       [
3624         "7301d98d.3c90a8"
3625       ]
3626     ]
3627   },
3628   {
3629     "id":"b6002bec.a5ed88",
3630     "type":"set",
3631     "name":"set status variable",
3632     "xml":"<set>\n<parameter name='tmp.status' value=\"`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`\" />\n",
3633     "comments":"",
3634     "x":2787.642910003662,
3635     "y":4204.9759821891785,
3636     "z":"e6090836.aef008",
3637     "wires":[
3638
3639     ]
3640   },
3641   {
3642     "id":"7301d98d.3c90a8",
3643     "type":"failure",
3644     "name":"failure",
3645     "xml":"<outcome value='failure'>\n",
3646     "comments":"",
3647     "outputs":1,
3648     "x":3222.6428565979004,
3649     "y":4249.97590970993,
3650     "z":"e6090836.aef008",
3651     "wires":[
3652       [
3653         "4d39b53.eeb304c"
3654       ]
3655     ]
3656   },
3657   {
3658     "id":"4d39b53.eeb304c",
3659     "type":"returnFailure",
3660     "name":"return failure",
3661     "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 on rollback\" />\n",
3662     "comments":"",
3663     "x":3412.6428833007812,
3664     "y":4249.785645008087,
3665     "z":"e6090836.aef008",
3666     "wires":[
3667
3668     ]
3669   },
3670   {
3671     "id":"72df2a3e.4251b4",
3672     "type":"execute",
3673     "name":"execute EIPAM unassign IP addresses",
3674     "xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"unassignIPAddress\">\n<parameter name=\"deleteEIPAM_status\" value=\"`$tmp.status`\" />\n",
3675     "comments":"",
3676     "outputs":1,
3677     "x":2852.6429176330566,
3678     "y":4296.642653942108,
3679     "z":"e6090836.aef008",
3680     "wires":[
3681       [
3682         "77b8e820.4a3988"
3683       ]
3684     ]
3685   },
3686   {
3687     "id":"77b8e820.4a3988",
3688     "type":"failure",
3689     "name":"failure",
3690     "xml":"<outcome value='failure'>\n",
3691     "comments":"",
3692     "outputs":1,
3693     "x":3089.309543609619,
3694     "y":4296.642596721649,
3695     "z":"e6090836.aef008",
3696     "wires":[
3697       [
3698         "89dbd50f.fd7c38"
3699       ]
3700     ]
3701   },
3702   {
3703     "id":"89dbd50f.fd7c38",
3704     "type":"returnFailure",
3705     "name":"return failure",
3706     "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 EIPAM unassign IP address on rollback\" />\n",
3707     "comments":"",
3708     "x":3279.3095703125,
3709     "y":4296.452332019806,
3710     "z":"e6090836.aef008",
3711     "wires":[
3712
3713     ]
3714   },
3715   {
3716     "id":"54652b75.46fe04",
3717     "type":"comment",
3718     "name":"roll back EIPAM",
3719     "info":"",
3720     "comments":"",
3721     "x":2762.6429481506348,
3722     "y":4151.642935593923,
3723     "z":"e6090836.aef008",
3724     "wires":[
3725
3726     ]
3727   },
3728   {
3729     "id":"2bdf3ccf.849b44",
3730     "type":"block",
3731     "name":"block : atomic",
3732     "xml":"<block atomic=\"true\">",
3733     "atomic":"true",
3734     "outputs":1,
3735     "x":2594.3095741271973,
3736     "y":4254.97610616684,
3737     "z":"e6090836.aef008",
3738     "wires":[
3739       [
3740         "b6002bec.a5ed88",
3741         "68800eba.46188",
3742         "72df2a3e.4251b4"
3743       ]
3744     ]
3745   },
3746   {
3747     "id":"1dc4fe5.fac6902",
3748     "type":"block",
3749     "name":"block : atomic",
3750     "xml":"<block atomic=\"true\">",
3751     "atomic":"true",
3752     "outputs":1,
3753     "x":862.6428985595703,
3754     "y":4347.975544929504,
3755     "z":"e6090836.aef008",
3756     "wires":[
3757       [
3758         "8f30d2e9.eb03c",
3759         "b9241d04.9c139"
3760       ]
3761     ]
3762   },
3763   {
3764     "id":"34139b45.2d0504",
3765     "type":"block",
3766     "name":"block : atomic",
3767     "xml":"<block atomic=\"true\">",
3768     "atomic":"true",
3769     "outputs":1,
3770     "x":867.6428375244141,
3771     "y":4410.641888618469,
3772     "z":"e6090836.aef008",
3773     "wires":[
3774       [
3775         "753f20c5.bbede",
3776         "b9241d04.9c139"
3777       ]
3778     ]
3779   },
3780   {
3781     "id":"e705dca.d8b482",
3782     "type":"block",
3783     "name":"block : atomic",
3784     "xml":"<block atomic=\"true\">",
3785     "atomic":"true",
3786     "outputs":1,
3787     "x":1387.6428146362305,
3788     "y":4470.641909599304,
3789     "z":"e6090836.aef008",
3790     "wires":[
3791       [
3792         "8b99afe7.e214",
3793         "b9241d04.9c139"
3794       ]
3795     ]
3796   },
3797   {
3798     "id":"76421cc4.4bff94",
3799     "type":"block",
3800     "name":"block : atomic",
3801     "xml":"<block atomic=\"true\">",
3802     "atomic":"true",
3803     "outputs":1,
3804     "x":1382.642734527588,
3805     "y":4548.641750335693,
3806     "z":"e6090836.aef008",
3807     "wires":[
3808       [
3809         "a464ded4.4fcf4",
3810         "b9241d04.9c139"
3811       ]
3812     ]
3813   },
3814   {
3815     "id":"f2ed6314.ee329",
3816     "type":"set",
3817     "name":"set vf-module-to-vfc-mapping length to 0",
3818     "xml":"<set>\n<parameter name='db.vf-module-to-vfc-mapping_length' value='0' />\n",
3819     "comments":"",
3820     "x":1161.500099182129,
3821     "y":1896.9280138015747,
3822     "z":"e6090836.aef008",
3823     "wires":[
3824
3825     ]
3826   },
3827   {
3828     "id":"16f89ad6.193655",
3829     "type":"set",
3830     "name":"set vfc-to-network-role-mapping length to 0",
3831     "xml":"<set>\n<parameter name='db.vfc-to-network-role-mapping_length' value='0' />\n",
3832     "comments":"",
3833     "x":1614.7857818603516,
3834     "y":2375.9280395507812,
3835     "z":"e6090836.aef008",
3836     "wires":[
3837
3838     ]
3839   },
3840   {
3841     "id":"454e063f.718d08",
3842     "type":"switchNode",
3843     "name":"switch plans-index > 0",
3844     "xml":"<switch test='`$plans-index &gt; 0`'>\n",
3845     "comments":"",
3846     "outputs":1,
3847     "x":550.5000762939453,
3848     "y":4127.356512069702,
3849     "z":"e6090836.aef008",
3850     "wires":[
3851       [
3852         "7b0f806f.b0b31"
3853       ]
3854     ]
3855   },
3856   {
3857     "id":"7b0f806f.b0b31",
3858     "type":"outcomeTrue",
3859     "name":"true",
3860     "xml":"<outcome value='true'>\n",
3861     "comments":"",
3862     "outputs":1,
3863     "x":733.3572158813477,
3864     "y":4127.356721878052,
3865     "z":"e6090836.aef008",
3866     "wires":[
3867       [
3868         "26166f96.2f2dc"
3869       ]
3870     ]
3871   },
3872   {
3873     "id":"b9241d04.9c139",
3874     "type":"switchNode",
3875     "name":"switch plans-index > 0",
3876     "xml":"<switch test='`$plans-index &gt; 0`'>\n",
3877     "comments":"",
3878     "outputs":1,
3879     "x":2241.6665000915527,
3880     "y":4254.261742115021,
3881     "z":"e6090836.aef008",
3882     "wires":[
3883       [
3884         "d4e55b39.4088b8"
3885       ]
3886     ]
3887   },
3888   {
3889     "id":"d4e55b39.4088b8",
3890     "type":"outcomeTrue",
3891     "name":"true",
3892     "xml":"<outcome value='true'>\n",
3893     "comments":"",
3894     "outputs":1,
3895     "x":2424.523639678955,
3896     "y":4254.26195192337,
3897     "z":"e6090836.aef008",
3898     "wires":[
3899       [
3900         "2bdf3ccf.849b44"
3901       ]
3902     ]
3903   },
3904   {
3905     "id":"aedcd126.656c8",
3906     "type":"set",
3907     "name":"set service-type",
3908     "xml":"<set>\n<parameter name='service-data.service-information.service-type' value='`$service-data.service-information.subscription-service-type`' />\n",
3909     "comments":"EIPAM plug-in needs this attribute set with this name",
3910     "x":530.6666145324707,
3911     "y":4080.92791557312,
3912     "z":"e6090836.aef008",
3913     "wires":[
3914
3915     ]
3916   },
3917   {
3918     "id":"47f3a0dd.9d94b",
3919     "type":"returnFailure",
3920     "name":"return failure",
3921     "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
3922     "comments":"",
3923     "x":269,
3924     "y":4838.749938964844,
3925     "z":"e6090836.aef008",
3926     "wires":[
3927
3928     ]
3929   },
3930   {
3931     "id":"eba5daaf.aa8698",
3932     "type":"comment",
3933     "name":"Fix $ in value",
3934     "info":"",
3935     "comments":"",
3936     "x":774.7499465942383,
3937     "y":4844.000087738037,
3938     "z":"e6090836.aef008",
3939     "wires":[
3940
3941     ]
3942   },
3943   {
3944     "id":"c314b843.e5cd58",
3945     "type":"call",
3946     "name":"call check for VNF-API-preload and copy",
3947     "xml":"<call module='GENERIC-RESOURCE-API' rpc='gw-vfmodule-update' mode='sync' >\n",
3948     "comments":"",
3949     "outputs":1,
3950     "x":604.1668701171875,
3951     "y":4950.9169921875,
3952     "z":"e6090836.aef008",
3953     "wires":[
3954       [
3955
3956       ]
3957     ]
3958   }
3959 ]