Support for "Modify" operation of a given Transport Slice.
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json
1 [\r
2     {\r
3         "id": "ac624e71.e83e6",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 171,\r
8         "y": 64,\r
9         "z": "df5c2cef.29f798",\r
10         "wires": [\r
11             [\r
12                 "64be4f08.6aea"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "64be4f08.6aea",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 396.2856903076172,\r
26         "y": 138.23810863494873,\r
27         "z": "df5c2cef.29f798",\r
28         "wires": [\r
29             [\r
30                 "f27e10ce.472c98"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "f27e10ce.472c98",\r
36         "type": "method",\r
37         "name": "method tsli-vnf-topology-operation-trans-slice-modify",\r
38         "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-modify' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 402.42860412597656,\r
42         "y": 223.00003051757812,\r
43         "z": "df5c2cef.29f798",\r
44         "wires": [\r
45             [\r
46                 "816a022.ba1e5"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "816a022.ba1e5",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "outputs": 1,\r
57         "x": 772.238037109375,\r
58         "y": 247.66668701171875,\r
59         "z": "df5c2cef.29f798",\r
60         "wires": [\r
61             [\r
62                 "7291ffac.f47d98",\r
63                 "5b16d7f3.f39658",\r
64                 "984b7b53.1aa03"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "7291ffac.f47d98",\r
70         "type": "returnSuccess",\r
71         "name": "return success",\r
72         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
73         "comments": "",\r
74         "x": 1027.571533203125,\r
75         "y": 401.59698486328125,\r
76         "z": "df5c2cef.29f798",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "5b16d7f3.f39658",\r
81         "type": "save",\r
82         "name": "get service-instance from aai",\r
83         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",\r
84         "comments": "",\r
85         "outputs": 1,\r
86         "x": 1095,\r
87         "y": 221,\r
88         "z": "df5c2cef.29f798",\r
89         "wires": [\r
90             [\r
91                 "8db3edad.5b6268",\r
92                 "958fc136.3797b8",\r
93                 "401f18c4.3af048"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "8db3edad.5b6268",\r
99         "type": "success",\r
100         "name": "success",\r
101         "xml": "<outcome value='success'>\n",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 1320,\r
105         "y": 79,\r
106         "z": "df5c2cef.29f798",\r
107         "wires": [\r
108             [\r
109                 "8cab1f9e.65c1d"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "958fc136.3797b8",\r
115         "type": "not-found",\r
116         "name": "not-found",\r
117         "xml": "<outcome value='not-found'>\n",\r
118         "comments": "",\r
119         "outputs": 1,\r
120         "x": 1315.490966796875,\r
121         "y": 148.57403564453125,\r
122         "z": "df5c2cef.29f798",\r
123         "wires": [\r
124             [\r
125                 "cfcd4dd6.dea03"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "401f18c4.3af048",\r
131         "type": "failure",\r
132         "name": "failure",\r
133         "xml": "<outcome value='failure'>\n",\r
134         "comments": "",\r
135         "outputs": 1,\r
136         "x": 1304,\r
137         "y": 195,\r
138         "z": "df5c2cef.29f798",\r
139         "wires": [\r
140             [\r
141                 "d5a10454.2e80c"\r
142             ]\r
143         ]\r
144     },\r
145     {\r
146         "id": "8cab1f9e.65c1d",\r
147         "type": "switchNode",\r
148         "name": "switch allotted-resources_length != 0",\r
149         "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",\r
150         "comments": "",\r
151         "outputs": 1,\r
152         "x": 1559,\r
153         "y": 76,\r
154         "z": "df5c2cef.29f798",\r
155         "wires": [\r
156             [\r
157                 "70da458e.fda3bc",\r
158                 "6f3a2217.99f894"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "cfcd4dd6.dea03",\r
164         "type": "returnFailure",\r
165         "name": "return failure",\r
166         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
167         "comments": "",\r
168         "x": 1469.0623779296875,\r
169         "y": 151.85977172851562,\r
170         "z": "df5c2cef.29f798",\r
171         "wires": []\r
172     },\r
173     {\r
174         "id": "d5a10454.2e80c",\r
175         "type": "returnFailure",\r
176         "name": "return failure",\r
177         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
178         "comments": "",\r
179         "x": 1473,\r
180         "y": 196,\r
181         "z": "df5c2cef.29f798",\r
182         "wires": []\r
183     },\r
184     {\r
185         "id": "70da458e.fda3bc",\r
186         "type": "outcomeTrue",\r
187         "name": "true",\r
188         "xml": "<outcome value='true'>\n",\r
189         "comments": "",\r
190         "outputs": 1,\r
191         "x": 1772,\r
192         "y": 100,\r
193         "z": "df5c2cef.29f798",\r
194         "wires": [\r
195             [\r
196                 "bd2fd8a5.f00818"\r
197             ]\r
198         ]\r
199     },\r
200     {\r
201         "id": "6f3a2217.99f894",\r
202         "type": "outcomeFalse",\r
203         "name": "false",\r
204         "xml": "<outcome value='false'>\n",\r
205         "comments": "",\r
206         "outputs": 1,\r
207         "x": 1774,\r
208         "y": 40,\r
209         "z": "df5c2cef.29f798",\r
210         "wires": [\r
211             []\r
212         ]\r
213     },\r
214     {\r
215         "id": "37ce0108.16d956",\r
216         "type": "comment",\r
217         "name": "new for TransportSlicing",\r
218         "info": "",\r
219         "comments": "",\r
220         "x": 1074,\r
221         "y": 109,\r
222         "z": "df5c2cef.29f798",\r
223         "wires": []\r
224     },\r
225     {\r
226         "id": "bd2fd8a5.f00818",\r
227         "type": "block",\r
228         "name": "block",\r
229         "xml": "<block>\n",\r
230         "atomic": "false",\r
231         "comments": "",\r
232         "outputs": 1,\r
233         "x": 1757,\r
234         "y": 188,\r
235         "z": "df5c2cef.29f798",\r
236         "wires": [\r
237             [\r
238                 "ec9312e3.eb3ca",\r
239                 "9b47cb2b.81e09",\r
240                 "adac8296.d1b27",\r
241                 "77439122.61f0b"\r
242             ]\r
243         ]\r
244     },\r
245     {\r
246         "id": "e730d63c.e66e38",\r
247         "type": "set",\r
248         "name": "set network-route-A",\r
249         "xml": "<set>\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />-->\n\n\n",\r
250         "comments": "",\r
251         "x": 4286,\r
252         "y": 789,\r
253         "z": "df5c2cef.29f798",\r
254         "wires": []\r
255     },\r
256     {\r
257         "id": "c64bfbc6.879f7",\r
258         "type": "set",\r
259         "name": "set network-route-B",\r
260         "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
261         "comments": "",\r
262         "x": 4287,\r
263         "y": 844,\r
264         "z": "df5c2cef.29f798",\r
265         "wires": []\r
266     },\r
267     {\r
268         "id": "ff867076.ee06e",\r
269         "type": "save",\r
270         "name": "get allotted-resource from aai",\r
271         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!--         AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",\r
272         "comments": "",\r
273         "outputs": 1,\r
274         "x": 2243,\r
275         "y": 239,\r
276         "z": "df5c2cef.29f798",\r
277         "wires": [\r
278             [\r
279                 "5403527b.88731c",\r
280                 "8f1044d7.262e1",\r
281                 "fca4f411.30d608"\r
282             ]\r
283         ]\r
284     },\r
285     {\r
286         "id": "5403527b.88731c",\r
287         "type": "success",\r
288         "name": "success",\r
289         "xml": "<outcome value='success'>\n",\r
290         "comments": "",\r
291         "outputs": 1,\r
292         "x": 2459,\r
293         "y": 306,\r
294         "z": "df5c2cef.29f798",\r
295         "wires": [\r
296             [\r
297                 "c2edf5fc.e5137"\r
298             ]\r
299         ]\r
300     },\r
301     {\r
302         "id": "8f1044d7.262e1",\r
303         "type": "not-found",\r
304         "name": "not-found",\r
305         "xml": "<outcome value='not-found'>\n",\r
306         "comments": "",\r
307         "outputs": 1,\r
308         "x": 2459.490966796875,\r
309         "y": 205.573974609375,\r
310         "z": "df5c2cef.29f798",\r
311         "wires": [\r
312             [\r
313                 "3217fee.d348a02"\r
314             ]\r
315         ]\r
316     },\r
317     {\r
318         "id": "fca4f411.30d608",\r
319         "type": "failure",\r
320         "name": "failure",\r
321         "xml": "<outcome value='failure'>\n",\r
322         "comments": "",\r
323         "outputs": 1,\r
324         "x": 2455,\r
325         "y": 255,\r
326         "z": "df5c2cef.29f798",\r
327         "wires": [\r
328             [\r
329                 "f1099938.4bc92"\r
330             ]\r
331         ]\r
332     },\r
333     {\r
334         "id": "3217fee.d348a02",\r
335         "type": "returnFailure",\r
336         "name": "return failure",\r
337         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
338         "comments": "",\r
339         "x": 2637.0625,\r
340         "y": 205.8597412109375,\r
341         "z": "df5c2cef.29f798",\r
342         "wires": []\r
343     },\r
344     {\r
345         "id": "f1099938.4bc92",\r
346         "type": "returnFailure",\r
347         "name": "return failure",\r
348         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
349         "comments": "",\r
350         "x": 2637,\r
351         "y": 255,\r
352         "z": "df5c2cef.29f798",\r
353         "wires": []\r
354     },\r
355     {\r
356         "id": "f5428168.15427",\r
357         "type": "save",\r
358         "name": "get logical-link from aai",\r
359         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
360         "comments": "",\r
361         "outputs": 1,\r
362         "x": 3512,\r
363         "y": 760,\r
364         "z": "df5c2cef.29f798",\r
365         "wires": [\r
366             [\r
367                 "1fed7fd6.0c4fe",\r
368                 "f8799fe1.4abef8",\r
369                 "d188d9ec.71606"\r
370             ]\r
371         ]\r
372     },\r
373     {\r
374         "id": "1fed7fd6.0c4fe",\r
375         "type": "not-found",\r
376         "name": "not-found",\r
377         "xml": "<outcome value='not-found'>\n",\r
378         "comments": "",\r
379         "outputs": 1,\r
380         "x": 3803.490966796875,\r
381         "y": 738.573974609375,\r
382         "z": "df5c2cef.29f798",\r
383         "wires": [\r
384             [\r
385                 "ffec4368.f8ba48"\r
386             ]\r
387         ]\r
388     },\r
389     {\r
390         "id": "f8799fe1.4abef8",\r
391         "type": "failure",\r
392         "name": "failure",\r
393         "xml": "<outcome value='failure'>\n",\r
394         "comments": "",\r
395         "outputs": 1,\r
396         "x": 3792,\r
397         "y": 783,\r
398         "z": "df5c2cef.29f798",\r
399         "wires": [\r
400             [\r
401                 "151cf988.8ad956"\r
402             ]\r
403         ]\r
404     },\r
405     {\r
406         "id": "ffec4368.f8ba48",\r
407         "type": "returnFailure",\r
408         "name": "return failure",\r
409         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
410         "comments": "",\r
411         "x": 3952.0625,\r
412         "y": 738.8597412109375,\r
413         "z": "df5c2cef.29f798",\r
414         "wires": []\r
415     },\r
416     {\r
417         "id": "151cf988.8ad956",\r
418         "type": "returnFailure",\r
419         "name": "return failure",\r
420         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
421         "comments": "",\r
422         "x": 3951,\r
423         "y": 783,\r
424         "z": "df5c2cef.29f798",\r
425         "wires": []\r
426     },\r
427     {\r
428         "id": "d188d9ec.71606",\r
429         "type": "success",\r
430         "name": "success",\r
431         "xml": "<outcome value='success'>\n",\r
432         "comments": "",\r
433         "outputs": 1,\r
434         "x": 3798,\r
435         "y": 830,\r
436         "z": "df5c2cef.29f798",\r
437         "wires": [\r
438             []\r
439         ]\r
440     },\r
441     {\r
442         "id": "8fff13f1.763be8",\r
443         "type": "block",\r
444         "name": "block",\r
445         "xml": "<block>\n",\r
446         "atomic": "false",\r
447         "comments": "",\r
448         "outputs": 1,\r
449         "x": 3952,\r
450         "y": 869,\r
451         "z": "df5c2cef.29f798",\r
452         "wires": [\r
453             [\r
454                 "e730d63c.e66e38",\r
455                 "c64bfbc6.879f7",\r
456                 "c69cbeca.4faa",\r
457                 "2b820704.044208",\r
458                 "beecbbd2.7ea1a8",\r
459                 "a8912b98.c24c78",\r
460                 "9445731f.f1b8",\r
461                 "beaf21fd.396d98",\r
462                 "2829cd3e.73ff62",\r
463                 "7826fce9.171054",\r
464                 "b9213dab.6d883"\r
465             ]\r
466         ]\r
467     },\r
468     {\r
469         "id": "c69cbeca.4faa",\r
470         "type": "save",\r
471         "name": "get network-route-A from aai",\r
472         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-A'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-A\">",\r
473         "comments": "",\r
474         "outputs": 1,\r
475         "x": 4299,\r
476         "y": 912,\r
477         "z": "df5c2cef.29f798",\r
478         "wires": [\r
479             [\r
480                 "d9da27fc.f85c4",\r
481                 "3045193c.0d7bae",\r
482                 "76f3dd2f.3c28d4"\r
483             ]\r
484         ]\r
485     },\r
486     {\r
487         "id": "2b820704.044208",\r
488         "type": "save",\r
489         "name": "get network-route-B from aai",\r
490         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-B'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-B\">",\r
491         "comments": "",\r
492         "outputs": 1,\r
493         "x": 4278,\r
494         "y": 1513.9998779296875,\r
495         "z": "df5c2cef.29f798",\r
496         "wires": [\r
497             [\r
498                 "25feaffc.acded8",\r
499                 "26743549.dc4b22",\r
500                 "ff50bd0e.ddbd08"\r
501             ]\r
502         ]\r
503     },\r
504     {\r
505         "id": "d9da27fc.f85c4",\r
506         "type": "not-found",\r
507         "name": "not-found",\r
508         "xml": "<outcome value='not-found'>\n",\r
509         "comments": "",\r
510         "outputs": 1,\r
511         "x": 4500,\r
512         "y": 796,\r
513         "z": "df5c2cef.29f798",\r
514         "wires": [\r
515             [\r
516                 "ba59ec84.99ac68"\r
517             ]\r
518         ]\r
519     },\r
520     {\r
521         "id": "3045193c.0d7bae",\r
522         "type": "failure",\r
523         "name": "failure",\r
524         "xml": "<outcome value='failure'>\n",\r
525         "comments": "",\r
526         "outputs": 1,\r
527         "x": 4495.509033203125,\r
528         "y": 845.426025390625,\r
529         "z": "df5c2cef.29f798",\r
530         "wires": [\r
531             [\r
532                 "ad41c558.00f2a8"\r
533             ]\r
534         ]\r
535     },\r
536     {\r
537         "id": "76f3dd2f.3c28d4",\r
538         "type": "success",\r
539         "name": "success",\r
540         "xml": "<outcome value='success'>\n",\r
541         "comments": "",\r
542         "outputs": 1,\r
543         "x": 4499.509033203125,\r
544         "y": 896.426025390625,\r
545         "z": "df5c2cef.29f798",\r
546         "wires": [\r
547             [\r
548                 "ebc4d333.c786a8"\r
549             ]\r
550         ]\r
551     },\r
552     {\r
553         "id": "ba59ec84.99ac68",\r
554         "type": "returnFailure",\r
555         "name": "return failure",\r
556         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
557         "comments": "",\r
558         "x": 4648.571533203125,\r
559         "y": 795.2857666015625,\r
560         "z": "df5c2cef.29f798",\r
561         "wires": []\r
562     },\r
563     {\r
564         "id": "ad41c558.00f2a8",\r
565         "type": "returnFailure",\r
566         "name": "return failure",\r
567         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
568         "comments": "",\r
569         "x": 4638.509033203125,\r
570         "y": 845.426025390625,\r
571         "z": "df5c2cef.29f798",\r
572         "wires": []\r
573     },\r
574     {\r
575         "id": "25feaffc.acded8",\r
576         "type": "not-found",\r
577         "name": "not-found",\r
578         "xml": "<outcome value='not-found'>\n",\r
579         "comments": "",\r
580         "outputs": 1,\r
581         "x": 4501,\r
582         "y": 1483.9998779296875,\r
583         "z": "df5c2cef.29f798",\r
584         "wires": [\r
585             [\r
586                 "2bc46d17.93cc82"\r
587             ]\r
588         ]\r
589     },\r
590     {\r
591         "id": "26743549.dc4b22",\r
592         "type": "failure",\r
593         "name": "failure",\r
594         "xml": "<outcome value='failure'>\n",\r
595         "comments": "",\r
596         "outputs": 1,\r
597         "x": 4496.509033203125,\r
598         "y": 1533.4259033203125,\r
599         "z": "df5c2cef.29f798",\r
600         "wires": [\r
601             [\r
602                 "a64784dd.690338"\r
603             ]\r
604         ]\r
605     },\r
606     {\r
607         "id": "ff50bd0e.ddbd08",\r
608         "type": "success",\r
609         "name": "success",\r
610         "xml": "<outcome value='success'>\n",\r
611         "comments": "",\r
612         "outputs": 1,\r
613         "x": 4500.509033203125,\r
614         "y": 1584.4259033203125,\r
615         "z": "df5c2cef.29f798",\r
616         "wires": [\r
617             [\r
618                 "931306d1.d3283"\r
619             ]\r
620         ]\r
621     },\r
622     {\r
623         "id": "2bc46d17.93cc82",\r
624         "type": "returnFailure",\r
625         "name": "return failure",\r
626         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
627         "comments": "",\r
628         "x": 4649.571533203125,\r
629         "y": 1483.28564453125,\r
630         "z": "df5c2cef.29f798",\r
631         "wires": []\r
632     },\r
633     {\r
634         "id": "a64784dd.690338",\r
635         "type": "returnFailure",\r
636         "name": "return failure",\r
637         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
638         "comments": "",\r
639         "x": 4639.509033203125,\r
640         "y": 1533.4259033203125,\r
641         "z": "df5c2cef.29f798",\r
642         "wires": []\r
643     },\r
644     {\r
645         "id": "1aed53b.116f82c",\r
646         "type": "block",\r
647         "name": "block : atomic",\r
648         "xml": "<block atomic=\"true\">",\r
649         "atomic": "true",\r
650         "outputs": 1,\r
651         "x": 5313.66650390625,\r
652         "y": 940,\r
653         "z": "df5c2cef.29f798",\r
654         "wires": [\r
655             [\r
656                 "619a05cb.adfe5c",\r
657                 "5b58ea0d.24a54c",\r
658                 "905e3d50.55dc98",\r
659                 "dd052d48.cba96",\r
660                 "b7a8cd0a.a295c8"\r
661             ]\r
662         ]\r
663     },\r
664     {\r
665         "id": "ea57ed7c.15442",\r
666         "type": "success",\r
667         "name": "success",\r
668         "xml": "<outcome value='success'>\n",\r
669         "comments": "",\r
670         "outputs": 1,\r
671         "x": 5141,\r
672         "y": 941,\r
673         "z": "df5c2cef.29f798",\r
674         "wires": [\r
675             [\r
676                 "1aed53b.116f82c"\r
677             ]\r
678         ]\r
679     },\r
680     {\r
681         "id": "8edf59fc.a82d48",\r
682         "type": "not-found",\r
683         "name": "not-found",\r
684         "xml": "<outcome value='not-found'>\n",\r
685         "comments": "",\r
686         "outputs": 1,\r
687         "x": 5150.490966796875,\r
688         "y": 983.5740356445312,\r
689         "z": "df5c2cef.29f798",\r
690         "wires": [\r
691             [\r
692                 "570ecccd.bd6704"\r
693             ]\r
694         ]\r
695     },\r
696     {\r
697         "id": "e1f5e0a7.fbe22",\r
698         "type": "failure",\r
699         "name": "failure",\r
700         "xml": "<outcome value='failure'>\n",\r
701         "comments": "",\r
702         "outputs": 1,\r
703         "x": 5139,\r
704         "y": 1030,\r
705         "z": "df5c2cef.29f798",\r
706         "wires": [\r
707             [\r
708                 "255c623d.471bfe"\r
709             ]\r
710         ]\r
711     },\r
712     {\r
713         "id": "570ecccd.bd6704",\r
714         "type": "returnFailure",\r
715         "name": "return failure",\r
716         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
717         "comments": "",\r
718         "x": 5304.0623779296875,\r
719         "y": 986.8597717285156,\r
720         "z": "df5c2cef.29f798",\r
721         "wires": []\r
722     },\r
723     {\r
724         "id": "255c623d.471bfe",\r
725         "type": "returnFailure",\r
726         "name": "return failure",\r
727         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
728         "comments": "",\r
729         "x": 5308,\r
730         "y": 1031,\r
731         "z": "df5c2cef.29f798",\r
732         "wires": []\r
733     },\r
734     {\r
735         "id": "ebc4d333.c786a8",\r
736         "type": "block",\r
737         "name": "block : atomic",\r
738         "xml": "<block atomic=\"true\">",\r
739         "atomic": "true",\r
740         "outputs": 1,\r
741         "x": 4661,\r
742         "y": 898,\r
743         "z": "df5c2cef.29f798",\r
744         "wires": [\r
745             [\r
746                 "ea10d538.727c98",\r
747                 "4657b647.55f63"\r
748             ]\r
749         ]\r
750     },\r
751     {\r
752         "id": "931306d1.d3283",\r
753         "type": "block",\r
754         "name": "block : atomic",\r
755         "xml": "<block atomic=\"true\">",\r
756         "atomic": "true",\r
757         "outputs": 1,\r
758         "x": 4651,\r
759         "y": 1585.9998779296875,\r
760         "z": "df5c2cef.29f798",\r
761         "wires": [\r
762             [\r
763                 "43662fc0.4ec678",\r
764                 "e3b7ca54.9f27e"\r
765             ]\r
766         ]\r
767     },\r
768     {\r
769         "id": "2f410c53.a9f8cc",\r
770         "type": "block",\r
771         "name": "block : atomic",\r
772         "xml": "<block atomic=\"true\">",\r
773         "atomic": "true",\r
774         "outputs": 1,\r
775         "x": 5281.66650390625,\r
776         "y": 1776,\r
777         "z": "df5c2cef.29f798",\r
778         "wires": [\r
779             [\r
780                 "70aaa8b7.fc83",\r
781                 "935d2e0c.b95b5",\r
782                 "a91261bc.f4013",\r
783                 "f0d8d3fe.456d88",\r
784                 "4a4ba10e.425478"\r
785             ]\r
786         ]\r
787     },\r
788     {\r
789         "id": "c5b9dba7.8bb408",\r
790         "type": "success",\r
791         "name": "success",\r
792         "xml": "<outcome value='success'>\n",\r
793         "comments": "",\r
794         "outputs": 1,\r
795         "x": 5109,\r
796         "y": 1777,\r
797         "z": "df5c2cef.29f798",\r
798         "wires": [\r
799             [\r
800                 "2f410c53.a9f8cc"\r
801             ]\r
802         ]\r
803     },\r
804     {\r
805         "id": "6fce8e3b.c6c098",\r
806         "type": "not-found",\r
807         "name": "not-found",\r
808         "xml": "<outcome value='not-found'>\n",\r
809         "comments": "",\r
810         "outputs": 1,\r
811         "x": 5118.490966796875,\r
812         "y": 1819.5740356445312,\r
813         "z": "df5c2cef.29f798",\r
814         "wires": [\r
815             [\r
816                 "67bae243.7edff4"\r
817             ]\r
818         ]\r
819     },\r
820     {\r
821         "id": "f5f65108.ccf83",\r
822         "type": "failure",\r
823         "name": "failure",\r
824         "xml": "<outcome value='failure'>\n",\r
825         "comments": "",\r
826         "outputs": 1,\r
827         "x": 5107,\r
828         "y": 1866,\r
829         "z": "df5c2cef.29f798",\r
830         "wires": [\r
831             [\r
832                 "ec2da4a6.84f478"\r
833             ]\r
834         ]\r
835     },\r
836     {\r
837         "id": "67bae243.7edff4",\r
838         "type": "returnFailure",\r
839         "name": "return failure",\r
840         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
841         "comments": "",\r
842         "x": 5272.0623779296875,\r
843         "y": 1822.8597717285156,\r
844         "z": "df5c2cef.29f798",\r
845         "wires": []\r
846     },\r
847     {\r
848         "id": "ec2da4a6.84f478",\r
849         "type": "returnFailure",\r
850         "name": "return failure",\r
851         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
852         "comments": "",\r
853         "x": 5276,\r
854         "y": 1867,\r
855         "z": "df5c2cef.29f798",\r
856         "wires": []\r
857     },\r
858     {\r
859         "id": "619a05cb.adfe5c",\r
860         "type": "execute",\r
861         "name": "execute split tp-id to get pnf-name",\r
862         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",\r
863         "comments": "",\r
864         "outputs": 1,\r
865         "x": 5578,\r
866         "y": 924,\r
867         "z": "df5c2cef.29f798",\r
868         "wires": [\r
869             [\r
870                 "5ef97752.07d688",\r
871                 "c9edb813.b2e9a8"\r
872             ]\r
873         ]\r
874     },\r
875     {\r
876         "id": "c9edb813.b2e9a8",\r
877         "type": "failure",\r
878         "name": "success",\r
879         "xml": "<outcome value='success'>\n",\r
880         "comments": "",\r
881         "outputs": 1,\r
882         "x": 5801,\r
883         "y": 879,\r
884         "z": "df5c2cef.29f798",\r
885         "wires": [\r
886             [\r
887                 "c390e3ab.84675"\r
888             ]\r
889         ]\r
890     },\r
891     {\r
892         "id": "5ef97752.07d688",\r
893         "type": "failure",\r
894         "name": "failure",\r
895         "xml": "<outcome value='failure'>\n",\r
896         "comments": "",\r
897         "outputs": 1,\r
898         "x": 5803,\r
899         "y": 943,\r
900         "z": "df5c2cef.29f798",\r
901         "wires": [\r
902             [\r
903                 "32a44f9b.55b96"\r
904             ]\r
905         ]\r
906     },\r
907     {\r
908         "id": "c9427e8e.5d7928",\r
909         "type": "set",\r
910         "name": "set ltpId",\r
911         "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
912         "comments": "",\r
913         "x": 6136,\r
914         "y": 834,\r
915         "z": "df5c2cef.29f798",\r
916         "wires": []\r
917     },\r
918     {\r
919         "id": "32a44f9b.55b96",\r
920         "type": "returnFailure",\r
921         "name": "return failure",\r
922         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
923         "comments": "",\r
924         "x": 5965,\r
925         "y": 939,\r
926         "z": "df5c2cef.29f798",\r
927         "wires": []\r
928     },\r
929     {\r
930         "id": "c390e3ab.84675",\r
931         "type": "block",\r
932         "name": "block : atomic",\r
933         "xml": "<block atomic=\"true\">",\r
934         "atomic": "true",\r
935         "outputs": 1,\r
936         "x": 5966,\r
937         "y": 876,\r
938         "z": "df5c2cef.29f798",\r
939         "wires": [\r
940             [\r
941                 "bdd6ab52.9ce23",\r
942                 "c9427e8e.5d7928"\r
943             ]\r
944         ]\r
945     },\r
946     {\r
947         "id": "bdd6ab52.9ce23",\r
948         "type": "set",\r
949         "name": "set pnf-name",\r
950         "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
951         "comments": "",\r
952         "x": 6137,\r
953         "y": 942,\r
954         "z": "df5c2cef.29f798",\r
955         "wires": []\r
956     },\r
957     {\r
958         "id": "23e97c61.f4450c",\r
959         "type": "comment",\r
960         "name": "TODO: FIXME",\r
961         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
962         "comments": "",\r
963         "x": 6138,\r
964         "y": 891,\r
965         "z": "df5c2cef.29f798",\r
966         "wires": []\r
967     },\r
968     {\r
969         "id": "905e3d50.55dc98",\r
970         "type": "save",\r
971         "name": "save connectivity resource in AAI",\r
972         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
973         "comments": "",\r
974         "outputs": 1,\r
975         "x": 5580,\r
976         "y": 1083,\r
977         "z": "df5c2cef.29f798",\r
978         "wires": [\r
979             []\r
980         ]\r
981     },\r
982     {\r
983         "id": "5b58ea0d.24a54c",\r
984         "type": "execute",\r
985         "name": "execute UUID generator for connectivity domainA",\r
986         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
987         "comments": "",\r
988         "outputs": 1,\r
989         "x": 5625,\r
990         "y": 993,\r
991         "z": "df5c2cef.29f798",\r
992         "wires": [\r
993             []\r
994         ]\r
995     },\r
996     {\r
997         "id": "b5028671.057418",\r
998         "type": "comment",\r
999         "name": "TODO: FIXME",\r
1000         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
1001         "comments": "",\r
1002         "x": 5514,\r
1003         "y": 1034,\r
1004         "z": "df5c2cef.29f798",\r
1005         "wires": []\r
1006     },\r
1007     {\r
1008         "id": "70aaa8b7.fc83",\r
1009         "type": "execute",\r
1010         "name": "execute split tp-id to get pnf-name",\r
1011         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",\r
1012         "comments": "",\r
1013         "outputs": 1,\r
1014         "x": 5568,\r
1015         "y": 1780.0001220703125,\r
1016         "z": "df5c2cef.29f798",\r
1017         "wires": [\r
1018             [\r
1019                 "2f13a37c.a92d4c",\r
1020                 "1f784ca.d54b3b3"\r
1021             ]\r
1022         ]\r
1023     },\r
1024     {\r
1025         "id": "1f784ca.d54b3b3",\r
1026         "type": "failure",\r
1027         "name": "success",\r
1028         "xml": "<outcome value='success'>\n",\r
1029         "comments": "",\r
1030         "outputs": 1,\r
1031         "x": 5791,\r
1032         "y": 1735.0001220703125,\r
1033         "z": "df5c2cef.29f798",\r
1034         "wires": [\r
1035             [\r
1036                 "e1b624d9.9bbf38"\r
1037             ]\r
1038         ]\r
1039     },\r
1040     {\r
1041         "id": "2f13a37c.a92d4c",\r
1042         "type": "failure",\r
1043         "name": "failure",\r
1044         "xml": "<outcome value='failure'>\n",\r
1045         "comments": "",\r
1046         "outputs": 1,\r
1047         "x": 5793,\r
1048         "y": 1799.0001220703125,\r
1049         "z": "df5c2cef.29f798",\r
1050         "wires": [\r
1051             [\r
1052                 "4e43e07a.4a4518"\r
1053             ]\r
1054         ]\r
1055     },\r
1056     {\r
1057         "id": "c9a078dc.2502f",\r
1058         "type": "set",\r
1059         "name": "set ltpId",\r
1060         "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
1061         "comments": "",\r
1062         "x": 6126,\r
1063         "y": 1693.0001220703125,\r
1064         "z": "df5c2cef.29f798",\r
1065         "wires": []\r
1066     },\r
1067     {\r
1068         "id": "4e43e07a.4a4518",\r
1069         "type": "returnFailure",\r
1070         "name": "return failure",\r
1071         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
1072         "comments": "",\r
1073         "x": 5952,\r
1074         "y": 1818.0001220703125,\r
1075         "z": "df5c2cef.29f798",\r
1076         "wires": []\r
1077     },\r
1078     {\r
1079         "id": "e1b624d9.9bbf38",\r
1080         "type": "block",\r
1081         "name": "block : atomic",\r
1082         "xml": "<block atomic=\"true\">",\r
1083         "atomic": "true",\r
1084         "outputs": 1,\r
1085         "x": 5956,\r
1086         "y": 1732.0001220703125,\r
1087         "z": "df5c2cef.29f798",\r
1088         "wires": [\r
1089             [\r
1090                 "c9a078dc.2502f",\r
1091                 "99d11d48.4d4eb"\r
1092             ]\r
1093         ]\r
1094     },\r
1095     {\r
1096         "id": "99d11d48.4d4eb",\r
1097         "type": "set",\r
1098         "name": "set pnf-name",\r
1099         "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
1100         "comments": "",\r
1101         "x": 6127,\r
1102         "y": 1798.0001220703125,\r
1103         "z": "df5c2cef.29f798",\r
1104         "wires": []\r
1105     },\r
1106     {\r
1107         "id": "9eaecf4d.e4667",\r
1108         "type": "comment",\r
1109         "name": "TODO: FIXME",\r
1110         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
1111         "comments": "",\r
1112         "x": 6122,\r
1113         "y": 1747.0001220703125,\r
1114         "z": "df5c2cef.29f798",\r
1115         "wires": []\r
1116     },\r
1117     {\r
1118         "id": "a91261bc.f4013",\r
1119         "type": "save",\r
1120         "name": "save connectivity resource in AAI",\r
1121         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
1122         "comments": "",\r
1123         "outputs": 1,\r
1124         "x": 5570,\r
1125         "y": 1939.0001220703125,\r
1126         "z": "df5c2cef.29f798",\r
1127         "wires": [\r
1128             []\r
1129         ]\r
1130     },\r
1131     {\r
1132         "id": "935d2e0c.b95b5",\r
1133         "type": "execute",\r
1134         "name": "execute UUID generator for connectivity domainB",\r
1135         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
1136         "comments": "",\r
1137         "outputs": 1,\r
1138         "x": 5615,\r
1139         "y": 1849.0001220703125,\r
1140         "z": "df5c2cef.29f798",\r
1141         "wires": [\r
1142             []\r
1143         ]\r
1144     },\r
1145     {\r
1146         "id": "469c34a1.af89cc",\r
1147         "type": "comment",\r
1148         "name": "TODO: FIXME",\r
1149         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
1150         "comments": "",\r
1151         "x": 5504,\r
1152         "y": 1887.0001220703125,\r
1153         "z": "df5c2cef.29f798",\r
1154         "wires": []\r
1155     },\r
1156     {\r
1157         "id": "beecbbd2.7ea1a8",\r
1158         "type": "call",\r
1159         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
1160         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
1161         "comments": "",\r
1162         "outputs": 1,\r
1163         "x": 4498,\r
1164         "y": 2243,\r
1165         "z": "df5c2cef.29f798",\r
1166         "wires": [\r
1167             []\r
1168         ]\r
1169     },\r
1170     {\r
1171         "id": "a8912b98.c24c78",\r
1172         "type": "set",\r
1173         "name": "set attachment_param",\r
1174         "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",\r
1175         "comments": "",\r
1176         "x": 4292,\r
1177         "y": 2144,\r
1178         "z": "df5c2cef.29f798",\r
1179         "wires": []\r
1180     },\r
1181     {\r
1182         "id": "af47af84.110af8",\r
1183         "type": "comment",\r
1184         "name": "TODO: FIXME",\r
1185         "info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",\r
1186         "comments": "",\r
1187         "x": 4266,\r
1188         "y": 2097,\r
1189         "z": "df5c2cef.29f798",\r
1190         "wires": []\r
1191     },\r
1192     {\r
1193         "id": "dd052d48.cba96",\r
1194         "type": "save",\r
1195         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1196         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
1197         "comments": "",\r
1198         "outputs": 1,\r
1199         "x": 5708,\r
1200         "y": 1131,\r
1201         "z": "df5c2cef.29f798",\r
1202         "wires": [\r
1203             []\r
1204         ]\r
1205     },\r
1206     {\r
1207         "id": "f0d8d3fe.456d88",\r
1208         "type": "save",\r
1209         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1210         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
1211         "comments": "",\r
1212         "outputs": 1,\r
1213         "x": 5697,\r
1214         "y": 2004.0001220703125,\r
1215         "z": "df5c2cef.29f798",\r
1216         "wires": [\r
1217             []\r
1218         ]\r
1219     },\r
1220     {\r
1221         "id": "ae94a833.e2ef38",\r
1222         "type": "execute",\r
1223         "name": "get esr-thirdparty-sdnc",\r
1224         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",\r
1225         "comments": "",\r
1226         "outputs": 1,\r
1227         "x": 6752,\r
1228         "y": 651,\r
1229         "z": "df5c2cef.29f798",\r
1230         "wires": [\r
1231             [\r
1232                 "c451b700.662738",\r
1233                 "ee68b795.c2a168",\r
1234                 "ace90efd.77ffe"\r
1235             ]\r
1236         ]\r
1237     },\r
1238     {\r
1239         "id": "c2edf5fc.e5137",\r
1240         "type": "block",\r
1241         "name": "block : atomic",\r
1242         "xml": "<block atomic=\"true\">",\r
1243         "atomic": "true",\r
1244         "outputs": 1,\r
1245         "x": 2639,\r
1246         "y": 306,\r
1247         "z": "df5c2cef.29f798",\r
1248         "wires": [\r
1249             [\r
1250                 "1ff347ef.e7b2e8"\r
1251             ]\r
1252         ]\r
1253     },\r
1254     {\r
1255         "id": "7a5b73c3.f0d28c",\r
1256         "type": "outcome",\r
1257         "name": "logical-link",\r
1258         "xml": "<outcome value='logical-link'>\n",\r
1259         "comments": "",\r
1260         "outputs": 1,\r
1261         "x": 1036.0001220703125,\r
1262         "y": 701.0001220703125,\r
1263         "z": "df5c2cef.29f798",\r
1264         "wires": [\r
1265             [\r
1266                 "ccbf1140.19585"\r
1267             ]\r
1268         ]\r
1269     },\r
1270     {\r
1271         "id": "b1e2d1e5.6e9708",\r
1272         "type": "switchNode",\r
1273         "name": "switch allotted-resource.relationship-list not empty",\r
1274         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
1275         "comments": "",\r
1276         "outputs": 1,\r
1277         "x": 2202,\r
1278         "y": 400,\r
1279         "z": "df5c2cef.29f798",\r
1280         "wires": [\r
1281             [\r
1282                 "7c767dcf.19dfdc",\r
1283                 "d51662bd.168b2"\r
1284             ]\r
1285         ]\r
1286     },\r
1287     {\r
1288         "id": "d51662bd.168b2",\r
1289         "type": "outcomeFalse",\r
1290         "name": "false",\r
1291         "xml": "<outcome value='false'>\n",\r
1292         "comments": "",\r
1293         "outputs": 1,\r
1294         "x": 2523,\r
1295         "y": 382,\r
1296         "z": "df5c2cef.29f798",\r
1297         "wires": [\r
1298             []\r
1299         ]\r
1300     },\r
1301     {\r
1302         "id": "7c767dcf.19dfdc",\r
1303         "type": "outcomeTrue",\r
1304         "name": "true",\r
1305         "xml": "<outcome value='true'>\n",\r
1306         "comments": "",\r
1307         "outputs": 1,\r
1308         "x": 2505,\r
1309         "y": 480,\r
1310         "z": "df5c2cef.29f798",\r
1311         "wires": [\r
1312             [\r
1313                 "8418b8d3.470188"\r
1314             ]\r
1315         ]\r
1316     },\r
1317     {\r
1318         "id": "44cccb98.9e0bdc",\r
1319         "type": "set",\r
1320         "name": "set the current logical-link-name",\r
1321         "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n<parameter name='currLinkIsFound' value=\"false\" />\n\n\n",\r
1322         "comments": "",\r
1323         "x": 1459,\r
1324         "y": 604,\r
1325         "z": "df5c2cef.29f798",\r
1326         "wires": []\r
1327     },\r
1328     {\r
1329         "id": "ccbf1140.19585",\r
1330         "type": "block",\r
1331         "name": "block : atomic",\r
1332         "xml": "<block atomic=\"true\">",\r
1333         "atomic": "true",\r
1334         "outputs": 1,\r
1335         "x": 1213,\r
1336         "y": 694,\r
1337         "z": "df5c2cef.29f798",\r
1338         "wires": [\r
1339             [\r
1340                 "44cccb98.9e0bdc",\r
1341                 "320f3490.61a614",\r
1342                 "32833f1a.e66008"\r
1343             ]\r
1344         ]\r
1345     },\r
1346     {\r
1347         "id": "98d74c6b.7ea498",\r
1348         "type": "comment",\r
1349         "name": "Question?",\r
1350         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1351         "comments": "",\r
1352         "x": 4841,\r
1353         "y": 903,\r
1354         "z": "df5c2cef.29f798",\r
1355         "wires": []\r
1356     },\r
1357     {\r
1358         "id": "ea10d538.727c98",\r
1359         "type": "save",\r
1360         "name": "get p-interface-src from aai",\r
1361         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
1362         "comments": "",\r
1363         "outputs": 1,\r
1364         "x": 4884,\r
1365         "y": 968,\r
1366         "z": "df5c2cef.29f798",\r
1367         "wires": [\r
1368             [\r
1369                 "ea57ed7c.15442",\r
1370                 "8edf59fc.a82d48",\r
1371                 "e1f5e0a7.fbe22"\r
1372             ]\r
1373         ]\r
1374     },\r
1375     {\r
1376         "id": "43662fc0.4ec678",\r
1377         "type": "save",\r
1378         "name": "get p-interface-dst from aai",\r
1379         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
1380         "comments": "",\r
1381         "outputs": 1,\r
1382         "x": 4881,\r
1383         "y": 1812,\r
1384         "z": "df5c2cef.29f798",\r
1385         "wires": [\r
1386             [\r
1387                 "c5b9dba7.8bb408",\r
1388                 "6fce8e3b.c6c098",\r
1389                 "f5f65108.ccf83"\r
1390             ]\r
1391         ]\r
1392     },\r
1393     {\r
1394         "id": "c2ae8d1a.02bb38",\r
1395         "type": "comment",\r
1396         "name": "Question?",\r
1397         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1398         "comments": "",\r
1399         "x": 4842,\r
1400         "y": 1756,\r
1401         "z": "df5c2cef.29f798",\r
1402         "wires": []\r
1403     },\r
1404     {\r
1405         "id": "1ff347ef.e7b2e8",\r
1406         "type": "save",\r
1407         "name": "get allotted-resource relationship from aai",\r
1408         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",\r
1409         "comments": "",\r
1410         "outputs": 1,\r
1411         "x": 2932,\r
1412         "y": 253,\r
1413         "z": "df5c2cef.29f798",\r
1414         "wires": [\r
1415             [\r
1416                 "71f13357.4b37e4",\r
1417                 "12669306.d1641d",\r
1418                 "413b010a.53c048"\r
1419             ]\r
1420         ]\r
1421     },\r
1422     {\r
1423         "id": "12669306.d1641d",\r
1424         "type": "not-found",\r
1425         "name": "not-found",\r
1426         "xml": "<outcome value='not-found'>\n",\r
1427         "comments": "",\r
1428         "outputs": 1,\r
1429         "x": 3205.490966796875,\r
1430         "y": 145.573974609375,\r
1431         "z": "df5c2cef.29f798",\r
1432         "wires": [\r
1433             [\r
1434                 "d85757cb.be9398"\r
1435             ]\r
1436         ]\r
1437     },\r
1438     {\r
1439         "id": "d85757cb.be9398",\r
1440         "type": "returnFailure",\r
1441         "name": "return failure",\r
1442         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
1443         "comments": "",\r
1444         "x": 3383.0625,\r
1445         "y": 145.8597412109375,\r
1446         "z": "df5c2cef.29f798",\r
1447         "wires": []\r
1448     },\r
1449     {\r
1450         "id": "413b010a.53c048",\r
1451         "type": "failure",\r
1452         "name": "failure",\r
1453         "xml": "<outcome value='failure'>\n",\r
1454         "comments": "",\r
1455         "outputs": 1,\r
1456         "x": 3201,\r
1457         "y": 195,\r
1458         "z": "df5c2cef.29f798",\r
1459         "wires": [\r
1460             [\r
1461                 "5076f4c7.aca6dc"\r
1462             ]\r
1463         ]\r
1464     },\r
1465     {\r
1466         "id": "5076f4c7.aca6dc",\r
1467         "type": "returnFailure",\r
1468         "name": "return failure",\r
1469         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1470         "comments": "",\r
1471         "x": 3383,\r
1472         "y": 195,\r
1473         "z": "df5c2cef.29f798",\r
1474         "wires": []\r
1475     },\r
1476     {\r
1477         "id": "71f13357.4b37e4",\r
1478         "type": "success",\r
1479         "name": "success",\r
1480         "xml": "<outcome value='success'>\n",\r
1481         "comments": "",\r
1482         "outputs": 1,\r
1483         "x": 3205,\r
1484         "y": 246,\r
1485         "z": "df5c2cef.29f798",\r
1486         "wires": [\r
1487             [\r
1488                 "bf1d01a6.50c2b8"\r
1489             ]\r
1490         ]\r
1491     },\r
1492     {\r
1493         "id": "bf1d01a6.50c2b8",\r
1494         "type": "block",\r
1495         "name": "block : atomic",\r
1496         "xml": "<block atomic=\"true\">",\r
1497         "atomic": "true",\r
1498         "outputs": 1,\r
1499         "x": 3385,\r
1500         "y": 246,\r
1501         "z": "df5c2cef.29f798",\r
1502         "wires": [\r
1503             [\r
1504                 "b1e2d1e5.6e9708"\r
1505             ]\r
1506         ]\r
1507     },\r
1508     {\r
1509         "id": "23de1461.f7fad4",\r
1510         "type": "for",\r
1511         "name": "for each allotted-resource relationship",\r
1512         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
1513         "comments": "",\r
1514         "outputs": 1,\r
1515         "x": 811,\r
1516         "y": 630,\r
1517         "z": "df5c2cef.29f798",\r
1518         "wires": [\r
1519             [\r
1520                 "93fa809a.f8471"\r
1521             ]\r
1522         ]\r
1523     },\r
1524     {\r
1525         "id": "93fa809a.f8471",\r
1526         "type": "switchNode",\r
1527         "name": "switch related-to",\r
1528         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
1529         "comments": "",\r
1530         "outputs": 1,\r
1531         "x": 1082,\r
1532         "y": 626,\r
1533         "z": "df5c2cef.29f798",\r
1534         "wires": [\r
1535             [\r
1536                 "7a5b73c3.f0d28c"\r
1537             ]\r
1538         ]\r
1539     },\r
1540     {\r
1541         "id": "9f0e5f06.ee06a8",\r
1542         "type": "outcome",\r
1543         "name": "network-policy",\r
1544         "xml": "<outcome value='network-policy'>\n",\r
1545         "comments": "",\r
1546         "outputs": 1,\r
1547         "x": 3361,\r
1548         "y": 444,\r
1549         "z": "df5c2cef.29f798",\r
1550         "wires": [\r
1551             [\r
1552                 "b98b1343.e21bb8"\r
1553             ]\r
1554         ]\r
1555     },\r
1556     {\r
1557         "id": "b98b1343.e21bb8",\r
1558         "type": "block",\r
1559         "name": "block : atomic",\r
1560         "xml": "<block atomic=\"true\">",\r
1561         "atomic": "true",\r
1562         "outputs": 1,\r
1563         "x": 3537.9998779296875,\r
1564         "y": 436.9998779296875,\r
1565         "z": "df5c2cef.29f798",\r
1566         "wires": [\r
1567             [\r
1568                 "9e9361de.0c104",\r
1569                 "8294dd76.04b2e8"\r
1570             ]\r
1571         ]\r
1572     },\r
1573     {\r
1574         "id": "9e9361de.0c104",\r
1575         "type": "set",\r
1576         "name": "set the 1st network-policy-id",\r
1577         "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
1578         "comments": "",\r
1579         "x": 3780.9998779296875,\r
1580         "y": 393.9998779296875,\r
1581         "z": "df5c2cef.29f798",\r
1582         "wires": []\r
1583     },\r
1584     {\r
1585         "id": "8294dd76.04b2e8",\r
1586         "type": "save",\r
1587         "name": "get network-policy from aai",\r
1588         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",\r
1589         "comments": "",\r
1590         "outputs": 1,\r
1591         "x": 3769.9998779296875,\r
1592         "y": 448.9998779296875,\r
1593         "z": "df5c2cef.29f798",\r
1594         "wires": [\r
1595             [\r
1596                 "95cd2e3f.fb2aa8",\r
1597                 "693c717a.beef58",\r
1598                 "f0a71170.4750e"\r
1599             ]\r
1600         ]\r
1601     },\r
1602     {\r
1603         "id": "f0a71170.4750e",\r
1604         "type": "not-found",\r
1605         "name": "not-found",\r
1606         "xml": "<outcome value='not-found'>\n",\r
1607         "comments": "",\r
1608         "outputs": 1,\r
1609         "x": 4023,\r
1610         "y": 335,\r
1611         "z": "df5c2cef.29f798",\r
1612         "wires": [\r
1613             [\r
1614                 "db1f3e72.2f054"\r
1615             ]\r
1616         ]\r
1617     },\r
1618     {\r
1619         "id": "db1f3e72.2f054",\r
1620         "type": "returnFailure",\r
1621         "name": "return failure",\r
1622         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
1623         "comments": "",\r
1624         "x": 4171.571533203125,\r
1625         "y": 335.2857666015625,\r
1626         "z": "df5c2cef.29f798",\r
1627         "wires": []\r
1628     },\r
1629     {\r
1630         "id": "7ea2a2fb.50ff6c",\r
1631         "type": "returnFailure",\r
1632         "name": "return failure",\r
1633         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1634         "comments": "",\r
1635         "x": 4170.509033203125,\r
1636         "y": 379.426025390625,\r
1637         "z": "df5c2cef.29f798",\r
1638         "wires": []\r
1639     },\r
1640     {\r
1641         "id": "693c717a.beef58",\r
1642         "type": "failure",\r
1643         "name": "failure",\r
1644         "xml": "<outcome value='failure'>\n",\r
1645         "comments": "",\r
1646         "outputs": 1,\r
1647         "x": 4011.509033203125,\r
1648         "y": 379.426025390625,\r
1649         "z": "df5c2cef.29f798",\r
1650         "wires": [\r
1651             [\r
1652                 "7ea2a2fb.50ff6c"\r
1653             ]\r
1654         ]\r
1655     },\r
1656     {\r
1657         "id": "95cd2e3f.fb2aa8",\r
1658         "type": "success",\r
1659         "name": "success",\r
1660         "xml": "<outcome value='success'>\n",\r
1661         "comments": "",\r
1662         "outputs": 1,\r
1663         "x": 4018.509033203125,\r
1664         "y": 458.426025390625,\r
1665         "z": "df5c2cef.29f798",\r
1666         "wires": [\r
1667             [\r
1668                 "bd36bdff.e88188"\r
1669             ]\r
1670         ]\r
1671     },\r
1672     {\r
1673         "id": "bd36bdff.e88188",\r
1674         "type": "block",\r
1675         "name": "block",\r
1676         "xml": "<block>\n",\r
1677         "atomic": "false",\r
1678         "comments": "",\r
1679         "outputs": 1,\r
1680         "x": 4157.509033203125,\r
1681         "y": 458.426025390625,\r
1682         "z": "df5c2cef.29f798",\r
1683         "wires": [\r
1684             [\r
1685                 "643f567.bba5728",\r
1686                 "283fdbf8.9648a4"\r
1687             ]\r
1688         ]\r
1689     },\r
1690     {\r
1691         "id": "643f567.bba5728",\r
1692         "type": "set",\r
1693         "name": "set the max bandwidth",\r
1694         "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
1695         "comments": "",\r
1696         "x": 4363,\r
1697         "y": 456,\r
1698         "z": "df5c2cef.29f798",\r
1699         "wires": []\r
1700     },\r
1701     {\r
1702         "id": "4657b647.55f63",\r
1703         "type": "execute",\r
1704         "name": "execute split tp-id to get pnf-name",\r
1705         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",\r
1706         "comments": "",\r
1707         "outputs": 1,\r
1708         "x": 4885,\r
1709         "y": 638,\r
1710         "z": "df5c2cef.29f798",\r
1711         "wires": [\r
1712             [\r
1713                 "6871172e.d637a",\r
1714                 "b2977d1.b21a28"\r
1715             ]\r
1716         ]\r
1717     },\r
1718     {\r
1719         "id": "b2977d1.b21a28",\r
1720         "type": "failure",\r
1721         "name": "success",\r
1722         "xml": "<outcome value='success'>\n",\r
1723         "comments": "",\r
1724         "outputs": 1,\r
1725         "x": 5108,\r
1726         "y": 624,\r
1727         "z": "df5c2cef.29f798",\r
1728         "wires": [\r
1729             [\r
1730                 "825034c4.107dc"\r
1731             ]\r
1732         ]\r
1733     },\r
1734     {\r
1735         "id": "6871172e.d637a",\r
1736         "type": "failure",\r
1737         "name": "failure",\r
1738         "xml": "<outcome value='failure'>\n",\r
1739         "comments": "",\r
1740         "outputs": 1,\r
1741         "x": 5110,\r
1742         "y": 657,\r
1743         "z": "df5c2cef.29f798",\r
1744         "wires": [\r
1745             [\r
1746                 "82e08e87.8dd7f"\r
1747             ]\r
1748         ]\r
1749     },\r
1750     {\r
1751         "id": "82e08e87.8dd7f",\r
1752         "type": "returnFailure",\r
1753         "name": "return failure",\r
1754         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
1755         "comments": "",\r
1756         "x": 5253,\r
1757         "y": 654,\r
1758         "z": "df5c2cef.29f798",\r
1759         "wires": []\r
1760     },\r
1761     {\r
1762         "id": "825034c4.107dc",\r
1763         "type": "block",\r
1764         "name": "block : atomic",\r
1765         "xml": "<block atomic=\"true\">",\r
1766         "atomic": "true",\r
1767         "outputs": 1,\r
1768         "x": 5256,\r
1769         "y": 617,\r
1770         "z": "df5c2cef.29f798",\r
1771         "wires": [\r
1772             [\r
1773                 "c1e0b1e8.e0a1e",\r
1774                 "d9b3786f.e4ed38"\r
1775             ]\r
1776         ]\r
1777     },\r
1778     {\r
1779         "id": "c1e0b1e8.e0a1e",\r
1780         "type": "set",\r
1781         "name": "set pnf-name",\r
1782         "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $param-prefix-domainA-pnfName[6] + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />\n",\r
1783         "comments": "",\r
1784         "x": 5418,\r
1785         "y": 612,\r
1786         "z": "df5c2cef.29f798",\r
1787         "wires": []\r
1788     },\r
1789     {\r
1790         "id": "e3b7ca54.9f27e",\r
1791         "type": "execute",\r
1792         "name": "execute split tp-id to get pnf-name",\r
1793         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",\r
1794         "comments": "",\r
1795         "outputs": 1,\r
1796         "x": 4899,\r
1797         "y": 1474.9998779296875,\r
1798         "z": "df5c2cef.29f798",\r
1799         "wires": [\r
1800             [\r
1801                 "f845da67.b2281",\r
1802                 "e9edfbfb.6ae668"\r
1803             ]\r
1804         ]\r
1805     },\r
1806     {\r
1807         "id": "e9edfbfb.6ae668",\r
1808         "type": "failure",\r
1809         "name": "success",\r
1810         "xml": "<outcome value='success'>\n",\r
1811         "comments": "",\r
1812         "outputs": 1,\r
1813         "x": 5122,\r
1814         "y": 1460.9998779296875,\r
1815         "z": "df5c2cef.29f798",\r
1816         "wires": [\r
1817             [\r
1818                 "be966044.873a98"\r
1819             ]\r
1820         ]\r
1821     },\r
1822     {\r
1823         "id": "f845da67.b2281",\r
1824         "type": "failure",\r
1825         "name": "failure",\r
1826         "xml": "<outcome value='failure'>\n",\r
1827         "comments": "",\r
1828         "outputs": 1,\r
1829         "x": 5124,\r
1830         "y": 1493.9998779296875,\r
1831         "z": "df5c2cef.29f798",\r
1832         "wires": [\r
1833             [\r
1834                 "11abed66.7180bb"\r
1835             ]\r
1836         ]\r
1837     },\r
1838     {\r
1839         "id": "11abed66.7180bb",\r
1840         "type": "returnFailure",\r
1841         "name": "return failure",\r
1842         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
1843         "comments": "",\r
1844         "x": 5267,\r
1845         "y": 1490.9998779296875,\r
1846         "z": "df5c2cef.29f798",\r
1847         "wires": []\r
1848     },\r
1849     {\r
1850         "id": "be966044.873a98",\r
1851         "type": "block",\r
1852         "name": "block : atomic",\r
1853         "xml": "<block atomic=\"true\">",\r
1854         "atomic": "true",\r
1855         "outputs": 1,\r
1856         "x": 5270,\r
1857         "y": 1453.9998779296875,\r
1858         "z": "df5c2cef.29f798",\r
1859         "wires": [\r
1860             [\r
1861                 "79f40934.57e7e8",\r
1862                 "cf727f02.7a65a"\r
1863             ]\r
1864         ]\r
1865     },\r
1866     {\r
1867         "id": "79f40934.57e7e8",\r
1868         "type": "set",\r
1869         "name": "set pnf-name",\r
1870         "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n                                                   $param-prefix-domainB-pnfName[1] + '-' +\n                                                   $param-prefix-domainB-pnfName[2] + '-' +\n                                                   $param-prefix-domainB-pnfName[3] + '-' +\n                                                   $param-prefix-domainB-pnfName[4] + '-' +\n                                                   $param-prefix-domainB-pnfName[5] + '-' +\n                                                   $param-prefix-domainB-pnfName[6] + '-' +\n                                                   $param-prefix-domainB-pnfName[7] + '-' +\n                                                   $param-prefix-domainB-pnfName[8]`\" />\n",\r
1871         "comments": "",\r
1872         "x": 5464,\r
1873         "y": 1457,\r
1874         "z": "df5c2cef.29f798",\r
1875         "wires": []\r
1876     },\r
1877     {\r
1878         "id": "984b7b53.1aa03",\r
1879         "type": "execute",\r
1880         "name": "execute properties",\r
1881         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />",\r
1882         "comments": "",\r
1883         "outputs": 1,\r
1884         "x": 1062,\r
1885         "y": 161,\r
1886         "z": "df5c2cef.29f798",\r
1887         "wires": [\r
1888             []\r
1889         ]\r
1890     },\r
1891     {\r
1892         "id": "b7a8cd0a.a295c8",\r
1893         "type": "for",\r
1894         "name": "for each relationship",\r
1895         "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1896         "comments": "",\r
1897         "outputs": 1,\r
1898         "x": 5532,\r
1899         "y": 1208,\r
1900         "z": "df5c2cef.29f798",\r
1901         "wires": [\r
1902             [\r
1903                 "e798551d.3d9488"\r
1904             ]\r
1905         ]\r
1906     },\r
1907     {\r
1908         "id": "e798551d.3d9488",\r
1909         "type": "switchNode",\r
1910         "name": "switch related-to",\r
1911         "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1912         "comments": "",\r
1913         "outputs": 1,\r
1914         "x": 5738,\r
1915         "y": 1208,\r
1916         "z": "df5c2cef.29f798",\r
1917         "wires": [\r
1918             [\r
1919                 "ac96ab38.3de338"\r
1920             ]\r
1921         ]\r
1922     },\r
1923     {\r
1924         "id": "ac96ab38.3de338",\r
1925         "type": "outcome",\r
1926         "name": "tunnel-termination-point",\r
1927         "xml": "<outcome value='tunnel-termination-point'>\n",\r
1928         "comments": "",\r
1929         "outputs": 1,\r
1930         "x": 5953.28564453125,\r
1931         "y": 1207.82177734375,\r
1932         "z": "df5c2cef.29f798",\r
1933         "wires": [\r
1934             [\r
1935                 "5414c400.9dc3ac"\r
1936             ]\r
1937         ]\r
1938     },\r
1939     {\r
1940         "id": "5414c400.9dc3ac",\r
1941         "type": "block",\r
1942         "name": "block : atomic",\r
1943         "xml": "<block atomic=\"true\">",\r
1944         "atomic": "true",\r
1945         "outputs": 1,\r
1946         "x": 6160.1171875,\r
1947         "y": 1208.34033203125,\r
1948         "z": "df5c2cef.29f798",\r
1949         "wires": [\r
1950             [\r
1951                 "81a82367.d6151",\r
1952                 "2f9bf799.a13628",\r
1953                 "18b69352.36c53d"\r
1954             ]\r
1955         ]\r
1956     },\r
1957     {\r
1958         "id": "81a82367.d6151",\r
1959         "type": "set",\r
1960         "name": "set source ttp-id",\r
1961         "xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",\r
1962         "comments": "",\r
1963         "x": 6375.1171875,\r
1964         "y": 1170.34033203125,\r
1965         "z": "df5c2cef.29f798",\r
1966         "wires": []\r
1967     },\r
1968     {\r
1969         "id": "2f9bf799.a13628",\r
1970         "type": "get-resource",\r
1971         "name": "get-resource src TTP",\r
1972         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.source.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",\r
1973         "comments": "",\r
1974         "outputs": 1,\r
1975         "x": 6372.1171875,\r
1976         "y": 1209.34033203125,\r
1977         "z": "df5c2cef.29f798",\r
1978         "wires": [\r
1979             [\r
1980                 "ab674828.77dd8"\r
1981             ]\r
1982         ]\r
1983     },\r
1984     {\r
1985         "id": "18b69352.36c53d",\r
1986         "type": "break",\r
1987         "name": "break",\r
1988         "xml": "<break>\n",\r
1989         "comments": "",\r
1990         "x": 6327.6171875,\r
1991         "y": 1251.34033203125,\r
1992         "z": "df5c2cef.29f798",\r
1993         "wires": []\r
1994     },\r
1995     {\r
1996         "id": "ab674828.77dd8",\r
1997         "type": "success",\r
1998         "name": "success",\r
1999         "xml": "<outcome value='success'>\n",\r
2000         "comments": "",\r
2001         "outputs": 1,\r
2002         "x": 6552.6171875,\r
2003         "y": 1208.34033203125,\r
2004         "z": "df5c2cef.29f798",\r
2005         "wires": [\r
2006             [\r
2007                 "2908f068.502838"\r
2008             ]\r
2009         ]\r
2010     },\r
2011     {\r
2012         "id": "2908f068.502838",\r
2013         "type": "block",\r
2014         "name": "block : atomic",\r
2015         "xml": "<block atomic=\"true\">",\r
2016         "atomic": "true",\r
2017         "outputs": 1,\r
2018         "x": 6710.6171875,\r
2019         "y": 1208.34033203125,\r
2020         "z": "df5c2cef.29f798",\r
2021         "wires": [\r
2022             [\r
2023                 "81bd3643.b73a3"\r
2024             ]\r
2025         ]\r
2026     },\r
2027     {\r
2028         "id": "81bd3643.b73a3",\r
2029         "type": "set",\r
2030         "name": "set source tunnel tp ip",\r
2031         "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2032         "comments": "",\r
2033         "x": 6917.6171875,\r
2034         "y": 1208.34033203125,\r
2035         "z": "df5c2cef.29f798",\r
2036         "wires": []\r
2037     },\r
2038     {\r
2039         "id": "4a4ba10e.425478",\r
2040         "type": "for",\r
2041         "name": "for each relationship",\r
2042         "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2043         "comments": "",\r
2044         "outputs": 1,\r
2045         "x": 5529,\r
2046         "y": 2077.0001220703125,\r
2047         "z": "df5c2cef.29f798",\r
2048         "wires": [\r
2049             [\r
2050                 "a847aa00.dd7a08"\r
2051             ]\r
2052         ]\r
2053     },\r
2054     {\r
2055         "id": "a847aa00.dd7a08",\r
2056         "type": "switchNode",\r
2057         "name": "switch related-to",\r
2058         "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2059         "comments": "",\r
2060         "outputs": 1,\r
2061         "x": 5735,\r
2062         "y": 2077.0001220703125,\r
2063         "z": "df5c2cef.29f798",\r
2064         "wires": [\r
2065             [\r
2066                 "49e71e1.8d9866"\r
2067             ]\r
2068         ]\r
2069     },\r
2070     {\r
2071         "id": "49e71e1.8d9866",\r
2072         "type": "outcome",\r
2073         "name": "tunnel-termination-point",\r
2074         "xml": "<outcome value='tunnel-termination-point'>\n",\r
2075         "comments": "",\r
2076         "outputs": 1,\r
2077         "x": 5950.28564453125,\r
2078         "y": 2076.8218994140625,\r
2079         "z": "df5c2cef.29f798",\r
2080         "wires": [\r
2081             [\r
2082                 "5b5e6199.c314a"\r
2083             ]\r
2084         ]\r
2085     },\r
2086     {\r
2087         "id": "5b5e6199.c314a",\r
2088         "type": "block",\r
2089         "name": "block : atomic",\r
2090         "xml": "<block atomic=\"true\">",\r
2091         "atomic": "true",\r
2092         "outputs": 1,\r
2093         "x": 6157.1171875,\r
2094         "y": 2077.3404541015625,\r
2095         "z": "df5c2cef.29f798",\r
2096         "wires": [\r
2097             [\r
2098                 "278051a2.c31a16",\r
2099                 "9a637a3a.0233e8",\r
2100                 "2850c206.2136fe"\r
2101             ]\r
2102         ]\r
2103     },\r
2104     {\r
2105         "id": "278051a2.c31a16",\r
2106         "type": "set",\r
2107         "name": "set destination ttp-id",\r
2108         "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
2109         "comments": "",\r
2110         "x": 6372.1171875,\r
2111         "y": 2039.3404541015625,\r
2112         "z": "df5c2cef.29f798",\r
2113         "wires": []\r
2114     },\r
2115     {\r
2116         "id": "9a637a3a.0233e8",\r
2117         "type": "get-resource",\r
2118         "name": "get-resource src TTP",\r
2119         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",\r
2120         "comments": "",\r
2121         "outputs": 1,\r
2122         "x": 6369.1171875,\r
2123         "y": 2078.3404541015625,\r
2124         "z": "df5c2cef.29f798",\r
2125         "wires": [\r
2126             [\r
2127                 "ac430b92.d43478"\r
2128             ]\r
2129         ]\r
2130     },\r
2131     {\r
2132         "id": "2850c206.2136fe",\r
2133         "type": "break",\r
2134         "name": "break",\r
2135         "xml": "<break>\n",\r
2136         "comments": "",\r
2137         "x": 6324.6171875,\r
2138         "y": 2120.3404541015625,\r
2139         "z": "df5c2cef.29f798",\r
2140         "wires": []\r
2141     },\r
2142     {\r
2143         "id": "ac430b92.d43478",\r
2144         "type": "success",\r
2145         "name": "success",\r
2146         "xml": "<outcome value='success'>\n",\r
2147         "comments": "",\r
2148         "outputs": 1,\r
2149         "x": 6549.6171875,\r
2150         "y": 2077.3404541015625,\r
2151         "z": "df5c2cef.29f798",\r
2152         "wires": [\r
2153             [\r
2154                 "8753e537.7fd47"\r
2155             ]\r
2156         ]\r
2157     },\r
2158     {\r
2159         "id": "8753e537.7fd47",\r
2160         "type": "block",\r
2161         "name": "block : atomic",\r
2162         "xml": "<block atomic=\"true\">",\r
2163         "atomic": "true",\r
2164         "outputs": 1,\r
2165         "x": 6707.6171875,\r
2166         "y": 2077.3404541015625,\r
2167         "z": "df5c2cef.29f798",\r
2168         "wires": [\r
2169             [\r
2170                 "24ab912c.86e4be"\r
2171             ]\r
2172         ]\r
2173     },\r
2174     {\r
2175         "id": "24ab912c.86e4be",\r
2176         "type": "set",\r
2177         "name": "set destination tunnel tp ip",\r
2178         "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2179         "comments": "",\r
2180         "x": 6914.6171875,\r
2181         "y": 2077.3404541015625,\r
2182         "z": "df5c2cef.29f798",\r
2183         "wires": []\r
2184     },\r
2185     {\r
2186         "id": "d9b3786f.e4ed38",\r
2187         "type": "get-resource",\r
2188         "name": "get-resource src pnf",\r
2189         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
2190         "comments": "",\r
2191         "outputs": 1,\r
2192         "x": 5445,\r
2193         "y": 684,\r
2194         "z": "df5c2cef.29f798",\r
2195         "wires": [\r
2196             [\r
2197                 "8b5e8581.37f4d8",\r
2198                 "8910508f.b898c",\r
2199                 "40d489be.0b4bf"\r
2200             ]\r
2201         ]\r
2202     },\r
2203     {\r
2204         "id": "8b5e8581.37f4d8",\r
2205         "type": "success",\r
2206         "name": "success",\r
2207         "xml": "<outcome value='success'>\n",\r
2208         "comments": "",\r
2209         "outputs": 1,\r
2210         "x": 5640.5001220703125,\r
2211         "y": 636,\r
2212         "z": "df5c2cef.29f798",\r
2213         "wires": [\r
2214             [\r
2215                 "687e1d5.e5b1be4"\r
2216             ]\r
2217         ]\r
2218     },\r
2219     {\r
2220         "id": "8910508f.b898c",\r
2221         "type": "not-found",\r
2222         "name": "not-found",\r
2223         "xml": "<outcome value='not-found'>\n",\r
2224         "comments": "",\r
2225         "outputs": 1,\r
2226         "x": 5632.5001220703125,\r
2227         "y": 691,\r
2228         "z": "df5c2cef.29f798",\r
2229         "wires": [\r
2230             [\r
2231                 "cb7280d2.6c252"\r
2232             ]\r
2233         ]\r
2234     },\r
2235     {\r
2236         "id": "40d489be.0b4bf",\r
2237         "type": "other",\r
2238         "name": "other",\r
2239         "xml": "<outcome value='Other'>\n",\r
2240         "comments": "",\r
2241         "outputs": 1,\r
2242         "x": 5637.5001220703125,\r
2243         "y": 748,\r
2244         "z": "df5c2cef.29f798",\r
2245         "wires": [\r
2246             [\r
2247                 "ed16936d.de3ee8"\r
2248             ]\r
2249         ]\r
2250     },\r
2251     {\r
2252         "id": "ed16936d.de3ee8",\r
2253         "type": "returnFailure",\r
2254         "name": "return failure",\r
2255         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2256         "comments": "",\r
2257         "x": 5789.5001220703125,\r
2258         "y": 749,\r
2259         "z": "df5c2cef.29f798",\r
2260         "wires": []\r
2261     },\r
2262     {\r
2263         "id": "cb7280d2.6c252",\r
2264         "type": "returnFailure",\r
2265         "name": "return failure",\r
2266         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2267         "comments": "",\r
2268         "x": 5800.5001220703125,\r
2269         "y": 694,\r
2270         "z": "df5c2cef.29f798",\r
2271         "wires": []\r
2272     },\r
2273     {\r
2274         "id": "687e1d5.e5b1be4",\r
2275         "type": "block",\r
2276         "name": "block",\r
2277         "xml": "<block>\n",\r
2278         "atomic": "false",\r
2279         "comments": "",\r
2280         "outputs": 1,\r
2281         "x": 5784.8824462890625,\r
2282         "y": 633.6556701660156,\r
2283         "z": "df5c2cef.29f798",\r
2284         "wires": [\r
2285             [\r
2286                 "38f57278.43482e"\r
2287             ]\r
2288         ]\r
2289     },\r
2290     {\r
2291         "id": "a206cef4.960698",\r
2292         "type": "outcome",\r
2293         "name": "esr-thirdparty-sdnc",\r
2294         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2295         "comments": "",\r
2296         "outputs": 1,\r
2297         "x": 6367,\r
2298         "y": 652,\r
2299         "z": "df5c2cef.29f798",\r
2300         "wires": [\r
2301             [\r
2302                 "7575a6f9.99a6d8"\r
2303             ]\r
2304         ]\r
2305     },\r
2306     {\r
2307         "id": "7575a6f9.99a6d8",\r
2308         "type": "block",\r
2309         "name": "block : atomic",\r
2310         "xml": "<block atomic=\"true\">",\r
2311         "atomic": "true",\r
2312         "outputs": 1,\r
2313         "x": 6544,\r
2314         "y": 644,\r
2315         "z": "df5c2cef.29f798",\r
2316         "wires": [\r
2317             [\r
2318                 "54e418fd.7d6af",\r
2319                 "ae94a833.e2ef38"\r
2320             ]\r
2321         ]\r
2322     },\r
2323     {\r
2324         "id": "38f57278.43482e",\r
2325         "type": "for",\r
2326         "name": "for each relationship",\r
2327         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
2328         "comments": "",\r
2329         "outputs": 1,\r
2330         "x": 5969,\r
2331         "y": 648,\r
2332         "z": "df5c2cef.29f798",\r
2333         "wires": [\r
2334             [\r
2335                 "465a8b8c.5405ac"\r
2336             ]\r
2337         ]\r
2338     },\r
2339     {\r
2340         "id": "465a8b8c.5405ac",\r
2341         "type": "switchNode",\r
2342         "name": "switch related-to",\r
2343         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2344         "comments": "",\r
2345         "outputs": 1,\r
2346         "x": 6164,\r
2347         "y": 648,\r
2348         "z": "df5c2cef.29f798",\r
2349         "wires": [\r
2350             [\r
2351                 "a206cef4.960698",\r
2352                 "59e7f171.2fe93"\r
2353             ]\r
2354         ]\r
2355     },\r
2356     {\r
2357         "id": "54e418fd.7d6af",\r
2358         "type": "set",\r
2359         "name": "set esr-thirdparty-sdnc domainA id",\r
2360         "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
2361         "comments": "",\r
2362         "x": 6782,\r
2363         "y": 599,\r
2364         "z": "df5c2cef.29f798",\r
2365         "wires": []\r
2366     },\r
2367     {\r
2368         "id": "c451b700.662738",\r
2369         "type": "success",\r
2370         "name": "success",\r
2371         "xml": "<outcome value='success'>\n",\r
2372         "comments": "",\r
2373         "outputs": 1,\r
2374         "x": 6962,\r
2375         "y": 642,\r
2376         "z": "df5c2cef.29f798",\r
2377         "wires": [\r
2378             [\r
2379                 "b48ed50b.bbbc98"\r
2380             ]\r
2381         ]\r
2382     },\r
2383     {\r
2384         "id": "ee68b795.c2a168",\r
2385         "type": "not-found",\r
2386         "name": "not-found",\r
2387         "xml": "<outcome value='not-found'>\n",\r
2388         "comments": "",\r
2389         "outputs": 1,\r
2390         "x": 6954,\r
2391         "y": 697,\r
2392         "z": "df5c2cef.29f798",\r
2393         "wires": [\r
2394             [\r
2395                 "4b320cb9.f09b9c"\r
2396             ]\r
2397         ]\r
2398     },\r
2399     {\r
2400         "id": "ace90efd.77ffe",\r
2401         "type": "other",\r
2402         "name": "other",\r
2403         "xml": "<outcome value='Other'>\n",\r
2404         "comments": "",\r
2405         "outputs": 1,\r
2406         "x": 6959,\r
2407         "y": 754,\r
2408         "z": "df5c2cef.29f798",\r
2409         "wires": [\r
2410             [\r
2411                 "7a2345cb.238a24"\r
2412             ]\r
2413         ]\r
2414     },\r
2415     {\r
2416         "id": "7a2345cb.238a24",\r
2417         "type": "returnFailure",\r
2418         "name": "return failure",\r
2419         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2420         "comments": "",\r
2421         "x": 7111,\r
2422         "y": 755,\r
2423         "z": "df5c2cef.29f798",\r
2424         "wires": []\r
2425     },\r
2426     {\r
2427         "id": "4b320cb9.f09b9c",\r
2428         "type": "returnFailure",\r
2429         "name": "return failure",\r
2430         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2431         "comments": "",\r
2432         "x": 7122,\r
2433         "y": 700,\r
2434         "z": "df5c2cef.29f798",\r
2435         "wires": []\r
2436     },\r
2437     {\r
2438         "id": "b48ed50b.bbbc98",\r
2439         "type": "block",\r
2440         "name": "block",\r
2441         "xml": "<block>\n",\r
2442         "atomic": "false",\r
2443         "comments": "",\r
2444         "outputs": 1,\r
2445         "x": 7106.38232421875,\r
2446         "y": 639.6556701660156,\r
2447         "z": "df5c2cef.29f798",\r
2448         "wires": [\r
2449             [\r
2450                 "fd510eb.0c6ebf"\r
2451             ]\r
2452         ]\r
2453     },\r
2454     {\r
2455         "id": "fd510eb.0c6ebf",\r
2456         "type": "set",\r
2457         "name": "set controller domainA data",\r
2458         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
2459         "comments": "",\r
2460         "x": 7321,\r
2461         "y": 636,\r
2462         "z": "df5c2cef.29f798",\r
2463         "wires": []\r
2464     },\r
2465     {\r
2466         "id": "cf727f02.7a65a",\r
2467         "type": "get-resource",\r
2468         "name": "get-resource src pnf",\r
2469         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n        pfx='tmp.aai.destination-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
2470         "comments": "",\r
2471         "outputs": 1,\r
2472         "x": 5486,\r
2473         "y": 1525,\r
2474         "z": "df5c2cef.29f798",\r
2475         "wires": [\r
2476             [\r
2477                 "e6203203.c9d8",\r
2478                 "a4f2c6e3.35c098",\r
2479                 "b06c15b4.6714f8"\r
2480             ]\r
2481         ]\r
2482     },\r
2483     {\r
2484         "id": "e6203203.c9d8",\r
2485         "type": "success",\r
2486         "name": "success",\r
2487         "xml": "<outcome value='success'>\n",\r
2488         "comments": "",\r
2489         "outputs": 1,\r
2490         "x": 5681.5001220703125,\r
2491         "y": 1477,\r
2492         "z": "df5c2cef.29f798",\r
2493         "wires": [\r
2494             [\r
2495                 "3120e335.92d50c"\r
2496             ]\r
2497         ]\r
2498     },\r
2499     {\r
2500         "id": "a4f2c6e3.35c098",\r
2501         "type": "not-found",\r
2502         "name": "not-found",\r
2503         "xml": "<outcome value='not-found'>\n",\r
2504         "comments": "",\r
2505         "outputs": 1,\r
2506         "x": 5673.5001220703125,\r
2507         "y": 1532,\r
2508         "z": "df5c2cef.29f798",\r
2509         "wires": [\r
2510             [\r
2511                 "2b2ce729.3eb29"\r
2512             ]\r
2513         ]\r
2514     },\r
2515     {\r
2516         "id": "b06c15b4.6714f8",\r
2517         "type": "other",\r
2518         "name": "other",\r
2519         "xml": "<outcome value='Other'>\n",\r
2520         "comments": "",\r
2521         "outputs": 1,\r
2522         "x": 5678.5001220703125,\r
2523         "y": 1589,\r
2524         "z": "df5c2cef.29f798",\r
2525         "wires": [\r
2526             [\r
2527                 "372a7e76.6eb402"\r
2528             ]\r
2529         ]\r
2530     },\r
2531     {\r
2532         "id": "372a7e76.6eb402",\r
2533         "type": "returnFailure",\r
2534         "name": "return failure",\r
2535         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2536         "comments": "",\r
2537         "x": 5830.5001220703125,\r
2538         "y": 1590,\r
2539         "z": "df5c2cef.29f798",\r
2540         "wires": []\r
2541     },\r
2542     {\r
2543         "id": "2b2ce729.3eb29",\r
2544         "type": "returnFailure",\r
2545         "name": "return failure",\r
2546         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2547         "comments": "",\r
2548         "x": 5841.5001220703125,\r
2549         "y": 1535,\r
2550         "z": "df5c2cef.29f798",\r
2551         "wires": []\r
2552     },\r
2553     {\r
2554         "id": "3120e335.92d50c",\r
2555         "type": "block",\r
2556         "name": "block",\r
2557         "xml": "<block>\n",\r
2558         "atomic": "false",\r
2559         "comments": "",\r
2560         "outputs": 1,\r
2561         "x": 5825.8824462890625,\r
2562         "y": 1474.6556701660156,\r
2563         "z": "df5c2cef.29f798",\r
2564         "wires": [\r
2565             [\r
2566                 "4dd7dbd3.a1fbd4"\r
2567             ]\r
2568         ]\r
2569     },\r
2570     {\r
2571         "id": "92a891f6.14f2f8",\r
2572         "type": "outcome",\r
2573         "name": "esr-thirdparty-sdnc",\r
2574         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2575         "comments": "",\r
2576         "outputs": 1,\r
2577         "x": 6408,\r
2578         "y": 1493,\r
2579         "z": "df5c2cef.29f798",\r
2580         "wires": [\r
2581             [\r
2582                 "e81d0130.9f5398"\r
2583             ]\r
2584         ]\r
2585     },\r
2586     {\r
2587         "id": "e81d0130.9f5398",\r
2588         "type": "block",\r
2589         "name": "block : atomic",\r
2590         "xml": "<block atomic=\"true\">",\r
2591         "atomic": "true",\r
2592         "outputs": 1,\r
2593         "x": 6585,\r
2594         "y": 1485,\r
2595         "z": "df5c2cef.29f798",\r
2596         "wires": [\r
2597             [\r
2598                 "43e58e9.258b1f",\r
2599                 "f320f01a.c0cb68"\r
2600             ]\r
2601         ]\r
2602     },\r
2603     {\r
2604         "id": "4dd7dbd3.a1fbd4",\r
2605         "type": "for",\r
2606         "name": "for each relationship",\r
2607         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
2608         "comments": "",\r
2609         "outputs": 1,\r
2610         "x": 6010,\r
2611         "y": 1489,\r
2612         "z": "df5c2cef.29f798",\r
2613         "wires": [\r
2614             [\r
2615                 "ef34bdf9.86d6a"\r
2616             ]\r
2617         ]\r
2618     },\r
2619     {\r
2620         "id": "ef34bdf9.86d6a",\r
2621         "type": "switchNode",\r
2622         "name": "switch related-to",\r
2623         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
2624         "comments": "",\r
2625         "outputs": 1,\r
2626         "x": 6205,\r
2627         "y": 1489,\r
2628         "z": "df5c2cef.29f798",\r
2629         "wires": [\r
2630             [\r
2631                 "92a891f6.14f2f8",\r
2632                 "15f68679.004ff2"\r
2633             ]\r
2634         ]\r
2635     },\r
2636     {\r
2637         "id": "f320f01a.c0cb68",\r
2638         "type": "execute",\r
2639         "name": "get esr-thirdparty-sdnc",\r
2640         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
2641         "comments": "",\r
2642         "outputs": 1,\r
2643         "x": 6793,\r
2644         "y": 1492,\r
2645         "z": "df5c2cef.29f798",\r
2646         "wires": [\r
2647             [\r
2648                 "21d26d09.bf8d42",\r
2649                 "e79de436.351eb",\r
2650                 "42168163.8f503"\r
2651             ]\r
2652         ]\r
2653     },\r
2654     {\r
2655         "id": "43e58e9.258b1f",\r
2656         "type": "set",\r
2657         "name": "set esr-thirdparty-sdnc domainB id",\r
2658         "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
2659         "comments": "",\r
2660         "x": 6823,\r
2661         "y": 1440,\r
2662         "z": "df5c2cef.29f798",\r
2663         "wires": []\r
2664     },\r
2665     {\r
2666         "id": "21d26d09.bf8d42",\r
2667         "type": "success",\r
2668         "name": "success",\r
2669         "xml": "<outcome value='success'>\n",\r
2670         "comments": "",\r
2671         "outputs": 1,\r
2672         "x": 7003,\r
2673         "y": 1483,\r
2674         "z": "df5c2cef.29f798",\r
2675         "wires": [\r
2676             [\r
2677                 "8f151e48.516da8"\r
2678             ]\r
2679         ]\r
2680     },\r
2681     {\r
2682         "id": "e79de436.351eb",\r
2683         "type": "not-found",\r
2684         "name": "not-found",\r
2685         "xml": "<outcome value='not-found'>\n",\r
2686         "comments": "",\r
2687         "outputs": 1,\r
2688         "x": 6995,\r
2689         "y": 1538,\r
2690         "z": "df5c2cef.29f798",\r
2691         "wires": [\r
2692             [\r
2693                 "43ccb9c7.d7ad"\r
2694             ]\r
2695         ]\r
2696     },\r
2697     {\r
2698         "id": "42168163.8f503",\r
2699         "type": "other",\r
2700         "name": "other",\r
2701         "xml": "<outcome value='Other'>\n",\r
2702         "comments": "",\r
2703         "outputs": 1,\r
2704         "x": 7000,\r
2705         "y": 1595,\r
2706         "z": "df5c2cef.29f798",\r
2707         "wires": [\r
2708             [\r
2709                 "d86c14ab.73faf8"\r
2710             ]\r
2711         ]\r
2712     },\r
2713     {\r
2714         "id": "d86c14ab.73faf8",\r
2715         "type": "returnFailure",\r
2716         "name": "return failure",\r
2717         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2718         "comments": "",\r
2719         "x": 7152,\r
2720         "y": 1596,\r
2721         "z": "df5c2cef.29f798",\r
2722         "wires": []\r
2723     },\r
2724     {\r
2725         "id": "43ccb9c7.d7ad",\r
2726         "type": "returnFailure",\r
2727         "name": "return failure",\r
2728         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2729         "comments": "",\r
2730         "x": 7163,\r
2731         "y": 1541,\r
2732         "z": "df5c2cef.29f798",\r
2733         "wires": []\r
2734     },\r
2735     {\r
2736         "id": "8f151e48.516da8",\r
2737         "type": "block",\r
2738         "name": "block",\r
2739         "xml": "<block>\n",\r
2740         "atomic": "false",\r
2741         "comments": "",\r
2742         "outputs": 1,\r
2743         "x": 7147.38232421875,\r
2744         "y": 1480.6556701660156,\r
2745         "z": "df5c2cef.29f798",\r
2746         "wires": [\r
2747             [\r
2748                 "48915602.68268"\r
2749             ]\r
2750         ]\r
2751     },\r
2752     {\r
2753         "id": "48915602.68268",\r
2754         "type": "set",\r
2755         "name": "set controller domainB data",\r
2756         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
2757         "comments": "",\r
2758         "x": 7362,\r
2759         "y": 1477,\r
2760         "z": "df5c2cef.29f798",\r
2761         "wires": []\r
2762     },\r
2763     {\r
2764         "id": "8418b8d3.470188",\r
2765         "type": "block",\r
2766         "name": "block : atomic",\r
2767         "xml": "<block atomic=\"true\">",\r
2768         "atomic": "true",\r
2769         "outputs": 1,\r
2770         "x": 359,\r
2771         "y": 606,\r
2772         "z": "df5c2cef.29f798",\r
2773         "wires": [\r
2774             [\r
2775                 "3e42f499.a0a45c",\r
2776                 "23de1461.f7fad4"\r
2777             ]\r
2778         ]\r
2779     },\r
2780     {\r
2781         "id": "3e42f499.a0a45c",\r
2782         "type": "for",\r
2783         "name": "for each allotted-resource relationship",\r
2784         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
2785         "comments": "",\r
2786         "outputs": 1,\r
2787         "x": 805,\r
2788         "y": 465,\r
2789         "z": "df5c2cef.29f798",\r
2790         "wires": [\r
2791             [\r
2792                 "61c833be.b9761c"\r
2793             ]\r
2794         ]\r
2795     },\r
2796     {\r
2797         "id": "61c833be.b9761c",\r
2798         "type": "switchNode",\r
2799         "name": "switch related-to",\r
2800         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
2801         "comments": "",\r
2802         "outputs": 1,\r
2803         "x": 3170,\r
2804         "y": 447,\r
2805         "z": "df5c2cef.29f798",\r
2806         "wires": [\r
2807             [\r
2808                 "9f0e5f06.ee06a8"\r
2809             ]\r
2810         ]\r
2811     },\r
2812     {\r
2813         "id": "59e7f171.2fe93",\r
2814         "type": "outcome",\r
2815         "name": "network-resource",\r
2816         "xml": "<outcome value='network-resource'>",\r
2817         "comments": "",\r
2818         "outputs": 1,\r
2819         "x": 6370,\r
2820         "y": 726,\r
2821         "z": "df5c2cef.29f798",\r
2822         "wires": [\r
2823             [\r
2824                 "db4451ce.036298"\r
2825             ]\r
2826         ]\r
2827     },\r
2828     {\r
2829         "id": "db4451ce.036298",\r
2830         "type": "block",\r
2831         "name": "block : atomic",\r
2832         "xml": "<block atomic=\"true\">",\r
2833         "atomic": "true",\r
2834         "outputs": 1,\r
2835         "x": 6547,\r
2836         "y": 718,\r
2837         "z": "df5c2cef.29f798",\r
2838         "wires": [\r
2839             [\r
2840                 "3b56e152.cb5dfe"\r
2841             ]\r
2842         ]\r
2843     },\r
2844     {\r
2845         "id": "3b56e152.cb5dfe",\r
2846         "type": "set",\r
2847         "name": "set domainA ethernet layer network-id",\r
2848         "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
2849         "comments": "",\r
2850         "x": 6782,\r
2851         "y": 842,\r
2852         "z": "df5c2cef.29f798",\r
2853         "wires": []\r
2854     },\r
2855     {\r
2856         "id": "8d9dc5d1.6f53b",\r
2857         "type": "set",\r
2858         "name": "set domainB ethernet layer network-id",\r
2859         "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
2860         "comments": "",\r
2861         "x": 6822,\r
2862         "y": 1682,\r
2863         "z": "df5c2cef.29f798",\r
2864         "wires": []\r
2865     },\r
2866     {\r
2867         "id": "b9cc1a89.57ad48",\r
2868         "type": "block",\r
2869         "name": "block : atomic",\r
2870         "xml": "<block atomic=\"true\">",\r
2871         "atomic": "true",\r
2872         "outputs": 1,\r
2873         "x": 6587,\r
2874         "y": 1558,\r
2875         "z": "df5c2cef.29f798",\r
2876         "wires": [\r
2877             [\r
2878                 "8d9dc5d1.6f53b"\r
2879             ]\r
2880         ]\r
2881     },\r
2882     {\r
2883         "id": "15f68679.004ff2",\r
2884         "type": "outcome",\r
2885         "name": "network-resource",\r
2886         "xml": "<outcome value='network-resource'>",\r
2887         "comments": "",\r
2888         "outputs": 1,\r
2889         "x": 6410,\r
2890         "y": 1566,\r
2891         "z": "df5c2cef.29f798",\r
2892         "wires": [\r
2893             [\r
2894                 "b9cc1a89.57ad48"\r
2895             ]\r
2896         ]\r
2897     },\r
2898     {\r
2899         "id": "283fdbf8.9648a4",\r
2900         "type": "set",\r
2901         "name": "set the max bandwidth",\r
2902         "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
2903         "comments": "",\r
2904         "x": 4362,\r
2905         "y": 502,\r
2906         "z": "df5c2cef.29f798",\r
2907         "wires": []\r
2908     },\r
2909     {\r
2910         "id": "53d902b0.393754",\r
2911         "type": "execute",\r
2912         "name": "execute UUID generator for ethernet-service-name",\r
2913         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
2914         "comments": "",\r
2915         "outputs": 1,\r
2916         "x": 4384,\r
2917         "y": 637,\r
2918         "z": "df5c2cef.29f798",\r
2919         "wires": [\r
2920             []\r
2921         ]\r
2922     },\r
2923     {\r
2924         "id": "2829cd3e.73ff62",\r
2925         "type": "execute",\r
2926         "name": "execute UUID generator for otn-tunnel-name",\r
2927         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
2928         "comments": "",\r
2929         "outputs": 1,\r
2930         "x": 4365,\r
2931         "y": 687,\r
2932         "z": "df5c2cef.29f798",\r
2933         "wires": [\r
2934             []\r
2935         ]\r
2936     },\r
2937     {\r
2938         "id": "ec9312e3.eb3ca",\r
2939         "type": "for",\r
2940         "name": "for each allotted-resource",\r
2941         "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
2942         "comments": "",\r
2943         "outputs": 1,\r
2944         "x": 1956,\r
2945         "y": 188,\r
2946         "z": "df5c2cef.29f798",\r
2947         "wires": [\r
2948             [\r
2949                 "f47a653.ec6e298",\r
2950                 "ff867076.ee06e"\r
2951             ]\r
2952         ]\r
2953     },\r
2954     {\r
2955         "id": "f47a653.ec6e298",\r
2956         "type": "set",\r
2957         "name": "set the current allotted-resource-id",\r
2958         "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
2959         "comments": "",\r
2960         "x": 2240,\r
2961         "y": 158,\r
2962         "z": "df5c2cef.29f798",\r
2963         "wires": []\r
2964     },\r
2965     {\r
2966         "id": "9445731f.f1b8",\r
2967         "type": "set",\r
2968         "name": "set query_param",\r
2969         "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
2970         "comments": "",\r
2971         "x": 4281,\r
2972         "y": 2196,\r
2973         "z": "df5c2cef.29f798",\r
2974         "wires": []\r
2975     },\r
2976     {\r
2977         "id": "beaf21fd.396d98",\r
2978         "type": "set",\r
2979         "name": "unset parameters",\r
2980         "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",\r
2981         "comments": "",\r
2982         "x": 4265,\r
2983         "y": 3895,\r
2984         "z": "df5c2cef.29f798",\r
2985         "wires": []\r
2986     },\r
2987     {\r
2988         "id": "7826fce9.171054",\r
2989         "type": "set",\r
2990         "name": "set new ethernet-service-name",\r
2991         "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
2992         "comments": "",\r
2993         "x": 4322,\r
2994         "y": 732,\r
2995         "z": "df5c2cef.29f798",\r
2996         "wires": []\r
2997     },\r
2998     {\r
2999         "id": "b9213dab.6d883",\r
3000         "type": "for",\r
3001         "name": "for vidx..tmp.otninfo_length[]",\r
3002         "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",\r
3003         "comments": "",\r
3004         "outputs": 1,\r
3005         "x": 4316,\r
3006         "y": 2316,\r
3007         "z": "df5c2cef.29f798",\r
3008         "wires": [\r
3009             [\r
3010                 "20d68f86.366a48"\r
3011             ]\r
3012         ]\r
3013     },\r
3014     {\r
3015         "id": "d817cc51.57c43",\r
3016         "type": "save",\r
3017         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
3018         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",\r
3019         "comments": "",\r
3020         "outputs": 1,\r
3021         "x": 5439,\r
3022         "y": 2884,\r
3023         "z": "df5c2cef.29f798",\r
3024         "wires": [\r
3025             [\r
3026                 "19683517.67ac63"\r
3027             ]\r
3028         ]\r
3029     },\r
3030     {\r
3031         "id": "ca454382.6438b8",\r
3032         "type": "save",\r
3033         "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
3034         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",\r
3035         "comments": "",\r
3036         "outputs": 1,\r
3037         "x": 6011.5,\r
3038         "y": 2988,\r
3039         "z": "df5c2cef.29f798",\r
3040         "wires": [\r
3041             []\r
3042         ]\r
3043     },\r
3044     {\r
3045         "id": "19683517.67ac63",\r
3046         "type": "success",\r
3047         "name": "success",\r
3048         "xml": "<outcome value='success'>\n",\r
3049         "comments": "",\r
3050         "outputs": 1,\r
3051         "x": 5745,\r
3052         "y": 2883,\r
3053         "z": "df5c2cef.29f798",\r
3054         "wires": [\r
3055             [\r
3056                 "7b5a7467.79786c"\r
3057             ]\r
3058         ]\r
3059     },\r
3060     {\r
3061         "id": "7b5a7467.79786c",\r
3062         "type": "block",\r
3063         "name": "block",\r
3064         "xml": "<block>\n",\r
3065         "atomic": "false",\r
3066         "comments": "",\r
3067         "outputs": 1,\r
3068         "x": 5954.5,\r
3069         "y": 2883.25390625,\r
3070         "z": "df5c2cef.29f798",\r
3071         "wires": [\r
3072             [\r
3073                 "d5f9f3e8.876da8"\r
3074             ]\r
3075         ]\r
3076     },\r
3077     {\r
3078         "id": "cfeb42d5.8f30e",\r
3079         "type": "execute",\r
3080         "name": "execute UUID generator for vpn-binding $otnidx",\r
3081         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",\r
3082         "comments": "",\r
3083         "outputs": 1,\r
3084         "x": 5475,\r
3085         "y": 2348,\r
3086         "z": "df5c2cef.29f798",\r
3087         "wires": [\r
3088             []\r
3089         ]\r
3090     },\r
3091     {\r
3092         "id": "80314abc.ea1038",\r
3093         "type": "switchNode",\r
3094         "name": "switch otnidx == 0",\r
3095         "xml": "<switch test='`$otnidx == 0`'>\n",\r
3096         "comments": "",\r
3097         "outputs": 1,\r
3098         "x": 5348,\r
3099         "y": 3001,\r
3100         "z": "df5c2cef.29f798",\r
3101         "wires": [\r
3102             [\r
3103                 "42510192.4150d",\r
3104                 "e04d6920.7d592"\r
3105             ]\r
3106         ]\r
3107     },\r
3108     {\r
3109         "id": "42510192.4150d",\r
3110         "type": "outcomeTrue",\r
3111         "name": "true",\r
3112         "xml": "<outcome value='true'>\n",\r
3113         "comments": "",\r
3114         "outputs": 1,\r
3115         "x": 5531,\r
3116         "y": 3001,\r
3117         "z": "df5c2cef.29f798",\r
3118         "wires": [\r
3119             [\r
3120                 "c6dc5f2e.5970a8"\r
3121             ]\r
3122         ]\r
3123     },\r
3124     {\r
3125         "id": "e04d6920.7d592",\r
3126         "type": "outcomeFalse",\r
3127         "name": "false",\r
3128         "xml": "<outcome value='false'>\n",\r
3129         "comments": "",\r
3130         "outputs": 1,\r
3131         "x": 5356,\r
3132         "y": 3148,\r
3133         "z": "df5c2cef.29f798",\r
3134         "wires": [\r
3135             [\r
3136                 "e39528c5.00341"\r
3137             ]\r
3138         ]\r
3139     },\r
3140     {\r
3141         "id": "d4bb1111.25cff",\r
3142         "type": "switchNode",\r
3143         "name": "switch otnidx == last",\r
3144         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",\r
3145         "comments": "",\r
3146         "outputs": 1,\r
3147         "x": 5697,\r
3148         "y": 3229,\r
3149         "z": "df5c2cef.29f798",\r
3150         "wires": [\r
3151             [\r
3152                 "63cb7082.8783",\r
3153                 "18ee91c9.b3e6fe"\r
3154             ]\r
3155         ]\r
3156     },\r
3157     {\r
3158         "id": "63cb7082.8783",\r
3159         "type": "outcomeTrue",\r
3160         "name": "true",\r
3161         "xml": "<outcome value='true'>\n",\r
3162         "comments": "",\r
3163         "outputs": 1,\r
3164         "x": 5882,\r
3165         "y": 3230,\r
3166         "z": "df5c2cef.29f798",\r
3167         "wires": [\r
3168             [\r
3169                 "629d009e.881158"\r
3170             ]\r
3171         ]\r
3172     },\r
3173     {\r
3174         "id": "18ee91c9.b3e6fe",\r
3175         "type": "outcomeFalse",\r
3176         "name": "false",\r
3177         "xml": "<outcome value='false'>\n",\r
3178         "comments": "",\r
3179         "outputs": 1,\r
3180         "x": 5901,\r
3181         "y": 3496,\r
3182         "z": "df5c2cef.29f798",\r
3183         "wires": [\r
3184             [\r
3185                 "78cc4d6b.9a20e4"\r
3186             ]\r
3187         ]\r
3188     },\r
3189     {\r
3190         "id": "72b6f676.a7eaa",\r
3191         "type": "save",\r
3192         "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
3193         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",\r
3194         "comments": "",\r
3195         "outputs": 1,\r
3196         "x": 6312,\r
3197         "y": 3231,\r
3198         "z": "df5c2cef.29f798",\r
3199         "wires": [\r
3200             []\r
3201         ]\r
3202     },\r
3203     {\r
3204         "id": "2d690add.7eb056",\r
3205         "type": "execute",\r
3206         "name": "execute UUID generator for connectivity domain otnidx",\r
3207         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
3208         "comments": "",\r
3209         "outputs": 1,\r
3210         "x": 6386,\r
3211         "y": 3529,\r
3212         "z": "df5c2cef.29f798",\r
3213         "wires": [\r
3214             []\r
3215         ]\r
3216     },\r
3217     {\r
3218         "id": "7eb9bec5.6b496",\r
3219         "type": "save",\r
3220         "name": "save connectivity resource in AAI",\r
3221         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3222         "comments": "",\r
3223         "outputs": 1,\r
3224         "x": 6322,\r
3225         "y": 3580,\r
3226         "z": "df5c2cef.29f798",\r
3227         "wires": [\r
3228             []\r
3229         ]\r
3230     },\r
3231     {\r
3232         "id": "e4bf0eff.3ff878",\r
3233         "type": "save",\r
3234         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3235         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
3236         "comments": "",\r
3237         "outputs": 1,\r
3238         "x": 6451,\r
3239         "y": 3630,\r
3240         "z": "df5c2cef.29f798",\r
3241         "wires": [\r
3242             []\r
3243         ]\r
3244     },\r
3245     {\r
3246         "id": "44296fc3.86d838",\r
3247         "type": "comment",\r
3248         "name": "connectivity has not been created for middle domains, so we have to create one",\r
3249         "info": "",\r
3250         "comments": "",\r
3251         "x": 6461,\r
3252         "y": 3473,\r
3253         "z": "df5c2cef.29f798",\r
3254         "wires": []\r
3255     },\r
3256     {\r
3257         "id": "dde77510.01e358",\r
3258         "type": "save",\r
3259         "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
3260         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
3261         "comments": "",\r
3262         "outputs": 1,\r
3263         "x": 6419,\r
3264         "y": 3689,\r
3265         "z": "df5c2cef.29f798",\r
3266         "wires": [\r
3267             []\r
3268         ]\r
3269     },\r
3270     {\r
3271         "id": "78cc4d6b.9a20e4",\r
3272         "type": "block",\r
3273         "name": "block : atomic",\r
3274         "xml": "<block atomic='true'>",\r
3275         "atomic": "true",\r
3276         "comments": "",\r
3277         "outputs": 1,\r
3278         "x": 6058,\r
3279         "y": 3497,\r
3280         "z": "df5c2cef.29f798",\r
3281         "wires": [\r
3282             [\r
3283                 "2d690add.7eb056",\r
3284                 "7eb9bec5.6b496",\r
3285                 "e4bf0eff.3ff878",\r
3286                 "dde77510.01e358",\r
3287                 "cf8ac1fc.c141"\r
3288             ]\r
3289         ]\r
3290     },\r
3291     {\r
3292         "id": "20d68f86.366a48",\r
3293         "type": "block",\r
3294         "name": "block : atomic",\r
3295         "xml": "<block atomic='true'>",\r
3296         "atomic": "true",\r
3297         "comments": "",\r
3298         "outputs": 1,\r
3299         "x": 4568,\r
3300         "y": 2377,\r
3301         "z": "df5c2cef.29f798",\r
3302         "wires": [\r
3303             [\r
3304                 "cfeb42d5.8f30e",\r
3305                 "d817cc51.57c43",\r
3306                 "80314abc.ea1038",\r
3307                 "7c37f4eb.58f484",\r
3308                 "c24bf6c5.fa73c8",\r
3309                 "1dbe2057.a5e62",\r
3310                 "94fd6991.78fda"\r
3311             ]\r
3312         ]\r
3313     },\r
3314     {\r
3315         "id": "72da75b4.4b328c",\r
3316         "type": "set",\r
3317         "name": "set attachment_param domain A",\r
3318         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",\r
3319         "comments": "",\r
3320         "x": 5936,\r
3321         "y": 3045,\r
3322         "z": "df5c2cef.29f798",\r
3323         "wires": []\r
3324     },\r
3325     {\r
3326         "id": "9684161c.06ddd",\r
3327         "type": "execute",\r
3328         "name": "execute RestApiCallNode domainA UNI Coloring",\r
3329         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
3330         "comments": "",\r
3331         "outputs": 1,\r
3332         "x": 5989,\r
3333         "y": 3089,\r
3334         "z": "df5c2cef.29f798",\r
3335         "wires": [\r
3336             [\r
3337                 "efb749b0.733a",\r
3338                 "783ce4ab.fbf424"\r
3339             ]\r
3340         ]\r
3341     },\r
3342     {\r
3343         "id": "783ce4ab.fbf424",\r
3344         "type": "failure",\r
3345         "name": "failure",\r
3346         "xml": "<outcome value='failure'>\n",\r
3347         "comments": "",\r
3348         "outputs": 1,\r
3349         "x": 6260,\r
3350         "y": 3074,\r
3351         "z": "df5c2cef.29f798",\r
3352         "wires": [\r
3353             [\r
3354                 "ddad2f88.846408"\r
3355             ]\r
3356         ]\r
3357     },\r
3358     {\r
3359         "id": "efb749b0.733a",\r
3360         "type": "success",\r
3361         "name": "success",\r
3362         "xml": "<outcome value='success'>\n",\r
3363         "comments": "",\r
3364         "outputs": 1,\r
3365         "x": 6258.000213623047,\r
3366         "y": 3131.99990940094,\r
3367         "z": "df5c2cef.29f798",\r
3368         "wires": [\r
3369             [\r
3370                 "d912d706.5a251"\r
3371             ]\r
3372         ]\r
3373     },\r
3374     {\r
3375         "id": "ddad2f88.846408",\r
3376         "type": "returnFailure",\r
3377         "name": "return failure",\r
3378         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing UNI Coloring for domain A\" />\n",\r
3379         "comments": "",\r
3380         "x": 6400.000247955322,\r
3381         "y": 3074.0000009536743,\r
3382         "z": "df5c2cef.29f798",\r
3383         "wires": []\r
3384     },\r
3385     {\r
3386         "id": "d912d706.5a251",\r
3387         "type": "block",\r
3388         "name": "block",\r
3389         "xml": "<block>\n",\r
3390         "atomic": "false",\r
3391         "comments": "",\r
3392         "outputs": 1,\r
3393         "x": 6406.02725982666,\r
3394         "y": 3122.745394706726,\r
3395         "z": "df5c2cef.29f798",\r
3396         "wires": [\r
3397             []\r
3398         ]\r
3399     },\r
3400     {\r
3401         "id": "c6dc5f2e.5970a8",\r
3402         "type": "block",\r
3403         "name": "block",\r
3404         "xml": "<block>\n",\r
3405         "atomic": "false",\r
3406         "comments": "",\r
3407         "outputs": 1,\r
3408         "x": 5672,\r
3409         "y": 2991,\r
3410         "z": "df5c2cef.29f798",\r
3411         "wires": [\r
3412             [\r
3413                 "ca454382.6438b8",\r
3414                 "9684161c.06ddd",\r
3415                 "72da75b4.4b328c"\r
3416             ]\r
3417         ]\r
3418     },\r
3419     {\r
3420         "id": "629d009e.881158",\r
3421         "type": "block",\r
3422         "name": "block",\r
3423         "xml": "<block>\n",\r
3424         "atomic": "false",\r
3425         "comments": "",\r
3426         "outputs": 1,\r
3427         "x": 6016,\r
3428         "y": 3231,\r
3429         "z": "df5c2cef.29f798",\r
3430         "wires": [\r
3431             [\r
3432                 "72b6f676.a7eaa",\r
3433                 "14aebcc4.f7f7cb",\r
3434                 "46bbee51.f68868"\r
3435             ]\r
3436         ]\r
3437     },\r
3438     {\r
3439         "id": "46bbee51.f68868",\r
3440         "type": "set",\r
3441         "name": "set attachment_param domain B",\r
3442         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",\r
3443         "comments": "",\r
3444         "x": 6236,\r
3445         "y": 3275,\r
3446         "z": "df5c2cef.29f798",\r
3447         "wires": []\r
3448     },\r
3449     {\r
3450         "id": "14aebcc4.f7f7cb",\r
3451         "type": "execute",\r
3452         "name": "execute RestApiCallNode domainB UNI Coloring",\r
3453         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
3454         "comments": "",\r
3455         "outputs": 1,\r
3456         "x": 6287,\r
3457         "y": 3319,\r
3458         "z": "df5c2cef.29f798",\r
3459         "wires": [\r
3460             [\r
3461                 "2a75572.a50f028",\r
3462                 "b6918e5c.ab31"\r
3463             ]\r
3464         ]\r
3465     },\r
3466     {\r
3467         "id": "b6918e5c.ab31",\r
3468         "type": "failure",\r
3469         "name": "failure",\r
3470         "xml": "<outcome value='failure'>\n",\r
3471         "comments": "",\r
3472         "outputs": 1,\r
3473         "x": 6550,\r
3474         "y": 3299,\r
3475         "z": "df5c2cef.29f798",\r
3476         "wires": [\r
3477             [\r
3478                 "18902915.6118d7"\r
3479             ]\r
3480         ]\r
3481     },\r
3482     {\r
3483         "id": "2a75572.a50f028",\r
3484         "type": "success",\r
3485         "name": "success",\r
3486         "xml": "<outcome value='success'>\n",\r
3487         "comments": "",\r
3488         "outputs": 1,\r
3489         "x": 6551.000213623047,\r
3490         "y": 3349.99990940094,\r
3491         "z": "df5c2cef.29f798",\r
3492         "wires": [\r
3493             [\r
3494                 "6d64d1d4.bfd958"\r
3495             ]\r
3496         ]\r
3497     },\r
3498     {\r
3499         "id": "18902915.6118d7",\r
3500         "type": "returnFailure",\r
3501         "name": "return failure",\r
3502         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing UNI coloring for domain B\" />\n",\r
3503         "comments": "",\r
3504         "x": 6690.000247955322,\r
3505         "y": 3299.0000009536743,\r
3506         "z": "df5c2cef.29f798",\r
3507         "wires": []\r
3508     },\r
3509     {\r
3510         "id": "6d64d1d4.bfd958",\r
3511         "type": "block",\r
3512         "name": "block",\r
3513         "xml": "<block>\n",\r
3514         "atomic": "false",\r
3515         "comments": "",\r
3516         "outputs": 1,\r
3517         "x": 6696.02725982666,\r
3518         "y": 3347.745394706726,\r
3519         "z": "df5c2cef.29f798",\r
3520         "wires": [\r
3521             []\r
3522         ]\r
3523     },\r
3524     {\r
3525         "id": "cf8ac1fc.c141",\r
3526         "type": "set",\r
3527         "name": "set attachment_param domain otnidx",\r
3528         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
3529         "comments": "",\r
3530         "x": 6333,\r
3531         "y": 3749,\r
3532         "z": "df5c2cef.29f798",\r
3533         "wires": []\r
3534     },\r
3535     {\r
3536         "id": "77439122.61f0b",\r
3537         "type": "save",\r
3538         "name": "get all-vpn-bindings from aai",\r
3539         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",\r
3540         "comments": "",\r
3541         "outputs": 1,\r
3542         "x": 3652,\r
3543         "y": 4096,\r
3544         "z": "df5c2cef.29f798",\r
3545         "wires": [\r
3546             [\r
3547                 "a916ce6e.3a2dd8",\r
3548                 "8ea0214a.83c",\r
3549                 "1e283443.a11834"\r
3550             ]\r
3551         ]\r
3552     },\r
3553     {\r
3554         "id": "a916ce6e.3a2dd8",\r
3555         "type": "success",\r
3556         "name": "success",\r
3557         "xml": "<outcome value='success'>\n",\r
3558         "comments": "",\r
3559         "outputs": 1,\r
3560         "x": 3840,\r
3561         "y": 4109,\r
3562         "z": "df5c2cef.29f798",\r
3563         "wires": [\r
3564             [\r
3565                 "34b3b115.5888ce"\r
3566             ]\r
3567         ]\r
3568     },\r
3569     {\r
3570         "id": "8ea0214a.83c",\r
3571         "type": "not-found",\r
3572         "name": "not-found",\r
3573         "xml": "<outcome value='not-found'>\n",\r
3574         "comments": "",\r
3575         "outputs": 1,\r
3576         "x": 3840.490966796875,\r
3577         "y": 4154.574035644531,\r
3578         "z": "df5c2cef.29f798",\r
3579         "wires": [\r
3580             [\r
3581                 "389d2b9f.8874d4"\r
3582             ]\r
3583         ]\r
3584     },\r
3585     {\r
3586         "id": "1e283443.a11834",\r
3587         "type": "failure",\r
3588         "name": "failure",\r
3589         "xml": "<outcome value='failure'>\n",\r
3590         "comments": "",\r
3591         "outputs": 1,\r
3592         "x": 3838,\r
3593         "y": 4198,\r
3594         "z": "df5c2cef.29f798",\r
3595         "wires": [\r
3596             [\r
3597                 "8afc42fa.281da"\r
3598             ]\r
3599         ]\r
3600     },\r
3601     {\r
3602         "id": "34b3b115.5888ce",\r
3603         "type": "block",\r
3604         "name": "block : atomic",\r
3605         "xml": "<block atomic=\"true\">",\r
3606         "atomic": "true",\r
3607         "outputs": 1,\r
3608         "x": 4013,\r
3609         "y": 4107,\r
3610         "z": "df5c2cef.29f798",\r
3611         "wires": [\r
3612             [\r
3613                 "9cfe8596.af4768"\r
3614             ]\r
3615         ]\r
3616     },\r
3617     {\r
3618         "id": "389d2b9f.8874d4",\r
3619         "type": "returnFailure",\r
3620         "name": "return failure",\r
3621         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
3622         "comments": "",\r
3623         "x": 4003.0623779296875,\r
3624         "y": 4154.859771728516,\r
3625         "z": "df5c2cef.29f798",\r
3626         "wires": []\r
3627     },\r
3628     {\r
3629         "id": "8afc42fa.281da",\r
3630         "type": "returnFailure",\r
3631         "name": "return failure",\r
3632         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3633         "comments": "",\r
3634         "x": 4005,\r
3635         "y": 4197,\r
3636         "z": "df5c2cef.29f798",\r
3637         "wires": []\r
3638     },\r
3639     {\r
3640         "id": "adac8296.d1b27",\r
3641         "type": "for",\r
3642         "name": "for vidx..tmp.otninfo_length[]",\r
3643         "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",\r
3644         "comments": "",\r
3645         "outputs": 1,\r
3646         "x": 3641,\r
3647         "y": 4287,\r
3648         "z": "df5c2cef.29f798",\r
3649         "wires": [\r
3650             [\r
3651                 "a0b78348.a09218"\r
3652             ]\r
3653         ]\r
3654     },\r
3655     {\r
3656         "id": "a5b6bb26.da9ec8",\r
3657         "type": "block",\r
3658         "name": "block : atomic",\r
3659         "xml": "<block atomic='true'>",\r
3660         "atomic": "true",\r
3661         "comments": "",\r
3662         "outputs": 1,\r
3663         "x": 4451,\r
3664         "y": 4287,\r
3665         "z": "df5c2cef.29f798",\r
3666         "wires": [\r
3667             [\r
3668                 "45429cd9.5d7224"\r
3669             ]\r
3670         ]\r
3671     },\r
3672     {\r
3673         "id": "d9387db0.98ab68",\r
3674         "type": "for",\r
3675         "name": "for vidx..tmp.otninfo_length[]",\r
3676         "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",\r
3677         "comments": "",\r
3678         "outputs": 1,\r
3679         "x": 4223,\r
3680         "y": 4287,\r
3681         "z": "df5c2cef.29f798",\r
3682         "wires": [\r
3683             [\r
3684                 "a5b6bb26.da9ec8"\r
3685             ]\r
3686         ]\r
3687     },\r
3688     {\r
3689         "id": "e7eee5b6.16e978",\r
3690         "type": "set",\r
3691         "name": "set providerValue",\r
3692         "xml": "<set>\n<parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />\n<parameter name='found' value='false' />\n\n\n",\r
3693         "comments": "",\r
3694         "x": 5343,\r
3695         "y": 4054,\r
3696         "z": "df5c2cef.29f798",\r
3697         "wires": []\r
3698     },\r
3699     {\r
3700         "id": "e4dd1d5b.f089e8",\r
3701         "type": "set",\r
3702         "name": "set",\r
3703         "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
3704         "comments": "",\r
3705         "x": 5645,\r
3706         "y": 3180,\r
3707         "z": "df5c2cef.29f798",\r
3708         "wires": []\r
3709     },\r
3710     {\r
3711         "id": "e39528c5.00341",\r
3712         "type": "block",\r
3713         "name": "block",\r
3714         "xml": "<block>\n",\r
3715         "atomic": "false",\r
3716         "comments": "",\r
3717         "outputs": 1,\r
3718         "x": 5480,\r
3719         "y": 3155,\r
3720         "z": "df5c2cef.29f798",\r
3721         "wires": [\r
3722             [\r
3723                 "e4dd1d5b.f089e8",\r
3724                 "d4bb1111.25cff"\r
3725             ]\r
3726         ]\r
3727     },\r
3728     {\r
3729         "id": "9b47cb2b.81e09",\r
3730         "type": "set",\r
3731         "name": "set tmp.arr",\r
3732         "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<parameter name='tmp.slicevpns' value='' />\n<parameter name='tmp.slicevpns_length' value='0' />\n\n<parameter name='tmp.slicevpnuuids' value='' />\n<parameter name='tmp.slicevpnuuids.' value='' />\n\n<parameter name='bwModified' value='false' />\n\n\n",\r
3733         "comments": "",\r
3734         "x": 1938,\r
3735         "y": 134,\r
3736         "z": "df5c2cef.29f798",\r
3737         "wires": []\r
3738     },\r
3739     {\r
3740         "id": "9cfe8596.af4768",\r
3741         "type": "for",\r
3742         "name": "for vpnidx in all-vpn-bindings",\r
3743         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
3744         "comments": "",\r
3745         "outputs": 1,\r
3746         "x": 4242,\r
3747         "y": 4108,\r
3748         "z": "df5c2cef.29f798",\r
3749         "wires": [\r
3750             [\r
3751                 "9ba3a7c0.b0cb88"\r
3752             ]\r
3753         ]\r
3754     },\r
3755     {\r
3756         "id": "9ba3a7c0.b0cb88",\r
3757         "type": "block",\r
3758         "name": "block : atomic",\r
3759         "xml": "<block atomic='true'>",\r
3760         "atomic": "true",\r
3761         "comments": "",\r
3762         "outputs": 1,\r
3763         "x": 4457,\r
3764         "y": 4109,\r
3765         "z": "df5c2cef.29f798",\r
3766         "wires": [\r
3767             [\r
3768                 "45048a47.3aa5fc"\r
3769             ]\r
3770         ]\r
3771     },\r
3772     {\r
3773         "id": "30ee7ab9.1c084e",\r
3774         "type": "for",\r
3775         "name": "for arridx in tmp.arr",\r
3776         "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",\r
3777         "comments": "",\r
3778         "outputs": 1,\r
3779         "x": 5910,\r
3780         "y": 4029,\r
3781         "z": "df5c2cef.29f798",\r
3782         "wires": [\r
3783             [\r
3784                 "53d8a5a4.d4c3ac"\r
3785             ]\r
3786         ]\r
3787     },\r
3788     {\r
3789         "id": "b5b6b6e5.2bc768",\r
3790         "type": "switchNode",\r
3791         "name": "switch $tmp.arr_length != 0",\r
3792         "xml": "<switch test='`$tmp.arr_length != 0`'>\n",\r
3793         "comments": "",\r
3794         "outputs": 1,\r
3795         "x": 5376,\r
3796         "y": 4109,\r
3797         "z": "df5c2cef.29f798",\r
3798         "wires": [\r
3799             [\r
3800                 "1acbae51.13627a",\r
3801                 "b78197f0.7f231"\r
3802             ]\r
3803         ]\r
3804     },\r
3805     {\r
3806         "id": "1acbae51.13627a",\r
3807         "type": "outcomeTrue",\r
3808         "name": "true",\r
3809         "xml": "<outcome value='true'>\n",\r
3810         "comments": "",\r
3811         "outputs": 1,\r
3812         "x": 5572,\r
3813         "y": 4079,\r
3814         "z": "df5c2cef.29f798",\r
3815         "wires": [\r
3816             [\r
3817                 "4305d70.41fb128"\r
3818             ]\r
3819         ]\r
3820     },\r
3821     {\r
3822         "id": "b78197f0.7f231",\r
3823         "type": "outcomeFalse",\r
3824         "name": "false",\r
3825         "xml": "<outcome value='false'>\n",\r
3826         "comments": "",\r
3827         "outputs": 1,\r
3828         "x": 5573,\r
3829         "y": 4150,\r
3830         "z": "df5c2cef.29f798",\r
3831         "wires": [\r
3832             [\r
3833                 "513cbe42.5f9f78"\r
3834             ]\r
3835         ]\r
3836     },\r
3837     {\r
3838         "id": "4305d70.41fb128",\r
3839         "type": "block",\r
3840         "name": "block : atomic",\r
3841         "xml": "<block atomic='true'>",\r
3842         "atomic": "true",\r
3843         "comments": "",\r
3844         "outputs": 1,\r
3845         "x": 5723,\r
3846         "y": 4077,\r
3847         "z": "df5c2cef.29f798",\r
3848         "wires": [\r
3849             [\r
3850                 "30ee7ab9.1c084e",\r
3851                 "2ee86607.39702a"\r
3852             ]\r
3853         ]\r
3854     },\r
3855     {\r
3856         "id": "53d8a5a4.d4c3ac",\r
3857         "type": "switchNode",\r
3858         "name": "switch tmp.arr[$arridx] == $providerValue",\r
3859         "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",\r
3860         "comments": "",\r
3861         "outputs": 1,\r
3862         "x": 6201,\r
3863         "y": 4029,\r
3864         "z": "df5c2cef.29f798",\r
3865         "wires": [\r
3866             [\r
3867                 "f8741b2b.9feaa8",\r
3868                 "d4cbae1e.f8339"\r
3869             ]\r
3870         ]\r
3871     },\r
3872     {\r
3873         "id": "f8741b2b.9feaa8",\r
3874         "type": "outcomeTrue",\r
3875         "name": "true",\r
3876         "xml": "<outcome value='true'>\n",\r
3877         "comments": "",\r
3878         "outputs": 1,\r
3879         "x": 6476,\r
3880         "y": 3998,\r
3881         "z": "df5c2cef.29f798",\r
3882         "wires": [\r
3883             [\r
3884                 "8f2d4eac.99e5f8"\r
3885             ]\r
3886         ]\r
3887     },\r
3888     {\r
3889         "id": "d4cbae1e.f8339",\r
3890         "type": "outcomeFalse",\r
3891         "name": "false",\r
3892         "xml": "<outcome value='false'>\n",\r
3893         "comments": "",\r
3894         "outputs": 1,\r
3895         "x": 6477,\r
3896         "y": 4069,\r
3897         "z": "df5c2cef.29f798",\r
3898         "wires": [\r
3899             [\r
3900                 "5e18e353.3a05ac"\r
3901             ]\r
3902         ]\r
3903     },\r
3904     {\r
3905         "id": "8f2d4eac.99e5f8",\r
3906         "type": "block",\r
3907         "name": "block : atomic",\r
3908         "xml": "<block atomic='true'>",\r
3909         "atomic": "true",\r
3910         "comments": "",\r
3911         "outputs": 1,\r
3912         "x": 6627,\r
3913         "y": 3996,\r
3914         "z": "df5c2cef.29f798",\r
3915         "wires": [\r
3916             [\r
3917                 "8b8a8ce1.3ddff",\r
3918                 "9358083a.54b3b8",\r
3919                 "842d4e41.428d6",\r
3920                 "c78fe39c.41c76",\r
3921                 "78c705fa.24e9dc"\r
3922             ]\r
3923         ]\r
3924     },\r
3925     {\r
3926         "id": "8b8a8ce1.3ddff",\r
3927         "type": "set",\r
3928         "name": "set found to true",\r
3929         "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",\r
3930         "comments": "",\r
3931         "x": 6815,\r
3932         "y": 3956,\r
3933         "z": "df5c2cef.29f798",\r
3934         "wires": []\r
3935     },\r
3936     {\r
3937         "id": "9358083a.54b3b8",\r
3938         "type": "save",\r
3939         "name": "store $arridx somewhere in vpn-binding",\r
3940         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx`' />\n\n\n",\r
3941         "comments": "",\r
3942         "outputs": 1,\r
3943         "x": 6887,\r
3944         "y": 4001,\r
3945         "z": "df5c2cef.29f798",\r
3946         "wires": [\r
3947             []\r
3948         ]\r
3949     },\r
3950     {\r
3951         "id": "78c705fa.24e9dc",\r
3952         "type": "set",\r
3953         "name": "set twoD arr",\r
3954         "xml": "<set>\n\n<!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->\n<!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->\n<parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />\n\n",\r
3955         "comments": "",\r
3956         "x": 6802,\r
3957         "y": 4128,\r
3958         "z": "df5c2cef.29f798",\r
3959         "wires": []\r
3960     },\r
3961     {\r
3962         "id": "c78fe39c.41c76",\r
3963         "type": "set",\r
3964         "name": "set sizeOfSliceList",\r
3965         "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",\r
3966         "comments": "",\r
3967         "x": 6823,\r
3968         "y": 4064,\r
3969         "z": "df5c2cef.29f798",\r
3970         "wires": []\r
3971     },\r
3972     {\r
3973         "id": "513cbe42.5f9f78",\r
3974         "type": "block",\r
3975         "name": "block : atomic",\r
3976         "xml": "<block atomic='true'>",\r
3977         "atomic": "true",\r
3978         "comments": "",\r
3979         "outputs": 1,\r
3980         "x": 5725,\r
3981         "y": 4150,\r
3982         "z": "df5c2cef.29f798",\r
3983         "wires": [\r
3984             [\r
3985                 "56c68e45.b909e",\r
3986                 "62724f29.35ed9"\r
3987             ]\r
3988         ]\r
3989     },\r
3990     {\r
3991         "id": "56c68e45.b909e",\r
3992         "type": "save",\r
3993         "name": "store $arridx somewhere in vpn-binding",\r
3994         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='0' />\n\n\n",\r
3995         "comments": "",\r
3996         "outputs": 1,\r
3997         "x": 5980,\r
3998         "y": 4143,\r
3999         "z": "df5c2cef.29f798",\r
4000         "wires": [\r
4001             []\r
4002         ]\r
4003     },\r
4004     {\r
4005         "id": "62724f29.35ed9",\r
4006         "type": "set",\r
4007         "name": "set twoD array",\r
4008         "xml": "<set>\n<parameter name='tmp.arr[0]' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='1' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='1' />\n<parameter name='otn-tunnel-slice[0].list_length' value='1' />\n\n",\r
4009         "comments": "",\r
4010         "x": 5908,\r
4011         "y": 4190,\r
4012         "z": "df5c2cef.29f798",\r
4013         "wires": []\r
4014     },\r
4015     {\r
4016         "id": "2ee86607.39702a",\r
4017         "type": "switchNode",\r
4018         "name": "switch found?",\r
4019         "xml": "<switch test='`$found`'>\n",\r
4020         "comments": "",\r
4021         "outputs": 1,\r
4022         "x": 5901,\r
4023         "y": 4074,\r
4024         "z": "df5c2cef.29f798",\r
4025         "wires": [\r
4026             [\r
4027                 "57630af9.c71c94",\r
4028                 "27468ceb.58bbcc"\r
4029             ]\r
4030         ]\r
4031     },\r
4032     {\r
4033         "id": "57630af9.c71c94",\r
4034         "type": "outcomeTrue",\r
4035         "name": "true",\r
4036         "xml": "<outcome value='true'>\n",\r
4037         "comments": "",\r
4038         "outputs": 1,\r
4039         "x": 6061,\r
4040         "y": 4066,\r
4041         "z": "df5c2cef.29f798",\r
4042         "wires": [\r
4043             [\r
4044                 "55618a59.0218f4"\r
4045             ]\r
4046         ]\r
4047     },\r
4048     {\r
4049         "id": "27468ceb.58bbcc",\r
4050         "type": "outcomeFalse",\r
4051         "name": "false",\r
4052         "xml": "<outcome value='false'>\n",\r
4053         "comments": "",\r
4054         "outputs": 1,\r
4055         "x": 6059,\r
4056         "y": 4103,\r
4057         "z": "df5c2cef.29f798",\r
4058         "wires": [\r
4059             [\r
4060                 "dbf50489.ec13e"\r
4061             ]\r
4062         ]\r
4063     },\r
4064     {\r
4065         "id": "55618a59.0218f4",\r
4066         "type": "block",\r
4067         "name": "block",\r
4068         "xml": "<block>\n",\r
4069         "atomic": "false",\r
4070         "comments": "",\r
4071         "outputs": 1,\r
4072         "x": 6186,\r
4073         "y": 4066,\r
4074         "z": "df5c2cef.29f798",\r
4075         "wires": [\r
4076             []\r
4077         ]\r
4078     },\r
4079     {\r
4080         "id": "54fbb2b4.70fc04",\r
4081         "type": "save",\r
4082         "name": "store $arridx+1 somewhere in vpn-binding",\r
4083         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx + 1`' />\n\n\n",\r
4084         "comments": "",\r
4085         "outputs": 1,\r
4086         "x": 6493,\r
4087         "y": 4124,\r
4088         "z": "df5c2cef.29f798",\r
4089         "wires": [\r
4090             []\r
4091         ]\r
4092     },\r
4093     {\r
4094         "id": "dbf50489.ec13e",\r
4095         "type": "block",\r
4096         "name": "block : atomic",\r
4097         "xml": "<block atomic='true'>",\r
4098         "atomic": "true",\r
4099         "comments": "",\r
4100         "outputs": 1,\r
4101         "x": 6219,\r
4102         "y": 4111,\r
4103         "z": "df5c2cef.29f798",\r
4104         "wires": [\r
4105             [\r
4106                 "54fbb2b4.70fc04",\r
4107                 "7e39f539.ebf16c"\r
4108             ]\r
4109         ]\r
4110     },\r
4111     {\r
4112         "id": "7e39f539.ebf16c",\r
4113         "type": "set",\r
4114         "name": "set twoD array",\r
4115         "xml": "<set>\n<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />\n\n",\r
4116         "comments": "",\r
4117         "x": 6410,\r
4118         "y": 4170,\r
4119         "z": "df5c2cef.29f798",\r
4120         "wires": []\r
4121     },\r
4122     {\r
4123         "id": "5e18e353.3a05ac",\r
4124         "type": "block",\r
4125         "name": "block",\r
4126         "xml": "<block>\n",\r
4127         "atomic": "false",\r
4128         "comments": "",\r
4129         "outputs": 1,\r
4130         "x": 6610,\r
4131         "y": 4068,\r
4132         "z": "df5c2cef.29f798",\r
4133         "wires": [\r
4134             []\r
4135         ]\r
4136     },\r
4137     {\r
4138         "id": "842d4e41.428d6",\r
4139         "type": "break",\r
4140         "name": "break",\r
4141         "xml": "<break>\n",\r
4142         "comments": "",\r
4143         "x": 6781,\r
4144         "y": 4195,\r
4145         "z": "df5c2cef.29f798",\r
4146         "wires": []\r
4147     },\r
4148     {\r
4149         "id": "7c37f4eb.58f484",\r
4150         "type": "switchNode",\r
4151         "name": "switch dstPort == NULL",\r
4152         "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
4153         "comments": "",\r
4154         "outputs": 1,\r
4155         "x": 5178,\r
4156         "y": 2407,\r
4157         "z": "df5c2cef.29f798",\r
4158         "wires": [\r
4159             [\r
4160                 "16caf8de.d229e7",\r
4161                 "54697afc.bd57bc"\r
4162             ]\r
4163         ]\r
4164     },\r
4165     {\r
4166         "id": "16caf8de.d229e7",\r
4167         "type": "outcomeTrue",\r
4168         "name": "true",\r
4169         "xml": "<outcome value='true'>\n",\r
4170         "comments": "",\r
4171         "outputs": 1,\r
4172         "x": 5567,\r
4173         "y": 2385,\r
4174         "z": "df5c2cef.29f798",\r
4175         "wires": [\r
4176             [\r
4177                 "6d8c7c43.cb932c"\r
4178             ]\r
4179         ]\r
4180     },\r
4181     {\r
4182         "id": "54697afc.bd57bc",\r
4183         "type": "outcomeFalse",\r
4184         "name": "false",\r
4185         "xml": "<outcome value='false'>\n",\r
4186         "comments": "",\r
4187         "outputs": 1,\r
4188         "x": 5568,\r
4189         "y": 2431,\r
4190         "z": "df5c2cef.29f798",\r
4191         "wires": [\r
4192             [\r
4193                 "92ed67c7.8c7a"\r
4194             ]\r
4195         ]\r
4196     },\r
4197     {\r
4198         "id": "6d8c7c43.cb932c",\r
4199         "type": "set",\r
4200         "name": "set access-provider-id and client-id",\r
4201         "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",\r
4202         "comments": "",\r
4203         "x": 5781,\r
4204         "y": 2384,\r
4205         "z": "df5c2cef.29f798",\r
4206         "wires": []\r
4207     },\r
4208     {\r
4209         "id": "92ed67c7.8c7a",\r
4210         "type": "set",\r
4211         "name": "set access-provider-id and client-id",\r
4212         "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",\r
4213         "comments": "",\r
4214         "x": 5779,\r
4215         "y": 2429,\r
4216         "z": "df5c2cef.29f798",\r
4217         "wires": []\r
4218     },\r
4219     {\r
4220         "id": "45429cd9.5d7224",\r
4221         "type": "set",\r
4222         "name": "set attachment_param sliceG",\r
4223         "xml": "<set>\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`\" />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />\n\n\n<parameter name=\"tmp.domainG.restapiUrl\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`\" />\n<parameter name=\"tmp.domainG.restapiUser\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`\" />\n<parameter name=\"tmp.domainG.restapiPassword\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`\" />",\r
4224         "comments": "",\r
4225         "x": 4704,\r
4226         "y": 4285,\r
4227         "z": "df5c2cef.29f798",\r
4228         "wires": []\r
4229     },\r
4230     {\r
4231         "id": "8c979de9.c09378",\r
4232         "type": "execute",\r
4233         "name": "execute RestApiCallNode sliceG creation domainG",\r
4234         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.domainG.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`tmp.domainG.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n",\r
4235         "comments": "",\r
4236         "outputs": 1,\r
4237         "x": 4289,\r
4238         "y": 4393,\r
4239         "z": "df5c2cef.29f798",\r
4240         "wires": [\r
4241             [\r
4242                 "e196ec28.ce397",\r
4243                 "9ae42505.217cf8"\r
4244             ]\r
4245         ]\r
4246     },\r
4247     {\r
4248         "id": "9ae42505.217cf8",\r
4249         "type": "failure",\r
4250         "name": "failure",\r
4251         "xml": "<outcome value='failure'>\n",\r
4252         "comments": "",\r
4253         "outputs": 1,\r
4254         "x": 4572,\r
4255         "y": 4373,\r
4256         "z": "df5c2cef.29f798",\r
4257         "wires": [\r
4258             [\r
4259                 "bf5b9f50.921198"\r
4260             ]\r
4261         ]\r
4262     },\r
4263     {\r
4264         "id": "e196ec28.ce397",\r
4265         "type": "success",\r
4266         "name": "success",\r
4267         "xml": "<outcome value='success'>\n",\r
4268         "comments": "",\r
4269         "outputs": 1,\r
4270         "x": 4573.000213623047,\r
4271         "y": 4423.99990940094,\r
4272         "z": "df5c2cef.29f798",\r
4273         "wires": [\r
4274             [\r
4275                 "ca17658e.a8462"\r
4276             ]\r
4277         ]\r
4278     },\r
4279     {\r
4280         "id": "bf5b9f50.921198",\r
4281         "type": "returnFailure",\r
4282         "name": "return failure",\r
4283         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing slice creation api for domain A\" />\n",\r
4284         "comments": "",\r
4285         "x": 4712.000247955322,\r
4286         "y": 4373.000000953674,\r
4287         "z": "df5c2cef.29f798",\r
4288         "wires": []\r
4289     },\r
4290     {\r
4291         "id": "ca17658e.a8462",\r
4292         "type": "block",\r
4293         "name": "block",\r
4294         "xml": "<block>\n",\r
4295         "atomic": "false",\r
4296         "comments": "",\r
4297         "outputs": 1,\r
4298         "x": 4718.02725982666,\r
4299         "y": 4421.745394706726,\r
4300         "z": "df5c2cef.29f798",\r
4301         "wires": [\r
4302             []\r
4303         ]\r
4304     },\r
4305     {\r
4306         "id": "c24bf6c5.fa73c8",\r
4307         "type": "set",\r
4308         "name": "set srcdstpnf-name",\r
4309         "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n                                             $tmp.access-provider-id + '-clientId-' +\n                                             $tmp.access-client-id + '-topologyId-' + \n                                             $tmp.access-topology-id + '-nodeId-' + \n                                             $tmp.srcdstpnf-id`\" />\n\n",\r
4310         "comments": "",\r
4311         "x": 5362,\r
4312         "y": 2527,\r
4313         "z": "df5c2cef.29f798",\r
4314         "wires": []\r
4315     },\r
4316     {\r
4317         "id": "1dbe2057.a5e62",\r
4318         "type": "get-resource",\r
4319         "name": "get-resource tmp.srcdstpnf-name",\r
4320         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n        pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
4321         "comments": "",\r
4322         "outputs": 1,\r
4323         "x": 5406,\r
4324         "y": 2575,\r
4325         "z": "df5c2cef.29f798",\r
4326         "wires": [\r
4327             [\r
4328                 "b817832b.d2bf5",\r
4329                 "fd3a55f8.c9d638",\r
4330                 "b887d27c.b753c8"\r
4331             ]\r
4332         ]\r
4333     },\r
4334     {\r
4335         "id": "b817832b.d2bf5",\r
4336         "type": "success",\r
4337         "name": "success",\r
4338         "xml": "<outcome value='success'>\n",\r
4339         "comments": "",\r
4340         "outputs": 1,\r
4341         "x": 5618.5,\r
4342         "y": 2522,\r
4343         "z": "df5c2cef.29f798",\r
4344         "wires": [\r
4345             [\r
4346                 "ad57831e.648c8"\r
4347             ]\r
4348         ]\r
4349     },\r
4350     {\r
4351         "id": "fd3a55f8.c9d638",\r
4352         "type": "not-found",\r
4353         "name": "not-found",\r
4354         "xml": "<outcome value='not-found'>\n",\r
4355         "comments": "",\r
4356         "outputs": 1,\r
4357         "x": 5630.5,\r
4358         "y": 2572,\r
4359         "z": "df5c2cef.29f798",\r
4360         "wires": [\r
4361             [\r
4362                 "b93496a6.69adc"\r
4363             ]\r
4364         ]\r
4365     },\r
4366     {\r
4367         "id": "b887d27c.b753c8",\r
4368         "type": "other",\r
4369         "name": "other",\r
4370         "xml": "<outcome value='Other'>\n",\r
4371         "comments": "",\r
4372         "outputs": 1,\r
4373         "x": 5621.5,\r
4374         "y": 2627,\r
4375         "z": "df5c2cef.29f798",\r
4376         "wires": [\r
4377             [\r
4378                 "b15272b2.6a6078"\r
4379             ]\r
4380         ]\r
4381     },\r
4382     {\r
4383         "id": "b15272b2.6a6078",\r
4384         "type": "returnFailure",\r
4385         "name": "return failure",\r
4386         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
4387         "comments": "",\r
4388         "x": 5766.5,\r
4389         "y": 2626,\r
4390         "z": "df5c2cef.29f798",\r
4391         "wires": []\r
4392     },\r
4393     {\r
4394         "id": "b93496a6.69adc",\r
4395         "type": "returnFailure",\r
4396         "name": "return failure",\r
4397         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
4398         "comments": "",\r
4399         "x": 5777.5,\r
4400         "y": 2569,\r
4401         "z": "df5c2cef.29f798",\r
4402         "wires": []\r
4403     },\r
4404     {\r
4405         "id": "ad57831e.648c8",\r
4406         "type": "block",\r
4407         "name": "block",\r
4408         "xml": "<block>\n",\r
4409         "atomic": "false",\r
4410         "comments": "",\r
4411         "outputs": 1,\r
4412         "x": 5743.8824462890625,\r
4413         "y": 2515.6556701660156,\r
4414         "z": "df5c2cef.29f798",\r
4415         "wires": [\r
4416             [\r
4417                 "de6a0737.bde95"\r
4418             ]\r
4419         ]\r
4420     },\r
4421     {\r
4422         "id": "8779930e.acaac",\r
4423         "type": "outcome",\r
4424         "name": "esr-thirdparty-sdnc",\r
4425         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
4426         "comments": "",\r
4427         "outputs": 1,\r
4428         "x": 6303,\r
4429         "y": 2534,\r
4430         "z": "df5c2cef.29f798",\r
4431         "wires": [\r
4432             [\r
4433                 "eb5cb5f4.6dd96"\r
4434             ]\r
4435         ]\r
4436     },\r
4437     {\r
4438         "id": "eb5cb5f4.6dd96",\r
4439         "type": "block",\r
4440         "name": "block : atomic",\r
4441         "xml": "<block atomic=\"true\">",\r
4442         "atomic": "true",\r
4443         "outputs": 1,\r
4444         "x": 6480,\r
4445         "y": 2526,\r
4446         "z": "df5c2cef.29f798",\r
4447         "wires": [\r
4448             [\r
4449                 "c49affc6.c8c2f",\r
4450                 "d02c8535.9950a"\r
4451             ]\r
4452         ]\r
4453     },\r
4454     {\r
4455         "id": "de6a0737.bde95",\r
4456         "type": "for",\r
4457         "name": "for each relationship",\r
4458         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
4459         "comments": "",\r
4460         "outputs": 1,\r
4461         "x": 5905,\r
4462         "y": 2530,\r
4463         "z": "df5c2cef.29f798",\r
4464         "wires": [\r
4465             [\r
4466                 "38bf0267.963d4e"\r
4467             ]\r
4468         ]\r
4469     },\r
4470     {\r
4471         "id": "38bf0267.963d4e",\r
4472         "type": "switchNode",\r
4473         "name": "switch related-to",\r
4474         "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
4475         "comments": "",\r
4476         "outputs": 1,\r
4477         "x": 6100,\r
4478         "y": 2530,\r
4479         "z": "df5c2cef.29f798",\r
4480         "wires": [\r
4481             [\r
4482                 "8779930e.acaac"\r
4483             ]\r
4484         ]\r
4485     },\r
4486     {\r
4487         "id": "d02c8535.9950a",\r
4488         "type": "execute",\r
4489         "name": "get esr-thirdparty-sdnc",\r
4490         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
4491         "comments": "",\r
4492         "outputs": 1,\r
4493         "x": 6688,\r
4494         "y": 2533,\r
4495         "z": "df5c2cef.29f798",\r
4496         "wires": [\r
4497             [\r
4498                 "cdad79e0.120d78",\r
4499                 "28e812c3.6536fe",\r
4500                 "4be09c5b.0037ec"\r
4501             ]\r
4502         ]\r
4503     },\r
4504     {\r
4505         "id": "c49affc6.c8c2f",\r
4506         "type": "set",\r
4507         "name": "set esr-thirdparty-sdnc domainG id",\r
4508         "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
4509         "comments": "",\r
4510         "x": 6718,\r
4511         "y": 2481,\r
4512         "z": "df5c2cef.29f798",\r
4513         "wires": []\r
4514     },\r
4515     {\r
4516         "id": "cdad79e0.120d78",\r
4517         "type": "success",\r
4518         "name": "success",\r
4519         "xml": "<outcome value='success'>\n",\r
4520         "comments": "",\r
4521         "outputs": 1,\r
4522         "x": 6898,\r
4523         "y": 2524,\r
4524         "z": "df5c2cef.29f798",\r
4525         "wires": [\r
4526             [\r
4527                 "131587f4.87c8f8"\r
4528             ]\r
4529         ]\r
4530     },\r
4531     {\r
4532         "id": "28e812c3.6536fe",\r
4533         "type": "not-found",\r
4534         "name": "not-found",\r
4535         "xml": "<outcome value='not-found'>\n",\r
4536         "comments": "",\r
4537         "outputs": 1,\r
4538         "x": 6890,\r
4539         "y": 2579,\r
4540         "z": "df5c2cef.29f798",\r
4541         "wires": [\r
4542             [\r
4543                 "f025d314.592c4"\r
4544             ]\r
4545         ]\r
4546     },\r
4547     {\r
4548         "id": "4be09c5b.0037ec",\r
4549         "type": "other",\r
4550         "name": "other",\r
4551         "xml": "<outcome value='Other'>\n",\r
4552         "comments": "",\r
4553         "outputs": 1,\r
4554         "x": 6895,\r
4555         "y": 2636,\r
4556         "z": "df5c2cef.29f798",\r
4557         "wires": [\r
4558             [\r
4559                 "ca734be9.796a3"\r
4560             ]\r
4561         ]\r
4562     },\r
4563     {\r
4564         "id": "ca734be9.796a3",\r
4565         "type": "returnFailure",\r
4566         "name": "return failure",\r
4567         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
4568         "comments": "",\r
4569         "x": 7047,\r
4570         "y": 2637,\r
4571         "z": "df5c2cef.29f798",\r
4572         "wires": []\r
4573     },\r
4574     {\r
4575         "id": "f025d314.592c4",\r
4576         "type": "returnFailure",\r
4577         "name": "return failure",\r
4578         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
4579         "comments": "",\r
4580         "x": 7058,\r
4581         "y": 2582,\r
4582         "z": "df5c2cef.29f798",\r
4583         "wires": []\r
4584     },\r
4585     {\r
4586         "id": "131587f4.87c8f8",\r
4587         "type": "block",\r
4588         "name": "block",\r
4589         "xml": "<block>\n",\r
4590         "atomic": "false",\r
4591         "comments": "",\r
4592         "outputs": 1,\r
4593         "x": 7042.38232421875,\r
4594         "y": 2521.6556701660156,\r
4595         "z": "df5c2cef.29f798",\r
4596         "wires": [\r
4597             [\r
4598                 "b10b1934.5f3698"\r
4599             ]\r
4600         ]\r
4601     },\r
4602     {\r
4603         "id": "b10b1934.5f3698",\r
4604         "type": "set",\r
4605         "name": "set controller domainA data",\r
4606         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
4607         "comments": "",\r
4608         "x": 7257,\r
4609         "y": 2518,\r
4610         "z": "df5c2cef.29f798",\r
4611         "wires": []\r
4612     },\r
4613     {\r
4614         "id": "a0b78348.a09218",\r
4615         "type": "block",\r
4616         "name": "block : atomic",\r
4617         "xml": "<block atomic='true'>",\r
4618         "atomic": "true",\r
4619         "comments": "",\r
4620         "outputs": 1,\r
4621         "x": 3873,\r
4622         "y": 4285,\r
4623         "z": "df5c2cef.29f798",\r
4624         "wires": [\r
4625             [\r
4626                 "d9387db0.98ab68",\r
4627                 "8c979de9.c09378"\r
4628             ]\r
4629         ]\r
4630     },\r
4631     {\r
4632         "id": "94fd6991.78fda",\r
4633         "type": "switchNode",\r
4634         "name": "switch dmnsidx == 0 (domainA)",\r
4635         "xml": "<switch test='`$otnidx == 0`'>\n",\r
4636         "comments": "",\r
4637         "outputs": 1,\r
4638         "x": 5376,\r
4639         "y": 2744,\r
4640         "z": "df5c2cef.29f798",\r
4641         "wires": [\r
4642             [\r
4643                 "a8dd9104.b00cc8",\r
4644                 "a5fa454e.c7391"\r
4645             ]\r
4646         ]\r
4647     },\r
4648     {\r
4649         "id": "a8dd9104.b00cc8",\r
4650         "type": "outcomeTrue",\r
4651         "name": "true",\r
4652         "xml": "<outcome value='true'>\n",\r
4653         "comments": "",\r
4654         "outputs": 1,\r
4655         "x": 5577,\r
4656         "y": 2742,\r
4657         "z": "df5c2cef.29f798",\r
4658         "wires": [\r
4659             [\r
4660                 "bde911bd.4178d"\r
4661             ]\r
4662         ]\r
4663     },\r
4664     {\r
4665         "id": "bde911bd.4178d",\r
4666         "type": "set",\r
4667         "name": "set attachment_param domain A",\r
4668         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
4669         "comments": "",\r
4670         "x": 5791,\r
4671         "y": 2744,\r
4672         "z": "df5c2cef.29f798",\r
4673         "wires": []\r
4674     },\r
4675     {\r
4676         "id": "99bcb408.94c238",\r
4677         "type": "switchNode",\r
4678         "name": "switch dmnsidx == last (domainB)",\r
4679         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
4680         "comments": "",\r
4681         "outputs": 1,\r
4682         "x": 5794,\r
4683         "y": 2793,\r
4684         "z": "df5c2cef.29f798",\r
4685         "wires": [\r
4686             [\r
4687                 "ba84b2ac.820f48",\r
4688                 "f2bc6a9d.359a1"\r
4689             ]\r
4690         ]\r
4691     },\r
4692     {\r
4693         "id": "ba84b2ac.820f48",\r
4694         "type": "outcomeTrue",\r
4695         "name": "true",\r
4696         "xml": "<outcome value='true'>\n",\r
4697         "comments": "",\r
4698         "outputs": 1,\r
4699         "x": 6024,\r
4700         "y": 2789,\r
4701         "z": "df5c2cef.29f798",\r
4702         "wires": [\r
4703             [\r
4704                 "7b7412c.2c058ec"\r
4705             ]\r
4706         ]\r
4707     },\r
4708     {\r
4709         "id": "7b7412c.2c058ec",\r
4710         "type": "set",\r
4711         "name": "set attachment_param domain B",\r
4712         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",\r
4713         "comments": "",\r
4714         "x": 6238,\r
4715         "y": 2792,\r
4716         "z": "df5c2cef.29f798",\r
4717         "wires": []\r
4718     },\r
4719     {\r
4720         "id": "a5fa454e.c7391",\r
4721         "type": "outcomeFalse",\r
4722         "name": "false",\r
4723         "xml": "<outcome value='false'>\n",\r
4724         "comments": "",\r
4725         "outputs": 1,\r
4726         "x": 5577,\r
4727         "y": 2791,\r
4728         "z": "df5c2cef.29f798",\r
4729         "wires": [\r
4730             [\r
4731                 "99bcb408.94c238"\r
4732             ]\r
4733         ]\r
4734     },\r
4735     {\r
4736         "id": "f2bc6a9d.359a1",\r
4737         "type": "outcomeFalse",\r
4738         "name": "false",\r
4739         "xml": "<outcome value='false'>\n",\r
4740         "comments": "",\r
4741         "outputs": 1,\r
4742         "x": 6025,\r
4743         "y": 2835,\r
4744         "z": "df5c2cef.29f798",\r
4745         "wires": [\r
4746             [\r
4747                 "97f6382c.08a66"\r
4748             ]\r
4749         ]\r
4750     },\r
4751     {\r
4752         "id": "97f6382c.08a66",\r
4753         "type": "set",\r
4754         "name": "set attachment_param domain G",\r
4755         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
4756         "comments": "",\r
4757         "x": 6239,\r
4758         "y": 2835,\r
4759         "z": "df5c2cef.29f798",\r
4760         "wires": []\r
4761     },\r
4762     {\r
4763         "id": "d5f9f3e8.876da8",\r
4764         "type": "set",\r
4765         "name": "set tmp.slicevpns",\r
4766         "xml": "<set>\n<parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n<parameter name='tmp.slicevpns_length' value=\"`$tmp.slicevpns_length + 1`\" />\n\n<parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n\n",\r
4767         "comments": "",\r
4768         "x": 6137,\r
4769         "y": 2884,\r
4770         "z": "df5c2cef.29f798",\r
4771         "wires": []\r
4772     },\r
4773     {\r
4774         "id": "45048a47.3aa5fc",\r
4775         "type": "switchNode",\r
4776         "name": "switch vpnuuid is for this slice",\r
4777         "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n    \n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `\">\n",\r
4778         "comments": "",\r
4779         "outputs": 1,\r
4780         "x": 4701,\r
4781         "y": 4108,\r
4782         "z": "df5c2cef.29f798",\r
4783         "wires": [\r
4784             [\r
4785                 "34a9fd7.c9a0402",\r
4786                 "a146c972.fd19c"\r
4787             ]\r
4788         ]\r
4789     },\r
4790     {\r
4791         "id": "34a9fd7.c9a0402",\r
4792         "type": "outcomeTrue",\r
4793         "name": "true",\r
4794         "xml": "<outcome value='true'>\n",\r
4795         "comments": "",\r
4796         "outputs": 1,\r
4797         "x": 4918,\r
4798         "y": 4087,\r
4799         "z": "df5c2cef.29f798",\r
4800         "wires": [\r
4801             [\r
4802                 "7c5ab1e1.aaf1f8"\r
4803             ]\r
4804         ]\r
4805     },\r
4806     {\r
4807         "id": "a146c972.fd19c",\r
4808         "type": "outcomeFalse",\r
4809         "name": "false",\r
4810         "xml": "<outcome value='false'>\n",\r
4811         "comments": "",\r
4812         "outputs": 1,\r
4813         "x": 4918,\r
4814         "y": 4136,\r
4815         "z": "df5c2cef.29f798",\r
4816         "wires": [\r
4817             []\r
4818         ]\r
4819     },\r
4820     {\r
4821         "id": "7c5ab1e1.aaf1f8",\r
4822         "type": "block",\r
4823         "name": "block : atomic",\r
4824         "xml": "<block atomic='true'>",\r
4825         "atomic": "true",\r
4826         "comments": "",\r
4827         "outputs": 1,\r
4828         "x": 5086,\r
4829         "y": 4087,\r
4830         "z": "df5c2cef.29f798",\r
4831         "wires": [\r
4832             [\r
4833                 "e7eee5b6.16e978",\r
4834                 "b5b6b6e5.2bc768"\r
4835             ]\r
4836         ]\r
4837     },\r
4838     {\r
4839         "id": "320f3490.61a614",\r
4840         "type": "save",\r
4841         "name": "get logical-link from aai",\r
4842         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
4843         "comments": "",\r
4844         "outputs": 1,\r
4845         "x": 1426,\r
4846         "y": 718,\r
4847         "z": "df5c2cef.29f798",\r
4848         "wires": [\r
4849             [\r
4850                 "653e0797.1d827",\r
4851                 "db86f5c5.803548",\r
4852                 "a788197d.0ee218"\r
4853             ]\r
4854         ]\r
4855     },\r
4856     {\r
4857         "id": "653e0797.1d827",\r
4858         "type": "not-found",\r
4859         "name": "not-found",\r
4860         "xml": "<outcome value='not-found'>\n",\r
4861         "comments": "",\r
4862         "outputs": 1,\r
4863         "x": 1638.490966796875,\r
4864         "y": 684.573974609375,\r
4865         "z": "df5c2cef.29f798",\r
4866         "wires": [\r
4867             [\r
4868                 "a3fdac41.0f5208"\r
4869             ]\r
4870         ]\r
4871     },\r
4872     {\r
4873         "id": "db86f5c5.803548",\r
4874         "type": "failure",\r
4875         "name": "failure",\r
4876         "xml": "<outcome value='failure'>\n",\r
4877         "comments": "",\r
4878         "outputs": 1,\r
4879         "x": 1627,\r
4880         "y": 729,\r
4881         "z": "df5c2cef.29f798",\r
4882         "wires": [\r
4883             [\r
4884                 "6b3d987f.3963e8"\r
4885             ]\r
4886         ]\r
4887     },\r
4888     {\r
4889         "id": "a3fdac41.0f5208",\r
4890         "type": "returnFailure",\r
4891         "name": "return failure",\r
4892         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
4893         "comments": "",\r
4894         "x": 1787.0625,\r
4895         "y": 684.8597412109375,\r
4896         "z": "df5c2cef.29f798",\r
4897         "wires": []\r
4898     },\r
4899     {\r
4900         "id": "6b3d987f.3963e8",\r
4901         "type": "returnFailure",\r
4902         "name": "return failure",\r
4903         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
4904         "comments": "",\r
4905         "x": 1786,\r
4906         "y": 729,\r
4907         "z": "df5c2cef.29f798",\r
4908         "wires": []\r
4909     },\r
4910     {\r
4911         "id": "a788197d.0ee218",\r
4912         "type": "success",\r
4913         "name": "success",\r
4914         "xml": "<outcome value='success'>\n",\r
4915         "comments": "",\r
4916         "outputs": 1,\r
4917         "x": 1632,\r
4918         "y": 772,\r
4919         "z": "df5c2cef.29f798",\r
4920         "wires": [\r
4921             [\r
4922                 "6f79cb60.ba682c"\r
4923             ]\r
4924         ]\r
4925     },\r
4926     {\r
4927         "id": "6f79cb60.ba682c",\r
4928         "type": "block",\r
4929         "name": "block : atomic",\r
4930         "xml": "<block atomic='true'>",\r
4931         "atomic": "true",\r
4932         "comments": "",\r
4933         "outputs": 1,\r
4934         "x": 778,\r
4935         "y": 1111,\r
4936         "z": "df5c2cef.29f798",\r
4937         "wires": [\r
4938             [\r
4939                 "b6c5466.cef2ab8"\r
4940             ]\r
4941         ]\r
4942     },\r
4943     {\r
4944         "id": "b6c5466.cef2ab8",\r
4945         "type": "for",\r
4946         "name": "for each svc-instance relationship",\r
4947         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
4948         "comments": "",\r
4949         "outputs": 1,\r
4950         "x": 1052,\r
4951         "y": 1111,\r
4952         "z": "df5c2cef.29f798",\r
4953         "wires": [\r
4954             [\r
4955                 "db0349a.25c5f38"\r
4956             ]\r
4957         ]\r
4958     },\r
4959     {\r
4960         "id": "db0349a.25c5f38",\r
4961         "type": "switchNode",\r
4962         "name": "switch related-to",\r
4963         "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
4964         "comments": "",\r
4965         "outputs": 1,\r
4966         "x": 1287.33349609375,\r
4967         "y": 1112,\r
4968         "z": "df5c2cef.29f798",\r
4969         "wires": [\r
4970             [\r
4971                 "e2db5406.ea53a8"\r
4972             ]\r
4973         ]\r
4974     },\r
4975     {\r
4976         "id": "e2db5406.ea53a8",\r
4977         "type": "outcome",\r
4978         "name": "connectivity",\r
4979         "xml": "<outcome value='connectivity'>\n",\r
4980         "comments": "",\r
4981         "outputs": 1,\r
4982         "x": 571.000244140625,\r
4983         "y": 1265,\r
4984         "z": "df5c2cef.29f798",\r
4985         "wires": [\r
4986             [\r
4987                 "4dfa6aad.834ec4"\r
4988             ]\r
4989         ]\r
4990     },\r
4991     {\r
4992         "id": "a29cb5bb.c12f3",\r
4993         "type": "save",\r
4994         "name": "get connectivity from aai",\r
4995         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
4996         "comments": "",\r
4997         "outputs": 1,\r
4998         "x": 960,\r
4999         "y": 1270,\r
5000         "z": "df5c2cef.29f798",\r
5001         "wires": [\r
5002             [\r
5003                 "c355a2e8.7aaf9",\r
5004                 "bfa7f0cb.443038",\r
5005                 "86dae01c.e8a7d8"\r
5006             ]\r
5007         ]\r
5008     },\r
5009     {\r
5010         "id": "c355a2e8.7aaf9",\r
5011         "type": "success",\r
5012         "name": "success",\r
5013         "xml": "<outcome value='success'>\n",\r
5014         "comments": "",\r
5015         "outputs": 1,\r
5016         "x": 1156,\r
5017         "y": 1235,\r
5018         "z": "df5c2cef.29f798",\r
5019         "wires": [\r
5020             [\r
5021                 "1f5a660e.de0452"\r
5022             ]\r
5023         ]\r
5024     },\r
5025     {\r
5026         "id": "bfa7f0cb.443038",\r
5027         "type": "not-found",\r
5028         "name": "not-found",\r
5029         "xml": "<outcome value='not-found'>\n",\r
5030         "comments": "",\r
5031         "outputs": 1,\r
5032         "x": 1156.490966796875,\r
5033         "y": 1280.5740356445312,\r
5034         "z": "df5c2cef.29f798",\r
5035         "wires": [\r
5036             [\r
5037                 "f567d172.d846a8"\r
5038             ]\r
5039         ]\r
5040     },\r
5041     {\r
5042         "id": "86dae01c.e8a7d8",\r
5043         "type": "failure",\r
5044         "name": "failure",\r
5045         "xml": "<outcome value='failure'>\n",\r
5046         "comments": "",\r
5047         "outputs": 1,\r
5048         "x": 1121,\r
5049         "y": 1326,\r
5050         "z": "df5c2cef.29f798",\r
5051         "wires": [\r
5052             [\r
5053                 "3f353c11.763704"\r
5054             ]\r
5055         ]\r
5056     },\r
5057     {\r
5058         "id": "f567d172.d846a8",\r
5059         "type": "returnFailure",\r
5060         "name": "return failure",\r
5061         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
5062         "comments": "",\r
5063         "x": 1316.0625,\r
5064         "y": 1277.8597412109375,\r
5065         "z": "df5c2cef.29f798",\r
5066         "wires": []\r
5067     },\r
5068     {\r
5069         "id": "3f353c11.763704",\r
5070         "type": "returnFailure",\r
5071         "name": "return failure",\r
5072         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5073         "comments": "",\r
5074         "x": 1274,\r
5075         "y": 1328,\r
5076         "z": "df5c2cef.29f798",\r
5077         "wires": []\r
5078     },\r
5079     {\r
5080         "id": "11174c12.9e5084",\r
5081         "type": "switchNode",\r
5082         "name": "switch loglink-id exists in conn",\r
5083         "xml": "<switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>\n",\r
5084         "comments": "",\r
5085         "outputs": 1,\r
5086         "x": 1549,\r
5087         "y": 1218,\r
5088         "z": "df5c2cef.29f798",\r
5089         "wires": [\r
5090             [\r
5091                 "b3297b62.15a2f",\r
5092                 "5b8a7e9c.a8c0b8"\r
5093             ]\r
5094         ]\r
5095     },\r
5096     {\r
5097         "id": "b3297b62.15a2f",\r
5098         "type": "outcomeTrue",\r
5099         "name": "true",\r
5100         "xml": "<outcome value='true'>\n",\r
5101         "comments": "",\r
5102         "outputs": 1,\r
5103         "x": 1760,\r
5104         "y": 1183,\r
5105         "z": "df5c2cef.29f798",\r
5106         "wires": [\r
5107             [\r
5108                 "1488db49.ce832d"\r
5109             ]\r
5110         ]\r
5111     },\r
5112     {\r
5113         "id": "5b8a7e9c.a8c0b8",\r
5114         "type": "outcomeFalse",\r
5115         "name": "false",\r
5116         "xml": "<outcome value='false'>\n",\r
5117         "comments": "",\r
5118         "outputs": 1,\r
5119         "x": 1757,\r
5120         "y": 1244,\r
5121         "z": "df5c2cef.29f798",\r
5122         "wires": [\r
5123             []\r
5124         ]\r
5125     },\r
5126     {\r
5127         "id": "3dd67f85.457d6",\r
5128         "type": "set",\r
5129         "name": "set currLinkIsFound",\r
5130         "xml": "<set>\n<parameter name='currLinkIsFound' value=\"true\" />\n\n\n",\r
5131         "comments": "",\r
5132         "x": 2098,\r
5133         "y": 1156,\r
5134         "z": "df5c2cef.29f798",\r
5135         "wires": []\r
5136     },\r
5137     {\r
5138         "id": "1488db49.ce832d",\r
5139         "type": "block",\r
5140         "name": "block : atomic",\r
5141         "xml": "<block atomic=\"true\">",\r
5142         "atomic": "true",\r
5143         "outputs": 1,\r
5144         "x": 1912,\r
5145         "y": 1184,\r
5146         "z": "df5c2cef.29f798",\r
5147         "wires": [\r
5148             [\r
5149                 "3dd67f85.457d6"\r
5150             ]\r
5151         ]\r
5152     },\r
5153     {\r
5154         "id": "17fda0a8.543d27",\r
5155         "type": "break",\r
5156         "name": "break",\r
5157         "xml": "<break>\n",\r
5158         "comments": "",\r
5159         "x": 2065,\r
5160         "y": 1212,\r
5161         "z": "df5c2cef.29f798",\r
5162         "wires": []\r
5163     },\r
5164     {\r
5165         "id": "9e795c2b.8794b8",\r
5166         "type": "comment",\r
5167         "name": "currLinkIsFound. Go to the next logical-link",\r
5168         "info": "",\r
5169         "comments": "",\r
5170         "x": 2070,\r
5171         "y": 1106,\r
5172         "z": "df5c2cef.29f798",\r
5173         "wires": []\r
5174     },\r
5175     {\r
5176         "id": "32833f1a.e66008",\r
5177         "type": "switchNode",\r
5178         "name": "switch currLinkIsFound",\r
5179         "xml": "<switch test='`$currLinkIsFound`'>\n",\r
5180         "comments": "",\r
5181         "outputs": 1,\r
5182         "x": 1352,\r
5183         "y": 836,\r
5184         "z": "df5c2cef.29f798",\r
5185         "wires": [\r
5186             [\r
5187                 "89a54b3d.dce24",\r
5188                 "e0be93c4.ec1bf"\r
5189             ]\r
5190         ]\r
5191     },\r
5192     {\r
5193         "id": "89a54b3d.dce24",\r
5194         "type": "outcomeTrue",\r
5195         "name": "true",\r
5196         "xml": "<outcome value='true'>\n",\r
5197         "comments": "",\r
5198         "outputs": 1,\r
5199         "x": 1538,\r
5200         "y": 815,\r
5201         "z": "df5c2cef.29f798",\r
5202         "wires": [\r
5203             [\r
5204                 "73540b39.f320f4"\r
5205             ]\r
5206         ]\r
5207     },\r
5208     {\r
5209         "id": "e0be93c4.ec1bf",\r
5210         "type": "outcomeFalse",\r
5211         "name": "false",\r
5212         "xml": "<outcome value='false'>\n",\r
5213         "comments": "",\r
5214         "outputs": 1,\r
5215         "x": 1535,\r
5216         "y": 951,\r
5217         "z": "df5c2cef.29f798",\r
5218         "wires": [\r
5219             [\r
5220                 "8fff13f1.763be8"\r
5221             ]\r
5222         ]\r
5223     },\r
5224     {\r
5225         "id": "73540b39.f320f4",\r
5226         "type": "block",\r
5227         "name": "block : atomic",\r
5228         "xml": "<block atomic=\"true\">",\r
5229         "atomic": "true",\r
5230         "outputs": 1,\r
5231         "x": 1780,\r
5232         "y": 810,\r
5233         "z": "df5c2cef.29f798",\r
5234         "wires": [\r
5235             []\r
5236         ]\r
5237     },\r
5238     {\r
5239         "id": "71783690.9edfa",\r
5240         "type": "comment",\r
5241         "name": "A new logical-link has been found: modify process should be triggered",\r
5242         "info": "",\r
5243         "comments": "",\r
5244         "x": 1726,\r
5245         "y": 914,\r
5246         "z": "df5c2cef.29f798",\r
5247         "wires": []\r
5248     },\r
5249     {\r
5250         "id": "1f5a660e.de0452",\r
5251         "type": "block",\r
5252         "name": "block : atomic",\r
5253         "xml": "<block atomic=\"true\">",\r
5254         "atomic": "true",\r
5255         "outputs": 1,\r
5256         "x": 1320,\r
5257         "y": 1219,\r
5258         "z": "df5c2cef.29f798",\r
5259         "wires": [\r
5260             [\r
5261                 "11174c12.9e5084",\r
5262                 "28a678cf.73375"\r
5263             ]\r
5264         ]\r
5265     },\r
5266     {\r
5267         "id": "28a678cf.73375",\r
5268         "type": "switchNode",\r
5269         "name": "switch connectivityBW == gfp",\r
5270         "xml": "<switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>\n",\r
5271         "comments": "",\r
5272         "outputs": 1,\r
5273         "x": 1550,\r
5274         "y": 1309,\r
5275         "z": "df5c2cef.29f798",\r
5276         "wires": [\r
5277             [\r
5278                 "7593ee23.7a5fc8",\r
5279                 "f472c4e4.19eb4"\r
5280             ]\r
5281         ]\r
5282     },\r
5283     {\r
5284         "id": "7593ee23.7a5fc8",\r
5285         "type": "outcomeTrue",\r
5286         "name": "true",\r
5287         "xml": "<outcome value='true'>\n",\r
5288         "comments": "",\r
5289         "outputs": 1,\r
5290         "x": 1755,\r
5291         "y": 1305,\r
5292         "z": "df5c2cef.29f798",\r
5293         "wires": [\r
5294             []\r
5295         ]\r
5296     },\r
5297     {\r
5298         "id": "f472c4e4.19eb4",\r
5299         "type": "outcomeFalse",\r
5300         "name": "false",\r
5301         "xml": "<outcome value='false'>\n",\r
5302         "comments": "",\r
5303         "outputs": 1,\r
5304         "x": 1757,\r
5305         "y": 1355,\r
5306         "z": "df5c2cef.29f798",\r
5307         "wires": [\r
5308             [\r
5309                 "a1ad62a5.377c38"\r
5310             ]\r
5311         ]\r
5312     },\r
5313     {\r
5314         "id": "dbf4dd89.edfbf8",\r
5315         "type": "set",\r
5316         "name": "set bwModified",\r
5317         "xml": "<set>\n<parameter name='bwModified' value=\"true\" />\n\n\n",\r
5318         "comments": "",\r
5319         "x": 2106,\r
5320         "y": 1333,\r
5321         "z": "df5c2cef.29f798",\r
5322         "wires": []\r
5323     },\r
5324     {\r
5325         "id": "a1ad62a5.377c38",\r
5326         "type": "block",\r
5327         "name": "block : atomic",\r
5328         "xml": "<block atomic=\"true\">",\r
5329         "atomic": "true",\r
5330         "outputs": 1,\r
5331         "x": 1911,\r
5332         "y": 1354,\r
5333         "z": "df5c2cef.29f798",\r
5334         "wires": [\r
5335             [\r
5336                 "dbf4dd89.edfbf8",\r
5337                 "8b32fc44.9a74b"\r
5338             ]\r
5339         ]\r
5340     },\r
5341     {\r
5342         "id": "8b32fc44.9a74b",\r
5343         "type": "for",\r
5344         "name": "for each relationship",\r
5345         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
5346         "comments": "",\r
5347         "outputs": 1,\r
5348         "x": 931,\r
5349         "y": 1559,\r
5350         "z": "df5c2cef.29f798",\r
5351         "wires": [\r
5352             [\r
5353                 "3a2b0e4e.390f2a"\r
5354             ]\r
5355         ]\r
5356     },\r
5357     {\r
5358         "id": "3a2b0e4e.390f2a",\r
5359         "type": "switchNode",\r
5360         "name": "switch related-to",\r
5361         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
5362         "comments": "",\r
5363         "outputs": 1,\r
5364         "x": 1136,\r
5365         "y": 1559,\r
5366         "z": "df5c2cef.29f798",\r
5367         "wires": [\r
5368             [\r
5369                 "8cc489a8.1663e8"\r
5370             ]\r
5371         ]\r
5372     },\r
5373     {\r
5374         "id": "8cc489a8.1663e8",\r
5375         "type": "outcome",\r
5376         "name": "vpn-binding",\r
5377         "xml": "<outcome value='vpn-binding'>\n",\r
5378         "comments": "",\r
5379         "outputs": 1,\r
5380         "x": 1302,\r
5381         "y": 1559,\r
5382         "z": "df5c2cef.29f798",\r
5383         "wires": [\r
5384             [\r
5385                 "39440cdd.73e4a4"\r
5386             ]\r
5387         ]\r
5388     },\r
5389     {\r
5390         "id": "39440cdd.73e4a4",\r
5391         "type": "block",\r
5392         "name": "block : atomic",\r
5393         "xml": "<block atomic=\"true\">",\r
5394         "atomic": "true",\r
5395         "outputs": 1,\r
5396         "x": 1465,\r
5397         "y": 1559,\r
5398         "z": "df5c2cef.29f798",\r
5399         "wires": [\r
5400             [\r
5401                 "e3ceb0b1.0227c",\r
5402                 "837372e0.8cfe9"\r
5403             ]\r
5404         ]\r
5405     },\r
5406     {\r
5407         "id": "837372e0.8cfe9",\r
5408         "type": "set",\r
5409         "name": "unset tmp.aai.vpn-binding",\r
5410         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
5411         "comments": "",\r
5412         "x": 1694,\r
5413         "y": 1499,\r
5414         "z": "df5c2cef.29f798",\r
5415         "wires": []\r
5416     },\r
5417     {\r
5418         "id": "e3ceb0b1.0227c",\r
5419         "type": "save",\r
5420         "name": "get vpn-binding from aai",\r
5421         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
5422         "comments": "",\r
5423         "outputs": 1,\r
5424         "x": 1203,\r
5425         "y": 1653,\r
5426         "z": "df5c2cef.29f798",\r
5427         "wires": [\r
5428             [\r
5429                 "53bbab14.df656c",\r
5430                 "656ddda.68726a4",\r
5431                 "3942f2bd.5b5c6e"\r
5432             ]\r
5433         ]\r
5434     },\r
5435     {\r
5436         "id": "ee3fab4d.b900c8",\r
5437         "type": "block",\r
5438         "name": "block : atomic",\r
5439         "xml": "<block atomic=\"true\">",\r
5440         "atomic": "true",\r
5441         "outputs": 1,\r
5442         "x": 1587,\r
5443         "y": 1653,\r
5444         "z": "df5c2cef.29f798",\r
5445         "wires": [\r
5446             [\r
5447                 "27f47760.daaf38",\r
5448                 "8574ddfc.4f71a8"\r
5449             ]\r
5450         ]\r
5451     },\r
5452     {\r
5453         "id": "53bbab14.df656c",\r
5454         "type": "success",\r
5455         "name": "success",\r
5456         "xml": "<outcome value='success'>\n",\r
5457         "comments": "",\r
5458         "outputs": 1,\r
5459         "x": 1414,\r
5460         "y": 1655,\r
5461         "z": "df5c2cef.29f798",\r
5462         "wires": [\r
5463             [\r
5464                 "ee3fab4d.b900c8"\r
5465             ]\r
5466         ]\r
5467     },\r
5468     {\r
5469         "id": "656ddda.68726a4",\r
5470         "type": "not-found",\r
5471         "name": "not-found",\r
5472         "xml": "<outcome value='not-found'>\n",\r
5473         "comments": "",\r
5474         "outputs": 1,\r
5475         "x": 1414.490966796875,\r
5476         "y": 1700.5740356445312,\r
5477         "z": "df5c2cef.29f798",\r
5478         "wires": [\r
5479             [\r
5480                 "a14bcd53.80dad"\r
5481             ]\r
5482         ]\r
5483     },\r
5484     {\r
5485         "id": "3942f2bd.5b5c6e",\r
5486         "type": "failure",\r
5487         "name": "failure",\r
5488         "xml": "<outcome value='failure'>\n",\r
5489         "comments": "",\r
5490         "outputs": 1,\r
5491         "x": 1412,\r
5492         "y": 1744,\r
5493         "z": "df5c2cef.29f798",\r
5494         "wires": [\r
5495             [\r
5496                 "3d036bfb.d96184"\r
5497             ]\r
5498         ]\r
5499     },\r
5500     {\r
5501         "id": "3d036bfb.d96184",\r
5502         "type": "returnFailure",\r
5503         "name": "return failure",\r
5504         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5505         "comments": "",\r
5506         "x": 1579,\r
5507         "y": 1761,\r
5508         "z": "df5c2cef.29f798",\r
5509         "wires": []\r
5510     },\r
5511     {\r
5512         "id": "a14bcd53.80dad",\r
5513         "type": "returnFailure",\r
5514         "name": "return failure",\r
5515         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
5516         "comments": "",\r
5517         "x": 1577.0623779296875,\r
5518         "y": 1700.8597717285156,\r
5519         "z": "df5c2cef.29f798",\r
5520         "wires": []\r
5521     },\r
5522     {\r
5523         "id": "4dfa6aad.834ec4",\r
5524         "type": "block",\r
5525         "name": "block : atomic",\r
5526         "xml": "<block atomic=\"true\">",\r
5527         "atomic": "true",\r
5528         "outputs": 1,\r
5529         "x": 743,\r
5530         "y": 1265,\r
5531         "z": "df5c2cef.29f798",\r
5532         "wires": [\r
5533             [\r
5534                 "a29cb5bb.c12f3",\r
5535                 "ff2edf17.9b8f3"\r
5536             ]\r
5537         ]\r
5538     },\r
5539     {\r
5540         "id": "ff2edf17.9b8f3",\r
5541         "type": "set",\r
5542         "name": "unset tmp.aai.connectivity",\r
5543         "xml": "<set>\n<parameter name='tmp.aai.connectivity.' value='' />\n",\r
5544         "comments": "",\r
5545         "x": 963,\r
5546         "y": 1213,\r
5547         "z": "df5c2cef.29f798",\r
5548         "wires": []\r
5549     },\r
5550     {\r
5551         "id": "27f47760.daaf38",\r
5552         "type": "save",\r
5553         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
5554         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n",\r
5555         "comments": "",\r
5556         "outputs": 1,\r
5557         "x": 1937.5,\r
5558         "y": 1648,\r
5559         "z": "df5c2cef.29f798",\r
5560         "wires": [\r
5561             []\r
5562         ]\r
5563     },\r
5564     {\r
5565         "id": "8574ddfc.4f71a8",\r
5566         "type": "save",\r
5567         "name": "update connectivity resource in AAI",\r
5568         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n",\r
5569         "comments": "",\r
5570         "outputs": 1,\r
5571         "x": 1864.5,\r
5572         "y": 1712,\r
5573         "z": "df5c2cef.29f798",\r
5574         "wires": [\r
5575             []\r
5576         ]\r
5577     }\r
5578 ]