[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_network-topology-changeassign.json
1 [
2     {
3         "id": "adccb6.8424d348",
4         "type": "block",
5         "name": "block : atomic",
6         "xml": "<block atomic=\"true\">",
7         "atomic": "true",
8         "outputs": 1,
9         "x": 178.7500114440918,
10         "y": 167.50000190734863,
11         "z": "b24c83f7.abbc6",
12         "wires": [
13             [
14                 "c7828b0a.e799e8",
15                 "2212dd2d.8e7942",
16                 "2dfb355b.d5d24a",
17                 "313c1584.4f97fa",
18                 "6c413597.876f3c",
19                 "34af06b5.07d33a",
20                 "59c57e09.0c9bd",
21                 "c10e73d.da8889",
22                 "bb8ce764.d17888",
23                 "b16ab5f2.35a148",
24                 "f15dac05.a23f",
25                 "10056ed4.c3d191",
26                 "b4cd1414.581b48",
27                 "e456340c.466478",
28                 "eca5ffa4.23d73",
29                 "bd2d9b6e.b5c1d8"
30             ]
31         ]
32     },
33     {
34         "id": "c7828b0a.e799e8",
35         "type": "get-resource",
36         "name": "get AnAI - l3-network",
37         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.l3network\">\n",
38         "comments": "",
39         "outputs": 1,
40         "x": 424.80941009521484,
41         "y": 168.38485431671143,
42         "z": "b24c83f7.abbc6",
43         "wires": [
44             [
45                 "812ba46c.1b8558",
46                 "8ace8ce6.55a0e"
47             ]
48         ]
49     },
50     {
51         "id": "2212dd2d.8e7942",
52         "type": "switchNode",
53         "name": "switch: AnAI == PRELOAD - network-name",
54         "xml": "<switch test=\"`$tmp.AnAI.l3network.network-name == $preload-data.network-topology-information.network-topology-identifier.network-name`\">",
55         "comments": "",
56         "outputs": 1,
57         "x": 493.2222099304199,
58         "y": 340.5555057525635,
59         "z": "b24c83f7.abbc6",
60         "wires": [
61             [
62                 "f97c22c3.bd33d"
63             ]
64         ]
65     },
66     {
67         "id": "2dfb355b.d5d24a",
68         "type": "for",
69         "name": "for loop k - tmp.AnAI.l3network.subnets.subnet",
70         "xml": "<for index=\"k\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">\n",
71         "comments": "",
72         "outputs": 1,
73         "x": 499.5236930847168,
74         "y": 515.6143531799316,
75         "z": "b24c83f7.abbc6",
76         "wires": [
77             [
78                 "4dd3576.8062ba8"
79             ]
80         ]
81     },
82     {
83         "id": "99484323.6781e",
84         "type": "for",
85         "name": "for loop i - PRELOAD subnets",
86         "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.subnets_length`\">\n",
87         "comments": "",
88         "outputs": 1,
89         "x": 847.464298248291,
90         "y": 1611.5709714889526,
91         "z": "b24c83f7.abbc6",
92         "wires": [
93             [
94                 "caf58dc4.3309b"
95             ]
96         ]
97     },
98     {
99         "id": "313c1584.4f97fa",
100         "type": "returnSuccess",
101         "name": "return success",
102         "xml": "<return status=\"success\">\n\t<parameter name=\"networkId\" value=\"`$network-topology-operation-input.network-request-information.network-id`\" />\n\t<parameter name=\"error-code\" value=\"200\" />",
103         "comments": "",
104         "x": 284.05884170532227,
105         "y": 6246.302718162537,
106         "z": "b24c83f7.abbc6",
107         "wires": []
108     },
109     {
110         "id": "812ba46c.1b8558",
111         "type": "not-found",
112         "name": "not found",
113         "xml": "<outcome value='not-found'>\n",
114         "comments": "",
115         "outputs": 1,
116         "x": 611.7143592834473,
117         "y": 209.57915782928467,
118         "z": "b24c83f7.abbc6",
119         "wires": [
120             [
121                 "90e7717c.4ff42"
122             ]
123         ]
124     },
125     {
126         "id": "90e7717c.4ff42",
127         "type": "returnFailure",
128         "name": "return failure",
129         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"`'network-id: ' + $network-topology-operation-input.network-request-information.network-id + 'not found in AnAI'`\" />",
130         "comments": "",
131         "x": 774.3531341552734,
132         "y": 209.4681453704834,
133         "z": "b24c83f7.abbc6",
134         "wires": []
135     },
136     {
137         "id": "6a707f17.e585d",
138         "type": "block",
139         "name": "block : atomic",
140         "xml": "<block atomic='true'>",
141         "atomic": "true",
142         "comments": "",
143         "outputs": 1,
144         "x": 641.8493194580078,
145         "y": 654.6338815689087,
146         "z": "b24c83f7.abbc6",
147         "wires": [
148             [
149                 "e1540d8d.4554a",
150                 "15930eb5.9d2c61"
151             ]
152         ]
153     },
154     {
155         "id": "c69a9fad.d395d",
156         "type": "set",
157         "name": "initialize tmp.start-address-match = 0",
158         "xml": "<set>\n<parameter name='tmp.start-address-match' value='0' />\n",
159         "comments": "",
160         "x": 714.3761596679688,
161         "y": 563.1682300567627,
162         "z": "b24c83f7.abbc6",
163         "wires": [
164             []
165         ]
166     },
167     {
168         "id": "cb84ba2b.90bd48",
169         "type": "block",
170         "name": "block : atomic",
171         "xml": "<block atomic='true'>",
172         "atomic": "true",
173         "comments": "",
174         "outputs": 1,
175         "x": 549.4607391357422,
176         "y": 1776.8211612701416,
177         "z": "b24c83f7.abbc6",
178         "wires": [
179             [
180                 "766397f9.d8d1f8",
181                 "9f8d35e4.e55ae8"
182             ]
183         ]
184     },
185     {
186         "id": "7945c8d8.383a58",
187         "type": "set",
188         "name": "initialize tmp.start-address-match = 0",
189         "xml": "<set>\n<parameter name=\"tmp.start-address-match\" value=\"0\" />\n",
190         "comments": "",
191         "x": 738.2764015197754,
192         "y": 1709.0573635101318,
193         "z": "b24c83f7.abbc6",
194         "wires": [
195             []
196         ]
197     },
198     {
199         "id": "e1540d8d.4554a",
200         "type": "for",
201         "name": "for loop n PRELOAD subnets",
202         "xml": "<for index=\"n\" start=\"0\" end=\"`$preload-data.network-topology-information.subnets_length`\">\n",
203         "comments": "",
204         "outputs": 1,
205         "x": 874.579891204834,
206         "y": 655.1577501296997,
207         "z": "b24c83f7.abbc6",
208         "wires": [
209             [
210                 "94c41929.7cf038"
211             ]
212         ]
213     },
214     {
215         "id": "4fd8628d.a08a8c",
216         "type": "switchNode",
217         "name": "switch: tmp.start-address-match = 0",
218         "xml": "<switch test=\"`$tmp.start-address-match == 0`\">",
219         "comments": "",
220         "outputs": 1,
221         "x": 989.4622459411621,
222         "y": 1282.7005062103271,
223         "z": "b24c83f7.abbc6",
224         "wires": [
225             [
226                 "d695fd69.34476"
227             ]
228         ]
229     },
230     {
231         "id": "766397f9.d8d1f8",
232         "type": "for",
233         "name": "for loop j - AnAI l3subnet",
234         "xml": "<for index=\"j\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">\n",
235         "comments": "",
236         "outputs": 1,
237         "x": 770.6567459106445,
238         "y": 1777.2368459701538,
239         "z": "b24c83f7.abbc6",
240         "wires": [
241             [
242                 "a27e439b.1f5f7"
243             ]
244         ]
245     },
246     {
247         "id": "d695fd69.34476",
248         "type": "outcomeTrue",
249         "name": "true",
250         "xml": "<outcome value='true'>\n",
251         "comments": "",
252         "outputs": 1,
253         "x": 1226.8745765686035,
254         "y": 1282.2680130004883,
255         "z": "b24c83f7.abbc6",
256         "wires": [
257             [
258                 "df441732.5a6038"
259             ]
260         ]
261     },
262     {
263         "id": "e08b1d05.35c67",
264         "type": "outcomeTrue",
265         "name": "true",
266         "xml": "<outcome value='true'>\n",
267         "comments": "",
268         "outputs": 1,
269         "x": 933.4417266845703,
270         "y": 1831.371304512024,
271         "z": "b24c83f7.abbc6",
272         "wires": [
273             [
274                 "f26659b9.bdc948"
275             ]
276         ]
277     },
278     {
279         "id": "94c41929.7cf038",
280         "type": "switchNode",
281         "name": "switch: AnAI-k == PRELOAD-n start-address",
282         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$k].network-start-address == $preload-data.network-topology-information.subnets[$n].start-address`\">",
283         "comments": "",
284         "outputs": 1,
285         "x": 887.6592407226562,
286         "y": 706.0110673904419,
287         "z": "b24c83f7.abbc6",
288         "wires": [
289             [
290                 "5c5db431.fc380c"
291             ]
292         ]
293     },
294     {
295         "id": "a27e439b.1f5f7",
296         "type": "switchNode",
297         "name": "switch: PRELOAD-i == AnAI-j start-address",
298         "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$i].start-address == $tmp.AnAI.l3network.subnets.subnet[$j].network-start-address`\">",
299         "comments": "",
300         "outputs": 1,
301         "x": 1084.7081756591797,
302         "y": 1777.8203172683716,
303         "z": "b24c83f7.abbc6",
304         "wires": [
305             [
306                 "c4c3be7b.c7a1b"
307             ]
308         ]
309     },
310     {
311         "id": "f26659b9.bdc948",
312         "type": "block",
313         "name": "block : atomic",
314         "xml": "<block atomic=\"true\">",
315         "atomic": "true",
316         "outputs": 1,
317         "x": 1113.581069946289,
318         "y": 1831.8419494628906,
319         "z": "b24c83f7.abbc6",
320         "wires": [
321             [
322                 "8fd779af.d8ec98",
323                 "b1a240fe.72ecb",
324                 "bdf792c0.b5a28",
325                 "2340601b.c0fbc",
326                 "84c3d0d1.e984c",
327                 "754d89e8.1de998"
328             ]
329         ]
330     },
331     {
332         "id": "5c5db431.fc380c",
333         "type": "outcomeTrue",
334         "name": "true",
335         "xml": "<outcome value='true'>\n",
336         "comments": "",
337         "outputs": 1,
338         "x": 1154.7284240722656,
339         "y": 706.2167139053345,
340         "z": "b24c83f7.abbc6",
341         "wires": [
342             [
343                 "b5badb50.692f18"
344             ]
345         ]
346     },
347     {
348         "id": "df441732.5a6038",
349         "type": "save",
350         "name": "update AnAI - subnet",
351         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$k].subnet-id\" >\n<parameter name=\"orchestration-status\" value=\"pending-delete\" />\n\t\t",
352         "comments": "",
353         "outputs": 1,
354         "x": 1410.3694496154785,
355         "y": 1281.6625576019287,
356         "z": "b24c83f7.abbc6",
357         "wires": [
358             [
359                 "b8c75959.a07998",
360                 "e5068dd8.d58d5",
361                 "150db709.87fab9"
362             ]
363         ]
364     },
365     {
366         "id": "c4c3be7b.c7a1b",
367         "type": "outcomeTrue",
368         "name": "true",
369         "xml": "<outcome value='true'>\n",
370         "comments": "",
371         "outputs": 1,
372         "x": 1335.9098434448242,
373         "y": 1777.2601118087769,
374         "z": "b24c83f7.abbc6",
375         "wires": [
376             [
377                 "b390fee8.578a3"
378             ]
379         ]
380     },
381     {
382         "id": "b8c75959.a07998",
383         "type": "failure",
384         "name": "failure",
385         "xml": "<outcome value='failure'>\n",
386         "comments": "",
387         "outputs": 1,
388         "x": 1603.3452911376953,
389         "y": 1281.5433139801025,
390         "z": "b24c83f7.abbc6",
391         "wires": [
392             [
393                 "c6b0d6cd.d0a058"
394             ]
395         ]
396     },
397     {
398         "id": "272c0e65.707422",
399         "type": "comment",
400         "name": "foreach AnAI l3subnet not found in PRELOAD, set pending-delete",
401         "info": "",
402         "comments": "",
403         "x": 1032.8700065612793,
404         "y": 1158.146183013916,
405         "z": "b24c83f7.abbc6",
406         "wires": []
407     },
408     {
409         "id": "661025a8.9e175c",
410         "type": "comment",
411         "name": "foreach PRELOAD subnet not found in AnAI l3subnet, create subnet in AnAI",
412         "info": "",
413         "comments": "",
414         "x": 626.5205192565918,
415         "y": 1534.1595935821533,
416         "z": "b24c83f7.abbc6",
417         "wires": []
418     },
419     {
420         "id": "5138e1dc.f8066",
421         "type": "switchNode",
422         "name": "switch: AnAI-k == PRELOAD-n cidr-mask",
423         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$k].cidr-mask == $preload-data.network-topology-information.subnets[$n].cidr-mask`\">",
424         "comments": "",
425         "outputs": 1,
426         "x": 1588.1782608032227,
427         "y": 467.1387405395508,
428         "z": "b24c83f7.abbc6",
429         "wires": [
430             [
431                 "da70def2.76425"
432             ]
433         ]
434     },
435     {
436         "id": "5bb8c4e2.6d08bc",
437         "type": "set",
438         "name": "set tmp.start-address-match = 1",
439         "xml": "<set>\n<parameter name='tmp.start-address-match' value='1' />\n",
440         "comments": "",
441         "x": 1560.4662246704102,
442         "y": 418.6142053604126,
443         "z": "b24c83f7.abbc6",
444         "wires": [
445             []
446         ]
447     },
448     {
449         "id": "b5badb50.692f18",
450         "type": "block",
451         "name": "block : atomic",
452         "xml": "<block atomic='true'>",
453         "atomic": "true",
454         "comments": "",
455         "outputs": 1,
456         "x": 1304.9099044799805,
457         "y": 706.583779335022,
458         "z": "b24c83f7.abbc6",
459         "wires": [
460             [
461                 "5bb8c4e2.6d08bc",
462                 "5138e1dc.f8066",
463                 "f67b8249.bf0ed",
464                 "49957628.a77588",
465                 "c6be995.0b46868",
466                 "e67b0a35.1d06e8",
467                 "aa1015d0.f81c38",
468                 "cf30dbbc.caf468",
469                 "ef8f189e.13e928"
470             ]
471         ]
472     },
473     {
474         "id": "28694ef.e6d40b2",
475         "type": "comment",
476         "name": "start-addr matched, compare other subnet attrs",
477         "info": "",
478         "comments": "",
479         "x": 1184.274257659912,
480         "y": 560.822154045105,
481         "z": "b24c83f7.abbc6",
482         "wires": []
483     },
484     {
485         "id": "da70def2.76425",
486         "type": "outcomeFalse",
487         "name": "false",
488         "xml": "<outcome value='false'>\n",
489         "comments": "",
490         "outputs": 1,
491         "x": 1834.7589530944824,
492         "y": 467.59263038635254,
493         "z": "b24c83f7.abbc6",
494         "wires": [
495             [
496                 "90858a29.37fc08"
497             ]
498         ]
499     },
500     {
501         "id": "17ed7289.814ddd",
502         "type": "save",
503         "name": "update AnAI - subnet",
504         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$k].subnet-id\" >\n\t<!-- Update l3network.subnet -->\n\t<parameter name=\"gateway-address\" value=\"`$tmp.gateway-address`\"/>\n\t<parameter name=\"subnet-name\" value=\"`$preload-data.network-topology-information.subnets[$n].subnet-name`\"/>\n\t<parameter name=\"cidr-mask\" value=\"`$preload-data.network-topology-information.subnets[$n].cidr-mask`\"/>\n\t<parameter name=\"dhcp-start\" value=\"`$preload-data.network-topology-information.subnets[$n].dhcp-start-address`\"/>\n\t<parameter name=\"dhcp-end\" value=\"`$preload-data.network-topology-information.subnets[$n].dhcp-end-address`\"/>\n\t<parameter name=\"dhcp-enabled\" value=\"`$tmp.dhcpEnabled.boolean`\"/>\n\t<parameter name=\"orchestration-status\" value=\"pending-update\" />\n\t\t",
505         "comments": "",
506         "outputs": 1,
507         "x": 1941.5383796691895,
508         "y": 1026.5579977035522,
509         "z": "b24c83f7.abbc6",
510         "wires": [
511             [
512                 "2d5ecb94.1f2404",
513                 "80e40fc7.91291",
514                 "c9c8378e.07a4c8"
515             ]
516         ]
517     },
518     {
519         "id": "bfe3db0b.73f948",
520         "type": "comment",
521         "name": "foreach AnAI subnet attr different from PRELOAD, update AnAI and set pending-update",
522         "info": "",
523         "comments": "",
524         "x": 1908.5912628173828,
525         "y": 365.12071228027344,
526         "z": "b24c83f7.abbc6",
527         "wires": []
528     },
529     {
530         "id": "cf30dbbc.caf468",
531         "type": "switchNode",
532         "name": "switch: AnAI-k == PRELOAD-n dhcp-enabled.boolean",
533         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$k].dhcp-enabled == $tmp.dhcpEnabled.boolean`\">",
534         "comments": "",
535         "outputs": 1,
536         "x": 1625.5838432312012,
537         "y": 829.0172414779663,
538         "z": "b24c83f7.abbc6",
539         "wires": [
540             [
541                 "7321a40b.545eac"
542             ]
543         ]
544     },
545     {
546         "id": "7321a40b.545eac",
547         "type": "outcomeFalse",
548         "name": "false",
549         "xml": "<outcome value='false'>\n",
550         "comments": "",
551         "outputs": 1,
552         "x": 1908.4177474975586,
553         "y": 828.9894180297852,
554         "z": "b24c83f7.abbc6",
555         "wires": [
556             [
557                 "1bcbd50a.81742b"
558             ]
559         ]
560     },
561     {
562         "id": "8fd779af.d8ec98",
563         "type": "switchNode",
564         "name": "switch : PRELOAD dhcp-enabled",
565         "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$i].dhcp-enabled`\">",
566         "comments": "",
567         "outputs": 1,
568         "x": 1376.659194946289,
569         "y": 1831.488842010498,
570         "z": "b24c83f7.abbc6",
571         "wires": [
572             [
573                 "d1241924.ed09f8",
574                 "7227226.f5b7ddc"
575             ]
576         ]
577     },
578     {
579         "id": "7227226.f5b7ddc",
580         "type": "other",
581         "name": "N",
582         "xml": "<outcome value='N'>",
583         "comments": "",
584         "outputs": 1,
585         "x": 1624.2147521972656,
586         "y": 1832.4095478057861,
587         "z": "b24c83f7.abbc6",
588         "wires": [
589             [
590                 "2a420bce.572e64"
591             ]
592         ]
593     },
594     {
595         "id": "d1241924.ed09f8",
596         "type": "other",
597         "name": "Y",
598         "xml": "<outcome value='Y'>",
599         "comments": "",
600         "outputs": 1,
601         "x": 1624.881492614746,
602         "y": 1878.8540449142456,
603         "z": "b24c83f7.abbc6",
604         "wires": [
605             [
606                 "797eb8ae.317378"
607             ]
608         ]
609     },
610     {
611         "id": "67602934.d76d68",
612         "type": "set",
613         "name": "set tmp.dhcpEnabled.bolean=false",
614         "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"false\" />\n",
615         "comments": "",
616         "x": 2016.2388725280762,
617         "y": 738.6499919891357,
618         "z": "b24c83f7.abbc6",
619         "wires": [
620             []
621         ]
622     },
623     {
624         "id": "25a34e9f.ba3cb2",
625         "type": "set",
626         "name": "set tmp.dhcpEnabled.boolean=true",
627         "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"true\" />\n",
628         "comments": "",
629         "x": 2017.8779106140137,
630         "y": 780.1221618652344,
631         "z": "b24c83f7.abbc6",
632         "wires": [
633             []
634         ]
635     },
636     {
637         "id": "aa1015d0.f81c38",
638         "type": "switchNode",
639         "name": "switch : PRELOAD-n dhcp-enabled",
640         "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$n].dhcp-enabled`\">",
641         "comments": "",
642         "outputs": 1,
643         "x": 1567.1460990905762,
644         "y": 738.4153118133545,
645         "z": "b24c83f7.abbc6",
646         "wires": [
647             [
648                 "d4a0bbfd.813968",
649                 "7c02b1e6.66023"
650             ]
651         ]
652     },
653     {
654         "id": "7c02b1e6.66023",
655         "type": "other",
656         "name": "N",
657         "xml": "<outcome value='N'>",
658         "comments": "",
659         "outputs": 1,
660         "x": 1797.2017631530762,
661         "y": 738.6931438446045,
662         "z": "b24c83f7.abbc6",
663         "wires": [
664             [
665                 "67602934.d76d68"
666             ]
667         ]
668     },
669     {
670         "id": "d4a0bbfd.813968",
671         "type": "other",
672         "name": "Y",
673         "xml": "<outcome value='Y'>",
674         "comments": "",
675         "outputs": 1,
676         "x": 1796.618564605713,
677         "y": 779.8876571655273,
678         "z": "b24c83f7.abbc6",
679         "wires": [
680             [
681                 "25a34e9f.ba3cb2"
682             ]
683         ]
684     },
685     {
686         "id": "4dd3576.8062ba8",
687         "type": "block",
688         "name": "block : atomic",
689         "xml": "<block atomic='true'>",
690         "atomic": "true",
691         "comments": "",
692         "outputs": 1,
693         "x": 452.6436080932617,
694         "y": 563.4527454376221,
695         "z": "b24c83f7.abbc6",
696         "wires": [
697             [
698                 "c69a9fad.d395d",
699                 "6a707f17.e585d",
700                 "d6ebf8bb.4c2de8"
701             ]
702         ]
703     },
704     {
705         "id": "d6ebf8bb.4c2de8",
706         "type": "set",
707         "name": "initialize tmp.subnetUpdate = 0",
708         "xml": "<set>\n<parameter name='tmp.subnetUpdate' value='0' />\n",
709         "comments": "",
710         "x": 695.1359634399414,
711         "y": 608.8260974884033,
712         "z": "b24c83f7.abbc6",
713         "wires": [
714             []
715         ]
716     },
717     {
718         "id": "f67b8249.bf0ed",
719         "type": "switchNode",
720         "name": "switch: tmp.subnetUpdate = 1",
721         "xml": "<switch test=\"`$tmp.subnetUpdate == 1`\">",
722         "comments": "",
723         "outputs": 1,
724         "x": 1548.4172706604004,
725         "y": 1027.1630268096924,
726         "z": "b24c83f7.abbc6",
727         "wires": [
728             [
729                 "b0b528dc.173918"
730             ]
731         ]
732     },
733     {
734         "id": "b0b528dc.173918",
735         "type": "outcomeTrue",
736         "name": "true",
737         "xml": "<outcome value='true'>\n",
738         "comments": "",
739         "outputs": 1,
740         "x": 1756.4172706604004,
741         "y": 1026.8297748565674,
742         "z": "b24c83f7.abbc6",
743         "wires": [
744             [
745                 "17ed7289.814ddd"
746             ]
747         ]
748     },
749     {
750         "id": "caf58dc4.3309b",
751         "type": "block",
752         "name": "block : atomic",
753         "xml": "<block atomic='true'>",
754         "atomic": "true",
755         "comments": "",
756         "outputs": 1,
757         "x": 476.2505073547363,
758         "y": 1709.036449432373,
759         "z": "b24c83f7.abbc6",
760         "wires": [
761             [
762                 "7945c8d8.383a58",
763                 "cb84ba2b.90bd48"
764             ]
765         ]
766     },
767     {
768         "id": "d922f181.c8317",
769         "type": "set",
770         "name": "set tmp.l3networkUpdate = 1",
771         "xml": "<set>\n<parameter name=\"tmp.l3networkUpdate\" value=\"1\" />\n",
772         "comments": "",
773         "x": 2512.298324584961,
774         "y": 1271.3373107910156,
775         "z": "b24c83f7.abbc6",
776         "wires": [
777             []
778         ]
779     },
780     {
781         "id": "e5068dd8.d58d5",
782         "type": "success",
783         "name": "success",
784         "xml": "<outcome value='success'>\n",
785         "comments": "",
786         "outputs": 1,
787         "x": 1610.0681495666504,
788         "y": 1435.3452835083008,
789         "z": "b24c83f7.abbc6",
790         "wires": [
791             [
792                 "87593b73.e592d8"
793             ]
794         ]
795     },
796     {
797         "id": "b0faff93.2dd14",
798         "type": "success",
799         "name": "success",
800         "xml": "<outcome value='success'>\n",
801         "comments": "",
802         "outputs": 1,
803         "x": 1640.504550933838,
804         "y": 2245.03267288208,
805         "z": "b24c83f7.abbc6",
806         "wires": [
807             [
808                 "ee66f92b.ccfb18"
809             ]
810         ]
811     },
812     {
813         "id": "f20c0bb3.0d7af8",
814         "type": "set",
815         "name": "set tmp.subnetRollback: orchestraton-status",
816         "xml": "<set>\n  <parameter name=\"tmp.subnetRollback[$x].subnet-id\" value= \"`$tmp.AnAI.l3network.subnets.subnet[$k].subnet-id`\"/>\n  <parameter name=\"tmp.subnetRollback[$x].orchestration-status\" value= \"`$tmp.AnAI.l3network.subnets.subnet[$k].orchestration-status`\" />\n  <parameter name=\"tmp.subnetRollback[$x].type\" value = \"delete\"  />\n  \n\n\n",
817         "comments": "",
818         "x": 2054.0706214904785,
819         "y": 1434.5365447998047,
820         "z": "b24c83f7.abbc6",
821         "wires": [
822             []
823         ]
824     },
825     {
826         "id": "87593b73.e592d8",
827         "type": "block",
828         "name": "block",
829         "xml": "<block>\n",
830         "atomic": "false",
831         "comments": "",
832         "outputs": 1,
833         "x": 1746.9279098510742,
834         "y": 1435.1081132888794,
835         "z": "b24c83f7.abbc6",
836         "wires": [
837             [
838                 "f20c0bb3.0d7af8",
839                 "8f7fc73c.e2c3d8",
840                 "3eceba12.f5d206"
841             ]
842         ]
843     },
844     {
845         "id": "ee66f92b.ccfb18",
846         "type": "block",
847         "name": "block",
848         "xml": "<block>\n",
849         "atomic": "false",
850         "comments": "",
851         "outputs": 1,
852         "x": 1782.9489860534668,
853         "y": 2244.078380584717,
854         "z": "b24c83f7.abbc6",
855         "wires": [
856             [
857                 "eaaa5901.98e238",
858                 "29738f0c.0d796",
859                 "3b6d36e2.4f5b5a"
860             ]
861         ]
862     },
863     {
864         "id": "eaaa5901.98e238",
865         "type": "set",
866         "name": "set tmp.subnetRollback for create",
867         "xml": "<set>\n  <parameter name=\"tmp.subnetRollback[$x].subnet-id\" value= \"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n  <parameter name=\"tmp.subnetRollback[$x].type\" value = \"create\"  />",
868         "comments": "",
869         "x": 2019.2348937988281,
870         "y": 2244.792977333069,
871         "z": "b24c83f7.abbc6",
872         "wires": [
873             []
874         ]
875     },
876     {
877         "id": "8f7fc73c.e2c3d8",
878         "type": "set",
879         "name": "$x++",
880         "xml": "<set>\n  <parameter name=\"x\" value = \"`$x + 1`\"  />\n\n",
881         "comments": "",
882         "x": 1937.775577545166,
883         "y": 1480.5871963500977,
884         "z": "b24c83f7.abbc6",
885         "wires": [
886             []
887         ]
888     },
889     {
890         "id": "29738f0c.0d796",
891         "type": "set",
892         "name": "$x++",
893         "xml": "<set>\n  <parameter name=\"x\" value = \"`$x + 1`\"  />\n\n",
894         "comments": "",
895         "x": 1936.1711730957031,
896         "y": 2290.3573427200317,
897         "z": "b24c83f7.abbc6",
898         "wires": [
899             []
900         ]
901     },
902     {
903         "id": "49957628.a77588",
904         "type": "switchNode",
905         "name": "switch: l3subnet[k] == PRELOAD subnets[n] dhcp-start",
906         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$k].dhcp-start == $preload-data.network-topology-information.subnets[$n].dhcp-start-address`\">",
907         "comments": "",
908         "outputs": 1,
909         "x": 1627.2202644348145,
910         "y": 877.0411176681519,
911         "z": "b24c83f7.abbc6",
912         "wires": [
913             [
914                 "a485a10d.6f0aa"
915             ]
916         ]
917     },
918     {
919         "id": "a485a10d.6f0aa",
920         "type": "outcomeFalse",
921         "name": "false",
922         "xml": "<outcome value='false'>\n",
923         "comments": "",
924         "outputs": 1,
925         "x": 1908.1367721557617,
926         "y": 876.7633323669434,
927         "z": "b24c83f7.abbc6",
928         "wires": [
929             [
930                 "ca9a6174.d3216"
931             ]
932         ]
933     },
934     {
935         "id": "c6be995.0b46868",
936         "type": "switchNode",
937         "name": "switch: l3subnet[k] == PRELOAD subnets[n] dhcp-end",
938         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$k].dhcp-end == $preload-data.network-topology-information.subnets[$n].dhcp-end-address`\">",
939         "comments": "",
940         "outputs": 1,
941         "x": 1624.4424324035645,
942         "y": 924.3744916915894,
943         "z": "b24c83f7.abbc6",
944         "wires": [
945             [
946                 "b7005098.53ee7"
947             ]
948         ]
949     },
950     {
951         "id": "b7005098.53ee7",
952         "type": "outcomeFalse",
953         "name": "false",
954         "xml": "<outcome value='false'>\n",
955         "comments": "",
956         "outputs": 1,
957         "x": 1907.3589401245117,
958         "y": 924.0967063903809,
959         "z": "b24c83f7.abbc6",
960         "wires": [
961             [
962                 "292eb234.c8484e"
963             ]
964         ]
965     },
966     {
967         "id": "e25fc8a9.1116e8",
968         "type": "method",
969         "name": "method network-topology-changeassign",
970         "xml": "<method rpc=\"network-topology-changeassign\" mode=\"sync\">",
971         "comments": "",
972         "outputs": 1,
973         "x": 228.1150665283203,
974         "y": 109.55552768707275,
975         "z": "b24c83f7.abbc6",
976         "wires": [
977             [
978                 "adccb6.8424d348"
979             ]
980         ]
981     },
982     {
983         "id": "202a3e03.4ddbf2",
984         "type": "service-logic",
985         "name": "VNF-API ${project.version}",
986         "module": "VNF-API",
987         "version": "${project.version}",
988         "comments": "",
989         "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}'>",
990         "outputs": 1,
991         "x": 282.5594940185547,
992         "y": 53.22220325469971,
993         "z": "b24c83f7.abbc6",
994         "wires": [
995             [
996                 "e25fc8a9.1116e8"
997             ]
998         ]
999     },
1000     {
1001         "id": "570ef049.e5ed1",
1002         "type": "dgstart",
1003         "name": "DGSTART",
1004         "outputs": 1,
1005         "x": 118.44837951660156,
1006         "y": 53.22220325469971,
1007         "z": "b24c83f7.abbc6",
1008         "wires": [
1009             [
1010                 "202a3e03.4ddbf2"
1011             ]
1012         ]
1013     },
1014     {
1015         "id": "8ace8ce6.55a0e",
1016         "type": "failure",
1017         "name": "failure",
1018         "xml": "<outcome value='failure'>\n",
1019         "comments": "",
1020         "outputs": 1,
1021         "x": 604.6705780029297,
1022         "y": 168.77773571014404,
1023         "z": "b24c83f7.abbc6",
1024         "wires": [
1025             [
1026                 "77d4339b.2c77fc"
1027             ]
1028         ]
1029     },
1030     {
1031         "id": "77d4339b.2c77fc",
1032         "type": "returnFailure",
1033         "name": "return failure",
1034         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Error retrieving l3-network with network-id=' + $network-topology-operation-input.network-request-information.network-id + ' from AnAI'`\" />",
1035         "comments": "",
1036         "x": 763.7816619873047,
1037         "y": 168.9999647140503,
1038         "z": "b24c83f7.abbc6",
1039         "wires": []
1040     },
1041     {
1042         "id": "540da71a.6c5d78",
1043         "type": "GenericXML",
1044         "name": "Execute: generate gateway-address",
1045         "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"getGatewayAddress\">\n\t<parameter name=\"ipAddress\" value=\"`$preload-data.network-topology-information.subnets[$n].start-address`\" />\n\t<parameter name=\"ipVersion\" value=\"`$preload-data.network-topology-information.subnets[$n].ip-version`\" />\n\t<parameter name=\"subnet\" value=\"`$preload-data.network-topology-information.subnets[$n].cidr-mask`\" />\n\t<parameter name=\"ctxVariable\" value=\"tmp.return.generate.gateway-address\" />",
1046         "comments": "",
1047         "outputs": 1,
1048         "x": 2190.293586730957,
1049         "y": 525.952335357666,
1050         "z": "b24c83f7.abbc6",
1051         "wires": [
1052             []
1053         ]
1054     },
1055     {
1056         "id": "66b36d53.f585d4",
1057         "type": "set",
1058         "name": "set tmp.gateway-address",
1059         "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$tmp.return.generate.gateway-address`\" />\n",
1060         "comments": "",
1061         "x": 2807.043712615967,
1062         "y": 588.9523363113403,
1063         "z": "b24c83f7.abbc6",
1064         "wires": [
1065             []
1066         ]
1067     },
1068     {
1069         "id": "e67b0a35.1d06e8",
1070         "type": "switchNode",
1071         "name": "switch : PRELOAD gateway-address",
1072         "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$n].gateway-address`\">",
1073         "comments": "",
1074         "outputs": 1,
1075         "x": 1575.543586730957,
1076         "y": 525.952335357666,
1077         "z": "b24c83f7.abbc6",
1078         "wires": [
1079             [
1080                 "8b3b77a0.09f798",
1081                 "4ab20367.f03b6c"
1082             ]
1083         ]
1084     },
1085     {
1086         "id": "8b3b77a0.09f798",
1087         "type": "outcome",
1088         "name": "NULL",
1089         "xml": "<outcome value=''>",
1090         "outputs": 1,
1091         "x": 1809.543586730957,
1092         "y": 525.952335357666,
1093         "z": "b24c83f7.abbc6",
1094         "wires": [
1095             [
1096                 "4d8feb3a.3484b4"
1097             ]
1098         ]
1099     },
1100     {
1101         "id": "4ab20367.f03b6c",
1102         "type": "other",
1103         "name": "other",
1104         "xml": "<outcome value='Other'>\n",
1105         "comments": "",
1106         "outputs": 1,
1107         "x": 1811.543586730957,
1108         "y": 569.952335357666,
1109         "z": "b24c83f7.abbc6",
1110         "wires": [
1111             [
1112                 "6708d473.7fb07c"
1113             ]
1114         ]
1115     },
1116     {
1117         "id": "6708d473.7fb07c",
1118         "type": "switchNode",
1119         "name": "switch: AnAI-k == PRELOAD-n gateway-address",
1120         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$k].gateway-address == $preload-data.network-topology-information.subnets[$n].gateway-address`\">",
1121         "comments": "",
1122         "outputs": 1,
1123         "x": 2044.543743133545,
1124         "y": 648.6666088104248,
1125         "z": "b24c83f7.abbc6",
1126         "wires": [
1127             [
1128                 "263829a0.412d26",
1129                 "9e7603e8.19f05"
1130             ]
1131         ]
1132     },
1133     {
1134         "id": "263829a0.412d26",
1135         "type": "outcomeFalse",
1136         "name": "false",
1137         "xml": "<outcome value='false'>\n",
1138         "comments": "",
1139         "outputs": 1,
1140         "x": 2321.043743133545,
1141         "y": 648.9166088104248,
1142         "z": "b24c83f7.abbc6",
1143         "wires": [
1144             [
1145                 "ac91a48c.df4748"
1146             ]
1147         ]
1148     },
1149     {
1150         "id": "d3078aa9.d0b7f8",
1151         "type": "set",
1152         "name": "set tmp.gateway-address",
1153         "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$preload-data.network-topology-information.subnets[$n].gateway-address`\" />\n",
1154         "comments": "",
1155         "x": 2808.0437049865723,
1156         "y": 647.0594596862793,
1157         "z": "b24c83f7.abbc6",
1158         "wires": [
1159             []
1160         ]
1161     },
1162     {
1163         "id": "4d8feb3a.3484b4",
1164         "type": "block",
1165         "name": "block",
1166         "xml": "<block>\n",
1167         "atomic": "false",
1168         "comments": "",
1169         "outputs": 1,
1170         "x": 1949.543586730957,
1171         "y": 525.952335357666,
1172         "z": "b24c83f7.abbc6",
1173         "wires": [
1174             [
1175                 "540da71a.6c5d78",
1176                 "e9310489.7af568"
1177             ]
1178         ]
1179     },
1180     {
1181         "id": "ac91a48c.df4748",
1182         "type": "block",
1183         "name": "block",
1184         "xml": "<block>\n",
1185         "atomic": "false",
1186         "comments": "",
1187         "outputs": 1,
1188         "x": 2460.043743133545,
1189         "y": 648.9166088104248,
1190         "z": "b24c83f7.abbc6",
1191         "wires": [
1192             [
1193                 "d3078aa9.d0b7f8",
1194                 "9d0c9a84.7d8738"
1195             ]
1196         ]
1197     },
1198     {
1199         "id": "6e1e477.31893b8",
1200         "type": "returnSuccess",
1201         "name": "set execute_failure = true",
1202         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
1203         "comments": "",
1204         "x": 2527.4322395324707,
1205         "y": 1113.436484336853,
1206         "z": "b24c83f7.abbc6",
1207         "wires": []
1208     },
1209     {
1210         "id": "f97c22c3.bd33d",
1211         "type": "not-found",
1212         "name": "false",
1213         "xml": "<outcome value='false'>\n",
1214         "comments": "",
1215         "outputs": 1,
1216         "x": 747.4722099304199,
1217         "y": 340.55950260162354,
1218         "z": "b24c83f7.abbc6",
1219         "wires": [
1220             [
1221                 "5b49a928.5702a8"
1222             ]
1223         ]
1224     },
1225     {
1226         "id": "5b49a928.5702a8",
1227         "type": "returnFailure",
1228         "name": "return failure",
1229         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"`'No preload network found with network-name = ' + $tmp.AnAI.l3network.network-name + ' in SDNC'`\" />",
1230         "comments": "",
1231         "x": 910.1109848022461,
1232         "y": 340.44849014282227,
1233         "z": "b24c83f7.abbc6",
1234         "wires": []
1235     },
1236     {
1237         "id": "cd77a967.3c6308",
1238         "type": "block",
1239         "name": "block",
1240         "xml": "<block>\n",
1241         "atomic": "false",
1242         "comments": "",
1243         "outputs": 1,
1244         "x": 2295.138832092285,
1245         "y": 1026.595251083374,
1246         "z": "b24c83f7.abbc6",
1247         "wires": [
1248             [
1249                 "6e1e477.31893b8",
1250                 "fcfd2600.488c78",
1251                 "5d6b7d0.b989584"
1252             ]
1253         ]
1254     },
1255     {
1256         "id": "2d5ecb94.1f2404",
1257         "type": "failure",
1258         "name": "failure",
1259         "xml": "<outcome value='failure'>\n",
1260         "comments": "",
1261         "outputs": 1,
1262         "x": 2127.6016120910645,
1263         "y": 1026.3078203201294,
1264         "z": "b24c83f7.abbc6",
1265         "wires": [
1266             [
1267                 "cd77a967.3c6308"
1268             ]
1269         ]
1270     },
1271     {
1272         "id": "80e40fc7.91291",
1273         "type": "success",
1274         "name": "success",
1275         "xml": "<outcome value='success'>\n",
1276         "comments": "",
1277         "outputs": 1,
1278         "x": 2135.163372039795,
1279         "y": 1181.254093170166,
1280         "z": "b24c83f7.abbc6",
1281         "wires": [
1282             [
1283                 "3fce51fa.fd9e2e"
1284             ]
1285         ]
1286     },
1287     {
1288         "id": "c1d7a122.2a287",
1289         "type": "set",
1290         "name": "set tmp.subnetRollback: keys",
1291         "xml": "<set>\n  <parameter name=\"tmp.subnetRollback[$x].subnet-id\" value= \"`$tmp.AnAI.l3network.subnets.subnet[$k].subnet-id`\"/>\n  <parameter name=\"tmp.subnetRollback[$x].type\" value = \"update\"/>\n  \n\n\n",
1292         "comments": "",
1293         "x": 2511.4268836975098,
1294         "y": 1181.4888858795166,
1295         "z": "b24c83f7.abbc6",
1296         "wires": [
1297             []
1298         ]
1299     },
1300     {
1301         "id": "3fce51fa.fd9e2e",
1302         "type": "block",
1303         "name": "block",
1304         "xml": "<block>\n",
1305         "atomic": "false",
1306         "comments": "",
1307         "outputs": 1,
1308         "x": 2273.662322998047,
1309         "y": 1181.2392616271973,
1310         "z": "b24c83f7.abbc6",
1311         "wires": [
1312             [
1313                 "c1d7a122.2a287",
1314                 "61057541.26debc",
1315                 "d922f181.c8317"
1316             ]
1317         ]
1318     },
1319     {
1320         "id": "61057541.26debc",
1321         "type": "set",
1322         "name": "$x++",
1323         "xml": "<set>\n  <parameter name=\"x\" value = \"`$x + 1`\"  />\n\n",
1324         "comments": "",
1325         "x": 2441.1170692443848,
1326         "y": 1227.039545059204,
1327         "z": "b24c83f7.abbc6",
1328         "wires": [
1329             []
1330         ]
1331     },
1332     {
1333         "id": "3d2b0a50.3a8f56",
1334         "type": "returnSuccess",
1335         "name": "set execute_failure = true",
1336         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
1337         "comments": "",
1338         "x": 2039.186595916748,
1339         "y": 1368.3451623916626,
1340         "z": "b24c83f7.abbc6",
1341         "wires": []
1342     },
1343     {
1344         "id": "84c3d0d1.e984c",
1345         "type": "save",
1346         "name": "save AnAI - l3-network.subnets.subnet",
1347         "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.return.generate-subnets-subnet-id.uuid\" >\n\t<!-- Create l3-network object -->\n\t<parameter name=\"network-id\" value=\"`$tmp.AnAI.l3network.network-id`\" />\n\t<parameter name=\"subnet-id\" value=\"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n\t<parameter name=\"gateway-address\" value=\"`$tmp.gateway-address`\" />\n\t<parameter name=\"subnet-name\" value=\"`$preload-data.network-topology-information.subnets[$i].subnet-name`\" />\t\t\n\t<parameter name=\"network-start-address\" value=\"`$preload-data.network-topology-information.subnets[$i].start-address`\" />\n\t<parameter name=\"cidr-mask\" value=\"`$preload-data.network-topology-information.subnets[$i].cidr-mask`\" />\n\t<parameter name=\"ip-version\" value=\"`$preload-data.network-topology-information.subnets[$i].ip-version`\" />\n\t<parameter name=\"dhcp-start\" value=\"`$preload-data.network-topology-information.subnets[$i].dhcp-start-address`\" />\n\t<parameter name=\"dhcp-end\" value=\"`$preload-data.network-topology-information.subnets[$i].dhcp-end-address`\" />\n\t<parameter name=\"dhcp-enabled\" value=\"`$tmp.dhcpEnabled.boolean`\" />\n\t<parameter name=\"orchestration-status\" value=\"pending-create\" />",
1348         "comments": "",
1349         "outputs": 1,
1350         "x": 1392.1628170013428,
1351         "y": 2104.321937561035,
1352         "z": "b24c83f7.abbc6",
1353         "wires": [
1354             [
1355                 "ddd8c8e2.0b4288",
1356                 "b0faff93.2dd14",
1357                 "92778af8.befa68"
1358             ]
1359         ]
1360     },
1361     {
1362         "id": "ddd8c8e2.0b4288",
1363         "type": "failure",
1364         "name": "failure",
1365         "xml": "<outcome value='failure'>\n",
1366         "comments": "",
1367         "outputs": 1,
1368         "x": 1634.7790908813477,
1369         "y": 2104.670440673828,
1370         "z": "b24c83f7.abbc6",
1371         "wires": [
1372             [
1373                 "8dabdae5.57ab58"
1374             ]
1375         ]
1376     },
1377     {
1378         "id": "bdf792c0.b5a28",
1379         "type": "switchNode",
1380         "name": "switch : PRELOAD gateway-address",
1381         "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$i].gateway-address`\">",
1382         "comments": "",
1383         "outputs": 1,
1384         "x": 1391.028793334961,
1385         "y": 1969.615735054016,
1386         "z": "b24c83f7.abbc6",
1387         "wires": [
1388             [
1389                 "b4dd1568.7deed8"
1390             ]
1391         ]
1392     },
1393     {
1394         "id": "b4dd1568.7deed8",
1395         "type": "outcome",
1396         "name": "NULL",
1397         "xml": "<outcome value=''>",
1398         "outputs": 1,
1399         "x": 1614.528793334961,
1400         "y": 1969.615735054016,
1401         "z": "b24c83f7.abbc6",
1402         "wires": [
1403             [
1404                 "cbdcd1c2.b3ed5"
1405             ]
1406         ]
1407     },
1408     {
1409         "id": "a0138d79.73728",
1410         "type": "GenericXML",
1411         "name": "Execute: generate gateway-address",
1412         "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"getGatewayAddress\">\n\t<parameter name=\"ipAddress\" value=\"`$preload-data.network-topology-information.subnets[$i].start-address`\" />\n\t<parameter name=\"ipVersion\" value=\"`$preload-data.network-topology-information.subnets[$i].ip-version`\" />\n\t<parameter name=\"subnet\" value=\"`$preload-data.network-topology-information.subnets[$i].cidr-mask`\" />\n\t<parameter name=\"ctxVariable\" value=\"tmp.return.generate.gateway-address\" />",
1413         "comments": "",
1414         "outputs": 1,
1415         "x": 1987.77880859375,
1416         "y": 1969.3657426834106,
1417         "z": "b24c83f7.abbc6",
1418         "wires": [
1419             []
1420         ]
1421     },
1422     {
1423         "id": "cbdcd1c2.b3ed5",
1424         "type": "block",
1425         "name": "block",
1426         "xml": "<block>\n",
1427         "atomic": "false",
1428         "comments": "",
1429         "outputs": 1,
1430         "x": 1756.2788009643555,
1431         "y": 1969.6157455444336,
1432         "z": "b24c83f7.abbc6",
1433         "wires": [
1434             [
1435                 "a0138d79.73728",
1436                 "c95c4bf2.a7bd28"
1437             ]
1438         ]
1439     },
1440     {
1441         "id": "b1a240fe.72ecb",
1442         "type": "set",
1443         "name": "set tmp.gateway-address",
1444         "xml": "<set>\n<parameter name='tmp.gateway-address' value='`$preload-data.network-topology-information.subnets[$i].gateway-address`' />\n",
1445         "comments": "",
1446         "x": 1353.52880859375,
1447         "y": 1925.8657417297363,
1448         "z": "b24c83f7.abbc6",
1449         "wires": [
1450             []
1451         ]
1452     },
1453     {
1454         "id": "c95c4bf2.a7bd28",
1455         "type": "set",
1456         "name": "set tmp.gateway-address",
1457         "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$tmp.return.generate.gateway-address`\" />\n",
1458         "comments": "",
1459         "x": 1954.27880859375,
1460         "y": 2011.3657445907593,
1461         "z": "b24c83f7.abbc6",
1462         "wires": [
1463             []
1464         ]
1465     },
1466     {
1467         "id": "2340601b.c0fbc",
1468         "type": "call",
1469         "name": "call generate-subnets-subnet-id",
1470         "xml": "<call module=\"VNF-API\" rpc=\"generate-subnets-subnet-id\" mode=\"sync\" >\n",
1471         "comments": "",
1472         "outputs": 1,
1473         "x": 1371.1437721252441,
1474         "y": 2057.4728574752808,
1475         "z": "b24c83f7.abbc6",
1476         "wires": [
1477             [
1478                 "8589e64d.6294f8"
1479             ]
1480         ]
1481     },
1482     {
1483         "id": "8589e64d.6294f8",
1484         "type": "failure",
1485         "name": "failure",
1486         "xml": "<outcome value='failure'>\n",
1487         "comments": "",
1488         "outputs": 1,
1489         "x": 1634.893756866455,
1490         "y": 2057.7228479385376,
1491         "z": "b24c83f7.abbc6",
1492         "wires": [
1493             [
1494                 "8dabdae5.57ab58"
1495             ]
1496         ]
1497     },
1498     {
1499         "id": "c6b0d6cd.d0a058",
1500         "type": "block",
1501         "name": "block",
1502         "xml": "<block>\n",
1503         "atomic": "false",
1504         "comments": "",
1505         "outputs": 1,
1506         "x": 1807.6506958007812,
1507         "y": 1281.8093757629395,
1508         "z": "b24c83f7.abbc6",
1509         "wires": [
1510             [
1511                 "3d2b0a50.3a8f56",
1512                 "eea3a1e.e88116",
1513                 "1623f021.c2b9"
1514             ]
1515         ]
1516     },
1517     {
1518         "id": "2a420bce.572e64",
1519         "type": "set",
1520         "name": "set tmp.dhcpEnabled.bolean=false",
1521         "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"false\" />\n",
1522         "comments": "",
1523         "x": 1848.3532104492188,
1524         "y": 1831.9525032043457,
1525         "z": "b24c83f7.abbc6",
1526         "wires": [
1527             []
1528         ]
1529     },
1530     {
1531         "id": "797eb8ae.317378",
1532         "type": "set",
1533         "name": "set tmp.dhcpEnabled.boolean=true",
1534         "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"true\" />\n",
1535         "comments": "",
1536         "x": 1850.1350021362305,
1537         "y": 1878.5675792694092,
1538         "z": "b24c83f7.abbc6",
1539         "wires": [
1540             []
1541         ]
1542     },
1543     {
1544         "id": "9117f581.49cd58",
1545         "type": "returnSuccess",
1546         "name": "set execute_failure = true",
1547         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
1548         "comments": "",
1549         "x": 2045.3016777038574,
1550         "y": 2193.504596710205,
1551         "z": "b24c83f7.abbc6",
1552         "wires": []
1553     },
1554     {
1555         "id": "8dabdae5.57ab58",
1556         "type": "block",
1557         "name": "block",
1558         "xml": "<block>\n",
1559         "atomic": "false",
1560         "comments": "",
1561         "outputs": 1,
1562         "x": 1834.5158653259277,
1563         "y": 2104.3617782592773,
1564         "z": "b24c83f7.abbc6",
1565         "wires": [
1566             [
1567                 "9117f581.49cd58",
1568                 "a6fad29a.1da73",
1569                 "ca78be2.35c6c4"
1570             ]
1571         ]
1572     },
1573     {
1574         "id": "a6fad29a.1da73",
1575         "type": "set",
1576         "name": "set i, j max + 1",
1577         "xml": "<set>\n\t<parameter name='j' value='`$tmp.AnAI.l3subnet_length + 1`' />\n\t<parameter name='i' value='`$preload-data.network-topology-information.subnets_length + 1`' />",
1578         "comments": "",
1579         "x": 2009.0159034729004,
1580         "y": 2104.361795425415,
1581         "z": "b24c83f7.abbc6",
1582         "wires": [
1583             []
1584         ]
1585     },
1586     {
1587         "id": "da60e97d.0ede68",
1588         "type": "returnFailure",
1589         "name": "return failure",
1590         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Error updating l3-network in AnAI with network-id = ' + $tmp.AnAI.l3network.network-id + ' - ' + $tmp.error-message + ' - ' + $tmp.rollback.error-message`\"/>",
1591         "comments": "",
1592         "x": 669.991397857666,
1593         "y": 6073.796445846558,
1594         "z": "b24c83f7.abbc6",
1595         "wires": []
1596     },
1597     {
1598         "id": "6c413597.876f3c",
1599         "type": "set",
1600         "name": "Set final indicator to Y",
1601         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
1602         "comments": "",
1603         "x": 347.87683486938477,
1604         "y": 6179.523144721985,
1605         "z": "b24c83f7.abbc6",
1606         "wires": [
1607             []
1608         ]
1609     },
1610     {
1611         "id": "3b6d36e2.4f5b5a",
1612         "type": "set",
1613         "name": "set tmp.l3networkUpdate = 1",
1614         "xml": "<set>\n<parameter name='tmp.l3networkUpdate' value='1' />\n",
1615         "comments": "",
1616         "x": 2005.5675163269043,
1617         "y": 2336.881452560425,
1618         "z": "b24c83f7.abbc6",
1619         "wires": [
1620             []
1621         ]
1622     },
1623     {
1624         "id": "4ab836fd.f49d78",
1625         "type": "failure",
1626         "name": "failure",
1627         "xml": "<outcome value='failure'>\n",
1628         "comments": "",
1629         "outputs": 1,
1630         "x": 1271.8109970092773,
1631         "y": 4664.159008979797,
1632         "z": "b24c83f7.abbc6",
1633         "wires": [
1634             [
1635                 "b682bac.b292748"
1636             ]
1637         ]
1638     },
1639     {
1640         "id": "80e7eee4.21ab2",
1641         "type": "switchNode",
1642         "name": "switch : tmp.l3networkUpdate = 1",
1643         "xml": "<switch test=\"`$tmp.l3networkUpdate == 1`\">\n",
1644         "comments": "",
1645         "outputs": 1,
1646         "x": 518.019718170166,
1647         "y": 4664.275115013123,
1648         "z": "b24c83f7.abbc6",
1649         "wires": [
1650             [
1651                 "b8e556ef.dde5f8"
1652             ]
1653         ]
1654     },
1655     {
1656         "id": "b8e556ef.dde5f8",
1657         "type": "outcomeTrue",
1658         "name": "true",
1659         "xml": "<outcome value='true'>\n",
1660         "comments": "",
1661         "outputs": 1,
1662         "x": 731.6863822937012,
1663         "y": 4664.052649497986,
1664         "z": "b24c83f7.abbc6",
1665         "wires": [
1666             [
1667                 "e53a9499.9d4d28"
1668             ]
1669         ]
1670     },
1671     {
1672         "id": "e53a9499.9d4d28",
1673         "type": "save",
1674         "name": "update AnAI - l3-network.orchestration-status",
1675         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id\" >\n<parameter name=\"orchestration-status\" value=\"pending-update\" />",
1676         "comments": "",
1677         "outputs": 1,
1678         "x": 986.7340812683105,
1679         "y": 4664.179589271545,
1680         "z": "b24c83f7.abbc6",
1681         "wires": [
1682             [
1683                 "4ab836fd.f49d78",
1684                 "b3df03dc.e1fb8",
1685                 "40f41704.9cc688"
1686             ]
1687         ]
1688     },
1689     {
1690         "id": "b682bac.b292748",
1691         "type": "block",
1692         "name": "block",
1693         "xml": "<block>",
1694         "atomic": "false",
1695         "outputs": 1,
1696         "x": 1446.8769569396973,
1697         "y": 4664.4650774002075,
1698         "z": "b24c83f7.abbc6",
1699         "wires": [
1700             [
1701                 "277621ff.2d16fe",
1702                 "2e3c7ba2.d21b54"
1703             ]
1704         ]
1705     },
1706     {
1707         "id": "277621ff.2d16fe",
1708         "type": "set",
1709         "name": "set: tmp.error-message",
1710         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"An error occurred while updating l3-network.orchestration-status in AnAI\"/>",
1711         "comments": "",
1712         "x": 1694.02103805542,
1713         "y": 4664.2675523757935,
1714         "z": "b24c83f7.abbc6",
1715         "wires": [
1716             []
1717         ]
1718     },
1719     {
1720         "id": "ea36d758.4a9288",
1721         "type": "block",
1722         "name": "block : atomic",
1723         "xml": "<block atomic='true'>",
1724         "atomic": "true",
1725         "comments": "",
1726         "outputs": 1,
1727         "x": 493.1831245422363,
1728         "y": 2314.7121753692627,
1729         "z": "b24c83f7.abbc6",
1730         "wires": [
1731             [
1732                 "50318e70.387a9",
1733                 "6f14f693.d5a4e8"
1734             ]
1735         ]
1736     },
1737     {
1738         "id": "70d1080b.b08868",
1739         "type": "block",
1740         "name": "block : atomic",
1741         "xml": "<block atomic='true'>",
1742         "atomic": "true",
1743         "comments": "",
1744         "outputs": 1,
1745         "x": 459.1587104797363,
1746         "y": 3271.960355758667,
1747         "z": "b24c83f7.abbc6",
1748         "wires": [
1749             [
1750                 "85ca29b3.1bb488",
1751                 "67e9507e.488ea"
1752             ]
1753         ]
1754     },
1755     {
1756         "id": "7d587fe3.3f132",
1757         "type": "save",
1758         "name": "Rollback AnAI - l3-network.orchestration-status",
1759         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id\" >\n<parameter name=\"orchestration-status\" value=\"`$tmp.AnAI.l3network.orchestration-status`\" />",
1760         "comments": "",
1761         "outputs": 1,
1762         "x": 1280.6508178710938,
1763         "y": 5976.617420196533,
1764         "z": "b24c83f7.abbc6",
1765         "wires": [
1766             [
1767                 "d11dd828.7802a8",
1768                 "81ba8fb7.9e498"
1769             ]
1770         ]
1771     },
1772     {
1773         "id": "ae8d6ec6.39e21",
1774         "type": "set",
1775         "name": "set tmp.subnetUpdate = 1",
1776         "xml": "<set>\n<parameter name=\"tmp.subnetUpdate\" value=\"1\" />\n",
1777         "comments": "",
1778         "x": 2313.293930053711,
1779         "y": 828.4881381988525,
1780         "z": "b24c83f7.abbc6",
1781         "wires": [
1782             []
1783         ]
1784     },
1785     {
1786         "id": "3eceba12.f5d206",
1787         "type": "set",
1788         "name": "set tmp.l3networkUpdate = 1",
1789         "xml": "<set>\n<parameter name=\"tmp.l3networkUpdate\" value=\"1\" />\n",
1790         "comments": "",
1791         "x": 2005.543643951416,
1792         "y": 1525.7023010253906,
1793         "z": "b24c83f7.abbc6",
1794         "wires": [
1795             []
1796         ]
1797     },
1798     {
1799         "id": "9f8d35e4.e55ae8",
1800         "type": "switchNode",
1801         "name": "switch: tmp.start-address-match = 0",
1802         "xml": "<switch test=\"`$tmp.start-address-match == 0`\">",
1803         "comments": "",
1804         "outputs": 1,
1805         "x": 693.8650512695312,
1806         "y": 1831.6666650772095,
1807         "z": "b24c83f7.abbc6",
1808         "wires": [
1809             [
1810                 "e08b1d05.35c67"
1811             ]
1812         ]
1813     },
1814     {
1815         "id": "b390fee8.578a3",
1816         "type": "set",
1817         "name": "set tmp.start-address-match = 1",
1818         "xml": "<set>\n<parameter name='tmp.start-address-match' value='1' />\n",
1819         "comments": "",
1820         "x": 1557.3650588989258,
1821         "y": 1776.9166612625122,
1822         "z": "b24c83f7.abbc6",
1823         "wires": [
1824             []
1825         ]
1826     },
1827     {
1828         "id": "50318e70.387a9",
1829         "type": "save",
1830         "name": "delete relationship: vpn_binding",
1831         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\tAND related-to = vpn-binding\" >",
1832         "comments": "",
1833         "outputs": 1,
1834         "x": 764.8055114746094,
1835         "y": 2315.0001096725464,
1836         "z": "b24c83f7.abbc6",
1837         "wires": [
1838             [
1839                 "30ff2667.471baa"
1840             ]
1841         ]
1842     },
1843     {
1844         "id": "c4f81359.003b8",
1845         "type": "for",
1846         "name": "for loop i - PRELOAD vpn-bindings",
1847         "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.vpn-bindings_length`\">\n",
1848         "comments": "",
1849         "outputs": 1,
1850         "x": 862.5317022535537,
1851         "y": 2543.666758219401,
1852         "z": "b24c83f7.abbc6",
1853         "wires": [
1854             [
1855                 "7c3e0805.40af68"
1856             ]
1857         ]
1858     },
1859     {
1860         "id": "7c3e0805.40af68",
1861         "type": "block",
1862         "name": "block : atomic",
1863         "xml": "<block atomic='true'>",
1864         "atomic": "true",
1865         "comments": "",
1866         "outputs": 1,
1867         "x": 1101.309480879042,
1868         "y": 2543.9167601267495,
1869         "z": "b24c83f7.abbc6",
1870         "wires": [
1871             [
1872                 "678f44ab.ea50ac",
1873                 "1598e5df.565bea",
1874                 "36a2784d.cf59e8",
1875                 "236011f6.f5e4be"
1876             ]
1877         ]
1878     },
1879     {
1880         "id": "d17665c3.e234d8",
1881         "type": "save",
1882         "name": "save relationship: vpn_bindings",
1883         "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-binding\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-binding.vpn-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.vpn-binding-id`\" />",
1884         "comments": "",
1885         "outputs": 1,
1886         "x": 1557.5039176940918,
1887         "y": 2921.8888416290283,
1888         "z": "b24c83f7.abbc6",
1889         "wires": [
1890             [
1891                 "cc145aed.800d88",
1892                 "e2c85fda.7c9cd",
1893                 "49306a1.5c79894"
1894             ]
1895         ]
1896     },
1897     {
1898         "id": "a47b8b14.1829d8",
1899         "type": "switchNode",
1900         "name": "switch ... PRELOAD vpn-bindings[]",
1901         "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings_length`\">",
1902         "comments": "",
1903         "outputs": 1,
1904         "x": 862.9091453552246,
1905         "y": 2500.248071670532,
1906         "z": "b24c83f7.abbc6",
1907         "wires": [
1908             [
1909                 "4801868f.077cf8"
1910             ]
1911         ]
1912     },
1913     {
1914         "id": "4801868f.077cf8",
1915         "type": "outcome",
1916         "name": "NULL",
1917         "xml": "<outcome value=''>",
1918         "outputs": 1,
1919         "x": 1089.3535957336426,
1920         "y": 2500.0258073806763,
1921         "z": "b24c83f7.abbc6",
1922         "wires": [
1923             [
1924                 "a35d2b.e1e2b2d8"
1925             ]
1926         ]
1927     },
1928     {
1929         "id": "a35d2b.e1e2b2d8",
1930         "type": "set",
1931         "name": "set vpn-bindings[] = 0",
1932         "xml": "<set>\n<parameter name=\"preload-data.network-topology-information.vpn-bindings_length\" value=\"0\" />\n",
1933         "comments": "",
1934         "x": 1277.90920469496,
1935         "y": 2500.0258280436196,
1936         "z": "b24c83f7.abbc6",
1937         "wires": [
1938             []
1939         ]
1940     },
1941     {
1942         "id": "6940ee9d.942ff",
1943         "type": "other",
1944         "name": "true",
1945         "xml": "<outcome value='true'>\n",
1946         "comments": "",
1947         "outputs": 1,
1948         "x": 1604.0438635084365,
1949         "y": 2637.5160624186196,
1950         "z": "b24c83f7.abbc6",
1951         "wires": [
1952             [
1953                 "96fde5e9.4b32b8"
1954             ]
1955         ]
1956     },
1957     {
1958         "id": "96fde5e9.4b32b8",
1959         "type": "save",
1960         "name": "query AnAI - vpn-bindings",
1961         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vpn-binding\" \n\t\tkey=\"vpn-binding.global-route-target = $preload-data.network-topology-information.vpn-bindings[$i].global-route-target\" \n\t\tpfx=\"tmp.AnAI.vpn-binding\">",
1962         "comments": "",
1963         "outputs": 1,
1964         "x": 1808.5438596937393,
1965         "y": 2637.266063372294,
1966         "z": "b24c83f7.abbc6",
1967         "wires": [
1968             [
1969                 "3c316751.c18568",
1970                 "f1e8d85f.221188",
1971                 "804fc820.1767b8"
1972             ]
1973         ]
1974     },
1975     {
1976         "id": "3c316751.c18568",
1977         "type": "failure",
1978         "name": "failure",
1979         "xml": "<outcome value='failure'>\n",
1980         "comments": "",
1981         "outputs": 1,
1982         "x": 2016.293897840712,
1983         "y": 2684.766030947367,
1984         "z": "b24c83f7.abbc6",
1985         "wires": [
1986             [
1987                 "30521316.33fc5c"
1988             ]
1989         ]
1990     },
1991     {
1992         "id": "f1e8d85f.221188",
1993         "type": "not-found",
1994         "name": "not-found",
1995         "xml": "<outcome value='not-found'>\n",
1996         "comments": "",
1997         "outputs": 1,
1998         "x": 2021.7939016554092,
1999         "y": 2637.266029993693,
2000         "z": "b24c83f7.abbc6",
2001         "wires": [
2002             [
2003                 "30521316.33fc5c"
2004             ]
2005         ]
2006     },
2007     {
2008         "id": "30521316.33fc5c",
2009         "type": "block",
2010         "name": "block",
2011         "xml": "<block>",
2012         "atomic": "false",
2013         "outputs": 1,
2014         "x": 2169.293901655409,
2015         "y": 2684.5160319010415,
2016         "z": "b24c83f7.abbc6",
2017         "wires": [
2018             [
2019                 "c83277b8.bca398",
2020                 "69801ad3.b07ae4"
2021             ]
2022         ]
2023     },
2024     {
2025         "id": "c83277b8.bca398",
2026         "type": "set",
2027         "name": "set: tmp.error-message",
2028         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query vpn-bindings n AnAI where global-route-target = ' + $preload-data.network-topology-information.vpn-bindings[$i].global-route-target`\"/>",
2029         "comments": "",
2030         "x": 2410.3934423658584,
2031         "y": 2684.265930811564,
2032         "z": "b24c83f7.abbc6",
2033         "wires": [
2034             []
2035         ]
2036     },
2037     {
2038         "id": "678f44ab.ea50ac",
2039         "type": "switchNode",
2040         "name": "switch: PRELOAD vpn-binding-id",
2041         "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings[$i].vpn-binding-id`\">",
2042         "comments": "",
2043         "outputs": 1,
2044         "x": 1346.7938673231338,
2045         "y": 2591.7660023371377,
2046         "z": "b24c83f7.abbc6",
2047         "wires": [
2048             [
2049                 "49c99c5d.db6104"
2050             ]
2051         ]
2052     },
2053     {
2054         "id": "49c99c5d.db6104",
2055         "type": "other",
2056         "name": "other",
2057         "xml": "<outcome value='Other'>\n",
2058         "comments": "",
2059         "outputs": 1,
2060         "x": 1567.2938749525283,
2061         "y": 2591.516003290812,
2062         "z": "b24c83f7.abbc6",
2063         "wires": [
2064             [
2065                 "dc650ff6.6a37a"
2066             ]
2067         ]
2068     },
2069     {
2070         "id": "dc650ff6.6a37a",
2071         "type": "set",
2072         "name": "set tmp.vpn-binding-id",
2073         "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$preload-data.network-topology-information.vpn-bindings[$i].vpn-binding-id`\" />\n",
2074         "comments": "",
2075         "x": 1762.7938749525283,
2076         "y": 2591.5160042444863,
2077         "z": "b24c83f7.abbc6",
2078         "wires": [
2079             []
2080         ]
2081     },
2082     {
2083         "id": "804fc820.1767b8",
2084         "type": "success",
2085         "name": "success",
2086         "xml": "<outcome value='success'>\n",
2087         "comments": "",
2088         "outputs": 1,
2089         "x": 2021.7107429504395,
2090         "y": 2785.932608604431,
2091         "z": "b24c83f7.abbc6",
2092         "wires": [
2093             [
2094                 "d43a1da1.801f4"
2095             ]
2096         ]
2097     },
2098     {
2099         "id": "d43a1da1.801f4",
2100         "type": "set",
2101         "name": "set tmp.vpn-binding-id",
2102         "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$tmp.AnAI.vpn-binding.vpn-id`\" />\n",
2103         "comments": "",
2104         "x": 2212.2107429504395,
2105         "y": 2785.932608604431,
2106         "z": "b24c83f7.abbc6",
2107         "wires": [
2108             []
2109         ]
2110     },
2111     {
2112         "id": "cc145aed.800d88",
2113         "type": "failure",
2114         "name": "failure",
2115         "xml": "<outcome value='failure'>\n",
2116         "comments": "",
2117         "outputs": 1,
2118         "x": 1817.5767936706543,
2119         "y": 2921.3644285202026,
2120         "z": "b24c83f7.abbc6",
2121         "wires": [
2122             [
2123                 "bd84c069.9f407"
2124             ]
2125         ]
2126     },
2127     {
2128         "id": "bd84c069.9f407",
2129         "type": "block",
2130         "name": "block",
2131         "xml": "<block>",
2132         "atomic": "false",
2133         "outputs": 1,
2134         "x": 1974.4696731567383,
2135         "y": 2921.000535964966,
2136         "z": "b24c83f7.abbc6",
2137         "wires": [
2138             [
2139                 "d0bc0241.16643",
2140                 "67a32bcf.a45a94",
2141                 "d62cda9.c225228"
2142             ]
2143         ]
2144     },
2145     {
2146         "id": "d0bc0241.16643",
2147         "type": "set",
2148         "name": "set: tmp.error-message",
2149         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving l3-newtork vpn-binding relationship in AnAI where vpn-id = ' + $tmp.vpn-binding-id`\"/>",
2150         "comments": "",
2151         "x": 2194.5692138671875,
2152         "y": 2920.7504348754883,
2153         "z": "b24c83f7.abbc6",
2154         "wires": [
2155             []
2156         ]
2157     },
2158     {
2159         "id": "d8a1ae30.7e241",
2160         "type": "switchNode",
2161         "name": "switch: tmp.vpn-binding-id != NULL",
2162         "xml": "<switch test=\"`$tmp.vpn-binding-id != ''`\">",
2163         "comments": "",
2164         "outputs": 1,
2165         "x": 1387.5438346862793,
2166         "y": 2816.9325428009033,
2167         "z": "b24c83f7.abbc6",
2168         "wires": [
2169             [
2170                 "35e2cab.1320636"
2171             ]
2172         ]
2173     },
2174     {
2175         "id": "35e2cab.1320636",
2176         "type": "other",
2177         "name": "true",
2178         "xml": "<outcome value='true'>\n",
2179         "comments": "",
2180         "outputs": 1,
2181         "x": 1609.7938385009766,
2182         "y": 2816.9325428009033,
2183         "z": "b24c83f7.abbc6",
2184         "wires": [
2185             [
2186                 "d17665c3.e234d8"
2187             ]
2188         ]
2189     },
2190     {
2191         "id": "9dcafbd2.180118",
2192         "type": "switchNode",
2193         "name": "switch ... PRELOAD network-policy[]",
2194         "xml": "<switch test=\"`$preload-data.network-topology-information.network-policy_length`\">",
2195         "comments": "",
2196         "outputs": 1,
2197         "x": 815.2102928161621,
2198         "y": 3497.8329753875732,
2199         "z": "b24c83f7.abbc6",
2200         "wires": [
2201             [
2202                 "9a549469.8cf168"
2203             ]
2204         ]
2205     },
2206     {
2207         "id": "9a549469.8cf168",
2208         "type": "outcome",
2209         "name": "NULL",
2210         "xml": "<outcome value=''>",
2211         "outputs": 1,
2212         "x": 1044.65474319458,
2213         "y": 3497.6107110977173,
2214         "z": "b24c83f7.abbc6",
2215         "wires": [
2216             [
2217                 "626b2924.e714b8"
2218             ]
2219         ]
2220     },
2221     {
2222         "id": "626b2924.e714b8",
2223         "type": "set",
2224         "name": "set network-policy[] = 0",
2225         "xml": "<set>\n<parameter name='preload-data.network-topology-information.network-policy_length' value='0' />\n",
2226         "comments": "",
2227         "x": 1239.2103521558975,
2228         "y": 3497.6107317606607,
2229         "z": "b24c83f7.abbc6",
2230         "wires": [
2231             []
2232         ]
2233     },
2234     {
2235         "id": "f4907fd3.a65",
2236         "type": "for",
2237         "name": "for loop i - PRELOAD network-policy",
2238         "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.network-policy_length`\">\n",
2239         "comments": "",
2240         "outputs": 1,
2241         "x": 814.567554473877,
2242         "y": 3543.404366493225,
2243         "z": "b24c83f7.abbc6",
2244         "wires": [
2245             [
2246                 "c8c91878.a06a48"
2247             ]
2248         ]
2249     },
2250     {
2251         "id": "74c62ee.c142ad",
2252         "type": "save",
2253         "name": "save relationship: network-policy",
2254         "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-policy\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-policy.network-policy-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.network-policy.network-policy-id`\" />",
2255         "comments": "",
2256         "outputs": 1,
2257         "x": 2095.9804649353027,
2258         "y": 3742.5910663604736,
2259         "z": "b24c83f7.abbc6",
2260         "wires": [
2261             [
2262                 "961c1793.845838",
2263                 "cd9366f0.221d18",
2264                 "c3c189a0.4ccb58"
2265             ]
2266         ]
2267     },
2268     {
2269         "id": "c8c91878.a06a48",
2270         "type": "switchNode",
2271         "name": "switch: PRELOAD network-policy-fqdn != NULL",
2272         "xml": "<switch test=\"`$preload-data.network-topology-information.network-policy[$i].network-policy-fqdn != NULL`\">",
2273         "comments": "",
2274         "outputs": 1,
2275         "x": 1173.0797521803115,
2276         "y": 3543.5036207834873,
2277         "z": "b24c83f7.abbc6",
2278         "wires": [
2279             [
2280                 "b83dfff2.e2be5"
2281             ]
2282         ]
2283     },
2284     {
2285         "id": "b83dfff2.e2be5",
2286         "type": "other",
2287         "name": "true",
2288         "xml": "<outcome value='true'>\n",
2289         "comments": "",
2290         "outputs": 1,
2291         "x": 1453.8297521803115,
2292         "y": 3543.7536207834873,
2293         "z": "b24c83f7.abbc6",
2294         "wires": [
2295             [
2296                 "72405702.54bef8"
2297             ]
2298         ]
2299     },
2300     {
2301         "id": "72405702.54bef8",
2302         "type": "save",
2303         "name": "query AnAI - network-policy",
2304         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-fqdn = $preload-data.network-topology-information.network-policy[$i].network-policy-fqdn\"  \n\t\tpfx=\"tmp.AnAI.network-policy\" >",
2305         "comments": "",
2306         "outputs": 1,
2307         "x": 1653.8297882080078,
2308         "y": 3543.753540992737,
2309         "z": "b24c83f7.abbc6",
2310         "wires": [
2311             [
2312                 "9106f450.700d08",
2313                 "d7e04886.f0b1b8",
2314                 "38bde268.aac7fe"
2315             ]
2316         ]
2317     },
2318     {
2319         "id": "9106f450.700d08",
2320         "type": "failure",
2321         "name": "failure",
2322         "xml": "<outcome value='failure'>\n",
2323         "comments": "",
2324         "outputs": 1,
2325         "x": 1865.8298204210068,
2326         "y": 3584.503463109335,
2327         "z": "b24c83f7.abbc6",
2328         "wires": [
2329             [
2330                 "8bf9d679.d0ee98"
2331             ]
2332         ]
2333     },
2334     {
2335         "id": "d7e04886.f0b1b8",
2336         "type": "not-found",
2337         "name": "not-found",
2338         "xml": "<outcome value='not-found'>\n",
2339         "comments": "",
2340         "outputs": 1,
2341         "x": 1871.329824235704,
2342         "y": 3544.0034621556606,
2343         "z": "b24c83f7.abbc6",
2344         "wires": [
2345             [
2346                 "8bf9d679.d0ee98"
2347             ]
2348         ]
2349     },
2350     {
2351         "id": "8bf9d679.d0ee98",
2352         "type": "block",
2353         "name": "block",
2354         "xml": "<block>",
2355         "atomic": "false",
2356         "outputs": 1,
2357         "x": 2020.829824235704,
2358         "y": 3584.2534640630092,
2359         "z": "b24c83f7.abbc6",
2360         "wires": [
2361             [
2362                 "e5a86167.920af",
2363                 "338842a2.95efee"
2364             ]
2365         ]
2366     },
2367     {
2368         "id": "e5a86167.920af",
2369         "type": "set",
2370         "name": "set: tmp.error-message",
2371         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query network-policy n AnAI where network-policy-fqdn = ' + $preload-data.network-topology-information.network-policy[$i].network-policy-fqdn`\"/>",
2372         "comments": "",
2373         "x": 2236.9293649461533,
2374         "y": 3584.0033629735317,
2375         "z": "b24c83f7.abbc6",
2376         "wires": [
2377             []
2378         ]
2379     },
2380     {
2381         "id": "961c1793.845838",
2382         "type": "failure",
2383         "name": "failure",
2384         "xml": "<outcome value='failure'>\n",
2385         "comments": "",
2386         "outputs": 1,
2387         "x": 2322.0533409118652,
2388         "y": 3742.066653251648,
2389         "z": "b24c83f7.abbc6",
2390         "wires": [
2391             [
2392                 "9f43abef.bd4728"
2393             ]
2394         ]
2395     },
2396     {
2397         "id": "9f43abef.bd4728",
2398         "type": "block",
2399         "name": "block",
2400         "xml": "<block>",
2401         "atomic": "false",
2402         "outputs": 1,
2403         "x": 2462.946220397949,
2404         "y": 3741.702760696411,
2405         "z": "b24c83f7.abbc6",
2406         "wires": [
2407             [
2408                 "d2d1e07.7cfa32",
2409                 "133667f2.eb77f8"
2410             ]
2411         ]
2412     },
2413     {
2414         "id": "d2d1e07.7cfa32",
2415         "type": "set",
2416         "name": "set: tmp.error-message",
2417         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving l3-newtork network-policy relationship in AnAI where network-policy-id = ' + $tmp.AnAI.network-policy.network-policy-id`\"/>",
2418         "comments": "",
2419         "x": 2694.0457611083984,
2420         "y": 3741.4526596069336,
2421         "z": "b24c83f7.abbc6",
2422         "wires": [
2423             []
2424         ]
2425     },
2426     {
2427         "id": "85ca29b3.1bb488",
2428         "type": "save",
2429         "name": "delete relationship: network-policy",
2430         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\t AND related-to = network-policy\" >",
2431         "comments": "",
2432         "outputs": 1,
2433         "x": 747.372989654541,
2434         "y": 3271.769684076309,
2435         "z": "b24c83f7.abbc6",
2436         "wires": [
2437             [
2438                 "e8183966.f88478"
2439             ]
2440         ]
2441     },
2442     {
2443         "id": "754d89e8.1de998",
2444         "type": "set",
2445         "name": "set tmp.local.network-id",
2446         "xml": "<set>\n<parameter name=\"tmp.local.network-id\" value=\"`$tmp.AnAI.l3network.network-id`\" />\n",
2447         "comments": "",
2448         "x": 1350.7499885559082,
2449         "y": 2012.642957687378,
2450         "z": "b24c83f7.abbc6",
2451         "wires": [
2452             []
2453         ]
2454     },
2455     {
2456         "id": "7ffa62de.33fecc",
2457         "type": "comment",
2458         "name": "query l3-network gets all the subnets and relationships for free",
2459         "info": "",
2460         "comments": "",
2461         "x": 1084.7022819519043,
2462         "y": 164.40476989746094,
2463         "z": "b24c83f7.abbc6",
2464         "wires": []
2465     },
2466     {
2467         "id": "1598e5df.565bea",
2468         "type": "switchNode",
2469         "name": "switch: PRELOAD route-target != NULL",
2470         "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings[$i].global-route-target != ''`\" >",
2471         "comments": "",
2472         "outputs": 1,
2473         "x": 1368.130941602919,
2474         "y": 2637.071567217509,
2475         "z": "b24c83f7.abbc6",
2476         "wires": [
2477             [
2478                 "6940ee9d.942ff"
2479             ]
2480         ]
2481     },
2482     {
2483         "id": "34af06b5.07d33a",
2484         "type": "set",
2485         "name": "initialize tmp variables, x, tmp.error-message, tmp.l3networkUpdate, execute_failure",
2486         "xml": "<set>\n\t<parameter name='x' value='0' />\n\t<parameter name='tmp.error-message' value='' />\n\t<parameter name='execute_failure' value='false' />\n\t<parameter name='tmp.l3networkUpdate' value='0' />",
2487         "comments": "",
2488         "x": 617.3453178405762,
2489         "y": 428.8214406967163,
2490         "z": "b24c83f7.abbc6",
2491         "wires": [
2492             []
2493         ]
2494     },
2495     {
2496         "id": "e9310489.7af568",
2497         "type": "switchNode",
2498         "name": "switch: AnAI-k == tmp.return.generate.gateway-address",
2499         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$k].gateway-address == $tmp.return.generate.gateway-address`\">",
2500         "comments": "",
2501         "outputs": 1,
2502         "x": 2155.7498893737793,
2503         "y": 588.8214159011841,
2504         "z": "b24c83f7.abbc6",
2505         "wires": [
2506             [
2507                 "fd638c90.7772"
2508             ]
2509         ]
2510     },
2511     {
2512         "id": "fd638c90.7772",
2513         "type": "outcomeTrue",
2514         "name": "false",
2515         "xml": "<outcome value='false'>\n",
2516         "comments": "",
2517         "outputs": 1,
2518         "x": 2440.3215827941895,
2519         "y": 588.2857179641724,
2520         "z": "b24c83f7.abbc6",
2521         "wires": [
2522             [
2523                 "8a95056c.8243a8"
2524             ]
2525         ]
2526     },
2527     {
2528         "id": "8a95056c.8243a8",
2529         "type": "block",
2530         "name": "block",
2531         "xml": "<block>\n",
2532         "atomic": "false",
2533         "comments": "",
2534         "outputs": 1,
2535         "x": 2585.0000495910645,
2536         "y": 588.7222108840942,
2537         "z": "b24c83f7.abbc6",
2538         "wires": [
2539             [
2540                 "66b36d53.f585d4",
2541                 "9d0c9a84.7d8738"
2542             ]
2543         ]
2544     },
2545     {
2546         "id": "1bcbd50a.81742b",
2547         "type": "block",
2548         "name": "block",
2549         "xml": "<block>\n",
2550         "atomic": "false",
2551         "comments": "",
2552         "outputs": 1,
2553         "x": 2045.7501602172852,
2554         "y": 829.2222023010254,
2555         "z": "b24c83f7.abbc6",
2556         "wires": [
2557             [
2558                 "ae8d6ec6.39e21"
2559             ]
2560         ]
2561     },
2562     {
2563         "id": "ca9a6174.d3216",
2564         "type": "block",
2565         "name": "block",
2566         "xml": "<block>\n",
2567         "atomic": "false",
2568         "comments": "",
2569         "outputs": 1,
2570         "x": 2045.0001602172852,
2571         "y": 876.222204208374,
2572         "z": "b24c83f7.abbc6",
2573         "wires": [
2574             [
2575                 "ae8d6ec6.39e21"
2576             ]
2577         ]
2578     },
2579     {
2580         "id": "292eb234.c8484e",
2581         "type": "block",
2582         "name": "block",
2583         "xml": "<block>\n",
2584         "atomic": "false",
2585         "comments": "",
2586         "outputs": 1,
2587         "x": 2044.5001602172852,
2588         "y": 924.4722051620483,
2589         "z": "b24c83f7.abbc6",
2590         "wires": [
2591             [
2592                 "ae8d6ec6.39e21"
2593             ]
2594         ]
2595     },
2596     {
2597         "id": "38bde268.aac7fe",
2598         "type": "success",
2599         "name": "success",
2600         "xml": "<outcome value='success'>\n",
2601         "comments": "",
2602         "outputs": 1,
2603         "x": 1870.595417022705,
2604         "y": 3742.094934463501,
2605         "z": "b24c83f7.abbc6",
2606         "wires": [
2607             [
2608                 "74c62ee.c142ad"
2609             ]
2610         ]
2611     },
2612     {
2613         "id": "36a2784d.cf59e8",
2614         "type": "set",
2615         "name": "unset tmp.vpn-binding-id",
2616         "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"\" />\n",
2617         "comments": "",
2618         "x": 1320.9166776869033,
2619         "y": 2544.0001236597695,
2620         "z": "b24c83f7.abbc6",
2621         "wires": [
2622             []
2623         ]
2624     },
2625     {
2626         "id": "30ff2667.471baa",
2627         "type": "failure",
2628         "name": "failure",
2629         "xml": "<outcome value='failure'>\n",
2630         "comments": "",
2631         "outputs": 1,
2632         "x": 996.0833282470703,
2633         "y": 2314.5833377838135,
2634         "z": "b24c83f7.abbc6",
2635         "wires": [
2636             [
2637                 "e69d9ede.c998c"
2638             ]
2639         ]
2640     },
2641     {
2642         "id": "e69d9ede.c998c",
2643         "type": "block",
2644         "name": "block",
2645         "xml": "<block>\n",
2646         "atomic": "false",
2647         "comments": "",
2648         "outputs": 1,
2649         "x": 1155.8201026916504,
2650         "y": 2315.2746753692627,
2651         "z": "b24c83f7.abbc6",
2652         "wires": [
2653             [
2654                 "7c0a1390.80c06c",
2655                 "2f44a8dd.3b2668"
2656             ]
2657         ]
2658     },
2659     {
2660         "id": "7c0a1390.80c06c",
2661         "type": "set",
2662         "name": "set: tmp.error-message",
2663         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"An error occurred while deleting l3-network vpn-binding relationship from AnAI\"/>",
2664         "comments": "",
2665         "x": 1374.500072479248,
2666         "y": 2315.5835123062134,
2667         "z": "b24c83f7.abbc6",
2668         "wires": [
2669             []
2670         ]
2671     },
2672     {
2673         "id": "e8183966.f88478",
2674         "type": "failure",
2675         "name": "failure",
2676         "xml": "<outcome value='failure'>\n",
2677         "comments": "",
2678         "outputs": 1,
2679         "x": 971.5079612731934,
2680         "y": 3271.3528950214386,
2681         "z": "b24c83f7.abbc6",
2682         "wires": [
2683             [
2684                 "fc52b15.447615"
2685             ]
2686         ]
2687     },
2688     {
2689         "id": "fc52b15.447615",
2690         "type": "block",
2691         "name": "block",
2692         "xml": "<block>\n",
2693         "atomic": "false",
2694         "comments": "",
2695         "outputs": 1,
2696         "x": 1148.2447357177734,
2697         "y": 3271.044232606888,
2698         "z": "b24c83f7.abbc6",
2699         "wires": [
2700             [
2701                 "18b5ade9.0299e2",
2702                 "8aeb103.23b59f"
2703             ]
2704         ]
2705     },
2706     {
2707         "id": "18b5ade9.0299e2",
2708         "type": "set",
2709         "name": "set: tmp.error-message",
2710         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"An error occurred while deleting l3-network network-policy relationship from AnAI in preparation to regenerate the network-policy relationship from PRELOAD.\"/>",
2711         "comments": "",
2712         "x": 1372.2579612731934,
2713         "y": 3271.3528950214386,
2714         "z": "b24c83f7.abbc6",
2715         "wires": [
2716             []
2717         ]
2718     },
2719     {
2720         "id": "28badb43.5ee5d4",
2721         "type": "switchNode",
2722         "name": "switch : tmp.l3network.status.updated = 1",
2723         "xml": "<switch test=\"`$tmp.l3network.status.updated == 1`\">\n",
2724         "comments": "",
2725         "outputs": 1,
2726         "x": 764.6190795898438,
2727         "y": 5976.534414291382,
2728         "z": "b24c83f7.abbc6",
2729         "wires": [
2730             [
2731                 "d6b5f392.672a4"
2732             ]
2733         ]
2734     },
2735     {
2736         "id": "d6b5f392.672a4",
2737         "type": "outcomeTrue",
2738         "name": "true",
2739         "xml": "<outcome value='true'>\n",
2740         "comments": "",
2741         "outputs": 1,
2742         "x": 1017.2857131958008,
2743         "y": 5976.812002182007,
2744         "z": "b24c83f7.abbc6",
2745         "wires": [
2746             [
2747                 "7d587fe3.3f132"
2748             ]
2749         ]
2750     },
2751     {
2752         "id": "7d8628e3.bfb0d8",
2753         "type": "set",
2754         "name": "set tmp.l3network.status.updated = 1",
2755         "xml": "<set>\n<parameter name='tmp.l3network.status.updated' value='1' />\n",
2756         "comments": "",
2757         "x": 1527.988193511963,
2758         "y": 4767.8097858428955,
2759         "z": "b24c83f7.abbc6",
2760         "wires": [
2761             []
2762         ]
2763     },
2764     {
2765         "id": "b3df03dc.e1fb8",
2766         "type": "success",
2767         "name": "success",
2768         "xml": "<outcome value='success'>\n",
2769         "comments": "",
2770         "outputs": 1,
2771         "x": 1275.9168281555176,
2772         "y": 4768.083599090576,
2773         "z": "b24c83f7.abbc6",
2774         "wires": [
2775             [
2776                 "7d8628e3.bfb0d8"
2777             ]
2778         ]
2779     },
2780     {
2781         "id": "f2214172.a1643",
2782         "type": "for",
2783         "name": "for loop z - tmp.AnAI.l3network.relationship-list.relationship[]",
2784         "xml": "<for index=\"z\" start=\"0\" end=\"`$tmp.AnAI.l3network.relationship-list.relationship_length`\">\n",
2785         "comments": "",
2786         "outputs": 1,
2787         "x": 824.3810005187988,
2788         "y": 4983.3337116241455,
2789         "z": "b24c83f7.abbc6",
2790         "wires": [
2791             [
2792                 "40b39fed.993b8"
2793             ]
2794         ]
2795     },
2796     {
2797         "id": "40b39fed.993b8",
2798         "type": "switchNode",
2799         "name": "switch: relationship[].related-to",
2800         "xml": "<switch test=\"`$tmp.AnAI.l3network.relationship-list.relationship[$z].related-to`\">",
2801         "comments": "",
2802         "outputs": 1,
2803         "x": 901.1309394836426,
2804         "y": 5074.583716392517,
2805         "z": "b24c83f7.abbc6",
2806         "wires": [
2807             [
2808                 "445af20b.efd5dc",
2809                 "7e1ce913.d1ada8",
2810                 "63a30c32.764734"
2811             ]
2812         ]
2813     },
2814     {
2815         "id": "445af20b.efd5dc",
2816         "type": "other",
2817         "name": "vpn-binding",
2818         "xml": "<outcome value='vpn-binding'>\n",
2819         "comments": "",
2820         "outputs": 1,
2821         "x": 1130.6309394836426,
2822         "y": 5074.833716392517,
2823         "z": "b24c83f7.abbc6",
2824         "wires": [
2825             [
2826                 "3307d5fd.2423fa"
2827             ]
2828         ]
2829     },
2830     {
2831         "id": "fb5a4fe8.b156b",
2832         "type": "block",
2833         "name": "block : atomic",
2834         "xml": "<block atomic='true'>",
2835         "atomic": "true",
2836         "comments": "",
2837         "outputs": 1,
2838         "x": 491.38093185424805,
2839         "y": 4982.8337116241455,
2840         "z": "b24c83f7.abbc6",
2841         "wires": [
2842             [
2843                 "f2214172.a1643",
2844                 "30cb9475.50352c",
2845                 "28badb43.5ee5d4",
2846                 "da60e97d.0ede68"
2847             ]
2848         ]
2849     },
2850     {
2851         "id": "befdd7ed.7d6be8",
2852         "type": "save",
2853         "name": "Rollback to save relationship: vpn_binding",
2854         "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-binding\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-binding.vpn-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.l3network.relationship-list.relationship[$z].relationship-data[0].relationship-value`\" />",
2855         "comments": "",
2856         "outputs": 1,
2857         "x": 1294.21431350708,
2858         "y": 5133.833827018738,
2859         "z": "b24c83f7.abbc6",
2860         "wires": [
2861             [
2862                 "a9924139.29c5e",
2863                 "d4b57fb0.f24f4"
2864             ]
2865         ]
2866     },
2867     {
2868         "id": "a9924139.29c5e",
2869         "type": "failure",
2870         "name": "failure",
2871         "xml": "<outcome value='failure'>\n",
2872         "comments": "",
2873         "outputs": 1,
2874         "x": 1547.2871894836426,
2875         "y": 5133.309413909912,
2876         "z": "b24c83f7.abbc6",
2877         "wires": [
2878             [
2879                 "3a4aef64.3150d"
2880             ]
2881         ]
2882     },
2883     {
2884         "id": "3a4aef64.3150d",
2885         "type": "set",
2886         "name": "set: tmp.rollback.error-message",
2887         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.rollback.error-message\" value=\"`'An error occurred during rollback of l3-newtork vpn-binding relationship in AnAI where vpn-id = ' + $tmp.AnAI.l3network.relationship-list.relationship[$z].relationship-data[0].relationship-value + ' MANUAL ROLLBACK IS REQUIRED.'`\"/>",
2888         "comments": "",
2889         "x": 1787.2795906066895,
2890         "y": 5132.695249557495,
2891         "z": "b24c83f7.abbc6",
2892         "wires": [
2893             []
2894         ]
2895     },
2896     {
2897         "id": "9cd29c09.984bd",
2898         "type": "set",
2899         "name": "set tmp.network-policy.updated = 1",
2900         "xml": "<set>\n<parameter name='tmp.network-policy.updated' value='1' />\n",
2901         "comments": "",
2902         "x": 2567.38090133667,
2903         "y": 3832.2736530303955,
2904         "z": "b24c83f7.abbc6",
2905         "wires": [
2906             []
2907         ]
2908     },
2909     {
2910         "id": "e0cc74f6.cef2e8",
2911         "type": "set",
2912         "name": "set tmp.vpn-binding.updated = 1",
2913         "xml": "<set>\n<parameter name='tmp.vpn-binding.updated' value='1' />\n",
2914         "comments": "",
2915         "x": 2044.4286079406738,
2916         "y": 3063.916700363159,
2917         "z": "b24c83f7.abbc6",
2918         "wires": [
2919             []
2920         ]
2921     },
2922     {
2923         "id": "cd9366f0.221d18",
2924         "type": "success",
2925         "name": "success",
2926         "xml": "<outcome value='success'>\n",
2927         "comments": "",
2928         "outputs": 1,
2929         "x": 2328.63090133667,
2930         "y": 3832.5236530303955,
2931         "z": "b24c83f7.abbc6",
2932         "wires": [
2933             [
2934                 "9cd29c09.984bd"
2935             ]
2936         ]
2937     },
2938     {
2939         "id": "e2c85fda.7c9cd",
2940         "type": "success",
2941         "name": "success",
2942         "xml": "<outcome value='success'>\n",
2943         "comments": "",
2944         "outputs": 1,
2945         "x": 1820.6786003112793,
2946         "y": 3063.916700363159,
2947         "z": "b24c83f7.abbc6",
2948         "wires": [
2949             [
2950                 "e0cc74f6.cef2e8"
2951             ]
2952         ]
2953     },
2954     {
2955         "id": "7e1ce913.d1ada8",
2956         "type": "other",
2957         "name": "network-policy",
2958         "xml": "<outcome value='network-policy'>\n",
2959         "comments": "",
2960         "outputs": 1,
2961         "x": 1141.583209991455,
2962         "y": 5223.654871940613,
2963         "z": "b24c83f7.abbc6",
2964         "wires": [
2965             [
2966                 "163697ef.53ddb8"
2967             ]
2968         ]
2969     },
2970     {
2971         "id": "a1822be9.e1be18",
2972         "type": "save",
2973         "name": "Rollback to save relationship: network-policy",
2974         "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-policy\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-policy.network-policy-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.l3network.relationship-list.relationship[$z].relationship-data[0].relationship-value`\" />",
2975         "comments": "",
2976         "outputs": 1,
2977         "x": 1309.16646194458,
2978         "y": 5282.988368034363,
2979         "z": "b24c83f7.abbc6",
2980         "wires": [
2981             [
2982                 "cde96a1a.b38188",
2983                 "c5b6850b.08be08"
2984             ]
2985         ]
2986     },
2987     {
2988         "id": "cde96a1a.b38188",
2989         "type": "failure",
2990         "name": "failure",
2991         "xml": "<outcome value='failure'>\n",
2992         "comments": "",
2993         "outputs": 1,
2994         "x": 1569.2393379211426,
2995         "y": 5282.463954925537,
2996         "z": "b24c83f7.abbc6",
2997         "wires": [
2998             [
2999                 "de78af5a.c6912"
3000             ]
3001         ]
3002     },
3003     {
3004         "id": "de78af5a.c6912",
3005         "type": "set",
3006         "name": "tmp.rollback.error-message",
3007         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.rollback.error-message\" value=\"`'An error occurred during rollback of l3-newtork network-policy relationship in AnAI where network-policy-id = ' + $tmp.AnAI.l3network.relationship-list.relationship[$z].relationship-data[0].relationship-value + ' MANUAL ROLLBACK IS REQUIRED.'`\"/>",
3008         "comments": "",
3009         "x": 1785.2316627502441,
3010         "y": 5282.849543571472,
3011         "z": "b24c83f7.abbc6",
3012         "wires": [
3013             []
3014         ]
3015     },
3016     {
3017         "id": "163697ef.53ddb8",
3018         "type": "switchNode",
3019         "name": "switch:  tmp.network-policy.updated == 1",
3020         "xml": "<switch test=\"`$tmp.network-policy.updated == 1`\">",
3021         "comments": "",
3022         "outputs": 1,
3023         "x": 1412.9166984558105,
3024         "y": 5223.655074119568,
3025         "z": "b24c83f7.abbc6",
3026         "wires": [
3027             [
3028                 "7a01074a.f70308"
3029             ]
3030         ]
3031     },
3032     {
3033         "id": "3307d5fd.2423fa",
3034         "type": "switchNode",
3035         "name": "switch:  tmp.vpn-binding.updated == 1",
3036         "xml": "<switch test=\"`$tmp.vpn-binding.updated == 1`\">",
3037         "comments": "",
3038         "outputs": 1,
3039         "x": 1372.916706085205,
3040         "y": 5074.655116081238,
3041         "z": "b24c83f7.abbc6",
3042         "wires": [
3043             [
3044                 "462a22ce.3cdbbc"
3045             ]
3046         ]
3047     },
3048     {
3049         "id": "462a22ce.3cdbbc",
3050         "type": "other",
3051         "name": "true",
3052         "xml": "<outcome value='true'>\n",
3053         "comments": "",
3054         "outputs": 1,
3055         "x": 1606.916706085205,
3056         "y": 5074.655116081238,
3057         "z": "b24c83f7.abbc6",
3058         "wires": [
3059             [
3060                 "befdd7ed.7d6be8"
3061             ]
3062         ]
3063     },
3064     {
3065         "id": "7a01074a.f70308",
3066         "type": "other",
3067         "name": "true",
3068         "xml": "<outcome value='true'>\n",
3069         "comments": "",
3070         "outputs": 1,
3071         "x": 1657.916706085205,
3072         "y": 5223.655116081238,
3073         "z": "b24c83f7.abbc6",
3074         "wires": [
3075             [
3076                 "a1822be9.e1be18"
3077             ]
3078         ]
3079     },
3080     {
3081         "id": "70aa977b.fe30d8",
3082         "type": "for",
3083         "name": "for loop i - tmp.AnAI.l3network.subnets.subnet[]",
3084         "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">\n",
3085         "comments": "",
3086         "outputs": 1,
3087         "x": 1018.5593681335449,
3088         "y": 5636.50013256073,
3089         "z": "b24c83f7.abbc6",
3090         "wires": [
3091             [
3092                 "e51d6a24.425c98"
3093             ]
3094         ]
3095     },
3096     {
3097         "id": "56134ac0.df0084",
3098         "type": "switchNode",
3099         "name": "switch: tmp.subnetRollback[].type",
3100         "xml": "<switch test=\"`$tmp.subnetRollback[$j].type`\">",
3101         "comments": "",
3102         "outputs": 1,
3103         "x": 1265.3325576782227,
3104         "y": 5719.288496017456,
3105         "z": "b24c83f7.abbc6",
3106         "wires": [
3107             [
3108                 "cab697cd.251568",
3109                 "d0693ac4.d5ac18"
3110             ]
3111         ]
3112     },
3113     {
3114         "id": "cab697cd.251568",
3115         "type": "outcomeTrue",
3116         "name": "delete",
3117         "xml": "<outcome value='delete'>\n",
3118         "comments": "",
3119         "outputs": 1,
3120         "x": 1504.0470352172852,
3121         "y": 5719.137134552002,
3122         "z": "b24c83f7.abbc6",
3123         "wires": [
3124             [
3125                 "74fc00ec.dc13f"
3126             ]
3127         ]
3128     },
3129     {
3130         "id": "d0693ac4.d5ac18",
3131         "type": "outcomeTrue",
3132         "name": "update",
3133         "xml": "<outcome value='update'>\n",
3134         "comments": "",
3135         "outputs": 1,
3136         "x": 1505.6183624267578,
3137         "y": 5764.709531784058,
3138         "z": "b24c83f7.abbc6",
3139         "wires": [
3140             [
3141                 "32bdc1c1.96f2ee"
3142             ]
3143         ]
3144     },
3145     {
3146         "id": "74fc00ec.dc13f",
3147         "type": "save",
3148         "name": "Rollback AnAI delete - l3network.subnets.subnet",
3149         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnetRollback[$j].subnet-id\" >\n<parameter name=\"orchestration-status\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].orchestration-status`\" />\n\t\t",
3150         "comments": "",
3151         "outputs": 1,
3152         "x": 1786.475700378418,
3153         "y": 5718.710096359253,
3154         "z": "b24c83f7.abbc6",
3155         "wires": [
3156             [
3157                 "d50c1822.8cb098",
3158                 "ad551bbf.58fcc8"
3159             ]
3160         ]
3161     },
3162     {
3163         "id": "76cbcff8.a7aa9",
3164         "type": "outcomeTrue",
3165         "name": "create",
3166         "xml": "<outcome value='create'>\n",
3167         "comments": "",
3168         "outputs": 1,
3169         "x": 1657.0249366760254,
3170         "y": 5868.8378829956055,
3171         "z": "b24c83f7.abbc6",
3172         "wires": [
3173             [
3174                 "5e8f2f9e.a1436"
3175             ]
3176         ]
3177     },
3178     {
3179         "id": "5e8f2f9e.a1436",
3180         "type": "delete",
3181         "name": "Rollback AnAI create -  l3-network.subnets.subnet",
3182         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnetRollback[$j].subnet-id\" >",
3183         "comments": "",
3184         "outputs": 1,
3185         "x": 1943.310344696045,
3186         "y": 5867.815706253052,
3187         "z": "b24c83f7.abbc6",
3188         "wires": [
3189             [
3190                 "eb93aa28.0b07f8",
3191                 "c1cf86f2.493818"
3192             ]
3193         ]
3194     },
3195     {
3196         "id": "30cb9475.50352c",
3197         "type": "for",
3198         "name": "for loop j - subnetRollback[]",
3199         "xml": "<for index=\"j\" start=\"0\" end=\"`$x`\">\n",
3200         "comments": "",
3201         "outputs": 1,
3202         "x": 728.845157623291,
3203         "y": 5525.070099830627,
3204         "z": "b24c83f7.abbc6",
3205         "wires": [
3206             [
3207                 "dad835c6.d0c618"
3208             ]
3209         ]
3210     },
3211     {
3212         "id": "e51d6a24.425c98",
3213         "type": "switchNode",
3214         "name": "switch: subnet-id  tmp.AnAI.l3network.subnets.subnet[] == tmp.subnetRollback[]",
3215         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$i].subnet-id == $tmp.subnetRollback[$j].subnet-id`\">",
3216         "comments": "",
3217         "outputs": 1,
3218         "x": 1521.5595359802246,
3219         "y": 5636.785568237305,
3220         "z": "b24c83f7.abbc6",
3221         "wires": [
3222             [
3223                 "f63c8882.16f8c8"
3224             ]
3225         ]
3226     },
3227     {
3228         "id": "f63c8882.16f8c8",
3229         "type": "outcomeTrue",
3230         "name": "true",
3231         "xml": "<outcome value='true'>\n",
3232         "comments": "",
3233         "outputs": 1,
3234         "x": 1899.2739334106445,
3235         "y": 5637.213930130005,
3236         "z": "b24c83f7.abbc6",
3237         "wires": [
3238             [
3239                 "7bc44cc3.686514"
3240             ]
3241         ]
3242     },
3243     {
3244         "id": "32bdc1c1.96f2ee",
3245         "type": "save",
3246         "name": "rollback AnAI update - l3-network.subnets.subnet ",
3247         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$j].subnet-id\" >\n<parameter name=\"subnet-name\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].subnet-name`\"/>\n<parameter name=\"gateway-address\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].gateway-address`\"/>\n<parameter name=\"cidr-mask\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].cidr-mask`\"/>\n<parameter name=\"dhcp-start\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].dhcp-start`\"/>\n<parameter name=\"dhcp-end\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].dhcp-end`\"/>\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].dhcp-enabled`\"/>\n<parameter name=\"orchestration-status\" value=\"`$tmp.AnAI.l3network.subnets.subnet[$i].orchestration-status`\" />\n\t\t",
3248         "comments": "",
3249         "outputs": 1,
3250         "x": 1788.274269104004,
3251         "y": 5764.070308685303,
3252         "z": "b24c83f7.abbc6",
3253         "wires": [
3254             [
3255                 "1f2ad8bc.a55ac7",
3256                 "e61b880e.096858"
3257             ]
3258         ]
3259     },
3260     {
3261         "id": "90858a29.37fc08",
3262         "type": "set",
3263         "name": "set tmp.subnetUpdate = 1",
3264         "xml": "<set>\n<parameter name=\"tmp.subnetUpdate\" value=\"1\" />\n",
3265         "comments": "",
3266         "x": 2039.7500114440918,
3267         "y": 467.30952644348145,
3268         "z": "b24c83f7.abbc6",
3269         "wires": [
3270             []
3271         ]
3272     },
3273     {
3274         "id": "2e3c7ba2.d21b54",
3275         "type": "returnSuccess",
3276         "name": "set execute_failure = true",
3277         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
3278         "comments": "",
3279         "x": 1703.5237846374512,
3280         "y": 4707.786193847656,
3281         "z": "b24c83f7.abbc6",
3282         "wires": []
3283     },
3284     {
3285         "id": "8ecdb1d7.aea0c",
3286         "type": "outcomeTrue",
3287         "name": "true",
3288         "xml": "<outcome value=\"true\">",
3289         "outputs": 1,
3290         "x": 626.4760551452637,
3291         "y": 4866.821534156799,
3292         "z": "b24c83f7.abbc6",
3293         "wires": [
3294             [
3295                 "fb5a4fe8.b156b"
3296             ]
3297         ]
3298     },
3299     {
3300         "id": "59c57e09.0c9bd",
3301         "type": "switchNode",
3302         "name": "switch: execute_failure",
3303         "xml": "<switch test=\"`$execute_failure`\">",
3304         "comments": "",
3305         "outputs": 1,
3306         "x": 420.53577041625977,
3307         "y": 1611.0597400665283,
3308         "z": "b24c83f7.abbc6",
3309         "wires": [
3310             [
3311                 "41ca0932.f48da8"
3312             ]
3313         ]
3314     },
3315     {
3316         "id": "41ca0932.f48da8",
3317         "type": "outcomeFalse",
3318         "name": "false",
3319         "xml": "<outcome value='false'>\n",
3320         "comments": "",
3321         "outputs": 1,
3322         "x": 623.2500190734863,
3323         "y": 1611.059762954712,
3324         "z": "b24c83f7.abbc6",
3325         "wires": [
3326             [
3327                 "99484323.6781e"
3328             ]
3329         ]
3330     },
3331     {
3332         "id": "15930eb5.9d2c61",
3333         "type": "switchNode",
3334         "name": "switch: execute_failure",
3335         "xml": "<switch test=\"`$execute_failure`\">",
3336         "comments": "",
3337         "outputs": 1,
3338         "x": 822.3214836120605,
3339         "y": 1218.0238513946533,
3340         "z": "b24c83f7.abbc6",
3341         "wires": [
3342             [
3343                 "13aa477e.313a59"
3344             ]
3345         ]
3346     },
3347     {
3348         "id": "13aa477e.313a59",
3349         "type": "outcomeFalse",
3350         "name": "false",
3351         "xml": "<outcome value='false'>\n",
3352         "comments": "",
3353         "outputs": 1,
3354         "x": 1028.035732269287,
3355         "y": 1218.023874282837,
3356         "z": "b24c83f7.abbc6",
3357         "wires": [
3358             [
3359                 "4fd8628d.a08a8c"
3360             ]
3361         ]
3362     },
3363     {
3364         "id": "eea3a1e.e88116",
3365         "type": "set",
3366         "name": "set k, n max + 1",
3367         "xml": "<set>\n\t<parameter name='k' value='`$tmp.AnAI.l3network.subnets.subnet_length + 1`' />\n\t<parameter name='n' value='`$preload-data.network-topology-information.subnets_length + 1`' />",
3368         "comments": "",
3369         "x": 2009.035930633545,
3370         "y": 1281.0239906311035,
3371         "z": "b24c83f7.abbc6",
3372         "wires": [
3373             []
3374         ]
3375     },
3376     {
3377         "id": "fcfd2600.488c78",
3378         "type": "set",
3379         "name": "set k, n max + 1",
3380         "xml": "<set>\n\t<parameter name='k' value='`$tmp.AnAI.l3network.subnets.subnet_length + 1`' />\n\t<parameter name='n' value='`$preload-data.network-topology-information.subnets_length + 1`' />",
3381         "comments": "",
3382         "x": 2495.2500495910645,
3383         "y": 1026.416687965393,
3384         "z": "b24c83f7.abbc6",
3385         "wires": [
3386             []
3387         ]
3388     },
3389     {
3390         "id": "f15dac05.a23f",
3391         "type": "switchNode",
3392         "name": "switch: execute_failure",
3393         "xml": "<switch test=\"`$execute_failure`\">",
3394         "comments": "",
3395         "outputs": 1,
3396         "x": 417.50002670288086,
3397         "y": 2252.666706085205,
3398         "z": "b24c83f7.abbc6",
3399         "wires": [
3400             [
3401                 "aae89695.f77e48"
3402             ]
3403         ]
3404     },
3405     {
3406         "id": "aae89695.f77e48",
3407         "type": "outcomeFalse",
3408         "name": "false",
3409         "xml": "<outcome value='false'>\n",
3410         "comments": "",
3411         "outputs": 1,
3412         "x": 620.2142753601074,
3413         "y": 2252.6667289733887,
3414         "z": "b24c83f7.abbc6",
3415         "wires": [
3416             [
3417                 "ea36d758.4a9288"
3418             ]
3419         ]
3420     },
3421     {
3422         "id": "b16ab5f2.35a148",
3423         "type": "switchNode",
3424         "name": "switch: execute_failure",
3425         "xml": "<switch test=\"`$execute_failure`\">",
3426         "comments": "",
3427         "outputs": 1,
3428         "x": 419.91669845581055,
3429         "y": 4867.2497272491455,
3430         "z": "b24c83f7.abbc6",
3431         "wires": [
3432             [
3433                 "8ecdb1d7.aea0c"
3434             ]
3435         ]
3436     },
3437     {
3438         "id": "bb8ce764.d17888",
3439         "type": "switchNode",
3440         "name": "switch: execute_failure",
3441         "xml": "<switch test=\"`$execute_failure`\">",
3442         "comments": "",
3443         "outputs": 1,
3444         "x": 426.8452568054199,
3445         "y": 4584.21407699585,
3446         "z": "b24c83f7.abbc6",
3447         "wires": [
3448             [
3449                 "4b1ed48a.23e81c"
3450             ]
3451         ]
3452     },
3453     {
3454         "id": "4b1ed48a.23e81c",
3455         "type": "outcomeFalse",
3456         "name": "false",
3457         "xml": "<outcome value='false'>\n",
3458         "comments": "",
3459         "outputs": 1,
3460         "x": 629.5595054626465,
3461         "y": 4584.214099884033,
3462         "z": "b24c83f7.abbc6",
3463         "wires": [
3464             [
3465                 "80e7eee4.21ab2"
3466             ]
3467         ]
3468     },
3469     {
3470         "id": "c10e73d.da8889",
3471         "type": "switchNode",
3472         "name": "switch: texecute_failure",
3473         "xml": "<switch test=\"`$execute_failure`\">",
3474         "comments": "",
3475         "outputs": 1,
3476         "x": 441.80556869506836,
3477         "y": 3195.333309173584,
3478         "z": "b24c83f7.abbc6",
3479         "wires": [
3480             [
3481                 "452cff0a.34b71"
3482             ]
3483         ]
3484     },
3485     {
3486         "id": "452cff0a.34b71",
3487         "type": "outcomeFalse",
3488         "name": "false",
3489         "xml": "<outcome value='false'>\n",
3490         "comments": "",
3491         "outputs": 1,
3492         "x": 644.5198173522949,
3493         "y": 3195.3333320617676,
3494         "z": "b24c83f7.abbc6",
3495         "wires": [
3496             [
3497                 "70d1080b.b08868"
3498             ]
3499         ]
3500     },
3501     {
3502         "id": "6f14f693.d5a4e8",
3503         "type": "switchNode",
3504         "name": "switch: execute_failure",
3505         "xml": "<switch test=\"`$execute_failure`\">",
3506         "comments": "",
3507         "outputs": 1,
3508         "x": 748.750057220459,
3509         "y": 2416.8331909179688,
3510         "z": "b24c83f7.abbc6",
3511         "wires": [
3512             [
3513                 "4f7b45c9.8320cc"
3514             ]
3515         ]
3516     },
3517     {
3518         "id": "4f7b45c9.8320cc",
3519         "type": "outcomeFalse",
3520         "name": "false",
3521         "xml": "<outcome value='false'>\n",
3522         "comments": "",
3523         "outputs": 1,
3524         "x": 951.4643058776855,
3525         "y": 2416.8332138061523,
3526         "z": "b24c83f7.abbc6",
3527         "wires": [
3528             [
3529                 "1cdf3f9f.d8ad9"
3530             ]
3531         ]
3532     },
3533     {
3534         "id": "1cdf3f9f.d8ad9",
3535         "type": "block",
3536         "name": "block : atomic",
3537         "xml": "<block atomic='true'>",
3538         "atomic": "true",
3539         "comments": "",
3540         "outputs": 1,
3541         "x": 575.4166831970215,
3542         "y": 2500.1666870117188,
3543         "z": "b24c83f7.abbc6",
3544         "wires": [
3545             [
3546                 "a47b8b14.1829d8",
3547                 "c4f81359.003b8"
3548             ]
3549         ]
3550     },
3551     {
3552         "id": "2f44a8dd.3b2668",
3553         "type": "returnSuccess",
3554         "name": "set execute_failure = true",
3555         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
3556         "comments": "",
3557         "x": 1379.3213157653809,
3558         "y": 2357.7857484817505,
3559         "z": "b24c83f7.abbc6",
3560         "wires": []
3561     },
3562     {
3563         "id": "69801ad3.b07ae4",
3564         "type": "returnSuccess",
3565         "name": "set execute_failure = true",
3566         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
3567         "comments": "",
3568         "x": 2416.083438873291,
3569         "y": 2728.4998531341553,
3570         "z": "b24c83f7.abbc6",
3571         "wires": []
3572     },
3573     {
3574         "id": "236011f6.f5e4be",
3575         "type": "switchNode",
3576         "name": "switch: execute_failure",
3577         "xml": "<switch test=\"`$execute_failure`\">",
3578         "comments": "",
3579         "outputs": 1,
3580         "x": 1326.7500114440918,
3581         "y": 2731.1666736602783,
3582         "z": "b24c83f7.abbc6",
3583         "wires": [
3584             [
3585                 "a714abe2.f5c9e8"
3586             ]
3587         ]
3588     },
3589     {
3590         "id": "a714abe2.f5c9e8",
3591         "type": "outcomeFalse",
3592         "name": "false",
3593         "xml": "<outcome value='false'>\n",
3594         "comments": "",
3595         "outputs": 1,
3596         "x": 1529.4642601013184,
3597         "y": 2731.166696548462,
3598         "z": "b24c83f7.abbc6",
3599         "wires": [
3600             [
3601                 "d8a1ae30.7e241"
3602             ]
3603         ]
3604     },
3605     {
3606         "id": "67a32bcf.a45a94",
3607         "type": "returnSuccess",
3608         "name": "set execute_failure = true",
3609         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
3610         "comments": "",
3611         "x": 2201.1783409118652,
3612         "y": 3006.547595977783,
3613         "z": "b24c83f7.abbc6",
3614         "wires": []
3615     },
3616     {
3617         "id": "d62cda9.c225228",
3618         "type": "set",
3619         "name": "set i = max + 1",
3620         "xml": "<set>\n  <parameter name=\"i\" value = \"`$preload-data.network-topology-information.vpn-bindings_length + 1`\"  />\n\n",
3621         "comments": "",
3622         "x": 2168.321300506592,
3623         "y": 2963.452346801758,
3624         "z": "b24c83f7.abbc6",
3625         "wires": [
3626             []
3627         ]
3628     },
3629     {
3630         "id": "67e9507e.488ea",
3631         "type": "switchNode",
3632         "name": "switch: execute_failure",
3633         "xml": "<switch test=\"`$execute_failure`\">",
3634         "comments": "",
3635         "outputs": 1,
3636         "x": 722.6388664245605,
3637         "y": 3411.7224493026733,
3638         "z": "b24c83f7.abbc6",
3639         "wires": [
3640             [
3641                 "24fa2743.255dc8"
3642             ]
3643         ]
3644     },
3645     {
3646         "id": "24fa2743.255dc8",
3647         "type": "outcomeFalse",
3648         "name": "false",
3649         "xml": "<outcome value='false'>\n",
3650         "comments": "",
3651         "outputs": 1,
3652         "x": 925.3531150817871,
3653         "y": 3411.722472190857,
3654         "z": "b24c83f7.abbc6",
3655         "wires": [
3656             [
3657                 "abcc1298.8b121"
3658             ]
3659         ]
3660     },
3661     {
3662         "id": "abcc1298.8b121",
3663         "type": "block",
3664         "name": "block : atomic",
3665         "xml": "<block atomic='true'>",
3666         "atomic": "true",
3667         "comments": "",
3668         "outputs": 1,
3669         "x": 551.5277671813965,
3670         "y": 3498.1664628982544,
3671         "z": "b24c83f7.abbc6",
3672         "wires": [
3673             [
3674                 "9dcafbd2.180118",
3675                 "f4907fd3.a65"
3676             ]
3677         ]
3678     },
3679     {
3680         "id": "8aeb103.23b59f",
3681         "type": "returnSuccess",
3682         "name": "set execute_failure = true",
3683         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
3684         "comments": "",
3685         "x": 1377.8608665466309,
3686         "y": 3317.5153970718384,
3687         "z": "b24c83f7.abbc6",
3688         "wires": []
3689     },
3690     {
3691         "id": "338842a2.95efee",
3692         "type": "returnSuccess",
3693         "name": "set execute_failure = true",
3694         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
3695         "comments": "",
3696         "x": 2245.4166526794434,
3697         "y": 3628.166793823242,
3698         "z": "b24c83f7.abbc6",
3699         "wires": []
3700     },
3701     {
3702         "id": "133667f2.eb77f8",
3703         "type": "returnSuccess",
3704         "name": "set execute_failure = true",
3705         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
3706         "comments": "",
3707         "x": 2704.7027473449707,
3708         "y": 3785.4525051116943,
3709         "z": "b24c83f7.abbc6",
3710         "wires": []
3711     },
3712     {
3713         "id": "9d0c9a84.7d8738",
3714         "type": "set",
3715         "name": "set tmp.subnetUpdate = 1",
3716         "xml": "<set>\n<parameter name=\"tmp.subnetUpdate\" value=\"1\" />\n",
3717         "comments": "",
3718         "x": 2812.464214324951,
3719         "y": 697.5952434539795,
3720         "z": "b24c83f7.abbc6",
3721         "wires": [
3722             []
3723         ]
3724     },
3725     {
3726         "id": "9e7603e8.19f05",
3727         "type": "outcomeTrue",
3728         "name": "true",
3729         "xml": "<outcome value='true'>\n",
3730         "comments": "",
3731         "outputs": 1,
3732         "x": 2322.178722381592,
3733         "y": 693.7380847930908,
3734         "z": "b24c83f7.abbc6",
3735         "wires": [
3736             [
3737                 "17af6854.693e78"
3738             ]
3739         ]
3740     },
3741     {
3742         "id": "17af6854.693e78",
3743         "type": "set",
3744         "name": "set tmp.gateway-address",
3745         "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$preload-data.network-topology-information.subnets[$n].gateway-address`\" />\n",
3746         "comments": "",
3747         "x": 2518.035655975342,
3748         "y": 693.8809680938721,
3749         "z": "b24c83f7.abbc6",
3750         "wires": [
3751             []
3752         ]
3753     },
3754     {
3755         "id": "dad835c6.d0c618",
3756         "type": "block",
3757         "name": "block : atomic",
3758         "xml": "<block atomic='true'>",
3759         "atomic": "true",
3760         "comments": "",
3761         "outputs": 1,
3762         "x": 728.4644050598145,
3763         "y": 5585.832514762878,
3764         "z": "b24c83f7.abbc6",
3765         "wires": [
3766             [
3767                 "70aa977b.fe30d8",
3768                 "e3487ebb.a5939",
3769                 "153987c7.1a4048"
3770             ]
3771         ]
3772     },
3773     {
3774         "id": "f6fe6422.4322c8",
3775         "type": "set",
3776         "name": "set: tmp.rollbck.match = 1",
3777         "xml": "<set>\n\t<parameter name=\"tmp.rollback.match\" value=\"1\"/>",
3778         "comments": "",
3779         "x": 1242.6072006225586,
3780         "y": 5804.118718147278,
3781         "z": "b24c83f7.abbc6",
3782         "wires": [
3783             []
3784         ]
3785     },
3786     {
3787         "id": "7bc44cc3.686514",
3788         "type": "block",
3789         "name": "block : atomic",
3790         "xml": "<block atomic='true'>",
3791         "atomic": "true",
3792         "comments": "",
3793         "outputs": 1,
3794         "x": 996.6070785522461,
3795         "y": 5719.1187171936035,
3796         "z": "b24c83f7.abbc6",
3797         "wires": [
3798             [
3799                 "56134ac0.df0084",
3800                 "f6fe6422.4322c8"
3801             ]
3802         ]
3803     },
3804     {
3805         "id": "e3487ebb.a5939",
3806         "type": "switchNode",
3807         "name": "switch: tmp.rollback.match == 0",
3808         "xml": "<switch test=\"`$tmp.rollback.match == 0`\">",
3809         "comments": "",
3810         "outputs": 1,
3811         "x": 970.8927803039551,
3812         "y": 5869.405124664307,
3813         "z": "b24c83f7.abbc6",
3814         "wires": [
3815             [
3816                 "97427759.0023b8"
3817             ]
3818         ]
3819     },
3820     {
3821         "id": "44553355.40997c",
3822         "type": "switchNode",
3823         "name": "switch: tmp.subnetRollback[].type",
3824         "xml": "<switch test=\"`$tmp.subnetRollback[$j].type`\">",
3825         "comments": "",
3826         "outputs": 1,
3827         "x": 1423.607120513916,
3828         "y": 5868.690284729004,
3829         "z": "b24c83f7.abbc6",
3830         "wires": [
3831             [
3832                 "76cbcff8.a7aa9"
3833             ]
3834         ]
3835     },
3836     {
3837         "id": "d50c1822.8cb098",
3838         "type": "failure",
3839         "name": "failure",
3840         "xml": "<outcome value='failure'>\n",
3841         "comments": "",
3842         "outputs": 1,
3843         "x": 2076.3214721679688,
3844         "y": 5718.976065635681,
3845         "z": "b24c83f7.abbc6",
3846         "wires": [
3847             [
3848                 "abd6e5ca.0f7378"
3849             ]
3850         ]
3851     },
3852     {
3853         "id": "abd6e5ca.0f7378",
3854         "type": "set",
3855         "name": "set: tmp.rollback.error-message",
3856         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.rollback.error-message\" value=\"`'failed to rollback the subnet.orchestration-status in AnAI where subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' MANUAL ROLLBACK IS REQUIRED.'`\"/>",
3857         "comments": "",
3858         "x": 2341.3138847351074,
3859         "y": 5718.36167049408,
3860         "z": "b24c83f7.abbc6",
3861         "wires": [
3862             []
3863         ]
3864     },
3865     {
3866         "id": "a1bcb891.4f80b8",
3867         "type": "set",
3868         "name": "set: tmp.rollback.error-message",
3869         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.rollback.error-message\" value=\"`'failed to rollback the subnet attributes update in AnAI where subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' MANUAL ROLLBACK IS REQUIRED.'`\"/>",
3870         "comments": "",
3871         "x": 2344.1787719726562,
3872         "y": 5763.833457946777,
3873         "z": "b24c83f7.abbc6",
3874         "wires": [
3875             []
3876         ]
3877     },
3878     {
3879         "id": "602727b5.9746c8",
3880         "type": "set",
3881         "name": "set: tmp.rollback.error-message",
3882         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.rollback.error-message\" value=\"`'failed to rollback to delete subnet from AnAI where subnet-id = ' + $tmp.subnetRollback[$j].subnet-id + ' MANUAL ROLLBACK IS REQUIRED.'`\"/>",
3883         "comments": "",
3884         "x": 2462.321430206299,
3885         "y": 5867.9756507873535,
3886         "z": "b24c83f7.abbc6",
3887         "wires": [
3888             []
3889         ]
3890     },
3891     {
3892         "id": "1f2ad8bc.a55ac7",
3893         "type": "failure",
3894         "name": "failure",
3895         "xml": "<outcome value='failure'>\n",
3896         "comments": "",
3897         "outputs": 1,
3898         "x": 2076.3212890625,
3899         "y": 5764.11878490448,
3900         "z": "b24c83f7.abbc6",
3901         "wires": [
3902             [
3903                 "a1bcb891.4f80b8"
3904             ]
3905         ]
3906     },
3907     {
3908         "id": "eb93aa28.0b07f8",
3909         "type": "failure",
3910         "name": "failure",
3911         "xml": "<outcome value='failure'>\n",
3912         "comments": "",
3913         "outputs": 1,
3914         "x": 2231.4643592834473,
3915         "y": 5867.404291152954,
3916         "z": "b24c83f7.abbc6",
3917         "wires": [
3918             [
3919                 "602727b5.9746c8"
3920             ]
3921         ]
3922     },
3923     {
3924         "id": "cdfeb5ff.d63b08",
3925         "type": "set",
3926         "name": "set: tmp.rollback.error-message",
3927         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.rollback.error-message\" value=\"`'failed to rollback l3network.orchestration-status in AnAI where subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' MANUAL ROLLBACK IS REQUIRED.'`\"/>",
3928         "comments": "",
3929         "x": 1794.464267730713,
3930         "y": 5975.404790878296,
3931         "z": "b24c83f7.abbc6",
3932         "wires": [
3933             []
3934         ]
3935     },
3936     {
3937         "id": "d11dd828.7802a8",
3938         "type": "failure",
3939         "name": "failure",
3940         "xml": "<outcome value='failure'>\n",
3941         "comments": "",
3942         "outputs": 1,
3943         "x": 1556.6071968078613,
3944         "y": 5975.8334312438965,
3945         "z": "b24c83f7.abbc6",
3946         "wires": [
3947             [
3948                 "cdfeb5ff.d63b08"
3949             ]
3950         ]
3951     },
3952     {
3953         "id": "d02a826d.205fd",
3954         "type": "comment",
3955         "name": "----  ROLLBACK STARTS HERE  ----",
3956         "info": "",
3957         "comments": "",
3958         "x": 484.1071357727051,
3959         "y": 4820.047375679016,
3960         "z": "b24c83f7.abbc6",
3961         "wires": []
3962     },
3963     {
3964         "id": "ca78be2.35c6c4",
3965         "type": "set",
3966         "name": "set: tmp.error-message",
3967         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving new subnet in AnAI with subnet-id = ' + $tmp.return.generate-subnets-subnet-id.uuid`\"/>",
3968         "comments": "",
3969         "x": 2037.1785850524902,
3970         "y": 2146.595244407654,
3971         "z": "b24c83f7.abbc6",
3972         "wires": [
3973             []
3974         ]
3975     },
3976     {
3977         "id": "1623f021.c2b9",
3978         "type": "set",
3979         "name": "set: tmp.error-message",
3980         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while updating subnet status to pending-delete in AnAI with subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$k].subnet-id`\"/>",
3981         "comments": "",
3982         "x": 2030.3214073181152,
3983         "y": 1323.7380981445312,
3984         "z": "b24c83f7.abbc6",
3985         "wires": [
3986             []
3987         ]
3988     },
3989     {
3990         "id": "5d6b7d0.b989584",
3991         "type": "set",
3992         "name": "set: tmp.error-message",
3993         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while updating subnet attributes in AnAI with subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$k].subnet-id`\"/>",
3994         "comments": "",
3995         "x": 2519.464366912842,
3996         "y": 1069.880968093872,
3997         "z": "b24c83f7.abbc6",
3998         "wires": [
3999             []
4000         ]
4001     },
4002     {
4003         "id": "153987c7.1a4048",
4004         "type": "set",
4005         "name": "set: tmp.rollbck.match = 0",
4006         "xml": "<set>\n\t<parameter name=\"tmp.rollback.match\" value=\"0\"/>",
4007         "comments": "",
4008         "x": 950.8928108215332,
4009         "y": 5586.119483947754,
4010         "z": "b24c83f7.abbc6",
4011         "wires": [
4012             []
4013         ]
4014     },
4015     {
4016         "id": "92778af8.befa68",
4017         "type": "not-found",
4018         "name": "not-found",
4019         "xml": "<outcome value='not-found'>\n",
4020         "comments": "",
4021         "outputs": 1,
4022         "x": 1643.0358047485352,
4023         "y": 2149.9285049438477,
4024         "z": "b24c83f7.abbc6",
4025         "wires": [
4026             [
4027                 "8dabdae5.57ab58"
4028             ]
4029         ]
4030     },
4031     {
4032         "id": "150db709.87fab9",
4033         "type": "not-found",
4034         "name": "not-found",
4035         "xml": "<outcome value='not-found'>\n",
4036         "comments": "",
4037         "outputs": 1,
4038         "x": 1612.1785697937012,
4039         "y": 1325.3571643829346,
4040         "z": "b24c83f7.abbc6",
4041         "wires": [
4042             [
4043                 "c6b0d6cd.d0a058"
4044             ]
4045         ]
4046     },
4047     {
4048         "id": "c9c8378e.07a4c8",
4049         "type": "not-found",
4050         "name": "not-found",
4051         "xml": "<outcome value='not-found'>\n",
4052         "comments": "",
4053         "outputs": 1,
4054         "x": 2135.8928031921387,
4055         "y": 1069.928575515747,
4056         "z": "b24c83f7.abbc6",
4057         "wires": [
4058             [
4059                 "cd77a967.3c6308"
4060             ]
4061         ]
4062     },
4063     {
4064         "id": "49306a1.5c79894",
4065         "type": "not-found",
4066         "name": "not-found",
4067         "xml": "<outcome value='not-found'>\n",
4068         "comments": "",
4069         "outputs": 1,
4070         "x": 1826.6071586608887,
4071         "y": 2964.214220046997,
4072         "z": "b24c83f7.abbc6",
4073         "wires": [
4074             [
4075                 "bd84c069.9f407"
4076             ]
4077         ]
4078     },
4079     {
4080         "id": "c3c189a0.4ccb58",
4081         "type": "not-found",
4082         "name": "not-found",
4083         "xml": "<outcome value='not-found'>\n",
4084         "comments": "",
4085         "outputs": 1,
4086         "x": 2330.6071586608887,
4087         "y": 3788.071397781372,
4088         "z": "b24c83f7.abbc6",
4089         "wires": [
4090             []
4091         ]
4092     },
4093     {
4094         "id": "40f41704.9cc688",
4095         "type": "not-found",
4096         "name": "not-found",
4097         "xml": "<outcome value='not-found'>\n",
4098         "comments": "",
4099         "outputs": 1,
4100         "x": 1280.1071510314941,
4101         "y": 4706.237885475159,
4102         "z": "b24c83f7.abbc6",
4103         "wires": [
4104             [
4105                 "b682bac.b292748"
4106             ]
4107         ]
4108     },
4109     {
4110         "id": "10056ed4.c3d191",
4111         "type": "switchNode",
4112         "name": "switch: AnAI == INPUT - network-name",
4113         "xml": "<switch test=\"`$tmp.AnAI.l3network.network-name == $network-topology-operation-input.network-request-information.network-name`\">",
4114         "comments": "",
4115         "outputs": 1,
4116         "x": 482.1785697937012,
4117         "y": 250.93650436401367,
4118         "z": "b24c83f7.abbc6",
4119         "wires": [
4120             [
4121                 "9ed8a698.ef15c8"
4122             ]
4123         ]
4124     },
4125     {
4126         "id": "9ed8a698.ef15c8",
4127         "type": "not-found",
4128         "name": "false",
4129         "xml": "<outcome value='false'>\n",
4130         "comments": "",
4131         "outputs": 1,
4132         "x": 729.4285697937012,
4133         "y": 250.94050121307373,
4134         "z": "b24c83f7.abbc6",
4135         "wires": [
4136             [
4137                 "669252c9.4ba83c"
4138             ]
4139         ]
4140     },
4141     {
4142         "id": "669252c9.4ba83c",
4143         "type": "returnFailure",
4144         "name": "return failure",
4145         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"`'The input network-name,' + network-topology-operation-input.network-request-information.network-name + ', does not match what is returned from AnAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />",
4146         "comments": "",
4147         "x": 892.0673446655273,
4148         "y": 250.82948875427246,
4149         "z": "b24c83f7.abbc6",
4150         "wires": []
4151     },
4152     {
4153         "id": "b4cd1414.581b48",
4154         "type": "switchNode",
4155         "name": "switch: AnAI == INPUT - network-type",
4156         "xml": "<switch test=\"`$tmp.AnAI.l3network.network-type == $network-topology-operation-input.network-request-information.network-type`\">",
4157         "comments": "",
4158         "outputs": 1,
4159         "x": 475.892822265625,
4160         "y": 294.22220611572266,
4161         "z": "b24c83f7.abbc6",
4162         "wires": [
4163             [
4164                 "4ad1dbfd.e57f94"
4165             ]
4166         ]
4167     },
4168     {
4169         "id": "4ad1dbfd.e57f94",
4170         "type": "not-found",
4171         "name": "false",
4172         "xml": "<outcome value='false'>\n",
4173         "comments": "",
4174         "outputs": 1,
4175         "x": 730.142822265625,
4176         "y": 294.2262029647827,
4177         "z": "b24c83f7.abbc6",
4178         "wires": [
4179             [
4180                 "3522894b.36b6e6"
4181             ]
4182         ]
4183     },
4184     {
4185         "id": "3522894b.36b6e6",
4186         "type": "returnFailure",
4187         "name": "return failure",
4188         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"`'The input network-type,' + network-topology-operation-input.network-request-information.network-type + ', does not match what is returned from AnAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />",
4189         "comments": "",
4190         "x": 892.7815971374512,
4191         "y": 294.11519050598145,
4192         "z": "b24c83f7.abbc6",
4193         "wires": []
4194     },
4195     {
4196         "id": "e456340c.466478",
4197         "type": "switchNode",
4198         "name": "switch: AnAI == PRELOAD - network-type",
4199         "xml": "<switch test=\"`$tmp.AnAI.l3network.network-type == $preload-data.network-topology-information.network-topology-identifier.network-type`\">",
4200         "comments": "",
4201         "outputs": 1,
4202         "x": 491.0357475280762,
4203         "y": 384.22219944000244,
4204         "z": "b24c83f7.abbc6",
4205         "wires": [
4206             [
4207                 "9cd473e1.2c58a"
4208             ]
4209         ]
4210     },
4211     {
4212         "id": "9cd473e1.2c58a",
4213         "type": "not-found",
4214         "name": "false",
4215         "xml": "<outcome value='false'>\n",
4216         "comments": "",
4217         "outputs": 1,
4218         "x": 747.2857475280762,
4219         "y": 384.2261962890625,
4220         "z": "b24c83f7.abbc6",
4221         "wires": [
4222             [
4223                 "6893351b.74b03c"
4224             ]
4225         ]
4226     },
4227     {
4228         "id": "6893351b.74b03c",
4229         "type": "returnFailure",
4230         "name": "return failure",
4231         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"`'No preload network found with network-type = ' + $tmp.AnAI.l3network.network-type + ' in SDNC'`\" />",
4232         "comments": "",
4233         "x": 909.9245223999023,
4234         "y": 384.11518383026123,
4235         "z": "b24c83f7.abbc6",
4236         "wires": []
4237     },
4238     {
4239         "id": "97427759.0023b8",
4240         "type": "other",
4241         "name": "true",
4242         "xml": "<outcome value='true'>\n",
4243         "comments": "",
4244         "outputs": 1,
4245         "x": 1190.7143287658691,
4246         "y": 5869.460375785828,
4247         "z": "b24c83f7.abbc6",
4248         "wires": [
4249             [
4250                 "44553355.40997c"
4251             ]
4252         ]
4253     },
4254     {
4255         "id": "c5b6850b.08be08",
4256         "type": "not-found",
4257         "name": "not-found",
4258         "xml": "<outcome value='not-found'>\n",
4259         "comments": "",
4260         "outputs": 1,
4261         "x": 1577.4998817443848,
4262         "y": 5322.082991600037,
4263         "z": "b24c83f7.abbc6",
4264         "wires": [
4265             [
4266                 "de78af5a.c6912"
4267             ]
4268         ]
4269     },
4270     {
4271         "id": "d4b57fb0.f24f4",
4272         "type": "not-found",
4273         "name": "not-found",
4274         "xml": "<outcome value='not-found'>\n",
4275         "comments": "",
4276         "outputs": 1,
4277         "x": 1554.4998817443848,
4278         "y": 5173.749495506287,
4279         "z": "b24c83f7.abbc6",
4280         "wires": [
4281             [
4282                 "3a4aef64.3150d"
4283             ]
4284         ]
4285     },
4286     {
4287         "id": "ad551bbf.58fcc8",
4288         "type": "not-found",
4289         "name": "not-found",
4290         "xml": "<outcome value='not-found'>\n",
4291         "comments": "",
4292         "outputs": 1,
4293         "x": 2084.333240509033,
4294         "y": 5673.749419212341,
4295         "z": "b24c83f7.abbc6",
4296         "wires": [
4297             [
4298                 "abd6e5ca.0f7378"
4299             ]
4300         ]
4301     },
4302     {
4303         "id": "e61b880e.096858",
4304         "type": "not-found",
4305         "name": "not-found",
4306         "xml": "<outcome value='not-found'>\n",
4307         "comments": "",
4308         "outputs": 1,
4309         "x": 2083.9998664855957,
4310         "y": 5809.082915306091,
4311         "z": "b24c83f7.abbc6",
4312         "wires": [
4313             [
4314                 "a1bcb891.4f80b8"
4315             ]
4316         ]
4317     },
4318     {
4319         "id": "c1cf86f2.493818",
4320         "type": "not-found",
4321         "name": "not-found",
4322         "xml": "<outcome value='not-found'>\n",
4323         "comments": "",
4324         "outputs": 1,
4325         "x": 2239.999988555908,
4326         "y": 5909.749419212341,
4327         "z": "b24c83f7.abbc6",
4328         "wires": [
4329             [
4330                 "602727b5.9746c8"
4331             ]
4332         ]
4333     },
4334     {
4335         "id": "81ba8fb7.9e498",
4336         "type": "not-found",
4337         "name": "not-found",
4338         "xml": "<outcome value='not-found'>\n",
4339         "comments": "",
4340         "outputs": 1,
4341         "x": 1564.3332405090332,
4342         "y": 6018.082915306091,
4343         "z": "b24c83f7.abbc6",
4344         "wires": [
4345             [
4346                 "cdfeb5ff.d63b08"
4347             ]
4348         ]
4349     },
4350     {
4351         "id": "eca5ffa4.23d73",
4352         "type": "switchNode",
4353         "name": "switch ... tmp.AnAI.l3network.subnets.subnet[]",
4354         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">",
4355         "comments": "",
4356         "outputs": 1,
4357         "x": 499.1785697937012,
4358         "y": 470.35716438293457,
4359         "z": "b24c83f7.abbc6",
4360         "wires": [
4361             [
4362                 "48a25cc2.387cb4"
4363             ]
4364         ]
4365     },
4366     {
4367         "id": "48a25cc2.387cb4",
4368         "type": "outcome",
4369         "name": "NULL",
4370         "xml": "<outcome value=''>",
4371         "outputs": 1,
4372         "x": 769.6230201721191,
4373         "y": 470.1349000930786,
4374         "z": "b24c83f7.abbc6",
4375         "wires": [
4376             [
4377                 "8ba49ed0.9ad3c"
4378             ]
4379         ]
4380     },
4381     {
4382         "id": "8ba49ed0.9ad3c",
4383         "type": "set",
4384         "name": "set tmp.AnAI.l3network.subnets.subnet[] = 0",
4385         "xml": "<set>\n<parameter name=\"tmp.AnAI.l3network.subnets.subnet_length\" value=\"0\" />\n",
4386         "comments": "",
4387         "x": 1027.1786291334365,
4388         "y": 470.134920756022,
4389         "z": "b24c83f7.abbc6",
4390         "wires": []
4391     },
4392     {
4393         "id": "95ceb957.e7a948",
4394         "type": "block",
4395         "name": "block : atomic",
4396         "xml": "<block atomic='true'>",
4397         "atomic": "true",
4398         "comments": "",
4399         "outputs": 1,
4400         "x": 463.0356864929199,
4401         "y": 4019.404680252075,
4402         "z": "b24c83f7.abbc6",
4403         "wires": [
4404             [
4405                 "c3dd4c7f.8ca1e",
4406                 "af6b3c9b.97c77"
4407             ]
4408         ]
4409     },
4410     {
4411         "id": "2d4379bf.6ca416",
4412         "type": "switchNode",
4413         "name": "switch ... PRELOAD route-table-reference[]",
4414         "xml": "<switch test=\"`$preload-data.network-topology-information.route-table-reference_length`\">",
4415         "comments": "",
4416         "outputs": 1,
4417         "x": 837.8372917175293,
4418         "y": 4245.277545928955,
4419         "z": "b24c83f7.abbc6",
4420         "wires": [
4421             [
4422                 "7688d6b7.3bce68"
4423             ]
4424         ]
4425     },
4426     {
4427         "id": "7688d6b7.3bce68",
4428         "type": "outcome",
4429         "name": "NULL",
4430         "xml": "<outcome value=''>",
4431         "outputs": 1,
4432         "x": 1094.5317192077637,
4433         "y": 4245.0550355911255,
4434         "z": "b24c83f7.abbc6",
4435         "wires": [
4436             [
4437                 "26a757db.f17628"
4438             ]
4439         ]
4440     },
4441     {
4442         "id": "26a757db.f17628",
4443         "type": "set",
4444         "name": "set route-table-reference[] = 0",
4445         "xml": "<set>\n<parameter name='preload-data.network-topology-information.route-table-reference_length' value='0' />\n",
4446         "comments": "",
4447         "x": 1309.087328169081,
4448         "y": 4245.055056254068,
4449         "z": "b24c83f7.abbc6",
4450         "wires": [
4451             []
4452         ]
4453     },
4454     {
4455         "id": "3fbe4ceb.b0e5e4",
4456         "type": "for",
4457         "name": "for loop i - PRELOAD route-table-reference",
4458         "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.route-table-reference_length`\">\n",
4459         "comments": "",
4460         "outputs": 1,
4461         "x": 837.4445457458496,
4462         "y": 4290.848835945129,
4463         "z": "b24c83f7.abbc6",
4464         "wires": [
4465             [
4466                 "6b695bb.39906a4"
4467             ]
4468         ]
4469     },
4470     {
4471         "id": "e761c57c.044408",
4472         "type": "save",
4473         "name": "save relationship: network-policy",
4474         "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"route-table-reference\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"route-table-reference.route-table-reference-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.route-table-reference.route-table-reference-id`\" />",
4475         "comments": "",
4476         "outputs": 1,
4477         "x": 2229.8574409484863,
4478         "y": 4490.035390853882,
4479         "z": "b24c83f7.abbc6",
4480         "wires": [
4481             [
4482                 "5628f36a.55c77c",
4483                 "a92d1865.c2b648",
4484                 "3e5fe722.9f7198"
4485             ]
4486         ]
4487     },
4488     {
4489         "id": "6b695bb.39906a4",
4490         "type": "switchNode",
4491         "name": "switch: PRELOAD route-table-reference-fqdn != NULL",
4492         "xml": "<switch test=\"`$preload-data.network-topology-information.route-table-reference[$i].route-table-reference-fqdn != NULL`\">",
4493         "comments": "",
4494         "outputs": 1,
4495         "x": 1248.2067527770996,
4496         "y": 4290.947957038879,
4497         "z": "b24c83f7.abbc6",
4498         "wires": [
4499             [
4500                 "8696f734.56d0f8"
4501             ]
4502         ]
4503     },
4504     {
4505         "id": "8696f734.56d0f8",
4506         "type": "other",
4507         "name": "true",
4508         "xml": "<outcome value='true'>\n",
4509         "comments": "",
4510         "outputs": 1,
4511         "x": 1533.9567604064941,
4512         "y": 4291.197957038879,
4513         "z": "b24c83f7.abbc6",
4514         "wires": [
4515             [
4516                 "c3ff1f7e.223f6"
4517             ]
4518         ]
4519     },
4520     {
4521         "id": "c3ff1f7e.223f6",
4522         "type": "save",
4523         "name": "query AnAI - route-table-reference",
4524         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"route-table-reference\" \n\t\tkey=\"route-table-reference.route-table-reference-fqdn = $preload-data.network-topology-information.route-table-reference[$i].route-table-reference-fqdn\" \n\t\tpfx=\"tmp.AnAI.route-table-reference\">",
4525         "comments": "",
4526         "outputs": 1,
4527         "x": 1760.7067642211914,
4528         "y": 4291.197865486145,
4529         "z": "b24c83f7.abbc6",
4530         "wires": [
4531             [
4532                 "c5a368f6.5d1388",
4533                 "4611ee89.1d504",
4534                 "1c257c97.0acec3"
4535             ]
4536         ]
4537     },
4538     {
4539         "id": "c5a368f6.5d1388",
4540         "type": "failure",
4541         "name": "failure",
4542         "xml": "<outcome value='failure'>\n",
4543         "comments": "",
4544         "outputs": 1,
4545         "x": 1999.7067964341904,
4546         "y": 4331.947787602743,
4547         "z": "b24c83f7.abbc6",
4548         "wires": [
4549             [
4550                 "c1256682.7b8998"
4551             ]
4552         ]
4553     },
4554     {
4555         "id": "4611ee89.1d504",
4556         "type": "not-found",
4557         "name": "not-found",
4558         "xml": "<outcome value='not-found'>\n",
4559         "comments": "",
4560         "outputs": 1,
4561         "x": 2005.2068002488877,
4562         "y": 4291.447786649069,
4563         "z": "b24c83f7.abbc6",
4564         "wires": [
4565             [
4566                 "c1256682.7b8998"
4567             ]
4568         ]
4569     },
4570     {
4571         "id": "c1256682.7b8998",
4572         "type": "block",
4573         "name": "block",
4574         "xml": "<block>",
4575         "atomic": "false",
4576         "outputs": 1,
4577         "x": 2154.7068002488877,
4578         "y": 4331.697788556417,
4579         "z": "b24c83f7.abbc6",
4580         "wires": [
4581             [
4582                 "daaddd41.3513f",
4583                 "dabc25b1.2558b8"
4584             ]
4585         ]
4586     },
4587     {
4588         "id": "daaddd41.3513f",
4589         "type": "set",
4590         "name": "set: tmp.error-message",
4591         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query network-policy n AnAI where network-policy-fqdn = ' + $preload-data.network-topology-information.network-policy[$i].network-policy-fqdn`\"/>",
4592         "comments": "",
4593         "x": 2370.806340959337,
4594         "y": 4331.44768746694,
4595         "z": "b24c83f7.abbc6",
4596         "wires": [
4597             []
4598         ]
4599     },
4600     {
4601         "id": "5628f36a.55c77c",
4602         "type": "failure",
4603         "name": "failure",
4604         "xml": "<outcome value='failure'>\n",
4605         "comments": "",
4606         "outputs": 1,
4607         "x": 2455.930316925049,
4608         "y": 4489.510977745056,
4609         "z": "b24c83f7.abbc6",
4610         "wires": [
4611             [
4612                 "e1c99ca6.e00f4"
4613             ]
4614         ]
4615     },
4616     {
4617         "id": "e1c99ca6.e00f4",
4618         "type": "block",
4619         "name": "block",
4620         "xml": "<block>",
4621         "atomic": "false",
4622         "outputs": 1,
4623         "x": 2596.823196411133,
4624         "y": 4489.147085189819,
4625         "z": "b24c83f7.abbc6",
4626         "wires": [
4627             [
4628                 "e0fe20d7.e6c28",
4629                 "6b785063.e94b4"
4630             ]
4631         ]
4632     },
4633     {
4634         "id": "e0fe20d7.e6c28",
4635         "type": "set",
4636         "name": "set: tmp.error-message",
4637         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving l3-newtork route-table-reference relationship in AnAI where route-table-reference-id = ' + $tmp.AnAI.route-table-reference.route-table-reference-id`\"/>",
4638         "comments": "",
4639         "x": 2827.922737121582,
4640         "y": 4488.896984100342,
4641         "z": "b24c83f7.abbc6",
4642         "wires": [
4643             []
4644         ]
4645     },
4646     {
4647         "id": "c3dd4c7f.8ca1e",
4648         "type": "save",
4649         "name": "delete relationship: route-table-reference",
4650         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id \n\t\t AND related-to = route-table-reference\" >",
4651         "comments": "",
4652         "outputs": 1,
4653         "x": 751.2499656677246,
4654         "y": 4019.2140085697174,
4655         "z": "b24c83f7.abbc6",
4656         "wires": [
4657             [
4658                 "593b5e06.7f9d3"
4659             ]
4660         ]
4661     },
4662     {
4663         "id": "1c257c97.0acec3",
4664         "type": "success",
4665         "name": "success",
4666         "xml": "<outcome value='success'>\n",
4667         "comments": "",
4668         "outputs": 1,
4669         "x": 2004.4723930358887,
4670         "y": 4489.539258956909,
4671         "z": "b24c83f7.abbc6",
4672         "wires": [
4673             [
4674                 "e761c57c.044408"
4675             ]
4676         ]
4677     },
4678     {
4679         "id": "593b5e06.7f9d3",
4680         "type": "failure",
4681         "name": "failure",
4682         "xml": "<outcome value='failure'>\n",
4683         "comments": "",
4684         "outputs": 1,
4685         "x": 1044.384937286377,
4686         "y": 4018.797219514847,
4687         "z": "b24c83f7.abbc6",
4688         "wires": [
4689             [
4690                 "72f7191.61f2fe8"
4691             ]
4692         ]
4693     },
4694     {
4695         "id": "72f7191.61f2fe8",
4696         "type": "block",
4697         "name": "block",
4698         "xml": "<block>\n",
4699         "atomic": "false",
4700         "comments": "",
4701         "outputs": 1,
4702         "x": 1221.121711730957,
4703         "y": 4018.488557100296,
4704         "z": "b24c83f7.abbc6",
4705         "wires": [
4706             [
4707                 "35c5090a.a6a506",
4708                 "9f95b6ef.410b58"
4709             ]
4710         ]
4711     },
4712     {
4713         "id": "35c5090a.a6a506",
4714         "type": "set",
4715         "name": "set: tmp.error-message",
4716         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"An error occurred while deleting l3-network route-table-reference relationship from AnAI prior to regenerate the route-table-reference relationship from PRELOAD.\"/>",
4717         "comments": "",
4718         "x": 1445.134937286377,
4719         "y": 4018.797219514847,
4720         "z": "b24c83f7.abbc6",
4721         "wires": [
4722             []
4723         ]
4724     },
4725     {
4726         "id": "b1f0d10d.9422f",
4727         "type": "set",
4728         "name": "set tmp.route-table-reference.updated = 1",
4729         "xml": "<set>\n<parameter name='tmp.route-table-reference.updated' value='1' />\n",
4730         "comments": "",
4731         "x": 2701.2578773498535,
4732         "y": 4579.717977523804,
4733         "z": "b24c83f7.abbc6",
4734         "wires": [
4735             []
4736         ]
4737     },
4738     {
4739         "id": "a92d1865.c2b648",
4740         "type": "success",
4741         "name": "success",
4742         "xml": "<outcome value='success'>\n",
4743         "comments": "",
4744         "outputs": 1,
4745         "x": 2462.5078773498535,
4746         "y": 4579.967977523804,
4747         "z": "b24c83f7.abbc6",
4748         "wires": [
4749             [
4750                 "b1f0d10d.9422f"
4751             ]
4752         ]
4753     },
4754     {
4755         "id": "bd2d9b6e.b5c1d8",
4756         "type": "switchNode",
4757         "name": "switch: texecute_failure",
4758         "xml": "<switch test=\"`$execute_failure`\">",
4759         "comments": "",
4760         "outputs": 1,
4761         "x": 441.6825370788574,
4762         "y": 3942.777727127075,
4763         "z": "b24c83f7.abbc6",
4764         "wires": [
4765             [
4766                 "3e54549b.21c4cc"
4767             ]
4768         ]
4769     },
4770     {
4771         "id": "3e54549b.21c4cc",
4772         "type": "outcomeFalse",
4773         "name": "false",
4774         "xml": "<outcome value='false'>\n",
4775         "comments": "",
4776         "outputs": 1,
4777         "x": 648.3967933654785,
4778         "y": 3942.777656555176,
4779         "z": "b24c83f7.abbc6",
4780         "wires": [
4781             [
4782                 "95ceb957.e7a948"
4783             ]
4784         ]
4785     },
4786     {
4787         "id": "af6b3c9b.97c77",
4788         "type": "switchNode",
4789         "name": "switch: execute_failure",
4790         "xml": "<switch test=\"`$execute_failure`\">",
4791         "comments": "",
4792         "outputs": 1,
4793         "x": 726.5158424377441,
4794         "y": 4159.1667737960815,
4795         "z": "b24c83f7.abbc6",
4796         "wires": [
4797             [
4798                 "96f82eb1.4c085"
4799             ]
4800         ]
4801     },
4802     {
4803         "id": "96f82eb1.4c085",
4804         "type": "outcomeFalse",
4805         "name": "false",
4806         "xml": "<outcome value='false'>\n",
4807         "comments": "",
4808         "outputs": 1,
4809         "x": 929.2300910949707,
4810         "y": 4159.166796684265,
4811         "z": "b24c83f7.abbc6",
4812         "wires": [
4813             [
4814                 "ab2bfb98.61b8f8"
4815             ]
4816         ]
4817     },
4818     {
4819         "id": "ab2bfb98.61b8f8",
4820         "type": "block",
4821         "name": "block : atomic",
4822         "xml": "<block atomic='true'>",
4823         "atomic": "true",
4824         "comments": "",
4825         "outputs": 1,
4826         "x": 555.4047431945801,
4827         "y": 4245.610787391663,
4828         "z": "b24c83f7.abbc6",
4829         "wires": [
4830             [
4831                 "2d4379bf.6ca416",
4832                 "3fbe4ceb.b0e5e4"
4833             ]
4834         ]
4835     },
4836     {
4837         "id": "9f95b6ef.410b58",
4838         "type": "returnSuccess",
4839         "name": "set execute_failure = true",
4840         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
4841         "comments": "",
4842         "x": 1450.7378425598145,
4843         "y": 4064.9597215652466,
4844         "z": "b24c83f7.abbc6",
4845         "wires": []
4846     },
4847     {
4848         "id": "dabc25b1.2558b8",
4849         "type": "returnSuccess",
4850         "name": "set execute_failure = true",
4851         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
4852         "comments": "",
4853         "x": 2379.293628692627,
4854         "y": 4375.61111831665,
4855         "z": "b24c83f7.abbc6",
4856         "wires": []
4857     },
4858     {
4859         "id": "6b785063.e94b4",
4860         "type": "returnSuccess",
4861         "name": "set execute_failure = true",
4862         "xml": "<return status='success'>\n\t<parameter name='execute_failure' value='true' />\n",
4863         "comments": "",
4864         "x": 2838.5797233581543,
4865         "y": 4532.8968296051025,
4866         "z": "b24c83f7.abbc6",
4867         "wires": []
4868     },
4869     {
4870         "id": "3e5fe722.9f7198",
4871         "type": "not-found",
4872         "name": "not-found",
4873         "xml": "<outcome value='not-found'>\n",
4874         "comments": "",
4875         "outputs": 1,
4876         "x": 2464.4841346740723,
4877         "y": 4535.51572227478,
4878         "z": "b24c83f7.abbc6",
4879         "wires": [
4880             []
4881         ]
4882     },
4883     {
4884         "id": "63a30c32.764734",
4885         "type": "other",
4886         "name": "route-table-reference",
4887         "xml": "<outcome value='route-table-reference'>\n",
4888         "comments": "",
4889         "outputs": 1,
4890         "x": 1136.785717010498,
4891         "y": 5378.57142829895,
4892         "z": "b24c83f7.abbc6",
4893         "wires": [
4894             [
4895                 "cb6e6d5b.fb8fc"
4896             ]
4897         ]
4898     },
4899     {
4900         "id": "e64e8959.22cce8",
4901         "type": "save",
4902         "name": "Rollback to save relationship: route-table-reference",
4903         "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.AnAI.l3network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"route-table-reference\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"route-table-reference.route-table-reference-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.l3network.relationship-list.relationship[$z].relationship-data[0].relationship-value`\" />",
4904         "comments": "",
4905         "outputs": 1,
4906         "x": 1304.368968963623,
4907         "y": 5437.9049243927,
4908         "z": "b24c83f7.abbc6",
4909         "wires": [
4910             [
4911                 "daa92ca8.40a27",
4912                 "751ffeff.5a4d2"
4913             ]
4914         ]
4915     },
4916     {
4917         "id": "daa92ca8.40a27",
4918         "type": "failure",
4919         "name": "failure",
4920         "xml": "<outcome value='failure'>\n",
4921         "comments": "",
4922         "outputs": 1,
4923         "x": 1564.4418449401855,
4924         "y": 5437.3805112838745,
4925         "z": "b24c83f7.abbc6",
4926         "wires": [
4927             [
4928                 "5bbb5aa9.dd0a84"
4929             ]
4930         ]
4931     },
4932     {
4933         "id": "5bbb5aa9.dd0a84",
4934         "type": "set",
4935         "name": "tmp.rollback.error-message",
4936         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.rollback.error-message\" value=\"`'An error occurred during rollback of l3-newtork route-table-reference relationship in AnAI where route-table-reference-id = ' + $tmp.AnAI.l3network.relationship-list.relationship[$z].relationship-data[0].relationship-value + ' MANUAL ROLLBACK IS REQUIRED.'`\"/>",
4937         "comments": "",
4938         "x": 1780.434169769287,
4939         "y": 5437.76609992981,
4940         "z": "b24c83f7.abbc6",
4941         "wires": [
4942             []
4943         ]
4944     },
4945     {
4946         "id": "cb6e6d5b.fb8fc",
4947         "type": "switchNode",
4948         "name": "switch:  tmp.route-table-reference.updated == 1",
4949         "xml": "<switch test=\"`$tmp.route-table-reference.updated == 1`\">",
4950         "comments": "",
4951         "outputs": 1,
4952         "x": 1408.1192054748535,
4953         "y": 5378.571630477905,
4954         "z": "b24c83f7.abbc6",
4955         "wires": [
4956             [
4957                 "43ccda4d.49fa94"
4958             ]
4959         ]
4960     },
4961     {
4962         "id": "43ccda4d.49fa94",
4963         "type": "other",
4964         "name": "true",
4965         "xml": "<outcome value='true'>\n",
4966         "comments": "",
4967         "outputs": 1,
4968         "x": 1653.119213104248,
4969         "y": 5378.571672439575,
4970         "z": "b24c83f7.abbc6",
4971         "wires": [
4972             [
4973                 "e64e8959.22cce8"
4974             ]
4975         ]
4976     },
4977     {
4978         "id": "751ffeff.5a4d2",
4979         "type": "not-found",
4980         "name": "not-found",
4981         "xml": "<outcome value='not-found'>\n",
4982         "comments": "",
4983         "outputs": 1,
4984         "x": 1572.7023887634277,
4985         "y": 5476.999547958374,
4986         "z": "b24c83f7.abbc6",
4987         "wires": [
4988             [
4989                 "5bbb5aa9.dd0a84"
4990             ]
4991         ]
4992     },
4993     {
4994         "id": "ef8f189e.13e928",
4995         "type": "switchNode",
4996         "name": "switch: l3subnet[k] == PRELOAD subnets[n] subnet-name",
4997         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$k].subnet-name == $preload-data.network-topology-information.subnets[$n].subnet-name`\">",
4998         "comments": "",
4999         "outputs": 1,
5000         "x": 1637.285717010498,
5001         "y": 971.0714282989502,
5002         "z": "b24c83f7.abbc6",
5003         "wires": [
5004             [
5005                 "abf8f55e.ce71d8"
5006             ]
5007         ]
5008     },
5009     {
5010         "id": "abf8f55e.ce71d8",
5011         "type": "outcomeFalse",
5012         "name": "false",
5013         "xml": "<outcome value='false'>\n",
5014         "comments": "",
5015         "outputs": 1,
5016         "x": 1937.2022247314453,
5017         "y": 970.7936429977417,
5018         "z": "b24c83f7.abbc6",
5019         "wires": [
5020             [
5021                 "a89a0d2d.9ab2c"
5022             ]
5023         ]
5024     },
5025     {
5026         "id": "a89a0d2d.9ab2c",
5027         "type": "block",
5028         "name": "block",
5029         "xml": "<block>\n",
5030         "atomic": "false",
5031         "comments": "",
5032         "outputs": 1,
5033         "x": 2075.3434448242188,
5034         "y": 971.1691417694092,
5035         "z": "b24c83f7.abbc6",
5036         "wires": [
5037             [
5038                 "ae8d6ec6.39e21"
5039             ]
5040         ]
5041     }
5042 ]