[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vf-module-topology-assign-vnf-networks.json
1 [
2     {
3         "id": "c30b96fb.b54ae8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 107.3214340209961,
8         "y": 47.32143020629883,
9         "z": "1faa4c21.138614",
10         "wires": [
11             [
12                 "92128070.77ca8"
13             ]
14         ]
15     },
16     {
17         "id": "92128070.77ca8",
18         "type": "service-logic",
19         "name": "VNF-API ${project.version}",
20         "module": "VNF-API",
21         "version": "${project.version}",
22         "comments": "",
23         "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
24         "outputs": 1,
25         "x": 272.4880905151367,
26         "y": 47.488101959228516,
27         "z": "1faa4c21.138614",
28         "wires": [
29             [
30                 "17c24793.5d4508"
31             ]
32         ]
33     },
34     {
35         "id": "17c24793.5d4508",
36         "type": "method",
37         "name": "method vf-module-topology-assign-vnf-networks",
38         "xml": "<method rpc='vf-module-topology-assign-vnf-networks' mode='sync'>",
39         "comments": "",
40         "outputs": 1,
41         "x": 235.7381134033203,
42         "y": 101.73809432983398,
43         "z": "1faa4c21.138614",
44         "wires": [
45             [
46                 "4de1dc94.aef9f4"
47             ]
48         ]
49     },
50     {
51         "id": "4de1dc94.aef9f4",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "outputs": 1,
57         "x": 188.0714340209961,
58         "y": 150.57143020629883,
59         "z": "1faa4c21.138614",
60         "wires": [
61             [
62                 "70ff54f3.ff0e6c",
63                 "b46a3430.78ab38",
64                 "aaf65e9a.4351f",
65                 "763de398.5ac24c",
66                 "8fc6861.1cc4c78",
67                 "330d0bd.ba072f4",
68                 "3600f85a.1aec98"
69             ]
70         ]
71     },
72     {
73         "id": "dc1fefd3.cd357",
74         "type": "switchNode",
75         "name": "switch test: INPUT network-id = NULL or 0",
76         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-id == '' or $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-id == '0'`\">",
77         "comments": "",
78         "outputs": 1,
79         "x": 764.5137062072754,
80         "y": 701.5578842163086,
81         "z": "1faa4c21.138614",
82         "wires": [
83             [
84                 "ed113fb3.62eda",
85                 "a0ca4ac5.fdc388"
86             ]
87         ]
88     },
89     {
90         "id": "ed113fb3.62eda",
91         "type": "outcomeTrue",
92         "name": "true",
93         "xml": "<outcome value='true'>\n",
94         "comments": "",
95         "outputs": 1,
96         "x": 1039.8771934509277,
97         "y": 745.7397541999817,
98         "z": "1faa4c21.138614",
99         "wires": [
100             [
101                 "aba6d801.11f9a8"
102             ]
103         ]
104     },
105     {
106         "id": "aba6d801.11f9a8",
107         "type": "switchNode",
108         "name": "switch : INPUT network-name = NULL",
109         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-name == '' or $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-name == '0'`\">",
110         "comments": "",
111         "outputs": 1,
112         "x": 1277.659294128418,
113         "y": 745.5837326049805,
114         "z": "1faa4c21.138614",
115         "wires": [
116             [
117                 "18391f2.d637de1",
118                 "d29dc4ee.83b888"
119             ]
120         ]
121     },
122     {
123         "id": "a0ca4ac5.fdc388",
124         "type": "other",
125         "name": "false",
126         "xml": "<outcome value='false'>",
127         "comments": "",
128         "outputs": 1,
129         "x": 1039.8974800109863,
130         "y": 702.4467806816101,
131         "z": "1faa4c21.138614",
132         "wires": [
133             [
134                 "3c76d450.1a1c5c"
135             ]
136         ]
137     },
138     {
139         "id": "18391f2.d637de1",
140         "type": "other",
141         "name": "false",
142         "xml": "<outcome value='false'>",
143         "comments": "",
144         "outputs": 1,
145         "x": 1515.851245880127,
146         "y": 785.139214515686,
147         "z": "1faa4c21.138614",
148         "wires": [
149             [
150                 "4e004f85.49efa"
151             ]
152         ]
153     },
154     {
155         "id": "3c76d450.1a1c5c",
156         "type": "save",
157         "name": "get  AnAI - l3-network by id",
158         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-id\" \n\tpfx=\"tmp.AnAI.l3network\">\n",
159         "comments": "",
160         "outputs": 1,
161         "x": 1241.1195945739746,
162         "y": 702.4469485282898,
163         "z": "1faa4c21.138614",
164         "wires": [
165             [
166                 "b7314ceb.79175",
167                 "32bd35ee.cb0d2a"
168             ]
169         ]
170     },
171     {
172         "id": "b7314ceb.79175",
173         "type": "success",
174         "name": "not found",
175         "xml": "<outcome value='not-found'>\n",
176         "comments": "",
177         "outputs": 1,
178         "x": 1444.0642852783203,
179         "y": 702.0023970603943,
180         "z": "1faa4c21.138614",
181         "wires": [
182             [
183                 "32309ba2.0ab454"
184             ]
185         ]
186     },
187     {
188         "id": "3c910573.9a235a",
189         "type": "for",
190         "name": "for i : INPUT vnf-networks",
191         "xml": "<for index=\"i\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks_length`\">",
192         "comments": "",
193         "outputs": 1,
194         "x": 546.8075828552246,
195         "y": 559.0505676269531,
196         "z": "1faa4c21.138614",
197         "wires": [
198             [
199                 "dfdb5bcb.cdcf38"
200             ]
201         ]
202     },
203     {
204         "id": "4e004f85.49efa",
205         "type": "save",
206         "name": "get AnAI - l3-network by name",
207         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-name\" \n\tpfx=\"tmp.AnAI.l3network\">\n\n",
208         "comments": "",
209         "outputs": 1,
210         "x": 1726.3532485961914,
211         "y": 784.8810062408447,
212         "z": "1faa4c21.138614",
213         "wires": [
214             [
215                 "127c9bfe.0fbf64",
216                 "7871388.9d854c8"
217             ]
218         ]
219     },
220     {
221         "id": "127c9bfe.0fbf64",
222         "type": "success",
223         "name": "not found",
224         "xml": "<outcome value='not-found'>\n",
225         "comments": "",
226         "outputs": 1,
227         "x": 1947.6032485961914,
228         "y": 785.131067276001,
229         "z": "1faa4c21.138614",
230         "wires": [
231             [
232                 "32309ba2.0ab454"
233             ]
234         ]
235     },
236     {
237         "id": "f0b9ed4f.6db11",
238         "type": "set",
239         "name": "initialize tmp.usePreload = 1 and tmp.AAI.l3network",
240         "xml": "<set>\n<parameter name='tmp.usePreload' value='1' />\n<parameter name='tmp.AnAI.l3network.' value='' />\n",
241         "comments": "",
242         "outputs": 1,
243         "x": 478.3012237548828,
244         "y": 472.77592849731445,
245         "z": "1faa4c21.138614",
246         "wires": [
247             []
248         ]
249     },
250     {
251         "id": "e1f0efe6.81d2e",
252         "type": "block",
253         "name": "block: atomic",
254         "xml": "<block atomic=\"true\">\n",
255         "atomic": "false",
256         "comments": "",
257         "outputs": 1,
258         "x": 138.2354278564453,
259         "y": 472.56047439575195,
260         "z": "1faa4c21.138614",
261         "wires": [
262             [
263                 "f0b9ed4f.6db11",
264                 "6e1813c8.e5e2fc",
265                 "ee2deaea.1bec48"
266             ]
267         ]
268     },
269     {
270         "id": "70ff54f3.ff0e6c",
271         "type": "for",
272         "name": "for j : PRELOAD vnf-networks",
273         "xml": "<for index=\"j\" start=\"0\" end=\"`$vf-module-preload-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
274         "comments": "",
275         "outputs": 1,
276         "x": 272.4603729248047,
277         "y": 385.82141494750977,
278         "z": "1faa4c21.138614",
279         "wires": [
280             [
281                 "e1f0efe6.81d2e"
282             ]
283         ]
284     },
285     {
286         "id": "6e1813c8.e5e2fc",
287         "type": "block",
288         "name": "block: atomic",
289         "xml": "<block atomic=\"true\">\n",
290         "atomic": "false",
291         "comments": "",
292         "outputs": 1,
293         "x": 314.1876983642578,
294         "y": 558.9804592132568,
295         "z": "1faa4c21.138614",
296         "wires": [
297             [
298                 "3c910573.9a235a",
299                 "aeff0ffa.88a75"
300             ]
301         ]
302     },
303     {
304         "id": "dfdb5bcb.cdcf38",
305         "type": "switchNode",
306         "name": "switch : PRELOAD network-role = INPUT",
307         "xml": "<switch test=\"`$vf-module-preload-data.vf-module-topology-information.vnf-assignments.vnf-networks[$j].network-role == $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-role`\">",
308         "comments": "",
309         "outputs": 1,
310         "x": 856.1877632141113,
311         "y": 558.3441305160522,
312         "z": "1faa4c21.138614",
313         "wires": [
314             [
315                 "382cc26b.de833e"
316             ]
317         ]
318     },
319     {
320         "id": "382cc26b.de833e",
321         "type": "outcomeTrue",
322         "name": "true",
323         "xml": "<outcome value='true'>\n",
324         "comments": "",
325         "outputs": 1,
326         "x": 1106.9831886291504,
327         "y": 558.6397728919983,
328         "z": "1faa4c21.138614",
329         "wires": [
330             [
331                 "fb7701c1.24954"
332             ]
333         ]
334     },
335     {
336         "id": "fb7701c1.24954",
337         "type": "block",
338         "name": "block: atomic",
339         "xml": "<block atomic=\"true\">\n",
340         "atomic": "false",
341         "comments": "",
342         "outputs": 1,
343         "x": 465.2687568664551,
344         "y": 659.4189281463623,
345         "z": "1faa4c21.138614",
346         "wires": [
347             [
348                 "dc1fefd3.cd357",
349                 "5a2e54d8.28c0dc",
350                 "bc41d36b.5b0d6"
351             ]
352         ]
353     },
354     {
355         "id": "5a2e54d8.28c0dc",
356         "type": "set",
357         "name": "set tmp.usePreload = 0",
358         "xml": "<set>\n<parameter name='tmp.usePreload' value='0' />\n",
359         "comments": "",
360         "outputs": 1,
361         "x": 705.6323890686035,
362         "y": 659.3280572891235,
363         "z": "1faa4c21.138614",
364         "wires": [
365             []
366         ]
367     },
368     {
369         "id": "d29dc4ee.83b888",
370         "type": "outcomeTrue",
371         "name": "true",
372         "xml": "<outcome value='true'>\n",
373         "comments": "",
374         "outputs": 1,
375         "x": 1515.4091796875,
376         "y": 745.8452072143555,
377         "z": "1faa4c21.138614",
378         "wires": [
379             [
380                 "32309ba2.0ab454"
381             ]
382         ]
383     },
384     {
385         "id": "bc41d36b.5b0d6",
386         "type": "switchNode",
387         "name": "switch : tmp.usePreload= 0",
388         "xml": "<switch test=\"`$tmp.usePreload == 0`\">",
389         "comments": "",
390         "outputs": 1,
391         "x": 705.0207977294922,
392         "y": 971.0733308792114,
393         "z": "1faa4c21.138614",
394         "wires": [
395             [
396                 "9ce9a7a6.6d0d28"
397             ]
398         ]
399     },
400     {
401         "id": "9ce9a7a6.6d0d28",
402         "type": "outcomeTrue",
403         "name": "true",
404         "xml": "<outcome value='true'>\n",
405         "comments": "",
406         "outputs": 1,
407         "x": 906.0206756591797,
408         "y": 971.0734529495239,
409         "z": "1faa4c21.138614",
410         "wires": [
411             [
412                 "df99f43a.192678"
413             ]
414         ]
415     },
416     {
417         "id": "aeff0ffa.88a75",
418         "type": "switchNode",
419         "name": "switch: tmp.usePreload= 1",
420         "xml": "<switch test=\"`$tmp.usePreload == 1`\">",
421         "comments": "",
422         "outputs": 1,
423         "x": 467.8374481201172,
424         "y": 1901.7782440185547,
425         "z": "1faa4c21.138614",
426         "wires": [
427             [
428                 "35b40dfd.b6e712"
429             ]
430         ]
431     },
432     {
433         "id": "35b40dfd.b6e712",
434         "type": "other",
435         "name": "true",
436         "xml": "<outcome value='true'>",
437         "comments": "",
438         "outputs": 1,
439         "x": 675.869026184082,
440         "y": 1901.5184955596924,
441         "z": "1faa4c21.138614",
442         "wires": [
443             [
444                 "9aecd914.8483b8"
445             ]
446         ]
447     },
448     {
449         "id": "32309ba2.0ab454",
450         "type": "set",
451         "name": "set tmp.usePreload = 1",
452         "xml": "<set>\n<parameter name='tmp.usePreload' value='1' />\n",
453         "comments": "",
454         "outputs": 1,
455         "x": 1710.0172729492188,
456         "y": 886.6042308807373,
457         "z": "1faa4c21.138614",
458         "wires": [
459             []
460         ]
461     },
462     {
463         "id": "70579eed.d89c5",
464         "type": "returnFailure",
465         "name": "return failure",
466         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'An error occurred while querying AnAI for l3-network with network-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-id`\"  />\n",
467         "comments": "",
468         "x": 1594.9880854288735,
469         "y": 661.1269476148818,
470         "z": "1faa4c21.138614",
471         "wires": []
472     },
473     {
474         "id": "32bd35ee.cb0d2a",
475         "type": "failure",
476         "name": "failure",
477         "xml": "<outcome value='failure'>\n",
478         "comments": "",
479         "outputs": 1,
480         "x": 1437.7658632066514,
481         "y": 661.1269476148818,
482         "z": "1faa4c21.138614",
483         "wires": [
484             [
485                 "70579eed.d89c5"
486             ]
487         ]
488     },
489     {
490         "id": "d5ab10a8.40fb5",
491         "type": "returnFailure",
492         "name": "return failure",
493         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'An error occurred whie querying AnAI for l3-network with network-name = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-name`\"  />\n",
494         "comments": "",
495         "x": 2096.099006652832,
496         "y": 743.3491630554199,
497         "z": "1faa4c21.138614",
498         "wires": []
499     },
500     {
501         "id": "7871388.9d854c8",
502         "type": "failure",
503         "name": "failure",
504         "xml": "<outcome value='failure'>\n",
505         "comments": "",
506         "outputs": 1,
507         "x": 1938.8767844306099,
508         "y": 743.3491630554199,
509         "z": "1faa4c21.138614",
510         "wires": [
511             [
512                 "d5ab10a8.40fb5"
513             ]
514         ]
515     },
516     {
517         "id": "b46a3430.78ab38",
518         "type": "switchNode",
519         "name": "switch ...PRELOAD vnf-networks[]",
520         "xml": "<switch test=\"`$vf-module-preload-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
521         "comments": "",
522         "outputs": 1,
523         "x": 452.07142639160156,
524         "y": 330.0714340209961,
525         "z": "1faa4c21.138614",
526         "wires": [
527             [
528                 "3f756909.e553f6"
529             ]
530         ]
531     },
532     {
533         "id": "3f756909.e553f6",
534         "type": "outcome",
535         "name": "NULL",
536         "xml": "<outcome value=''>",
537         "outputs": 1,
538         "x": 679.5158996582031,
539         "y": 329.5991439819336,
540         "z": "1faa4c21.138614",
541         "wires": [
542             [
543                 "61c7ea59.ae7a54"
544             ]
545         ]
546     },
547     {
548         "id": "61c7ea59.ae7a54",
549         "type": "set",
550         "name": "set PRELOAD vnf-networks[] = 0",
551         "xml": "<set>\n<parameter name = \"vf-module-preload-data.vf-module-topology-information.vnf-assignments.vnf-networks_length\" value=\"0\" />\n",
552         "comments": "",
553         "outputs": 1,
554         "x": 901.0715086195205,
555         "y": 329.59916464487696,
556         "z": "1faa4c21.138614",
557         "wires": [
558             []
559         ]
560     },
561     {
562         "id": "ee2deaea.1bec48",
563         "type": "switchNode",
564         "name": "switch ...INPUT vnf-networks[]",
565         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks_length`\">",
566         "comments": "",
567         "outputs": 1,
568         "x": 367.5714416503906,
569         "y": 513.8214120864868,
570         "z": "1faa4c21.138614",
571         "wires": [
572             [
573                 "b5803df6.ae5a9"
574             ]
575         ]
576     },
577     {
578         "id": "b5803df6.ae5a9",
579         "type": "outcome",
580         "name": "NULL",
581         "xml": "<outcome value=''>",
582         "outputs": 1,
583         "x": 591.0158920288086,
584         "y": 513.5991477966309,
585         "z": "1faa4c21.138614",
586         "wires": [
587             [
588                 "a3eaa269.9cad5"
589             ]
590         ]
591     },
592     {
593         "id": "a3eaa269.9cad5",
594         "type": "set",
595         "name": "set INPUT vnf-networks_length = 0",
596         "xml": "<set>\n<parameter name='vf-module-topology-operation-input.vf-module-request-information.vnf-networks_length' value='0' />\n",
597         "comments": "",
598         "outputs": 1,
599         "x": 823.571500990126,
600         "y": 513.5991684595742,
601         "z": "1faa4c21.138614",
602         "wires": [
603             []
604         ]
605     },
606     {
607         "id": "a5aed389.d71d6",
608         "type": "comment",
609         "name": "For each preload network, see if there is an override in input",
610         "info": "",
611         "comments": "",
612         "x": 741.6826629638672,
613         "y": 422.0436592102051,
614         "z": "1faa4c21.138614",
615         "wires": []
616     },
617     {
618         "id": "238b5959.ad0836",
619         "type": "comment",
620         "name": "CALLED BY vf-module-topology-assign AND vf-module-topology-changeassign",
621         "info": "",
622         "comments": "",
623         "x": 793.7380828857422,
624         "y": 92.68254470825195,
625         "z": "1faa4c21.138614",
626         "wires": []
627     },
628     {
629         "id": "763de398.5ac24c",
630         "type": "set",
631         "name": "set: service-data =+ input",
632         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.\" value=\"vf-module-topology-operation-input.\" />",
633         "comments": "",
634         "outputs": 1,
635         "x": 423.8492031097412,
636         "y": 239.015869140625,
637         "z": "1faa4c21.138614",
638         "wires": [
639             []
640         ]
641     },
642     {
643         "id": "aaf65e9a.4351f",
644         "type": "set",
645         "name": "set: service-data = preload-data",
646         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.\" value=\"vf-module-preload-data.\" />",
647         "comments": "",
648         "outputs": 1,
649         "x": 443.75331687927246,
650         "y": 197.162353515625,
651         "z": "1faa4c21.138614",
652         "wires": [
653             []
654         ]
655     },
656     {
657         "id": "8fc6861.1cc4c78",
658         "type": "returnSuccess",
659         "name": "return success",
660         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
661         "comments": "",
662         "x": 396.19046783447266,
663         "y": 2271.0118932724,
664         "z": "1faa4c21.138614",
665         "wires": []
666     },
667     {
668         "id": "330d0bd.ba072f4",
669         "type": "switchNode",
670         "name": "switch: preload order-status = PendingAssignment",
671         "xml": "<switch test=\"`$vf-module-preload-data.oper-status.order-status == PendingAssignment`\">",
672         "comments": "",
673         "outputs": 1,
674         "x": 500.8492126464844,
675         "y": 150.57143306732178,
676         "z": "1faa4c21.138614",
677         "wires": [
678             [
679                 "4c5e6e0b.0d9a"
680             ]
681         ]
682     },
683     {
684         "id": "471ae763.ed73c8",
685         "type": "returnFailure",
686         "name": "return failure",
687         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid preload-data order status'/>",
688         "comments": "",
689         "x": 917.7884559631348,
690         "y": 150.26844310760498,
691         "z": "1faa4c21.138614",
692         "wires": []
693     },
694     {
695         "id": "4c5e6e0b.0d9a",
696         "type": "other",
697         "name": "false",
698         "xml": "<outcome value='false'>",
699         "comments": "",
700         "outputs": 1,
701         "x": 768.4553451538086,
702         "y": 150.2683687210083,
703         "z": "1faa4c21.138614",
704         "wires": [
705             [
706                 "471ae763.ed73c8"
707             ]
708         ]
709     },
710     {
711         "id": "3600f85a.1aec98",
712         "type": "set",
713         "name": "set: vf-module-id",
714         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.vf-module-id\" value=\"`$vf-module-topology-operation-input.vf-module-request-information.vf-module-id`\"/>",
715         "comments": "",
716         "outputs": 1,
717         "x": 397.17071533203125,
718         "y": 283.51190757751465,
719         "z": "1faa4c21.138614",
720         "wires": [
721             []
722         ]
723     },
724     {
725         "id": "5b189a42.545814",
726         "type": "for",
727         "name": "for k : SERVICE_DATA vnf-networks",
728         "xml": "<for index=\"k\" start=\"0\" end=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
729         "comments": "",
730         "outputs": 1,
731         "x": 774,
732         "y": 1174,
733         "z": "1faa4c21.138614",
734         "wires": [
735             [
736                 "a749d767.017348"
737             ]
738         ]
739     },
740     {
741         "id": "a749d767.017348",
742         "type": "switchNode",
743         "name": "switch: SERVICE-DATA network-role = INPUT",
744         "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].network-role == $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].network-role`\">",
745         "comments": "",
746         "outputs": 1,
747         "x": 1134.9634094238281,
748         "y": 1173.099287033081,
749         "z": "1faa4c21.138614",
750         "wires": [
751             [
752                 "b3cb6d4f.0288f"
753             ]
754         ]
755     },
756     {
757         "id": "b3cb6d4f.0288f",
758         "type": "outcomeTrue",
759         "name": "true",
760         "xml": "<outcome value='true'>\n",
761         "comments": "",
762         "outputs": 1,
763         "x": 1414.5088195800781,
764         "y": 1173.144941329956,
765         "z": "1faa4c21.138614",
766         "wires": [
767             [
768                 "24634a0a.d7c076"
769             ]
770         ]
771     },
772     {
773         "id": "de134847.1f4e48",
774         "type": "set",
775         "name": "set: SERVICE_DATA vnf-networks = AAI DATA",
776         "xml": "<set>\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].network-name\" value=\"`$tmp.AnAI.l3network.network-name`\" />\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].network-id\" value=\"`$tmp.AnAI.l3network.network-id`\" />\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].neutron-id\" value=\"`$tmp.AnAI.l3network.neutron-network-id`\" />\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].contrail-network-fqdn\" value=\"`$tmp.AnAI.l3network.contrail-network-fqdn`\" />\n",
777         "comments": "",
778         "outputs": 1,
779         "x": 1892.982032775879,
780         "y": 1172.0794134140015,
781         "z": "1faa4c21.138614",
782         "wires": [
783             []
784         ]
785     },
786     {
787         "id": "24634a0a.d7c076",
788         "type": "block",
789         "name": "block",
790         "xml": "<block>\n",
791         "atomic": "false",
792         "comments": "",
793         "outputs": 1,
794         "x": 1574.9354400634766,
795         "y": 1172.961480140686,
796         "z": "1faa4c21.138614",
797         "wires": [
798             [
799                 "73a4d8d5.c06308",
800                 "748cdef5.bc80f",
801                 "de134847.1f4e48"
802             ]
803         ]
804     },
805     {
806         "id": "a8393abf.7fcee8",
807         "type": "comment",
808         "name": "Use INPUT vnf-networks to override preload",
809         "info": "",
810         "comments": "",
811         "x": 880.2924880981445,
812         "y": 1064.4257173538208,
813         "z": "1faa4c21.138614",
814         "wires": []
815     },
816     {
817         "id": "181bc12d.03d83f",
818         "type": "switchNode",
819         "name": "switch: INPUT sbunet-name != NULL",
820         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].subnet-name != ''`\">",
821         "comments": "",
822         "outputs": 1,
823         "x": 2357.911766052246,
824         "y": 1280.5684156417847,
825         "z": "1faa4c21.138614",
826         "wires": [
827             [
828                 "b1aab41.1658748"
829             ]
830         ]
831     },
832     {
833         "id": "b1aab41.1658748",
834         "type": "outcomeTrue",
835         "name": "true",
836         "xml": "<outcome value='true'>\n",
837         "comments": "",
838         "outputs": 1,
839         "x": 2595.1617317199707,
840         "y": 1280.3183946609497,
841         "z": "1faa4c21.138614",
842         "wires": [
843             [
844                 "ebb89f74.08857"
845             ]
846         ]
847     },
848     {
849         "id": "ce3cc9d0.4cee08",
850         "type": "set",
851         "name": "set: service-data = AnAI - subnet-id ",
852         "xml": "<set>\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].subnet-id\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].neutron-subnet-id`\" />",
853         "comments": "",
854         "outputs": 1,
855         "x": 3334.42374420166,
856         "y": 1393.8661336898804,
857         "z": "1faa4c21.138614",
858         "wires": [
859             []
860         ]
861     },
862     {
863         "id": "ebb89f74.08857",
864         "type": "switchNode",
865         "name": "switch: tmp.AnAI.l3network.subnets.subnet != NULL",
866         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet_length != ''`\">",
867         "comments": "",
868         "outputs": 1,
869         "x": 2460.923728942871,
870         "y": 1330.866021156311,
871         "z": "1faa4c21.138614",
872         "wires": [
873             [
874                 "c8277f6a.50834"
875             ]
876         ]
877     },
878     {
879         "id": "94133efa.587e1",
880         "type": "for",
881         "name": "for i : tmp.AnAI.l3network.subnets.subnet[]",
882         "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">",
883         "comments": "",
884         "outputs": 1,
885         "x": 2469.352195739746,
886         "y": 1395.2946138381958,
887         "z": "1faa4c21.138614",
888         "wires": [
889             [
890                 "d4e7d16e.714f7"
891             ]
892         ]
893     },
894     {
895         "id": "d4e7d16e.714f7",
896         "type": "switchNode",
897         "name": "switch: AnAI == INPUT - subnet-name",
898         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$i].subnet-name == $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].subnet-name`\">",
899         "comments": "",
900         "outputs": 1,
901         "x": 2842.102149963379,
902         "y": 1394.5446977615356,
903         "z": "1faa4c21.138614",
904         "wires": [
905             [
906                 "cf289518.3fc368"
907             ]
908         ]
909     },
910     {
911         "id": "cf289518.3fc368",
912         "type": "outcomeTrue",
913         "name": "true",
914         "xml": "<outcome value='true'>\n",
915         "comments": "",
916         "outputs": 1,
917         "x": 3100.50484085083,
918         "y": 1394.4117259979248,
919         "z": "1faa4c21.138614",
920         "wires": [
921             [
922                 "ce3cc9d0.4cee08"
923             ]
924         ]
925     },
926     {
927         "id": "c8277f6a.50834",
928         "type": "outcomeTrue",
929         "name": "true",
930         "xml": "<outcome value='true'>\n",
931         "comments": "",
932         "outputs": 1,
933         "x": 2746.2452125549316,
934         "y": 1330.449411869049,
935         "z": "1faa4c21.138614",
936         "wires": [
937             [
938                 "94133efa.587e1"
939             ]
940         ]
941     },
942     {
943         "id": "748cdef5.bc80f",
944         "type": "switchNode",
945         "name": "switch: INPUT sbunet-id != NULL",
946         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].subnet-id != ''`\">",
947         "comments": "",
948         "outputs": 1,
949         "x": 1851.483211517334,
950         "y": 1236.8065958023071,
951         "z": "1faa4c21.138614",
952         "wires": [
953             [
954                 "87aac3bf.46e16",
955                 "8c173a36.9127d8"
956             ]
957         ]
958     },
959     {
960         "id": "1bed8cec.efe9e3",
961         "type": "set",
962         "name": "set: data-data = INPUT - subnet-id ",
963         "xml": "<set>\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].subnet-id\" value=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].subnet-id`\" />",
964         "comments": "",
965         "outputs": 1,
966         "x": 2349.7332077026367,
967         "y": 1237.0565977096558,
968         "z": "1faa4c21.138614",
969         "wires": [
970             []
971         ]
972     },
973     {
974         "id": "87aac3bf.46e16",
975         "type": "outcomeTrue",
976         "name": "true",
977         "xml": "<outcome value='true'>\n",
978         "comments": "",
979         "outputs": 1,
980         "x": 2107.7331771850586,
981         "y": 1236.5565748214722,
982         "z": "1faa4c21.138614",
983         "wires": [
984             [
985                 "1bed8cec.efe9e3"
986             ]
987         ]
988     },
989     {
990         "id": "8c173a36.9127d8",
991         "type": "outcomeFalse",
992         "name": "false",
993         "xml": "<outcome value='false'>\n",
994         "comments": "",
995         "outputs": 1,
996         "x": 2108.9832191467285,
997         "y": 1280.5565958023071,
998         "z": "1faa4c21.138614",
999         "wires": [
1000             [
1001                 "181bc12d.03d83f"
1002             ]
1003         ]
1004     },
1005     {
1006         "id": "12ef162a.3f441a",
1007         "type": "switchNode",
1008         "name": "switch: INPUT ipv6-sbunet-name != NULL",
1009         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].ipv6-subnet-name != ''`\">",
1010         "comments": "",
1011         "outputs": 1,
1012         "x": 2366.185417175293,
1013         "y": 1508.7114629745483,
1014         "z": "1faa4c21.138614",
1015         "wires": [
1016             [
1017                 "f70a96da.79e438"
1018             ]
1019         ]
1020     },
1021     {
1022         "id": "f70a96da.79e438",
1023         "type": "outcomeTrue",
1024         "name": "true",
1025         "xml": "<outcome value='true'>\n",
1026         "comments": "",
1027         "outputs": 1,
1028         "x": 2613.4353828430176,
1029         "y": 1508.4614419937134,
1030         "z": "1faa4c21.138614",
1031         "wires": [
1032             [
1033                 "f829dcc5.c6de7"
1034             ]
1035         ]
1036     },
1037     {
1038         "id": "cc6db42c.cf6378",
1039         "type": "set",
1040         "name": "set: service-data = AnAI - ipv6-subnet-id ",
1041         "xml": "<set>\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].ipv6-subnet-id\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].neutron-subnet-id`\" />",
1042         "comments": "",
1043         "outputs": 1,
1044         "x": 3342.697395324707,
1045         "y": 1622.009181022644,
1046         "z": "1faa4c21.138614",
1047         "wires": [
1048             []
1049         ]
1050     },
1051     {
1052         "id": "f829dcc5.c6de7",
1053         "type": "switchNode",
1054         "name": "switch: tmp.AnAI.l3network.subnets.subnet != NULL",
1055         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet_length != ''`\">",
1056         "comments": "",
1057         "outputs": 1,
1058         "x": 2469.197380065918,
1059         "y": 1559.0090684890747,
1060         "z": "1faa4c21.138614",
1061         "wires": [
1062             [
1063                 "fdeef706.829528"
1064             ]
1065         ]
1066     },
1067     {
1068         "id": "4f132648.69d248",
1069         "type": "for",
1070         "name": "for i : tmp.AnAI.l3network.subnets.subnet[]",
1071         "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">",
1072         "comments": "",
1073         "outputs": 1,
1074         "x": 2477.625846862793,
1075         "y": 1623.4376611709595,
1076         "z": "1faa4c21.138614",
1077         "wires": [
1078             [
1079                 "cae2d965.d355a8"
1080             ]
1081         ]
1082     },
1083     {
1084         "id": "cae2d965.d355a8",
1085         "type": "switchNode",
1086         "name": "switch: AnAI == INPUT - ipv6-subnet-name",
1087         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$i].subnet-name == $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].ipv6-subnet-name`\">",
1088         "comments": "",
1089         "outputs": 1,
1090         "x": 2850.375801086426,
1091         "y": 1622.6877450942993,
1092         "z": "1faa4c21.138614",
1093         "wires": [
1094             [
1095                 "1d5397be.45f898"
1096             ]
1097         ]
1098     },
1099     {
1100         "id": "1d5397be.45f898",
1101         "type": "outcomeTrue",
1102         "name": "true",
1103         "xml": "<outcome value='true'>\n",
1104         "comments": "",
1105         "outputs": 1,
1106         "x": 3108.778491973877,
1107         "y": 1622.5547733306885,
1108         "z": "1faa4c21.138614",
1109         "wires": [
1110             [
1111                 "cc6db42c.cf6378"
1112             ]
1113         ]
1114     },
1115     {
1116         "id": "fdeef706.829528",
1117         "type": "outcomeTrue",
1118         "name": "true",
1119         "xml": "<outcome value='true'>\n",
1120         "comments": "",
1121         "outputs": 1,
1122         "x": 2754.5188636779785,
1123         "y": 1558.5924592018127,
1124         "z": "1faa4c21.138614",
1125         "wires": [
1126             [
1127                 "4f132648.69d248"
1128             ]
1129         ]
1130     },
1131     {
1132         "id": "73a4d8d5.c06308",
1133         "type": "switchNode",
1134         "name": "switch: INPUT ipv6-sbunet-id != NULL",
1135         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].ipv6-subnet-id != ''`\">",
1136         "comments": "",
1137         "outputs": 1,
1138         "x": 1859.7568626403809,
1139         "y": 1464.9496431350708,
1140         "z": "1faa4c21.138614",
1141         "wires": [
1142             [
1143                 "9cb75fc8.62948",
1144                 "64acb997.b0bf68"
1145             ]
1146         ]
1147     },
1148     {
1149         "id": "ae50028d.0d9f6",
1150         "type": "set",
1151         "name": "set: service-data = INPUT - ipv6-subnet-id ",
1152         "xml": "<set>\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].ipv6-subnet-id\" value=\"`$vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$i].ipv6-subnet-id`\" />",
1153         "comments": "",
1154         "outputs": 1,
1155         "x": 2367.0068588256836,
1156         "y": 1465.1996450424194,
1157         "z": "1faa4c21.138614",
1158         "wires": [
1159             []
1160         ]
1161     },
1162     {
1163         "id": "9cb75fc8.62948",
1164         "type": "outcomeTrue",
1165         "name": "true",
1166         "xml": "<outcome value='true'>\n",
1167         "comments": "",
1168         "outputs": 1,
1169         "x": 2116.0068283081055,
1170         "y": 1464.6996221542358,
1171         "z": "1faa4c21.138614",
1172         "wires": [
1173             [
1174                 "ae50028d.0d9f6"
1175             ]
1176         ]
1177     },
1178     {
1179         "id": "64acb997.b0bf68",
1180         "type": "outcomeFalse",
1181         "name": "false",
1182         "xml": "<outcome value='false'>\n",
1183         "comments": "",
1184         "outputs": 1,
1185         "x": 2117.2568702697754,
1186         "y": 1508.6996431350708,
1187         "z": "1faa4c21.138614",
1188         "wires": [
1189             [
1190                 "12ef162a.3f441a"
1191             ]
1192         ]
1193     },
1194     {
1195         "id": "df99f43a.192678",
1196         "type": "block",
1197         "name": "block",
1198         "xml": "<block>\n",
1199         "atomic": "false",
1200         "comments": "",
1201         "outputs": 1,
1202         "x": 515.8282470703125,
1203         "y": 1070.390067100525,
1204         "z": "1faa4c21.138614",
1205         "wires": [
1206             [
1207                 "44440d79.5a1ee4",
1208                 "5b189a42.545814"
1209             ]
1210         ]
1211     },
1212     {
1213         "id": "44440d79.5a1ee4",
1214         "type": "switchNode",
1215         "name": "switch:vf-module-service-data...vnf-networks_length",
1216         "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
1217         "comments": "",
1218         "outputs": 1,
1219         "x": 831.0153274536133,
1220         "y": 1124.4490270614624,
1221         "z": "1faa4c21.138614",
1222         "wires": [
1223             [
1224                 "63358e06.3f664"
1225             ]
1226         ]
1227     },
1228     {
1229         "id": "63358e06.3f664",
1230         "type": "other",
1231         "name": "NULL",
1232         "xml": "<outcome value=''>\n",
1233         "comments": "",
1234         "outputs": 1,
1235         "x": 1118.5153198242188,
1236         "y": 1124.4490270614624,
1237         "z": "1faa4c21.138614",
1238         "wires": [
1239             [
1240                 "ac876566.e9a498"
1241             ]
1242         ]
1243     },
1244     {
1245         "id": "ac876566.e9a498",
1246         "type": "switchNode",
1247         "name": "set: vf-module-service-data...vnf-networks_length = 0",
1248         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length\" value = \"0\" />",
1249         "comments": "",
1250         "outputs": 1,
1251         "x": 1417.2653198242188,
1252         "y": 1124.4490270614624,
1253         "z": "1faa4c21.138614",
1254         "wires": [
1255             []
1256         ]
1257     },
1258     {
1259         "id": "a64b9779.a71b08",
1260         "type": "success",
1261         "name": "not found",
1262         "xml": "<outcome value='not-found'>\n",
1263         "comments": "",
1264         "outputs": 1,
1265         "x": 1339.638515472412,
1266         "y": 1900.6209201812744,
1267         "z": "1faa4c21.138614",
1268         "wires": [
1269             [
1270                 "4696ff9e.15cd7"
1271             ]
1272         ]
1273     },
1274     {
1275         "id": "3b397c6b.f1ef14",
1276         "type": "set",
1277         "name": "set: SERVICE_DATA vnf-networks = AAI DATA",
1278         "xml": "<set>\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].network-name\" value=\"`$tmp.AnAI.l3network.network-name`\" />\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].network-id\" value=\"`$tmp.AnAI.l3network.network-id`\" />\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].neutron-id\" value=\"`$tmp.AnAI.l3network.neutron-network-id`\" />\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].contrail-network-fqdn\" value=\"`$tmp.AnAI.l3network.contrail-network-fqdn`\" />\n\n",
1279         "comments": "",
1280         "outputs": 1,
1281         "x": 2014.0710487365723,
1282         "y": 2173.3637895584106,
1283         "z": "1faa4c21.138614",
1284         "wires": [
1285             []
1286         ]
1287     },
1288     {
1289         "id": "5d489590.345c3c",
1290         "type": "save",
1291         "name": "get AnAI - l3-network by name",
1292         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $vf-module-preload-data.vf-module-topology-information.vnf-assignments.vnf-networks[$j].network-name\" \n\tpfx=\"tmp.AnAI.l3network\">\n",
1293         "comments": "",
1294         "outputs": 1,
1295         "x": 1116.531536102295,
1296         "y": 1900.8868598937988,
1297         "z": "1faa4c21.138614",
1298         "wires": [
1299             [
1300                 "a64b9779.a71b08",
1301                 "96f0e56a.e21d98",
1302                 "1b8842da.0a0e4d"
1303             ]
1304         ]
1305     },
1306     {
1307         "id": "9aecd914.8483b8",
1308         "type": "block",
1309         "name": "block: atomic",
1310         "xml": "<block atomic=\"true\">\n",
1311         "atomic": "false",
1312         "comments": "",
1313         "outputs": 1,
1314         "x": 858.0431060791016,
1315         "y": 1901.1858234405518,
1316         "z": "1faa4c21.138614",
1317         "wires": [
1318             [
1319                 "5d489590.345c3c",
1320                 "eb351c3a.523a",
1321                 "a1ca6a21.36bfc8"
1322             ]
1323         ]
1324     },
1325     {
1326         "id": "60582a4c.d77b14",
1327         "type": "returnFailure",
1328         "name": "return failure",
1329         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'An error occurred while querying AnAI for l3-network with network-name = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-networks[$j].network-name`\"  />\n",
1330         "comments": "",
1331         "x": 1486.9243507385254,
1332         "y": 1938.4834985733032,
1333         "z": "1faa4c21.138614",
1334         "wires": []
1335     },
1336     {
1337         "id": "96f0e56a.e21d98",
1338         "type": "failure",
1339         "name": "failure",
1340         "xml": "<outcome value='failure'>\n",
1341         "comments": "",
1342         "outputs": 1,
1343         "x": 1331.7021285163032,
1344         "y": 1938.4834985733032,
1345         "z": "1faa4c21.138614",
1346         "wires": [
1347             [
1348                 "60582a4c.d77b14"
1349             ]
1350         ]
1351     },
1352     {
1353         "id": "4696ff9e.15cd7",
1354         "type": "returnFailure",
1355         "name": "return failure",
1356         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'PRELOAD network-name = ' + $vf-module-preload-data.vf-module-topology-information.vnf-assignments.vnf-networks[$j].network-name + ' not found in AnAI'`\"  />\n",
1357         "comments": "",
1358         "x": 1505.9243812561035,
1359         "y": 1900.4835233688354,
1360         "z": "1faa4c21.138614",
1361         "wires": []
1362     },
1363     {
1364         "id": "1f867022.29e93",
1365         "type": "switchNode",
1366         "name": "switch: SERVICE-DATA network-role = PRELOAD",
1367         "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].network-role == $vf-module-preload-data.vf-module-topology-information.vnf-assignments.vnf-networks[$j].network-role`\">",
1368         "comments": "",
1369         "outputs": 1,
1370         "x": 1264.674373626709,
1371         "y": 2173.2336616516113,
1372         "z": "1faa4c21.138614",
1373         "wires": [
1374             [
1375                 "e72c07ef.a09cd8"
1376             ]
1377         ]
1378     },
1379     {
1380         "id": "e72c07ef.a09cd8",
1381         "type": "outcomeTrue",
1382         "name": "true",
1383         "xml": "<outcome value='true'>\n",
1384         "comments": "",
1385         "outputs": 1,
1386         "x": 1549.0770645141602,
1387         "y": 2173.1006898880005,
1388         "z": "1faa4c21.138614",
1389         "wires": [
1390             [
1391                 "946a7c8e.c755c"
1392             ]
1393         ]
1394     },
1395     {
1396         "id": "eb351c3a.523a",
1397         "type": "for",
1398         "name": "for k : SERVICE_DATA vnf-networks",
1399         "xml": "<for index=\"k\" start=\"0\" end=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
1400         "comments": "",
1401         "outputs": 1,
1402         "x": 1134.4244194030762,
1403         "y": 2120.483539581299,
1404         "z": "1faa4c21.138614",
1405         "wires": [
1406             [
1407                 "1f867022.29e93"
1408             ]
1409         ]
1410     },
1411     {
1412         "id": "4c2a528c.ae82fc",
1413         "type": "switchNode",
1414         "name": "switch: tmp.AnAI.l3network.network-id == null",
1415         "xml": "<switch test=\"`$tmp.AnAI.l3network.network-id == ''`\">",
1416         "comments": "",
1417         "outputs": 1,
1418         "x": 1597.317310333252,
1419         "y": 1976.3764724731445,
1420         "z": "1faa4c21.138614",
1421         "wires": [
1422             [
1423                 "c00f083d.1aa798"
1424             ]
1425         ]
1426     },
1427     {
1428         "id": "c00f083d.1aa798",
1429         "type": "other",
1430         "name": "true",
1431         "xml": "<outcome value='true'>",
1432         "comments": "",
1433         "outputs": 1,
1434         "x": 1859.567310333252,
1435         "y": 1976.3764724731445,
1436         "z": "1faa4c21.138614",
1437         "wires": [
1438             [
1439                 "45a1f95e.d33e58"
1440             ]
1441         ]
1442     },
1443     {
1444         "id": "45a1f95e.d33e58",
1445         "type": "returnFailure",
1446         "name": "return failure",
1447         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'An error occurred while querying l3-network with network-name = ' + $vf-module-preload-data.vf-module-topology-information.vnf-assignments.vnf-networks[$j].network-name + ' , it is likely that there are more than one l3-newtork object with the same network-name in AnAI.'`\"  />\n",
1448         "comments": "",
1449         "x": 2013.567310333252,
1450         "y": 1976.8764724731445,
1451         "z": "1faa4c21.138614",
1452         "wires": []
1453     },
1454     {
1455         "id": "1b8842da.0a0e4d",
1456         "type": "success",
1457         "name": "success",
1458         "xml": "<outcome value='success'>\n",
1459         "comments": "",
1460         "outputs": 1,
1461         "x": 1337.317295074463,
1462         "y": 1976.1264533996582,
1463         "z": "1faa4c21.138614",
1464         "wires": [
1465             [
1466                 "4c2a528c.ae82fc"
1467             ]
1468         ]
1469     },
1470     {
1471         "id": "a1ca6a21.36bfc8",
1472         "type": "switchNode",
1473         "name": "switch: vf-module-service-data...vnf-networks_length",
1474         "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
1475         "comments": "",
1476         "outputs": 1,
1477         "x": 1189.995891571045,
1478         "y": 2071.305072784424,
1479         "z": "1faa4c21.138614",
1480         "wires": [
1481             [
1482                 "2beaa433.a0358c"
1483             ]
1484         ]
1485     },
1486     {
1487         "id": "2beaa433.a0358c",
1488         "type": "other",
1489         "name": "NULL",
1490         "xml": "<outcome value=''>\n",
1491         "comments": "",
1492         "outputs": 1,
1493         "x": 1477.4958839416504,
1494         "y": 2071.305072784424,
1495         "z": "1faa4c21.138614",
1496         "wires": [
1497             [
1498                 "46d2dad3.6e7a34"
1499             ]
1500         ]
1501     },
1502     {
1503         "id": "46d2dad3.6e7a34",
1504         "type": "switchNode",
1505         "name": "set: vf-module-service-data...vnf-networks_length = 0",
1506         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length\" value = \"0\" />",
1507         "comments": "",
1508         "outputs": 1,
1509         "x": 1776.2458839416504,
1510         "y": 2071.305072784424,
1511         "z": "1faa4c21.138614",
1512         "wires": [
1513             []
1514         ]
1515     },
1516     {
1517         "id": "19586604.772bba",
1518         "type": "switchNode",
1519         "name": "switch: SERVICE-DATA sbunet-id == NULL",
1520         "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].subnet-id == ''`\">",
1521         "comments": "",
1522         "outputs": 1,
1523         "x": 2000.0316200256348,
1524         "y": 2225.2693090438843,
1525         "z": "1faa4c21.138614",
1526         "wires": [
1527             [
1528                 "b3750df1.dad78"
1529             ]
1530         ]
1531     },
1532     {
1533         "id": "946a7c8e.c755c",
1534         "type": "block",
1535         "name": "block",
1536         "xml": "<block>",
1537         "atomic": "true",
1538         "comments": "",
1539         "outputs": 1,
1540         "x": 1707.0316123962402,
1541         "y": 2173.2693090438843,
1542         "z": "1faa4c21.138614",
1543         "wires": [
1544             [
1545                 "3b397c6b.f1ef14",
1546                 "19586604.772bba",
1547                 "a54a422d.7f289"
1548             ]
1549         ]
1550     },
1551     {
1552         "id": "b3750df1.dad78",
1553         "type": "outcomeTrue",
1554         "name": "true",
1555         "xml": "<outcome value='true'>\n",
1556         "comments": "",
1557         "outputs": 1,
1558         "x": 2256.2815856933594,
1559         "y": 2225.0192880630493,
1560         "z": "1faa4c21.138614",
1561         "wires": [
1562             [
1563                 "1fb12a07.945fd6"
1564             ]
1565         ]
1566     },
1567     {
1568         "id": "1fb12a07.945fd6",
1569         "type": "switchNode",
1570         "name": "switch: SERVICE-DATA sbunet-name != NULL",
1571         "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].subnet-name != ''`\">",
1572         "comments": "",
1573         "outputs": 1,
1574         "x": 2082.6267700195312,
1575         "y": 2285.174117088318,
1576         "z": "1faa4c21.138614",
1577         "wires": [
1578             [
1579                 "7263aff8.1dc94"
1580             ]
1581         ]
1582     },
1583     {
1584         "id": "7263aff8.1dc94",
1585         "type": "outcomeTrue",
1586         "name": "true",
1587         "xml": "<outcome value='true'>\n",
1588         "comments": "",
1589         "outputs": 1,
1590         "x": 2347.876735687256,
1591         "y": 2284.924096107483,
1592         "z": "1faa4c21.138614",
1593         "wires": [
1594             [
1595                 "1e753aed.9f0f55"
1596             ]
1597         ]
1598     },
1599     {
1600         "id": "1cc5f67b.c5836a",
1601         "type": "set",
1602         "name": "set: service-data = AnAI - subnet-id ",
1603         "xml": "<set>\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].subnet-id\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].neutron-subnet-id`\" />",
1604         "comments": "",
1605         "outputs": 1,
1606         "x": 3104.1387329101562,
1607         "y": 2408.043137550354,
1608         "z": "1faa4c21.138614",
1609         "wires": [
1610             []
1611         ]
1612     },
1613     {
1614         "id": "1e753aed.9f0f55",
1615         "type": "switchNode",
1616         "name": "switch: tmp.AnAI.l3network.subnets.subnet != NULL",
1617         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet_length != ''`\">",
1618         "comments": "",
1619         "outputs": 1,
1620         "x": 2201.3529663085938,
1621         "y": 2346.1146154403687,
1622         "z": "1faa4c21.138614",
1623         "wires": [
1624             [
1625                 "80ab5bcc.2e28c8"
1626             ]
1627         ]
1628     },
1629     {
1630         "id": "ea48a7cf.4c4df8",
1631         "type": "for",
1632         "name": "for i : tmp.AnAI.l3network.subnets.subnet[]",
1633         "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">",
1634         "comments": "",
1635         "outputs": 1,
1636         "x": 2239.067184448242,
1637         "y": 2409.4716176986694,
1638         "z": "1faa4c21.138614",
1639         "wires": [
1640             [
1641                 "145c2385.46aa9c"
1642             ]
1643         ]
1644     },
1645     {
1646         "id": "145c2385.46aa9c",
1647         "type": "switchNode",
1648         "name": "switch: AnAI == service-data - subnet-name",
1649         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$i].subnet-name == $vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].subnet-name`\">",
1650         "comments": "",
1651         "outputs": 1,
1652         "x": 2611.817138671875,
1653         "y": 2408.7217016220093,
1654         "z": "1faa4c21.138614",
1655         "wires": [
1656             [
1657                 "b42e690f.505ff8"
1658             ]
1659         ]
1660     },
1661     {
1662         "id": "b42e690f.505ff8",
1663         "type": "outcomeTrue",
1664         "name": "true",
1665         "xml": "<outcome value='true'>\n",
1666         "comments": "",
1667         "outputs": 1,
1668         "x": 2870.219829559326,
1669         "y": 2408.5887298583984,
1670         "z": "1faa4c21.138614",
1671         "wires": [
1672             [
1673                 "1cc5f67b.c5836a"
1674             ]
1675         ]
1676     },
1677     {
1678         "id": "80ab5bcc.2e28c8",
1679         "type": "outcomeTrue",
1680         "name": "true",
1681         "xml": "<outcome value='true'>\n",
1682         "comments": "",
1683         "outputs": 1,
1684         "x": 2486.6744499206543,
1685         "y": 2345.6980061531067,
1686         "z": "1faa4c21.138614",
1687         "wires": [
1688             [
1689                 "ea48a7cf.4c4df8"
1690             ]
1691         ]
1692     },
1693     {
1694         "id": "5296c6fd.9fcb48",
1695         "type": "switchNode",
1696         "name": "switch: SERVICE-DATA ipv6-sbunet-name != NULL",
1697         "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].ipv6-subnet-name != ''`\">",
1698         "comments": "",
1699         "outputs": 1,
1700         "x": 2096.4482421875,
1701         "y": 2544.9955739974976,
1702         "z": "1faa4c21.138614",
1703         "wires": [
1704             [
1705                 "e32aea1f.9758e8"
1706             ]
1707         ]
1708     },
1709     {
1710         "id": "e32aea1f.9758e8",
1711         "type": "outcomeTrue",
1712         "name": "true",
1713         "xml": "<outcome value='true'>\n",
1714         "comments": "",
1715         "outputs": 1,
1716         "x": 2381.6982078552246,
1717         "y": 2544.7455530166626,
1718         "z": "1faa4c21.138614",
1719         "wires": [
1720             [
1721                 "384e37ed.ea75c8"
1722             ]
1723         ]
1724     },
1725     {
1726         "id": "13d42cf8.7179b3",
1727         "type": "set",
1728         "name": "set: service-data = AnAI - ipv6-subnet-id ",
1729         "xml": "<set>\n<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].ipv6-subnet-id\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].neutron-subnet-id`\" />",
1730         "comments": "",
1731         "outputs": 1,
1732         "x": 3127.9600982666016,
1733         "y": 2660.007555961609,
1734         "z": "1faa4c21.138614",
1735         "wires": [
1736             []
1737         ]
1738     },
1739     {
1740         "id": "384e37ed.ea75c8",
1741         "type": "switchNode",
1742         "name": "switch: tmp.AnAI.l3network.subnets.subnet != NULL",
1743         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet_length != ''`\">",
1744         "comments": "",
1745         "outputs": 1,
1746         "x": 2193.7459716796875,
1747         "y": 2603.7931451797485,
1748         "z": "1faa4c21.138614",
1749         "wires": [
1750             [
1751                 "21db5d22.4f1eb2"
1752             ]
1753         ]
1754     },
1755     {
1756         "id": "1f1251f4.1e980e",
1757         "type": "for",
1758         "name": "for i : tmp.AnAI.l3network.subnets.subnet[]",
1759         "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">",
1760         "comments": "",
1761         "outputs": 1,
1762         "x": 2262.8885498046875,
1763         "y": 2661.4360361099243,
1764         "z": "1faa4c21.138614",
1765         "wires": [
1766             [
1767                 "c4b44e57.fc7a1"
1768             ]
1769         ]
1770     },
1771     {
1772         "id": "c4b44e57.fc7a1",
1773         "type": "switchNode",
1774         "name": "switch: AnAI == service-data - ipv6-subnet-name",
1775         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$i].subnet-name == $vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].ipv6-subnet-name`\">",
1776         "comments": "",
1777         "outputs": 1,
1778         "x": 2635.6385040283203,
1779         "y": 2660.686120033264,
1780         "z": "1faa4c21.138614",
1781         "wires": [
1782             [
1783                 "95800325.64ed4"
1784             ]
1785         ]
1786     },
1787     {
1788         "id": "95800325.64ed4",
1789         "type": "outcomeTrue",
1790         "name": "true",
1791         "xml": "<outcome value='true'>\n",
1792         "comments": "",
1793         "outputs": 1,
1794         "x": 2894.0411949157715,
1795         "y": 2660.5531482696533,
1796         "z": "1faa4c21.138614",
1797         "wires": [
1798             [
1799                 "13d42cf8.7179b3"
1800             ]
1801         ]
1802     },
1803     {
1804         "id": "21db5d22.4f1eb2",
1805         "type": "outcomeTrue",
1806         "name": "true",
1807         "xml": "<outcome value='true'>\n",
1808         "comments": "",
1809         "outputs": 1,
1810         "x": 2479.067455291748,
1811         "y": 2603.3765358924866,
1812         "z": "1faa4c21.138614",
1813         "wires": [
1814             [
1815                 "1f1251f4.1e980e"
1816             ]
1817         ]
1818     },
1819     {
1820         "id": "b6579139.05a4d",
1821         "type": "comment",
1822         "name": "Use Preload Data",
1823         "info": "",
1824         "comments": "",
1825         "x": 453.5230941772461,
1826         "y": 1850.9603958129883,
1827         "z": "1faa4c21.138614",
1828         "wires": []
1829     },
1830     {
1831         "id": "a54a422d.7f289",
1832         "type": "switchNode",
1833         "name": "switch: SERVICE-DATA ipv6-sbunet-id == NULL",
1834         "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$k].ipv6-subnet-id == ''`\">",
1835         "comments": "",
1836         "outputs": 1,
1837         "x": 2010.781494140625,
1838         "y": 2492.055146217346,
1839         "z": "1faa4c21.138614",
1840         "wires": [
1841             [
1842                 "c01ff5de.4ee4b8"
1843             ]
1844         ]
1845     },
1846     {
1847         "id": "c01ff5de.4ee4b8",
1848         "type": "outcomeTrue",
1849         "name": "true",
1850         "xml": "<outcome value='true'>\n",
1851         "comments": "",
1852         "outputs": 1,
1853         "x": 2295.0314598083496,
1854         "y": 2491.8051252365112,
1855         "z": "1faa4c21.138614",
1856         "wires": [
1857             [
1858                 "5296c6fd.9fcb48"
1859             ]
1860         ]
1861     }
1862 ]