Change Rackspace to CloudOwner
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_network-topology-assign.json
1 [
2     {
3         "id": "761cf409.e7fe2c",
4         "type": "method",
5         "name": "method network-topology-assign",
6         "xml": "<method rpc=\"network-topology-assign\" mode=\"sync\">",
7         "comments": "",
8         "outputs": 1,
9         "x": 220,
10         "y": 88.57142639160156,
11         "z": "f9c6b4d6.c89d48",
12         "wires": [
13             [
14                 "f32f7d99.8e885"
15             ]
16         ]
17     },
18     {
19         "id": "2cc42ce.d3a7dd4",
20         "type": "service-logic",
21         "name": "VNF-API ${project.version}",
22         "module": "VNF-API",
23         "version": "${project.version}",
24         "comments": "",
25         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
26         "outputs": 1,
27         "x": 295.4444351196289,
28         "y": 37.238101959228516,
29         "z": "f9c6b4d6.c89d48",
30         "wires": [
31             [
32                 "761cf409.e7fe2c"
33             ]
34         ]
35     },
36     {
37         "id": "d4150291.a47c7",
38         "type": "dgstart",
39         "name": "DGSTART",
40         "outputs": 1,
41         "x": 131.33332061767578,
42         "y": 37.238101959228516,
43         "z": "f9c6b4d6.c89d48",
44         "wires": [
45             [
46                 "2cc42ce.d3a7dd4"
47             ]
48         ]
49     },
50     {
51         "id": "f32f7d99.8e885",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 185.76110458374023,
59         "y": 160.88003540039062,
60         "z": "f9c6b4d6.c89d48",
61         "wires": [
62             [
63                 "e6608c59.2d82d",
64                 "d54bce56.12186",
65                 "7c655566.f8d98c",
66                 "d18455b2.897038",
67                 "9683e1d.b26132",
68                 "fdec3d96.4fe6c",
69                 "aec67243.3085b",
70                 "b25a8a99.44e208",
71                 "d1f10746.e56058",
72                 "6a95cc4c.004c34",
73                 "cced61c2.cb78b",
74                 "d30ff142.3546e",
75                 "eec55dc8.09816",
76                 "d92a7574.cd1b58",
77                 "f5d35022.8ff6",
78                 "30dd8358.aaaadc",
79                 "830f1b88.627bf8",
80                 "d045d509.c8ec58",
81                 "4330f5b6.e6251c"
82             ]
83         ]
84     },
85     {
86         "id": "e6608c59.2d82d",
87         "type": "save",
88         "name": "save AnAI - l3-network",
89         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n<parameter name=\"network-name\" value=\"`$network-topology-operation-input.network-request-information.network-name`\" />\n<parameter name=\"network-type\" value=\"`$network-topology-operation-input.network-request-information.network-type`\" />\n<parameter name=\"network-role\" value=\"`$preload-data.network-topology-information.network-topology-identifier.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$preload-data.network-topology-information.network-topology-identifier.network-technology`\" />\n<parameter name=\"service-id\" value=\"`$network-topology-operation-input.service-information.service-id`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"network-role-instance\" value=\"0\" />\n<parameter name=\"orchestration-status\" value=\"pending-create\" />",
90         "comments": "",
91         "outputs": 1,
92         "x": 436.1934051513672,
93         "y": 454.1977233886719,
94         "z": "f9c6b4d6.c89d48",
95         "wires": [
96             [
97                 "9de98ca4.f462",
98                 "8cf9ad87.65dd7"
99             ]
100         ]
101     },
102     {
103         "id": "d54bce56.12186",
104         "type": "for",
105         "name": "for loop i - PRELOAD subnets",
106         "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.subnets_length`\">\n",
107         "comments": "",
108         "outputs": 1,
109         "x": 457.9034957885742,
110         "y": 640.8798131942749,
111         "z": "f9c6b4d6.c89d48",
112         "wires": [
113             [
114                 "4ae47500.3fa4ac"
115             ]
116         ]
117     },
118     {
119         "id": "7c655566.f8d98c",
120         "type": "returnSuccess",
121         "name": "return success",
122         "xml": "<return status=\"success\">\n\t<parameter name=\"networkId\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n\t<parameter name=\"error-code\" value=\"200\" />",
123         "comments": "",
124         "x": 375.84381103515625,
125         "y": 2471.0271310806274,
126         "z": "f9c6b4d6.c89d48",
127         "wires": []
128     },
129     {
130         "id": "d18455b2.897038",
131         "type": "set",
132         "name": "Set final indicator to Y",
133         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
134         "comments": "",
135         "x": 399.12740325927734,
136         "y": 2422.105136871338,
137         "z": "f9c6b4d6.c89d48",
138         "wires": []
139     },
140     {
141         "id": "9de98ca4.f462",
142         "type": "failure",
143         "name": "failure",
144         "xml": "<outcome value='failure'>\n",
145         "comments": "",
146         "outputs": 1,
147         "x": 628.4765625,
148         "y": 454.213041305542,
149         "z": "f9c6b4d6.c89d48",
150         "wires": [
151             [
152                 "c0b37f94.55c04"
153             ]
154         ]
155     },
156     {
157         "id": "4ae47500.3fa4ac",
158         "type": "block",
159         "name": "block : atomic",
160         "xml": "<block atomic='true'>",
161         "atomic": "true",
162         "comments": "",
163         "outputs": 1,
164         "x": 672.9021148681641,
165         "y": 640.8888244628906,
166         "z": "f9c6b4d6.c89d48",
167         "wires": [
168             [
169                 "d2b530e1.e4e06",
170                 "a4bddbdd.384ca8",
171                 "b441c359.b1ed5",
172                 "a461de0f.d6093",
173                 "bbec29a5.4081f8",
174                 "69434546.6b177c"
175             ]
176         ]
177     },
178     {
179         "id": "c0b37f94.55c04",
180         "type": "returnFailure",
181         "name": "return failure",
182         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to save l3-netework in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>",
183         "comments": "",
184         "x": 829.254035949707,
185         "y": 453.9908256530762,
186         "z": "f9c6b4d6.c89d48",
187         "wires": []
188     },
189     {
190         "id": "bf4af859.d229c8",
191         "type": "failure",
192         "name": "failure",
193         "xml": "<outcome value='failure'>\n",
194         "comments": "",
195         "outputs": 1,
196         "x": 1152.2541790008545,
197         "y": 868.8520412445068,
198         "z": "f9c6b4d6.c89d48",
199         "wires": [
200             [
201                 "78a54b4f.f2a264"
202             ]
203         ]
204     },
205     {
206         "id": "c5f09568.abd408",
207         "type": "set",
208         "name": "set tmp.dhcpEnabled.boolean=false",
209         "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"false\" />\n",
210         "comments": "",
211         "x": 1419.9320831298828,
212         "y": 682.2393565177917,
213         "z": "f9c6b4d6.c89d48",
214         "wires": []
215     },
216     {
217         "id": "27c769b5.ca3316",
218         "type": "set",
219         "name": "set tmp.dhcpEnabled.boolean=true",
220         "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"true\" />\n",
221         "comments": "",
222         "x": 1418.2495880126953,
223         "y": 641.1758060455322,
224         "z": "f9c6b4d6.c89d48",
225         "wires": []
226     },
227     {
228         "id": "d2b530e1.e4e06",
229         "type": "switchNode",
230         "name": "switch: PRELOAD dhcp-enabled",
231         "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$i].dhcp-enabled`\">",
232         "comments": "",
233         "outputs": 1,
234         "x": 944.2495880126953,
235         "y": 640.6820316314697,
236         "z": "f9c6b4d6.c89d48",
237         "wires": [
238             [
239                 "1d57866b.dc0d9a",
240                 "1656d8a4.c39f97"
241             ]
242         ]
243     },
244     {
245         "id": "1d57866b.dc0d9a",
246         "type": "other",
247         "name": "Y",
248         "xml": "<outcome value='Y'>",
249         "comments": "",
250         "outputs": 1,
251         "x": 1201.4719314575195,
252         "y": 640.9043521881104,
253         "z": "f9c6b4d6.c89d48",
254         "wires": [
255             [
256                 "27c769b5.ca3316"
257             ]
258         ]
259     },
260     {
261         "id": "1656d8a4.c39f97",
262         "type": "other",
263         "name": "N",
264         "xml": "<outcome value='N'>",
265         "comments": "",
266         "outputs": 1,
267         "x": 1201.3766021728516,
268         "y": 682.7455735206604,
269         "z": "f9c6b4d6.c89d48",
270         "wires": [
271             [
272                 "c5f09568.abd408"
273             ]
274         ]
275     },
276     {
277         "id": "9683e1d.b26132",
278         "type": "for",
279         "name": "for loop i - PRELOAD vpn-bindings",
280         "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.vpn-bindings_length`\">\n",
281         "comments": "",
282         "outputs": 1,
283         "x": 470.5514221191406,
284         "y": 1153.222297668457,
285         "z": "f9c6b4d6.c89d48",
286         "wires": [
287             [
288                 "547d693b.b05e78"
289             ]
290         ]
291     },
292     {
293         "id": "547d693b.b05e78",
294         "type": "block",
295         "name": "block : atomic",
296         "xml": "<block atomic='true'>",
297         "atomic": "true",
298         "comments": "",
299         "outputs": 1,
300         "x": 712.3292007446289,
301         "y": 1153.4722995758057,
302         "z": "f9c6b4d6.c89d48",
303         "wires": [
304             [
305                 "26c6c645.1a9d3a",
306                 "239555fc.bdbfaa",
307                 "36380a8c.5dc166",
308                 "300d9dbd.6d58a2"
309             ]
310         ]
311     },
312     {
313         "id": "42bfa7b6.ab68a8",
314         "type": "save",
315         "name": "save relationship: vpn_bindings",
316         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-binding\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-binding.vpn-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.vpn-binding-id`\" />",
317         "comments": "",
318         "outputs": 1,
319         "x": 1053.856918334961,
320         "y": 1378.4445276260376,
321         "z": "f9c6b4d6.c89d48",
322         "wires": [
323             [
324                 "80139c48.11b38",
325                 "cd3c019c.f3ce1",
326                 "188bd49e.885fbb"
327             ]
328         ]
329     },
330     {
331         "id": "d1f10746.e56058",
332         "type": "call",
333         "name": "call: generate-l3network-network-id",
334         "xml": "<call module=\"VNF-API\" rpc=\"generate-l3network-network-id\" mode=\"sync\" >\n",
335         "comments": "",
336         "outputs": 1,
337         "x": 474.26195526123047,
338         "y": 407.761869430542,
339         "z": "f9c6b4d6.c89d48",
340         "wires": [
341             [
342                 "d51eccf4.b117b"
343             ]
344         ]
345     },
346     {
347         "id": "d51eccf4.b117b",
348         "type": "failure",
349         "name": "failure",
350         "xml": "<outcome value='failure'>\n",
351         "comments": "",
352         "outputs": 1,
353         "x": 697.0119400024414,
354         "y": 408.0118598937988,
355         "z": "f9c6b4d6.c89d48",
356         "wires": [
357             [
358                 "8780710c.05f27"
359             ]
360         ]
361     },
362     {
363         "id": "8780710c.05f27",
364         "type": "returnFailure",
365         "name": "return failure",
366         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value='Error in generating l3-network.network-id in SDNC'/>",
367         "comments": "",
368         "x": 853.7894134521484,
369         "y": 407.789644241333,
370         "z": "f9c6b4d6.c89d48",
371         "wires": []
372     },
373     {
374         "id": "fdec3d96.4fe6c",
375         "type": "switchNode",
376         "name": "switch ... PRELOAD vpn-bindings[]",
377         "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings_length`\">",
378         "comments": "",
379         "outputs": 1,
380         "x": 470.92886522081153,
381         "y": 1109.8036111195884,
382         "z": "f9c6b4d6.c89d48",
383         "wires": [
384             [
385                 "33a85e7a.541aa2"
386             ]
387         ]
388     },
389     {
390         "id": "33a85e7a.541aa2",
391         "type": "outcome",
392         "name": "NULL",
393         "xml": "<outcome value=''>",
394         "outputs": 1,
395         "x": 691.3733155992295,
396         "y": 1109.5813468297324,
397         "z": "f9c6b4d6.c89d48",
398         "wires": [
399             [
400                 "8f10e90b.9b56a8"
401             ]
402         ]
403     },
404     {
405         "id": "8f10e90b.9b56a8",
406         "type": "set",
407         "name": "set vpn-bindings[] = 0",
408         "xml": "<set>\n<parameter name=\"preload-data.network-topology-information.vpn-bindings_length\" value=\"0\" />\n",
409         "comments": "",
410         "x": 885.9289245605469,
411         "y": 1109.5813674926758,
412         "z": "f9c6b4d6.c89d48",
413         "wires": []
414     },
415     {
416         "id": "b25a8a99.44e208",
417         "type": "switchNode",
418         "name": "switch ... PRELOAD network-policy[]",
419         "xml": "<switch test=\"`$preload-data.network-topology-information.network-policy_length`\">",
420         "comments": "",
421         "outputs": 1,
422         "x": 452.0991668701172,
423         "y": 1523.0717792510986,
424         "z": "f9c6b4d6.c89d48",
425         "wires": [
426             [
427                 "b82095af.08bfb8"
428             ]
429         ]
430     },
431     {
432         "id": "b82095af.08bfb8",
433         "type": "outcome",
434         "name": "NULL",
435         "xml": "<outcome value=''>",
436         "outputs": 1,
437         "x": 681.5436172485352,
438         "y": 1522.8495149612427,
439         "z": "f9c6b4d6.c89d48",
440         "wires": [
441             [
442                 "91c9b9db.ea94b8"
443             ]
444         ]
445     },
446     {
447         "id": "91c9b9db.ea94b8",
448         "type": "set",
449         "name": "set network-policy[] = 0",
450         "xml": "<set>\n<parameter name='preload-data.network-topology-information.network-policy_length' value='0' />\n",
451         "comments": "",
452         "x": 876.0992262098525,
453         "y": 1522.849535624186,
454         "z": "f9c6b4d6.c89d48",
455         "wires": []
456     },
457     {
458         "id": "a4bddbdd.384ca8",
459         "type": "switchNode",
460         "name": "switch test: PRELOAD gateway-address",
461         "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$i].gateway-address`\">",
462         "comments": "",
463         "outputs": 1,
464         "x": 968.646915435791,
465         "y": 735.6547451019287,
466         "z": "f9c6b4d6.c89d48",
467         "wires": [
468             [
469                 "919f40fc.c3bd9"
470             ]
471         ]
472     },
473     {
474         "id": "919f40fc.c3bd9",
475         "type": "outcome",
476         "name": "NULL",
477         "xml": "<outcome value=''>",
478         "outputs": 1,
479         "x": 1212.146915435791,
480         "y": 735.6547451019287,
481         "z": "f9c6b4d6.c89d48",
482         "wires": [
483             [
484                 "82d44a1c.206d88"
485             ]
486         ]
487     },
488     {
489         "id": "21deb593.226d7a",
490         "type": "GenericXML",
491         "name": "Execute: generate gateway-address",
492         "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\" />",
493         "comments": "",
494         "outputs": 1,
495         "x": 1609.39693069458,
496         "y": 735.4047527313232,
497         "z": "f9c6b4d6.c89d48",
498         "wires": [
499             []
500         ]
501     },
502     {
503         "id": "82d44a1c.206d88",
504         "type": "block",
505         "name": "block : atomic",
506         "xml": "<block atomic='true'>",
507         "atomic": "true",
508         "comments": "",
509         "outputs": 1,
510         "x": 1362.8969230651855,
511         "y": 735.6547555923462,
512         "z": "f9c6b4d6.c89d48",
513         "wires": [
514             [
515                 "21deb593.226d7a",
516                 "144c19a.8fa82e6"
517             ]
518         ]
519     },
520     {
521         "id": "b441c359.b1ed5",
522         "type": "set",
523         "name": "set tmp.gateway-address",
524         "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$preload-data.network-topology-information.subnets[$i].gateway-address`\" />\n",
525         "comments": "",
526         "x": 922.1469306945801,
527         "y": 688.9047517776489,
528         "z": "f9c6b4d6.c89d48",
529         "wires": []
530     },
531     {
532         "id": "144c19a.8fa82e6",
533         "type": "set",
534         "name": "set tmp.gateway-address",
535         "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$tmp.return.generate.gateway-address`\" />\n",
536         "comments": "",
537         "x": 1575.89693069458,
538         "y": 777.4047546386719,
539         "z": "f9c6b4d6.c89d48",
540         "wires": []
541     },
542     {
543         "id": "26c6c645.1a9d3a",
544         "type": "switchNode",
545         "name": "switch: PRELOAD route-target != NULL",
546         "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings[$i].global-route-target != ''`\" >",
547         "comments": "",
548         "outputs": 1,
549         "x": 975.5635833740234,
550         "y": 1244.8216018676758,
551         "z": "f9c6b4d6.c89d48",
552         "wires": [
553             [
554                 "57a4fb2.f593104"
555             ]
556         ]
557     },
558     {
559         "id": "57a4fb2.f593104",
560         "type": "other",
561         "name": "true",
562         "xml": "<outcome value='true'>\n",
563         "comments": "",
564         "outputs": 1,
565         "x": 1212.0635833740234,
566         "y": 1245.0716018676758,
567         "z": "f9c6b4d6.c89d48",
568         "wires": [
569             [
570                 "fc2001b2.ee9d2"
571             ]
572         ]
573     },
574     {
575         "id": "fc2001b2.ee9d2",
576         "type": "save",
577         "name": "query AnAI - vpn-bindings",
578         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.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\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.vpn-binding\">",
579         "comments": "",
580         "outputs": 1,
581         "x": 1411.5635795593262,
582         "y": 1244.82160282135,
583         "z": "f9c6b4d6.c89d48",
584         "wires": [
585             [
586                 "9d2982aa.7ea2a",
587                 "c4a0a4b9.d67758",
588                 "67b5caf1.ddebd4"
589             ]
590         ]
591     },
592     {
593         "id": "9d2982aa.7ea2a",
594         "type": "failure",
595         "name": "failure",
596         "xml": "<outcome value='failure'>\n",
597         "comments": "",
598         "outputs": 1,
599         "x": 1621.8135795593262,
600         "y": 1325.0716037750244,
601         "z": "f9c6b4d6.c89d48",
602         "wires": [
603             [
604                 "55368e8d.0d27b"
605             ]
606         ]
607     },
608     {
609         "id": "78a54b4f.f2a264",
610         "type": "block",
611         "name": "block : atomic",
612         "xml": "<block atomic='true'>",
613         "atomic": "true",
614         "comments": "",
615         "outputs": 1,
616         "x": 1351.6470069885254,
617         "y": 868.4881591796875,
618         "z": "f9c6b4d6.c89d48",
619         "wires": [
620             [
621                 "5157a0f1.40c66",
622                 "7598ed5f.703d44"
623             ]
624         ]
625     },
626     {
627         "id": "5157a0f1.40c66",
628         "type": "set",
629         "name": "set: tmp.error-message",
630         "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.subnet in AnAI where subnet-id = ' + $tmp.return.generate-subnets-subnet-id.uuid`\"/>",
631         "comments": "",
632         "x": 1553.7465476989746,
633         "y": 868.23805809021,
634         "z": "f9c6b4d6.c89d48",
635         "wires": []
636     },
637     {
638         "id": "e4f1cfec.80ca7",
639         "type": "delete",
640         "name": "delete l3-network",
641         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\">",
642         "comments": "",
643         "outputs": 1,
644         "x": 1525.530288696289,
645         "y": 2284.034454345703,
646         "z": "f9c6b4d6.c89d48",
647         "wires": [
648             []
649         ]
650     },
651     {
652         "id": "2b7509e.d0964f6",
653         "type": "returnFailure",
654         "name": "return failure",
655         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Error writing to l3-netework - ' + $tmp.error-message`\"/>",
656         "comments": "",
657         "x": 1512.4676208496094,
658         "y": 2327.230498313904,
659         "z": "f9c6b4d6.c89d48",
660         "wires": []
661     },
662     {
663         "id": "c4a0a4b9.d67758",
664         "type": "not-found",
665         "name": "not-found",
666         "xml": "<outcome value='not-found'>\n",
667         "comments": "",
668         "outputs": 1,
669         "x": 1627.3135833740234,
670         "y": 1284.57160282135,
671         "z": "f9c6b4d6.c89d48",
672         "wires": [
673             [
674                 "55368e8d.0d27b"
675             ]
676         ]
677     },
678     {
679         "id": "7598ed5f.703d44",
680         "type": "block",
681         "name": "block : atomic",
682         "xml": "<block atomic='true'>",
683         "atomic": "true",
684         "comments": "",
685         "outputs": 1,
686         "x": 1335.7065505981445,
687         "y": 2284.2860431671143,
688         "z": "f9c6b4d6.c89d48",
689         "wires": [
690             [
691                 "e4f1cfec.80ca7",
692                 "2b7509e.d0964f6"
693             ]
694         ]
695     },
696     {
697         "id": "55368e8d.0d27b",
698         "type": "block",
699         "name": "block : atomic",
700         "xml": "<block atomic='true'>",
701         "atomic": "true",
702         "comments": "",
703         "outputs": 1,
704         "x": 1774.8135833740234,
705         "y": 1324.8216047286987,
706         "z": "f9c6b4d6.c89d48",
707         "wires": [
708             [
709                 "7756b135.e6c4b",
710                 "7598ed5f.703d44"
711             ]
712         ]
713     },
714     {
715         "id": "7756b135.e6c4b",
716         "type": "set",
717         "name": "set: tmp.error-message",
718         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query vpn-bindings from AnAI where global-route-target = ' + $preload-data.network-topology-information.vpn-bindings[$i].global-route-target`\"/>",
719         "comments": "",
720         "x": 1996.9131240844727,
721         "y": 1324.5715036392212,
722         "z": "f9c6b4d6.c89d48",
723         "wires": []
724     },
725     {
726         "id": "239555fc.bdbfaa",
727         "type": "switchNode",
728         "name": "switch: PRELOAD vpn-binding-id",
729         "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings[$i].vpn-binding-id`\">",
730         "comments": "",
731         "outputs": 1,
732         "x": 955.8135871887207,
733         "y": 1200.3215417861938,
734         "z": "f9c6b4d6.c89d48",
735         "wires": [
736             [
737                 "ea26c779.e30328"
738             ]
739         ]
740     },
741     {
742         "id": "ea26c779.e30328",
743         "type": "other",
744         "name": "other",
745         "xml": "<outcome value='Other'>\n",
746         "comments": "",
747         "outputs": 1,
748         "x": 1169.3135948181152,
749         "y": 1200.0715427398682,
750         "z": "f9c6b4d6.c89d48",
751         "wires": [
752             [
753                 "d6658c61.93f25"
754             ]
755         ]
756     },
757     {
758         "id": "d6658c61.93f25",
759         "type": "set",
760         "name": "set tmp.vpn-binding-id",
761         "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$preload-data.network-topology-information.vpn-bindings[$i].vpn-binding-id`\" />\n",
762         "comments": "",
763         "x": 1351.8135948181152,
764         "y": 1200.0715436935425,
765         "z": "f9c6b4d6.c89d48",
766         "wires": []
767     },
768     {
769         "id": "67b5caf1.ddebd4",
770         "type": "success",
771         "name": "success",
772         "xml": "<outcome value='success'>\n",
773         "comments": "",
774         "outputs": 1,
775         "x": 1622.8135795593262,
776         "y": 1244.82160282135,
777         "z": "f9c6b4d6.c89d48",
778         "wires": [
779             [
780                 "93380f51.982a9"
781             ]
782         ]
783     },
784     {
785         "id": "6fc7931.d198c6c",
786         "type": "set",
787         "name": "set tmp.vpn-binding-id",
788         "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$tmp.AnAI.vpn-binding.vpn-id`\" />\n",
789         "comments": "",
790         "x": 2277.0636291503906,
791         "y": 1243.571678161621,
792         "z": "f9c6b4d6.c89d48",
793         "wires": []
794     },
795     {
796         "id": "80139c48.11b38",
797         "type": "failure",
798         "name": "failure",
799         "xml": "<outcome value='failure'>\n",
800         "comments": "",
801         "outputs": 1,
802         "x": 1278.9297943115234,
803         "y": 1377.920114517212,
804         "z": "f9c6b4d6.c89d48",
805         "wires": [
806             [
807                 "4dce9a6d.462e74"
808             ]
809         ]
810     },
811     {
812         "id": "4dce9a6d.462e74",
813         "type": "block",
814         "name": "block : atomic",
815         "xml": "<block atomic='true'>",
816         "atomic": "true",
817         "comments": "",
818         "outputs": 1,
819         "x": 1466.8226737976074,
820         "y": 1377.556221961975,
821         "z": "f9c6b4d6.c89d48",
822         "wires": [
823             [
824                 "d7897aa2.314cd8",
825                 "7598ed5f.703d44"
826             ]
827         ]
828     },
829     {
830         "id": "d7897aa2.314cd8",
831         "type": "set",
832         "name": "set: tmp.error-message",
833         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving vpn-binding relationship for l3-network in AnAI where vpn-id = ' + $tmp.vpn-binding-id`\"/>",
834         "comments": "",
835         "x": 1679.9222145080566,
836         "y": 1378.3061208724976,
837         "z": "f9c6b4d6.c89d48",
838         "wires": []
839     },
840     {
841         "id": "aec67243.3085b",
842         "type": "for",
843         "name": "for loop i - PRELOAD network-policy",
844         "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.network-policy_length`\">\n",
845         "comments": "",
846         "outputs": 1,
847         "x": 451.45642852783203,
848         "y": 1568.6431703567505,
849         "z": "f9c6b4d6.c89d48",
850         "wires": [
851             [
852                 "9591c346.1a1b4"
853             ]
854         ]
855     },
856     {
857         "id": "efde88cf.9b8748",
858         "type": "save",
859         "name": "save relationship: network-policy",
860         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\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`\" />",
861         "comments": "",
862         "outputs": 1,
863         "x": 2268.0121154785156,
864         "y": 1701.1154356002808,
865         "z": "f9c6b4d6.c89d48",
866         "wires": [
867             [
868                 "61a477bc.3c1228",
869                 "70ae584f.c14f98"
870             ]
871         ]
872     },
873     {
874         "id": "9591c346.1a1b4",
875         "type": "switchNode",
876         "name": "switch: PRELOAD network-policy-fqdn != NULL",
877         "xml": "<switch test=\"`$preload-data.network-topology-information.network-policy[$i].network-policy-fqdn != ''`\">",
878         "comments": "",
879         "outputs": 1,
880         "x": 807.7186872694228,
881         "y": 1568.9924284617105,
882         "z": "f9c6b4d6.c89d48",
883         "wires": [
884             [
885                 "28c23efe.60d8c2"
886             ]
887         ]
888     },
889     {
890         "id": "28c23efe.60d8c2",
891         "type": "other",
892         "name": "true",
893         "xml": "<outcome value='true'>\n",
894         "comments": "",
895         "outputs": 1,
896         "x": 1073.4686872694228,
897         "y": 1569.2424284617105,
898         "z": "f9c6b4d6.c89d48",
899         "wires": [
900             [
901                 "9a67180c.7e8c88"
902             ]
903         ]
904     },
905     {
906         "id": "9a67180c.7e8c88",
907         "type": "save",
908         "name": "query AnAI - network-policy",
909         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.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\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.network-policy\">",
910         "comments": "",
911         "outputs": 1,
912         "x": 1282.71869108412,
913         "y": 1569.2424284617105,
914         "z": "f9c6b4d6.c89d48",
915         "wires": [
916             [
917                 "86e4182d.175af8",
918                 "3ac39ea5.f66bf2",
919                 "36636bd5.8e92b4"
920             ]
921         ]
922     },
923     {
924         "id": "86e4182d.175af8",
925         "type": "failure",
926         "name": "failure",
927         "xml": "<outcome value='failure'>\n",
928         "comments": "",
929         "outputs": 1,
930         "x": 1490.71877500746,
931         "y": 1610.2424379984536,
932         "z": "f9c6b4d6.c89d48",
933         "wires": [
934             [
935                 "19951b2e.af9645"
936             ]
937         ]
938     },
939     {
940         "id": "3ac39ea5.f66bf2",
941         "type": "not-found",
942         "name": "not-found",
943         "xml": "<outcome value='not-found'>\n",
944         "comments": "",
945         "outputs": 1,
946         "x": 1496.2187788221572,
947         "y": 1568.7424370447793,
948         "z": "f9c6b4d6.c89d48",
949         "wires": [
950             [
951                 "19951b2e.af9645"
952             ]
953         ]
954     },
955     {
956         "id": "19951b2e.af9645",
957         "type": "block",
958         "name": "block : atomic",
959         "xml": "<block atomic='true'>",
960         "atomic": "true",
961         "comments": "",
962         "outputs": 1,
963         "x": 1660.7187788221572,
964         "y": 1609.992438952128,
965         "z": "f9c6b4d6.c89d48",
966         "wires": [
967             [
968                 "1be79b78.b46515",
969                 "7598ed5f.703d44"
970             ]
971         ]
972     },
973     {
974         "id": "1be79b78.b46515",
975         "type": "set",
976         "name": "set: tmp.error-message",
977         "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`\"/>",
978         "comments": "",
979         "x": 1869.8183195326064,
980         "y": 1609.7423378626504,
981         "z": "f9c6b4d6.c89d48",
982         "wires": []
983     },
984     {
985         "id": "61a477bc.3c1228",
986         "type": "failure",
987         "name": "failure",
988         "xml": "<outcome value='failure'>\n",
989         "comments": "",
990         "outputs": 1,
991         "x": 2491.084991455078,
992         "y": 1700.591022491455,
993         "z": "f9c6b4d6.c89d48",
994         "wires": [
995             [
996                 "905198df.a2e8e8"
997             ]
998         ]
999     },
1000     {
1001         "id": "905198df.a2e8e8",
1002         "type": "block",
1003         "name": "block : atomic",
1004         "xml": "<block atomic='true'>",
1005         "atomic": "true",
1006         "comments": "",
1007         "outputs": 1,
1008         "x": 2670.977870941162,
1009         "y": 1700.2271299362183,
1010         "z": "f9c6b4d6.c89d48",
1011         "wires": [
1012             [
1013                 "3c4f721c.b157ae",
1014                 "7598ed5f.703d44"
1015             ]
1016         ]
1017     },
1018     {
1019         "id": "3c4f721c.b157ae",
1020         "type": "set",
1021         "name": "set: tmp.error-message",
1022         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving network-policy relationship for l3-network in AnAI where network-policy-id = ' + $tmp.AnAI.network-policy.network-policy-id`\"/>",
1023         "comments": "",
1024         "x": 2894.0774116516113,
1025         "y": 1700.9770288467407,
1026         "z": "f9c6b4d6.c89d48",
1027         "wires": []
1028     },
1029     {
1030         "id": "a461de0f.d6093",
1031         "type": "call",
1032         "name": "call: generate-subnets-subnet-id",
1033         "xml": "<call module=\"VNF-API\" rpc=\"generate-subnets-subnet-id\" mode=\"sync\" >\n",
1034         "comments": "",
1035         "outputs": 1,
1036         "x": 941.7618713378906,
1037         "y": 822.5118942260742,
1038         "z": "f9c6b4d6.c89d48",
1039         "wires": [
1040             [
1041                 "6a268e02.7bf99"
1042             ]
1043         ]
1044     },
1045     {
1046         "id": "6a268e02.7bf99",
1047         "type": "failure",
1048         "name": "failure",
1049         "xml": "<outcome value='failure'>\n",
1050         "comments": "",
1051         "outputs": 1,
1052         "x": 1239.5118560791016,
1053         "y": 822.761884689331,
1054         "z": "f9c6b4d6.c89d48",
1055         "wires": [
1056             [
1057                 "7598ed5f.703d44"
1058             ]
1059         ]
1060     },
1061     {
1062         "id": "6a95cc4c.004c34",
1063         "type": "save",
1064         "name": "save relationship: tenant and cloud-region",
1065         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t<!-- create relationship-list -->\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"tenant\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"CloudOwner\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-information.aic-cloud-region`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"tenant.tenant-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n\t<parameter name=\"relationship-list.relationship[1].related-to\" value=\"cloud-region\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"CloudOwner\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-information.aic-cloud-region`\" />",
1066         "comments": "",
1067         "outputs": 1,
1068         "x": 495.5635681152344,
1069         "y": 953.7380905151367,
1070         "z": "f9c6b4d6.c89d48",
1071         "wires": [
1072             [
1073                 "94d20436.9f5a98",
1074                 "5c4aab8f.7f8844"
1075             ]
1076         ]
1077     },
1078     {
1079         "id": "94d20436.9f5a98",
1080         "type": "failure",
1081         "name": "failure",
1082         "xml": "<outcome value='failure'>\n",
1083         "comments": "",
1084         "outputs": 1,
1085         "x": 743.5635681152344,
1086         "y": 953.7380905151367,
1087         "z": "f9c6b4d6.c89d48",
1088         "wires": [
1089             [
1090                 "9bdd4cad.3259a"
1091             ]
1092         ]
1093     },
1094     {
1095         "id": "9bdd4cad.3259a",
1096         "type": "block",
1097         "name": "block : atomic",
1098         "xml": "<block atomic='true'>",
1099         "atomic": "true",
1100         "comments": "",
1101         "outputs": 1,
1102         "x": 931.9563961029053,
1103         "y": 953.3742084503174,
1104         "z": "f9c6b4d6.c89d48",
1105         "wires": [
1106             [
1107                 "9e720f57.6429d",
1108                 "7598ed5f.703d44"
1109             ]
1110         ]
1111     },
1112     {
1113         "id": "9e720f57.6429d",
1114         "type": "set",
1115         "name": "set: tmp.error-message",
1116         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving tenant and clould-region relationship for l3-network in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>",
1117         "comments": "",
1118         "x": 1136.0559368133545,
1119         "y": 953.1241073608398,
1120         "z": "f9c6b4d6.c89d48",
1121         "wires": []
1122     },
1123     {
1124         "id": "36380a8c.5dc166",
1125         "type": "switchNode",
1126         "name": "switch: tmp.vpn-binding-id != NULL",
1127         "xml": "<switch test=\"`$tmp.vpn-binding-id != ''`\">",
1128         "comments": "",
1129         "outputs": 1,
1130         "x": 962.8135833740234,
1131         "y": 1291.7381057739258,
1132         "z": "f9c6b4d6.c89d48",
1133         "wires": [
1134             [
1135                 "2a156ae6.84e5a6"
1136             ]
1137         ]
1138     },
1139     {
1140         "id": "2a156ae6.84e5a6",
1141         "type": "other",
1142         "name": "true",
1143         "xml": "<outcome value='true'>\n",
1144         "comments": "",
1145         "outputs": 1,
1146         "x": 1182.5635681152344,
1147         "y": 1291.7380905151367,
1148         "z": "f9c6b4d6.c89d48",
1149         "wires": [
1150             [
1151                 "42bfa7b6.ab68a8"
1152             ]
1153         ]
1154     },
1155     {
1156         "id": "bbec29a5.4081f8",
1157         "type": "set",
1158         "name": "set tmp.local.network-id",
1159         "xml": "<set>\n<parameter name=\"tmp.local.network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n",
1160         "comments": "",
1161         "x": 917.5714569091797,
1162         "y": 778.9999885559082,
1163         "z": "f9c6b4d6.c89d48",
1164         "wires": []
1165     },
1166     {
1167         "id": "69434546.6b177c",
1168         "type": "save",
1169         "name": "save AnAI - l3-network.subnets",
1170         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid \n\t\t\tAND subnet.subnet-id = $tmp.return.generate-subnets-subnet-id.uuid\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n<parameter name=\"subnet-name\" value=\"`$preload-data.network-topology-information.subnets[$i].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$preload-data.network-topology-information.subnets[$i].start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$preload-data.network-topology-information.subnets[$i].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$preload-data.network-topology-information.subnets[$i].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$preload-data.network-topology-information.subnets[$i].dhcp-start-address`\" />\n<parameter name=\"dhcp-end\" value=\"`$preload-data.network-topology-information.subnets[$i].dhcp-end-address`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.dhcpEnabled.boolean`\" />\n\t\t<parameter name=\"orchestration-status\" value=\"pending-create\" />",
1171         "comments": "",
1172         "outputs": 1,
1173         "x": 940.6379051208496,
1174         "y": 868.5035381317139,
1175         "z": "f9c6b4d6.c89d48",
1176         "wires": [
1177             [
1178                 "bf4af859.d229c8",
1179                 "91ca1bcf.ce5e18"
1180             ]
1181         ]
1182     },
1183     {
1184         "id": "cced61c2.cb78b",
1185         "type": "save",
1186         "name": "get AnAI - l3-network by name",
1187         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $network-topology-operation-input.network-request-information.network-name\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.l3network.existed\">\n\n",
1188         "comments": "",
1189         "outputs": 1,
1190         "x": 458,
1191         "y": 254.42857360839844,
1192         "z": "f9c6b4d6.c89d48",
1193         "wires": [
1194             [
1195                 "442f4dcc.0db234",
1196                 "b16ddddf.00d98"
1197             ]
1198         ]
1199     },
1200     {
1201         "id": "442f4dcc.0db234",
1202         "type": "success",
1203         "name": "success",
1204         "xml": "<outcome value='success'>\n",
1205         "comments": "",
1206         "outputs": 1,
1207         "x": 684.25,
1208         "y": 296.6786346435547,
1209         "z": "f9c6b4d6.c89d48",
1210         "wires": [
1211             [
1212                 "6a2fcf8c.18eb8"
1213             ]
1214         ]
1215     },
1216     {
1217         "id": "202129b8.5c0ed6",
1218         "type": "returnFailure",
1219         "name": "return failure",
1220         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'An error occurred while querying whether l3-network with network-name = ' + $network-topology-operation-input.network-request-information.network-name + ' already exists in AnAI'`\"/>\n",
1221         "comments": "",
1222         "x": 832.7457580566406,
1223         "y": 254.89673042297363,
1224         "z": "f9c6b4d6.c89d48",
1225         "wires": []
1226     },
1227     {
1228         "id": "b16ddddf.00d98",
1229         "type": "failure",
1230         "name": "failure",
1231         "xml": "<outcome value='failure'>\n",
1232         "comments": "",
1233         "outputs": 1,
1234         "x": 679.5235358344185,
1235         "y": 254.89673042297363,
1236         "z": "f9c6b4d6.c89d48",
1237         "wires": [
1238             [
1239                 "202129b8.5c0ed6"
1240             ]
1241         ]
1242     },
1243     {
1244         "id": "6a2fcf8c.18eb8",
1245         "type": "returnFailure",
1246         "name": "return failure",
1247         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'A l3-network with network-name = ' + $network-topology-operation-input.network-request-information.network-name + ' already existed in AnAI with network-id = ' + $tmp.AnAI.l3network.existed.network-id`\"  />\n",
1248         "comments": "",
1249         "x": 835.4286193847656,
1250         "y": 296.42857360839844,
1251         "z": "f9c6b4d6.c89d48",
1252         "wires": []
1253     },
1254     {
1255         "id": "d30ff142.3546e",
1256         "type": "set",
1257         "name": "set: tmp.error-message to \"\"",
1258         "xml": "<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>",
1259         "comments": "",
1260         "x": 451.5714111328125,
1261         "y": 362.67857360839844,
1262         "z": "f9c6b4d6.c89d48",
1263         "wires": []
1264     },
1265     {
1266         "id": "300d9dbd.6d58a2",
1267         "type": "set",
1268         "name": "unset tmp.vpn-binding-id",
1269         "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"\" />\n",
1270         "comments": "",
1271         "x": 929.8888931274414,
1272         "y": 1154.015875339508,
1273         "z": "f9c6b4d6.c89d48",
1274         "wires": []
1275     },
1276     {
1277         "id": "36636bd5.8e92b4",
1278         "type": "success",
1279         "name": "success",
1280         "xml": "<outcome value='success'>\n",
1281         "comments": "",
1282         "outputs": 1,
1283         "x": 1493.24998304579,
1284         "y": 1654.5715109507241,
1285         "z": "f9c6b4d6.c89d48",
1286         "wires": [
1287             [
1288                 "ce9859f8.9238e8"
1289             ]
1290         ]
1291     },
1292     {
1293         "id": "cd3c019c.f3ce1",
1294         "type": "success",
1295         "name": "success",
1296         "xml": "<outcome value='success'>\n",
1297         "comments": "",
1298         "outputs": 1,
1299         "x": 1282.5872650146484,
1300         "y": 1464.777780532837,
1301         "z": "f9c6b4d6.c89d48",
1302         "wires": [
1303             [
1304                 "b9331242.105a7"
1305             ]
1306         ]
1307     },
1308     {
1309         "id": "b9331242.105a7",
1310         "type": "set",
1311         "name": "set tmp.is-bound-to-vpn",
1312         "xml": "<set>\n<parameter name=\"tmp.is-bound-to-vpn\" value=\"true\" />\n",
1313         "comments": "",
1314         "x": 1473.0872650146484,
1315         "y": 1464.777780532837,
1316         "z": "f9c6b4d6.c89d48",
1317         "wires": []
1318     },
1319     {
1320         "id": "dfebf1ef.060d1",
1321         "type": "save",
1322         "name": "update AnAI - l3-network",
1323         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<parameter name=\"is-bound-to-vpn\" value=\"true\" />",
1324         "comments": "",
1325         "outputs": 1,
1326         "x": 655.3016128540039,
1327         "y": 1956.206524848938,
1328         "z": "f9c6b4d6.c89d48",
1329         "wires": [
1330             [
1331                 "e1336583.4cd0d8",
1332                 "8f30eaa4.9bde48"
1333             ]
1334         ]
1335     },
1336     {
1337         "id": "e1336583.4cd0d8",
1338         "type": "failure",
1339         "name": "failure",
1340         "xml": "<outcome value='failure'>\n",
1341         "comments": "",
1342         "outputs": 1,
1343         "x": 851.5847702026367,
1344         "y": 1956.221842765808,
1345         "z": "f9c6b4d6.c89d48",
1346         "wires": [
1347             [
1348                 "f55c1f6d.ea9aa"
1349             ]
1350         ]
1351     },
1352     {
1353         "id": "eec55dc8.09816",
1354         "type": "switchNode",
1355         "name": "switch ... tmp.is-bound-to-vpn",
1356         "xml": "<switch test=\"`$tmp.is-bound-to-vpn`\">",
1357         "comments": "",
1358         "outputs": 1,
1359         "x": 424.44444274902344,
1360         "y": 1891.3493671417236,
1361         "z": "f9c6b4d6.c89d48",
1362         "wires": [
1363             [
1364                 "34d11c70.e8f384"
1365             ]
1366         ]
1367     },
1368     {
1369         "id": "34d11c70.e8f384",
1370         "type": "outcome",
1371         "name": "true",
1372         "xml": "<outcome value=\"true\">",
1373         "comments": "",
1374         "outputs": 1,
1375         "x": 643.8888931274414,
1376         "y": 1891.1271028518677,
1377         "z": "f9c6b4d6.c89d48",
1378         "wires": [
1379             [
1380                 "dfebf1ef.060d1"
1381             ]
1382         ]
1383     },
1384     {
1385         "id": "f55c1f6d.ea9aa",
1386         "type": "block",
1387         "name": "block : atomic",
1388         "xml": "<block atomic='true'>",
1389         "atomic": "true",
1390         "comments": "",
1391         "outputs": 1,
1392         "x": 1063.694450378418,
1393         "y": 1956.5993690490723,
1394         "z": "f9c6b4d6.c89d48",
1395         "wires": [
1396             [
1397                 "36e75acf.f931c6",
1398                 "7598ed5f.703d44"
1399             ]
1400         ]
1401     },
1402     {
1403         "id": "36e75acf.f931c6",
1404         "type": "set",
1405         "name": "set: tmp.error-message",
1406         "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 is-bound-to-vpn in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>",
1407         "comments": "",
1408         "x": 1282.194435119629,
1409         "y": 1956.349347114563,
1410         "z": "f9c6b4d6.c89d48",
1411         "wires": []
1412     },
1413     {
1414         "id": "8cf9ad87.65dd7",
1415         "type": "not-found",
1416         "name": "not-found",
1417         "xml": "<outcome value='not-found'>\n",
1418         "comments": "",
1419         "outputs": 1,
1420         "x": 636.5714111328125,
1421         "y": 497.57141304016113,
1422         "z": "f9c6b4d6.c89d48",
1423         "wires": [
1424             [
1425                 "c0b37f94.55c04"
1426             ]
1427         ]
1428     },
1429     {
1430         "id": "91ca1bcf.ce5e18",
1431         "type": "not-found",
1432         "name": "not-found",
1433         "xml": "<outcome value='not-found'>\n",
1434         "comments": "",
1435         "outputs": 1,
1436         "x": 1160.5714111328125,
1437         "y": 909.5714130401611,
1438         "z": "f9c6b4d6.c89d48",
1439         "wires": [
1440             [
1441                 "78a54b4f.f2a264"
1442             ]
1443         ]
1444     },
1445     {
1446         "id": "5c4aab8f.7f8844",
1447         "type": "not-found",
1448         "name": "not-found",
1449         "xml": "<outcome value='not-found'>\n",
1450         "comments": "",
1451         "outputs": 1,
1452         "x": 751.5714111328125,
1453         "y": 995.5714130401611,
1454         "z": "f9c6b4d6.c89d48",
1455         "wires": [
1456             [
1457                 "9bdd4cad.3259a"
1458             ]
1459         ]
1460     },
1461     {
1462         "id": "188bd49e.885fbb",
1463         "type": "not-found",
1464         "name": "not-found",
1465         "xml": "<outcome value='not-found'>\n",
1466         "comments": "",
1467         "outputs": 1,
1468         "x": 1287.0157318115234,
1469         "y": 1420.5713863372803,
1470         "z": "f9c6b4d6.c89d48",
1471         "wires": [
1472             [
1473                 "4dce9a6d.462e74"
1474             ]
1475         ]
1476     },
1477     {
1478         "id": "8f30eaa4.9bde48",
1479         "type": "not-found",
1480         "name": "not-found",
1481         "xml": "<outcome value='not-found'>\n",
1482         "comments": "",
1483         "outputs": 1,
1484         "x": 859.071403503418,
1485         "y": 1997.3214921951294,
1486         "z": "f9c6b4d6.c89d48",
1487         "wires": [
1488             [
1489                 "f55c1f6d.ea9aa"
1490             ]
1491         ]
1492     },
1493     {
1494         "id": "70ae584f.c14f98",
1495         "type": "not-found",
1496         "name": "not-found",
1497         "xml": "<outcome value='not-found'>\n",
1498         "comments": "",
1499         "outputs": 1,
1500         "x": 2498.8214433458115,
1501         "y": 1743.071546872457,
1502         "z": "f9c6b4d6.c89d48",
1503         "wires": [
1504             [
1505                 "905198df.a2e8e8"
1506             ]
1507         ]
1508     },
1509     {
1510         "id": "93380f51.982a9",
1511         "type": "switchNode",
1512         "name": "switch: tmp.AnAI.vpn-binding.vpn-id",
1513         "xml": "<switch test=\"`$tmp.AnAI.vpn-binding.vpn-id`\" >",
1514         "comments": "",
1515         "outputs": 1,
1516         "x": 1830.8214416503906,
1517         "y": 1244.3214302062988,
1518         "z": "f9c6b4d6.c89d48",
1519         "wires": [
1520             [
1521                 "eff41a9e.00afa8",
1522                 "5bc2956f.787c5c"
1523             ]
1524         ]
1525     },
1526     {
1527         "id": "b76ca92c.0ed578",
1528         "type": "block",
1529         "name": "block : atomic",
1530         "xml": "<block atomic='true'>",
1531         "atomic": "true",
1532         "comments": "",
1533         "outputs": 1,
1534         "x": 2253.5714416503906,
1535         "y": 1283.3214302062988,
1536         "z": "f9c6b4d6.c89d48",
1537         "wires": [
1538             [
1539                 "bb1b9631.658388",
1540                 "7598ed5f.703d44"
1541             ]
1542         ]
1543     },
1544     {
1545         "id": "5bc2956f.787c5c",
1546         "type": "other",
1547         "name": "NULL",
1548         "xml": "<outcome value=''>\n",
1549         "comments": "",
1550         "outputs": 1,
1551         "x": 2088.5714416503906,
1552         "y": 1283.8214302062988,
1553         "z": "f9c6b4d6.c89d48",
1554         "wires": [
1555             [
1556                 "b76ca92c.0ed578"
1557             ]
1558         ]
1559     },
1560     {
1561         "id": "eff41a9e.00afa8",
1562         "type": "other",
1563         "name": "other",
1564         "xml": "<outcome value='Other'>\n",
1565         "comments": "",
1566         "outputs": 1,
1567         "x": 2088.5714111328125,
1568         "y": 1243.8214130401611,
1569         "z": "f9c6b4d6.c89d48",
1570         "wires": [
1571             [
1572                 "6fc7931.d198c6c"
1573             ]
1574         ]
1575     },
1576     {
1577         "id": "bb1b9631.658388",
1578         "type": "set",
1579         "name": "set: tmp.error-message",
1580         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query vpn-bindings from AnAI where global-route-target = ' + $preload-data.network-topology-information.vpn-bindings[$i].global-route-target + '. It is likely that the same global-route-target points to more than one vpn-binding objects in AnAI.'`\"/>",
1581         "comments": "",
1582         "x": 2469.0714111328125,
1583         "y": 1283.3214130401611,
1584         "z": "f9c6b4d6.c89d48",
1585         "wires": []
1586     },
1587     {
1588         "id": "ce9859f8.9238e8",
1589         "type": "switchNode",
1590         "name": "switch: tmp.AnAI.network-policy.network-policy-id",
1591         "xml": "<switch test=\"`$tmp.AnAI.network-policy.network-policy-id`\" >",
1592         "comments": "",
1593         "outputs": 1,
1594         "x": 1771.3292541503906,
1595         "y": 1654.0713682174683,
1596         "z": "f9c6b4d6.c89d48",
1597         "wires": [
1598             [
1599                 "3c3f8072.e88a9",
1600                 "d073d6e1.0db6e8"
1601             ]
1602         ]
1603     },
1604     {
1605         "id": "3c3f8072.e88a9",
1606         "type": "other",
1607         "name": "NULL",
1608         "xml": "<outcome value=''>\n",
1609         "comments": "",
1610         "outputs": 1,
1611         "x": 2045.0792541503906,
1612         "y": 1653.5713682174683,
1613         "z": "f9c6b4d6.c89d48",
1614         "wires": [
1615             [
1616                 "78fb0dee.396224"
1617             ]
1618         ]
1619     },
1620     {
1621         "id": "78fb0dee.396224",
1622         "type": "block",
1623         "name": "block : atomic",
1624         "xml": "<block atomic='true'>",
1625         "atomic": "true",
1626         "comments": "",
1627         "outputs": 1,
1628         "x": 2210.0792541503906,
1629         "y": 1653.0713682174683,
1630         "z": "f9c6b4d6.c89d48",
1631         "wires": [
1632             [
1633                 "7598ed5f.703d44",
1634                 "c12525bf.5dfe18"
1635             ]
1636         ]
1637     },
1638     {
1639         "id": "b7a4e2fe.7602c",
1640         "type": "set",
1641         "name": "set: tmp.error-message",
1642         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query route-table-reference from AnAI where route-table-reference-fqdn = ' + $preload-data.network-topology-information.route-table-reference[$i].route-table-reference-fqdn + '. It is likely that the same route-table-reference-fqdn points to more than one route-table-reference objects in AnAI.'`\"/>",
1643         "comments": "",
1644         "x": 2636.912660386827,
1645         "y": 1851.404614766439,
1646         "z": "f9c6b4d6.c89d48",
1647         "wires": []
1648     },
1649     {
1650         "id": "d073d6e1.0db6e8",
1651         "type": "other",
1652         "name": "other",
1653         "xml": "<outcome value='Other'>\n",
1654         "comments": "",
1655         "outputs": 1,
1656         "x": 2044.5714111328125,
1657         "y": 1700.8214664459229,
1658         "z": "f9c6b4d6.c89d48",
1659         "wires": [
1660             [
1661                 "efde88cf.9b8748"
1662             ]
1663         ]
1664     },
1665     {
1666         "id": "d92a7574.cd1b58",
1667         "type": "save",
1668         "name": "update AnAI - l3-network.provider-network-information",
1669         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<parameter name=\"physical-network-name\" value=\"`$preload-data.network-topology-information.provider-network-information.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-provider-network`\" />\n<parameter name=\"is-shared-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-shared-network`\" />\n<parameter name=\"is-external-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-external-network`\" />",
1670         "comments": "",
1671         "outputs": 1,
1672         "x": 534.7499847412109,
1673         "y": 541.3214206695557,
1674         "z": "f9c6b4d6.c89d48",
1675         "wires": [
1676             [
1677                 "8d65ff4.75283",
1678                 "a6764a00.4418a8"
1679             ]
1680         ]
1681     },
1682     {
1683         "id": "8d65ff4.75283",
1684         "type": "failure",
1685         "name": "failure",
1686         "xml": "<outcome value='failure'>\n",
1687         "comments": "",
1688         "outputs": 1,
1689         "x": 848.2831344604492,
1690         "y": 541.3367395401001,
1691         "z": "f9c6b4d6.c89d48",
1692         "wires": [
1693             [
1694                 "19a0604d.6fffb"
1695             ]
1696         ]
1697     },
1698     {
1699         "id": "19a0604d.6fffb",
1700         "type": "block",
1701         "name": "block : atomic",
1702         "xml": "<block atomic='true'>",
1703         "atomic": "true",
1704         "comments": "",
1705         "outputs": 1,
1706         "x": 1060.3928146362305,
1707         "y": 541.7142658233643,
1708         "z": "f9c6b4d6.c89d48",
1709         "wires": [
1710             [
1711                 "bfc1c864.dda818",
1712                 "7598ed5f.703d44"
1713             ]
1714         ]
1715     },
1716     {
1717         "id": "bfc1c864.dda818",
1718         "type": "set",
1719         "name": "set: tmp.error-message",
1720         "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 with provider-network-information in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>",
1721         "comments": "",
1722         "x": 1278.8927993774414,
1723         "y": 541.464243888855,
1724         "z": "f9c6b4d6.c89d48",
1725         "wires": []
1726     },
1727     {
1728         "id": "a6764a00.4418a8",
1729         "type": "not-found",
1730         "name": "not-found",
1731         "xml": "<outcome value='not-found'>\n",
1732         "comments": "",
1733         "outputs": 1,
1734         "x": 855.7697677612305,
1735         "y": 582.4363889694214,
1736         "z": "f9c6b4d6.c89d48",
1737         "wires": [
1738             [
1739                 "19a0604d.6fffb"
1740             ]
1741         ]
1742     },
1743     {
1744         "id": "f5d35022.8ff6",
1745         "type": "switchNode",
1746         "name": "switch ... PRELOAD route-table-reference[]",
1747         "xml": "<switch test=\"`$preload-data.network-topology-information.route-table-reference_length`\">",
1748         "comments": "",
1749         "outputs": 1,
1750         "x": 469.74998474121094,
1751         "y": 1721.5714130401611,
1752         "z": "f9c6b4d6.c89d48",
1753         "wires": [
1754             [
1755                 "4f951dff.ce2564"
1756             ]
1757         ]
1758     },
1759     {
1760         "id": "4f951dff.ce2564",
1761         "type": "outcome",
1762         "name": "NULL",
1763         "xml": "<outcome value=''>",
1764         "outputs": 1,
1765         "x": 725.1944351196289,
1766         "y": 1721.3491487503052,
1767         "z": "f9c6b4d6.c89d48",
1768         "wires": [
1769             [
1770                 "d46faf09.e831"
1771             ]
1772         ]
1773     },
1774     {
1775         "id": "d46faf09.e831",
1776         "type": "set",
1777         "name": "set route-table-reference[] = 0",
1778         "xml": "<set>\n<parameter name='preload-data.network-topology-information.route-table-reference_length' value='0' />\n",
1779         "comments": "",
1780         "x": 930.7500440809463,
1781         "y": 1721.3491694132485,
1782         "z": "f9c6b4d6.c89d48",
1783         "wires": []
1784     },
1785     {
1786         "id": "30dd8358.aaaadc",
1787         "type": "for",
1788         "name": "for loop i - PRELOAD route-table-reference",
1789         "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.route-table-reference_length`\">\n",
1790         "comments": "",
1791         "outputs": 1,
1792         "x": 468.1072463989258,
1793         "y": 1769.142804145813,
1794         "z": "f9c6b4d6.c89d48",
1795         "wires": [
1796             [
1797                 "9bc7e123.4762e"
1798             ]
1799         ]
1800     },
1801     {
1802         "id": "75664f84.1ae09",
1803         "type": "save",
1804         "name": "save relationship: route-table-reference",
1805         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\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`\" />",
1806         "comments": "",
1807         "outputs": 1,
1808         "x": 2454.9962632921006,
1809         "y": 1900.9483931859336,
1810         "z": "f9c6b4d6.c89d48",
1811         "wires": [
1812             [
1813                 "4d7f2cce.5452f4",
1814                 "5883ac21.585844"
1815             ]
1816         ]
1817     },
1818     {
1819         "id": "9bc7e123.4762e",
1820         "type": "switchNode",
1821         "name": "switch: PRELOAD network-policy-fqdn != NULL",
1822         "xml": "<switch test=\"`$preload-data.network-topology-information.route-table-reference[$i].route-table-reference-fqdn != ''`\">",
1823         "comments": "",
1824         "outputs": 1,
1825         "x": 853.7028350830078,
1826         "y": 1768.8253860473633,
1827         "z": "f9c6b4d6.c89d48",
1828         "wires": [
1829             [
1830                 "209cfc0f.7ee064"
1831             ]
1832         ]
1833     },
1834     {
1835         "id": "209cfc0f.7ee064",
1836         "type": "other",
1837         "name": "true",
1838         "xml": "<outcome value='true'>\n",
1839         "comments": "",
1840         "outputs": 1,
1841         "x": 1119.4528350830078,
1842         "y": 1769.0753860473633,
1843         "z": "f9c6b4d6.c89d48",
1844         "wires": [
1845             [
1846                 "4c6ed27c.d3899c"
1847             ]
1848         ]
1849     },
1850     {
1851         "id": "4c6ed27c.d3899c",
1852         "type": "save",
1853         "name": "query AnAI - route-table-reference",
1854         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.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\">",
1855         "comments": "",
1856         "outputs": 1,
1857         "x": 1348.702838897705,
1858         "y": 1769.0753860473633,
1859         "z": "f9c6b4d6.c89d48",
1860         "wires": [
1861             [
1862                 "32be05d4.ef453a",
1863                 "d31265a9.dd2a68",
1864                 "fc3f6dcc.3ffa5"
1865             ]
1866         ]
1867     },
1868     {
1869         "id": "32be05d4.ef453a",
1870         "type": "failure",
1871         "name": "failure",
1872         "xml": "<outcome value='failure'>\n",
1873         "comments": "",
1874         "outputs": 1,
1875         "x": 1574.702922821045,
1876         "y": 1810.0753955841064,
1877         "z": "f9c6b4d6.c89d48",
1878         "wires": [
1879             [
1880                 "c7025ab3.2465e8"
1881             ]
1882         ]
1883     },
1884     {
1885         "id": "d31265a9.dd2a68",
1886         "type": "not-found",
1887         "name": "not-found",
1888         "xml": "<outcome value='not-found'>\n",
1889         "comments": "",
1890         "outputs": 1,
1891         "x": 1580.2029266357422,
1892         "y": 1768.5753946304321,
1893         "z": "f9c6b4d6.c89d48",
1894         "wires": [
1895             [
1896                 "c7025ab3.2465e8"
1897             ]
1898         ]
1899     },
1900     {
1901         "id": "c7025ab3.2465e8",
1902         "type": "block",
1903         "name": "block : atomic",
1904         "xml": "<block atomic='true'>",
1905         "atomic": "true",
1906         "comments": "",
1907         "outputs": 1,
1908         "x": 1744.7029266357422,
1909         "y": 1809.8253965377808,
1910         "z": "f9c6b4d6.c89d48",
1911         "wires": [
1912             [
1913                 "a84e07a3.02c778"
1914             ]
1915         ]
1916     },
1917     {
1918         "id": "a84e07a3.02c778",
1919         "type": "set",
1920         "name": "set: tmp.error-message",
1921         "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`\"/>",
1922         "comments": "",
1923         "x": 1953.8024673461914,
1924         "y": 1809.5752954483032,
1925         "z": "f9c6b4d6.c89d48",
1926         "wires": []
1927     },
1928     {
1929         "id": "4d7f2cce.5452f4",
1930         "type": "failure",
1931         "name": "failure",
1932         "xml": "<outcome value='failure'>\n",
1933         "comments": "",
1934         "outputs": 1,
1935         "x": 2710.069139268663,
1936         "y": 1900.423980077108,
1937         "z": "f9c6b4d6.c89d48",
1938         "wires": [
1939             [
1940                 "7402c469.9e6bcc"
1941             ]
1942         ]
1943     },
1944     {
1945         "id": "7402c469.9e6bcc",
1946         "type": "block",
1947         "name": "block : atomic",
1948         "xml": "<block atomic='true'>",
1949         "atomic": "true",
1950         "comments": "",
1951         "outputs": 1,
1952         "x": 2889.962018754747,
1953         "y": 1900.060087521871,
1954         "z": "f9c6b4d6.c89d48",
1955         "wires": [
1956             [
1957                 "75091979.f14b18",
1958                 "7598ed5f.703d44"
1959             ]
1960         ]
1961     },
1962     {
1963         "id": "75091979.f14b18",
1964         "type": "set",
1965         "name": "set: tmp.error-message",
1966         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving route-table-reference relationship for l3-network in AnAI where route-table-reference-id = ' + $tmp.AnAI.route-table-reference.route-table-reference-id`\"/>",
1967         "comments": "",
1968         "x": 3114.061586168077,
1969         "y": 1899.8100102742515,
1970         "z": "f9c6b4d6.c89d48",
1971         "wires": []
1972     },
1973     {
1974         "id": "fc3f6dcc.3ffa5",
1975         "type": "success",
1976         "name": "success",
1977         "xml": "<outcome value='success'>\n",
1978         "comments": "",
1979         "outputs": 1,
1980         "x": 1577.234130859375,
1981         "y": 1854.404468536377,
1982         "z": "f9c6b4d6.c89d48",
1983         "wires": [
1984             [
1985                 "b4dd51b0.f58dd"
1986             ]
1987         ]
1988     },
1989     {
1990         "id": "5883ac21.585844",
1991         "type": "not-found",
1992         "name": "not-found",
1993         "xml": "<outcome value='not-found'>\n",
1994         "comments": "",
1995         "outputs": 1,
1996         "x": 2717.8055911593965,
1997         "y": 1942.9045044581098,
1998         "z": "f9c6b4d6.c89d48",
1999         "wires": [
2000             [
2001                 "7402c469.9e6bcc"
2002             ]
2003         ]
2004     },
2005     {
2006         "id": "b4dd51b0.f58dd",
2007         "type": "switchNode",
2008         "name": "switch: tmp.AnAI.route-table-reference.route-table-reference-id",
2009         "xml": "<switch test=\"`$tmp.AnAI.route-table-referencey.route-table-reference-id`\" >",
2010         "comments": "",
2011         "outputs": 1,
2012         "x": 1895.3134019639756,
2013         "y": 1853.904325803121,
2014         "z": "f9c6b4d6.c89d48",
2015         "wires": [
2016             [
2017                 "caa62ee1.0e628",
2018                 "70a311b7.2883a"
2019             ]
2020         ]
2021     },
2022     {
2023         "id": "caa62ee1.0e628",
2024         "type": "other",
2025         "name": "NULL",
2026         "xml": "<outcome value=''>\n",
2027         "comments": "",
2028         "outputs": 1,
2029         "x": 2222.0634019639756,
2030         "y": 1853.404325803121,
2031         "z": "f9c6b4d6.c89d48",
2032         "wires": [
2033             [
2034                 "6ccdc09b.5108b"
2035             ]
2036         ]
2037     },
2038     {
2039         "id": "6ccdc09b.5108b",
2040         "type": "block",
2041         "name": "block : atomic",
2042         "xml": "<block atomic='true'>",
2043         "atomic": "true",
2044         "comments": "",
2045         "outputs": 1,
2046         "x": 2387.0634019639756,
2047         "y": 1852.904325803121,
2048         "z": "f9c6b4d6.c89d48",
2049         "wires": [
2050             [
2051                 "b7a4e2fe.7602c"
2052             ]
2053         ]
2054     },
2055     {
2056         "id": "c12525bf.5dfe18",
2057         "type": "set",
2058         "name": "set: tmp.error-message",
2059         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query newtork-policy from AnAI where network-policy-fqdn = ' + $preload-data.network-topology-information.network-policy[$i].network-policy-fqdn + '. It is likely that the same network-policy-fqdn points to more than one network-policy objects in AnAI.'`\"/>",
2060         "comments": "",
2061         "x": 2455.229965209961,
2062         "y": 1652.5709247589111,
2063         "z": "f9c6b4d6.c89d48",
2064         "wires": []
2065     },
2066     {
2067         "id": "70a311b7.2883a",
2068         "type": "other",
2069         "name": "other",
2070         "xml": "<outcome value='Other'>\n",
2071         "comments": "",
2072         "outputs": 1,
2073         "x": 2221.5555589463975,
2074         "y": 1900.6544240315757,
2075         "z": "f9c6b4d6.c89d48",
2076         "wires": [
2077             [
2078                 "75664f84.1ae09"
2079             ]
2080         ]
2081     },
2082     {
2083         "id": "830f1b88.627bf8",
2084         "type": "save",
2085         "name": "save relationship: service-instance",
2086         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"customer.global-customer-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$network-topology-operation-input.service-information.subscriber-name`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"service-subscription.service-type\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.service-information.service-type`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"service-instance.service-instance-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$network-topology-operation-input.service-information.service-instance-id`\" />",
2087         "comments": "",
2088         "outputs": 1,
2089         "x": 449.74998474121094,
2090         "y": 2092.571413040161,
2091         "z": "f9c6b4d6.c89d48",
2092         "wires": [
2093             [
2094                 "862cdb1e.cf3978",
2095                 "29684e7c.4d3332"
2096             ]
2097         ]
2098     },
2099     {
2100         "id": "862cdb1e.cf3978",
2101         "type": "failure",
2102         "name": "failure",
2103         "xml": "<outcome value='failure'>\n",
2104         "comments": "",
2105         "outputs": 1,
2106         "x": 704.8228607177734,
2107         "y": 2092.0469999313354,
2108         "z": "f9c6b4d6.c89d48",
2109         "wires": [
2110             [
2111                 "a91510cb.75d29"
2112             ]
2113         ]
2114     },
2115     {
2116         "id": "a91510cb.75d29",
2117         "type": "block",
2118         "name": "block : atomic",
2119         "xml": "<block atomic='true'>",
2120         "atomic": "true",
2121         "comments": "",
2122         "outputs": 1,
2123         "x": 884.7157402038574,
2124         "y": 2091.6831073760986,
2125         "z": "f9c6b4d6.c89d48",
2126         "wires": [
2127             [
2128                 "c6dc81e.9bba78",
2129                 "7598ed5f.703d44"
2130             ]
2131         ]
2132     },
2133     {
2134         "id": "c6dc81e.9bba78",
2135         "type": "set",
2136         "name": "set: tmp.error-message",
2137         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving service-instance relationship for l3-network in AnAI where service-instance-id = ' + $network-topology-operation-input.service-information.service-instance-id`\"/>",
2138         "comments": "",
2139         "x": 1122.8153076171875,
2140         "y": 2091.433030128479,
2141         "z": "f9c6b4d6.c89d48",
2142         "wires": []
2143     },
2144     {
2145         "id": "29684e7c.4d3332",
2146         "type": "not-found",
2147         "name": "not-found",
2148         "xml": "<outcome value='not-found'>\n",
2149         "comments": "",
2150         "outputs": 1,
2151         "x": 712.5593126085068,
2152         "y": 2134.5275243123374,
2153         "z": "f9c6b4d6.c89d48",
2154         "wires": [
2155             [
2156                 "a91510cb.75d29"
2157             ]
2158         ]
2159     },
2160     {
2161         "id": "4330f5b6.e6251c",
2162         "type": "switchNode",
2163         "name": "switch: INPUT service-type",
2164         "xml": "<switch test=\"`$network-topology-operation-input.service-information.service-type`\">",
2165         "comments": "",
2166         "outputs": 1,
2167         "x": 447.75,
2168         "y": 160.57142639160156,
2169         "z": "f9c6b4d6.c89d48",
2170         "wires": [
2171             [
2172                 "a00be1d.7bd562"
2173             ]
2174         ]
2175     },
2176     {
2177         "id": "a00be1d.7bd562",
2178         "type": "outcome",
2179         "name": "NULL",
2180         "xml": "<outcome value=''>",
2181         "outputs": 1,
2182         "x": 653.75,
2183         "y": 160.57142639160156,
2184         "z": "f9c6b4d6.c89d48",
2185         "wires": [
2186             [
2187                 "84d2b076.55161"
2188             ]
2189         ]
2190     },
2191     {
2192         "id": "84d2b076.55161",
2193         "type": "returnFailure",
2194         "name": "return failure",
2195         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value='service-type, aka AnAI subscription-service-type, is required.'/>",
2196         "comments": "",
2197         "x": 811.75,
2198         "y": 160.57142639160156,
2199         "z": "f9c6b4d6.c89d48",
2200         "wires": []
2201     },
2202     {
2203         "id": "d045d509.c8ec58",
2204         "type": "switchNode",
2205         "name": "switch: INPUT subscriber-name",
2206         "xml": "<switch test=\"`$network-topology-operation-input.service-information.subscriber-name`\">",
2207         "comments": "",
2208         "outputs": 1,
2209         "x": 461.75,
2210         "y": 206.57142639160156,
2211         "z": "f9c6b4d6.c89d48",
2212         "wires": [
2213             [
2214                 "5efbbb28.950c14"
2215             ]
2216         ]
2217     },
2218     {
2219         "id": "5efbbb28.950c14",
2220         "type": "outcome",
2221         "name": "NULL",
2222         "xml": "<outcome value=''>",
2223         "outputs": 1,
2224         "x": 683.75,
2225         "y": 206.57142639160156,
2226         "z": "f9c6b4d6.c89d48",
2227         "wires": [
2228             [
2229                 "d57a3c68.3825d"
2230             ]
2231         ]
2232     },
2233     {
2234         "id": "d57a3c68.3825d",
2235         "type": "returnFailure",
2236         "name": "return failure",
2237         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value='subscriber-name, aka AnAI global-customer-id, is required.'/>",
2238         "comments": "",
2239         "x": 841.75,
2240         "y": 206.57142639160156,
2241         "z": "f9c6b4d6.c89d48",
2242         "wires": []
2243     }
2244 ]