47e80d28196f2c5af534549d0958e939bd4fd111
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json
1 [\r
2     {\r
3         "id": "b3b9455c.251fb8",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 107,\r
8         "y": 110,\r
9         "z": "cd8c161.e76ffe8",\r
10         "wires": [\r
11             [\r
12                 "5661f4c7.6e8104"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "5661f4c7.6e8104",\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": 391.2856903076172,\r
26         "y": 171.23810863494873,\r
27         "z": "cd8c161.e76ffe8",\r
28         "wires": [\r
29             [\r
30                 "47f23ec8.713ca"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "47f23ec8.713ca",\r
36         "type": "method",\r
37         "name": "method tsli-vnf-topology-operation-trans-slice-allocate",\r
38         "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 397.42860412597656,\r
42         "y": 256.0000305175781,\r
43         "z": "cd8c161.e76ffe8",\r
44         "wires": [\r
45             [\r
46                 "909d5d01.2efc9"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "909d5d01.2efc9",\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": 767.238037109375,\r
58         "y": 280.66668701171875,\r
59         "z": "cd8c161.e76ffe8",\r
60         "wires": [\r
61             [\r
62                 "c5df95a2.6c697",\r
63                 "a851f151.681188",\r
64                 "4430b278.87d9ac"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "c5df95a2.6c697",\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": 1068.571533203125,\r
75         "y": 551.5969848632812,\r
76         "z": "cd8c161.e76ffe8",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "a851f151.681188",\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": 1090,\r
87         "y": 254,\r
88         "z": "cd8c161.e76ffe8",\r
89         "wires": [\r
90             [\r
91                 "bee2d1fb.fc819",\r
92                 "706fc8bb.926d88",\r
93                 "b5dbfca1.6b8958"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "bee2d1fb.fc819",\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": 1315,\r
105         "y": 112,\r
106         "z": "cd8c161.e76ffe8",\r
107         "wires": [\r
108             [\r
109                 "e14cb882.1a5158"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "706fc8bb.926d88",\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": 1310.490966796875,\r
121         "y": 181.57403564453125,\r
122         "z": "cd8c161.e76ffe8",\r
123         "wires": [\r
124             [\r
125                 "5cbb540f.81c364"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "b5dbfca1.6b8958",\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": 1299,\r
137         "y": 228,\r
138         "z": "cd8c161.e76ffe8",\r
139         "wires": [\r
140             [\r
141                 "bd99daf8.5c5508"\r
142             ]\r
143         ]\r
144     },\r
145     {\r
146         "id": "e14cb882.1a5158",\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": 1554,\r
153         "y": 109,\r
154         "z": "cd8c161.e76ffe8",\r
155         "wires": [\r
156             [\r
157                 "6386b942.401658",\r
158                 "736cbc7f.84dcc4"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "5cbb540f.81c364",\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": 1464.0623779296875,\r
169         "y": 184.85977172851562,\r
170         "z": "cd8c161.e76ffe8",\r
171         "wires": []\r
172     },\r
173     {\r
174         "id": "bd99daf8.5c5508",\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": 1468,\r
180         "y": 229,\r
181         "z": "cd8c161.e76ffe8",\r
182         "wires": []\r
183     },\r
184     {\r
185         "id": "6386b942.401658",\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": 1767,\r
192         "y": 133,\r
193         "z": "cd8c161.e76ffe8",\r
194         "wires": [\r
195             [\r
196                 "bdbad755.d12dc8"\r
197             ]\r
198         ]\r
199     },\r
200     {\r
201         "id": "736cbc7f.84dcc4",\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": 1769,\r
208         "y": 73,\r
209         "z": "cd8c161.e76ffe8",\r
210         "wires": [\r
211             []\r
212         ]\r
213     },\r
214     {\r
215         "id": "73516434.8b694c",\r
216         "type": "comment",\r
217         "name": "new for TransportSlicing",\r
218         "info": "",\r
219         "comments": "",\r
220         "x": 1069,\r
221         "y": 142,\r
222         "z": "cd8c161.e76ffe8",\r
223         "wires": []\r
224     },\r
225     {\r
226         "id": "bdbad755.d12dc8",\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": 1752,\r
234         "y": 221,\r
235         "z": "cd8c161.e76ffe8",\r
236         "wires": [\r
237             [\r
238                 "3b75dc28.79bec4",\r
239                 "5d2f9da2.d38694",\r
240                 "48979781.1681f8",\r
241                 "93c183ce.0a9ed8",\r
242                 "5d8a5506.b8ac8c",\r
243                 "a26db7da.175a4"\r
244             ]\r
245         ]\r
246     },\r
247     {\r
248         "id": "31cf85b5.906fca",\r
249         "type": "set",\r
250         "name": "set network-route-A",\r
251         "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
252         "comments": "",\r
253         "x": 2615,\r
254         "y": 821,\r
255         "z": "cd8c161.e76ffe8",\r
256         "wires": []\r
257     },\r
258     {\r
259         "id": "db907b5a.2ae538",\r
260         "type": "set",\r
261         "name": "set network-route-B",\r
262         "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
263         "comments": "",\r
264         "x": 2616,\r
265         "y": 876,\r
266         "z": "cd8c161.e76ffe8",\r
267         "wires": []\r
268     },\r
269     {\r
270         "id": "fea2a65.c94cf58",\r
271         "type": "save",\r
272         "name": "get allotted-resource from aai",\r
273         "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
274         "comments": "",\r
275         "outputs": 1,\r
276         "x": 2238,\r
277         "y": 272,\r
278         "z": "cd8c161.e76ffe8",\r
279         "wires": [\r
280             [\r
281                 "87df4589.584858",\r
282                 "635af784.3cb32",\r
283                 "22a4a39b.dd73ec"\r
284             ]\r
285         ]\r
286     },\r
287     {\r
288         "id": "87df4589.584858",\r
289         "type": "success",\r
290         "name": "success",\r
291         "xml": "<outcome value='success'>\n",\r
292         "comments": "",\r
293         "outputs": 1,\r
294         "x": 2454,\r
295         "y": 339,\r
296         "z": "cd8c161.e76ffe8",\r
297         "wires": [\r
298             [\r
299                 "8e0be879.699538"\r
300             ]\r
301         ]\r
302     },\r
303     {\r
304         "id": "635af784.3cb32",\r
305         "type": "not-found",\r
306         "name": "not-found",\r
307         "xml": "<outcome value='not-found'>\n",\r
308         "comments": "",\r
309         "outputs": 1,\r
310         "x": 2454.490966796875,\r
311         "y": 238.573974609375,\r
312         "z": "cd8c161.e76ffe8",\r
313         "wires": [\r
314             [\r
315                 "84ac682e.b78a08"\r
316             ]\r
317         ]\r
318     },\r
319     {\r
320         "id": "22a4a39b.dd73ec",\r
321         "type": "failure",\r
322         "name": "failure",\r
323         "xml": "<outcome value='failure'>\n",\r
324         "comments": "",\r
325         "outputs": 1,\r
326         "x": 2450,\r
327         "y": 288,\r
328         "z": "cd8c161.e76ffe8",\r
329         "wires": [\r
330             [\r
331                 "b2061dbc.0548c8"\r
332             ]\r
333         ]\r
334     },\r
335     {\r
336         "id": "84ac682e.b78a08",\r
337         "type": "returnFailure",\r
338         "name": "return failure",\r
339         "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
340         "comments": "",\r
341         "x": 2632.0625,\r
342         "y": 238.8597412109375,\r
343         "z": "cd8c161.e76ffe8",\r
344         "wires": []\r
345     },\r
346     {\r
347         "id": "b2061dbc.0548c8",\r
348         "type": "returnFailure",\r
349         "name": "return failure",\r
350         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
351         "comments": "",\r
352         "x": 2632,\r
353         "y": 288,\r
354         "z": "cd8c161.e76ffe8",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "358e179e.99b9f",\r
359         "type": "save",\r
360         "name": "get logical-link from aai",\r
361         "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
362         "comments": "",\r
363         "outputs": 1,\r
364         "x": 1973,\r
365         "y": 761,\r
366         "z": "cd8c161.e76ffe8",\r
367         "wires": [\r
368             [\r
369                 "e260aa07.d4c01",\r
370                 "9ec9d813.5ed0f",\r
371                 "46b462c7.130bb4"\r
372             ]\r
373         ]\r
374     },\r
375     {\r
376         "id": "e260aa07.d4c01",\r
377         "type": "not-found",\r
378         "name": "not-found",\r
379         "xml": "<outcome value='not-found'>\n",\r
380         "comments": "",\r
381         "outputs": 1,\r
382         "x": 2264.490966796875,\r
383         "y": 739.573974609375,\r
384         "z": "cd8c161.e76ffe8",\r
385         "wires": [\r
386             [\r
387                 "c2b6bbd8.3d5eb8"\r
388             ]\r
389         ]\r
390     },\r
391     {\r
392         "id": "9ec9d813.5ed0f",\r
393         "type": "failure",\r
394         "name": "failure",\r
395         "xml": "<outcome value='failure'>\n",\r
396         "comments": "",\r
397         "outputs": 1,\r
398         "x": 2253,\r
399         "y": 784,\r
400         "z": "cd8c161.e76ffe8",\r
401         "wires": [\r
402             [\r
403                 "1e57c51f.2af7db"\r
404             ]\r
405         ]\r
406     },\r
407     {\r
408         "id": "c2b6bbd8.3d5eb8",\r
409         "type": "returnFailure",\r
410         "name": "return failure",\r
411         "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
412         "comments": "",\r
413         "x": 2413.0625,\r
414         "y": 739.8597412109375,\r
415         "z": "cd8c161.e76ffe8",\r
416         "wires": []\r
417     },\r
418     {\r
419         "id": "1e57c51f.2af7db",\r
420         "type": "returnFailure",\r
421         "name": "return failure",\r
422         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
423         "comments": "",\r
424         "x": 2412,\r
425         "y": 784,\r
426         "z": "cd8c161.e76ffe8",\r
427         "wires": []\r
428     },\r
429     {\r
430         "id": "46b462c7.130bb4",\r
431         "type": "success",\r
432         "name": "success",\r
433         "xml": "<outcome value='success'>\n",\r
434         "comments": "",\r
435         "outputs": 1,\r
436         "x": 2260,\r
437         "y": 863,\r
438         "z": "cd8c161.e76ffe8",\r
439         "wires": [\r
440             [\r
441                 "9b6c334b.ffcfb8"\r
442             ]\r
443         ]\r
444     },\r
445     {\r
446         "id": "9b6c334b.ffcfb8",\r
447         "type": "block",\r
448         "name": "block",\r
449         "xml": "<block>\n",\r
450         "atomic": "false",\r
451         "comments": "",\r
452         "outputs": 1,\r
453         "x": 2399,\r
454         "y": 863,\r
455         "z": "cd8c161.e76ffe8",\r
456         "wires": [\r
457             [\r
458                 "31cf85b5.906fca",\r
459                 "db907b5a.2ae538",\r
460                 "b99c062f.cc8e2",\r
461                 "f8919e28.817698",\r
462                 "63c0978f.6d4218",\r
463                 "256b3f1a.6b05f8",\r
464                 "72dba682.c63c9",\r
465                 "1b6d1c66.bc0bb4",\r
466                 "d6aa9ec.33fa46",\r
467                 "6c32ab13.072304",\r
468                 "35f98555.2ceed2",\r
469                 "63cf541.20dacac"\r
470             ]\r
471         ]\r
472     },\r
473     {\r
474         "id": "b99c062f.cc8e2",\r
475         "type": "save",\r
476         "name": "get network-route-A from aai",\r
477         "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
478         "comments": "",\r
479         "outputs": 1,\r
480         "x": 2628,\r
481         "y": 944,\r
482         "z": "cd8c161.e76ffe8",\r
483         "wires": [\r
484             [\r
485                 "177d33ef.653acc",\r
486                 "b808d106.b2a7e8",\r
487                 "99bf3e88.29ecb8"\r
488             ]\r
489         ]\r
490     },\r
491     {\r
492         "id": "f8919e28.817698",\r
493         "type": "save",\r
494         "name": "get network-route-B from aai",\r
495         "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
496         "comments": "",\r
497         "outputs": 1,\r
498         "x": 2607,\r
499         "y": 1545.9998779296875,\r
500         "z": "cd8c161.e76ffe8",\r
501         "wires": [\r
502             [\r
503                 "e551771e.c49a78",\r
504                 "c096bcbd.1a977",\r
505                 "cd719142.8f5fd8"\r
506             ]\r
507         ]\r
508     },\r
509     {\r
510         "id": "177d33ef.653acc",\r
511         "type": "not-found",\r
512         "name": "not-found",\r
513         "xml": "<outcome value='not-found'>\n",\r
514         "comments": "",\r
515         "outputs": 1,\r
516         "x": 2829,\r
517         "y": 828,\r
518         "z": "cd8c161.e76ffe8",\r
519         "wires": [\r
520             [\r
521                 "60c8d868.cb0f38"\r
522             ]\r
523         ]\r
524     },\r
525     {\r
526         "id": "b808d106.b2a7e8",\r
527         "type": "failure",\r
528         "name": "failure",\r
529         "xml": "<outcome value='failure'>\n",\r
530         "comments": "",\r
531         "outputs": 1,\r
532         "x": 2824.509033203125,\r
533         "y": 877.426025390625,\r
534         "z": "cd8c161.e76ffe8",\r
535         "wires": [\r
536             [\r
537                 "8912eaa6.91a52"\r
538             ]\r
539         ]\r
540     },\r
541     {\r
542         "id": "99bf3e88.29ecb8",\r
543         "type": "success",\r
544         "name": "success",\r
545         "xml": "<outcome value='success'>\n",\r
546         "comments": "",\r
547         "outputs": 1,\r
548         "x": 2828.509033203125,\r
549         "y": 928.426025390625,\r
550         "z": "cd8c161.e76ffe8",\r
551         "wires": [\r
552             [\r
553                 "f8cee9a2.f0a618"\r
554             ]\r
555         ]\r
556     },\r
557     {\r
558         "id": "60c8d868.cb0f38",\r
559         "type": "returnFailure",\r
560         "name": "return failure",\r
561         "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
562         "comments": "",\r
563         "x": 2977.571533203125,\r
564         "y": 827.2857666015625,\r
565         "z": "cd8c161.e76ffe8",\r
566         "wires": []\r
567     },\r
568     {\r
569         "id": "8912eaa6.91a52",\r
570         "type": "returnFailure",\r
571         "name": "return failure",\r
572         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
573         "comments": "",\r
574         "x": 2967.509033203125,\r
575         "y": 877.426025390625,\r
576         "z": "cd8c161.e76ffe8",\r
577         "wires": []\r
578     },\r
579     {\r
580         "id": "e551771e.c49a78",\r
581         "type": "not-found",\r
582         "name": "not-found",\r
583         "xml": "<outcome value='not-found'>\n",\r
584         "comments": "",\r
585         "outputs": 1,\r
586         "x": 2830,\r
587         "y": 1515.9998779296875,\r
588         "z": "cd8c161.e76ffe8",\r
589         "wires": [\r
590             [\r
591                 "ae022a7b.5f0fc"\r
592             ]\r
593         ]\r
594     },\r
595     {\r
596         "id": "c096bcbd.1a977",\r
597         "type": "failure",\r
598         "name": "failure",\r
599         "xml": "<outcome value='failure'>\n",\r
600         "comments": "",\r
601         "outputs": 1,\r
602         "x": 2825.509033203125,\r
603         "y": 1565.4259033203125,\r
604         "z": "cd8c161.e76ffe8",\r
605         "wires": [\r
606             [\r
607                 "2c76b27.1b72ace"\r
608             ]\r
609         ]\r
610     },\r
611     {\r
612         "id": "cd719142.8f5fd8",\r
613         "type": "success",\r
614         "name": "success",\r
615         "xml": "<outcome value='success'>\n",\r
616         "comments": "",\r
617         "outputs": 1,\r
618         "x": 2829.509033203125,\r
619         "y": 1616.4259033203125,\r
620         "z": "cd8c161.e76ffe8",\r
621         "wires": [\r
622             [\r
623                 "e3f74bb4.409b5"\r
624             ]\r
625         ]\r
626     },\r
627     {\r
628         "id": "ae022a7b.5f0fc",\r
629         "type": "returnFailure",\r
630         "name": "return failure",\r
631         "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
632         "comments": "",\r
633         "x": 2978.571533203125,\r
634         "y": 1515.28564453125,\r
635         "z": "cd8c161.e76ffe8",\r
636         "wires": []\r
637     },\r
638     {\r
639         "id": "2c76b27.1b72ace",\r
640         "type": "returnFailure",\r
641         "name": "return failure",\r
642         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
643         "comments": "",\r
644         "x": 2968.509033203125,\r
645         "y": 1565.4259033203125,\r
646         "z": "cd8c161.e76ffe8",\r
647         "wires": []\r
648     },\r
649     {\r
650         "id": "194cc348.04e4bd",\r
651         "type": "block",\r
652         "name": "block : atomic",\r
653         "xml": "<block atomic=\"true\">",\r
654         "atomic": "true",\r
655         "outputs": 1,\r
656         "x": 3642.66650390625,\r
657         "y": 972,\r
658         "z": "cd8c161.e76ffe8",\r
659         "wires": [\r
660             [\r
661                 "e0f54a30.b97458",\r
662                 "6e8fe0e8.771d7",\r
663                 "2d7aee5e.4b3492",\r
664                 "d2697672.e5142",\r
665                 "c6965465.aeb14"\r
666             ]\r
667         ]\r
668     },\r
669     {\r
670         "id": "c1db8d6e.967fa8",\r
671         "type": "success",\r
672         "name": "success",\r
673         "xml": "<outcome value='success'>\n",\r
674         "comments": "",\r
675         "outputs": 1,\r
676         "x": 3470,\r
677         "y": 973,\r
678         "z": "cd8c161.e76ffe8",\r
679         "wires": [\r
680             [\r
681                 "194cc348.04e4bd"\r
682             ]\r
683         ]\r
684     },\r
685     {\r
686         "id": "ea169f9.1e78f6",\r
687         "type": "not-found",\r
688         "name": "not-found",\r
689         "xml": "<outcome value='not-found'>\n",\r
690         "comments": "",\r
691         "outputs": 1,\r
692         "x": 3479.490966796875,\r
693         "y": 1015.5740356445312,\r
694         "z": "cd8c161.e76ffe8",\r
695         "wires": [\r
696             [\r
697                 "9dbcf7c3.d03228"\r
698             ]\r
699         ]\r
700     },\r
701     {\r
702         "id": "b37256ee.6a59a",\r
703         "type": "failure",\r
704         "name": "failure",\r
705         "xml": "<outcome value='failure'>\n",\r
706         "comments": "",\r
707         "outputs": 1,\r
708         "x": 3468,\r
709         "y": 1062,\r
710         "z": "cd8c161.e76ffe8",\r
711         "wires": [\r
712             [\r
713                 "78909f5b.c256b8"\r
714             ]\r
715         ]\r
716     },\r
717     {\r
718         "id": "9dbcf7c3.d03228",\r
719         "type": "returnFailure",\r
720         "name": "return failure",\r
721         "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
722         "comments": "",\r
723         "x": 3633.0623779296875,\r
724         "y": 1018.8597717285156,\r
725         "z": "cd8c161.e76ffe8",\r
726         "wires": []\r
727     },\r
728     {\r
729         "id": "78909f5b.c256b8",\r
730         "type": "returnFailure",\r
731         "name": "return failure",\r
732         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
733         "comments": "",\r
734         "x": 3637,\r
735         "y": 1063,\r
736         "z": "cd8c161.e76ffe8",\r
737         "wires": []\r
738     },\r
739     {\r
740         "id": "f8cee9a2.f0a618",\r
741         "type": "block",\r
742         "name": "block : atomic",\r
743         "xml": "<block atomic=\"true\">",\r
744         "atomic": "true",\r
745         "outputs": 1,\r
746         "x": 2990,\r
747         "y": 930,\r
748         "z": "cd8c161.e76ffe8",\r
749         "wires": [\r
750             [\r
751                 "bd63f21f.6d97a",\r
752                 "bcdc8dc3.72d61"\r
753             ]\r
754         ]\r
755     },\r
756     {\r
757         "id": "e3f74bb4.409b5",\r
758         "type": "block",\r
759         "name": "block : atomic",\r
760         "xml": "<block atomic=\"true\">",\r
761         "atomic": "true",\r
762         "outputs": 1,\r
763         "x": 2980,\r
764         "y": 1617.9998779296875,\r
765         "z": "cd8c161.e76ffe8",\r
766         "wires": [\r
767             [\r
768                 "d9529ce2.4ca64",\r
769                 "68b3ff1a.0849f"\r
770             ]\r
771         ]\r
772     },\r
773     {\r
774         "id": "1bc4a1b0.e8f4e6",\r
775         "type": "block",\r
776         "name": "block : atomic",\r
777         "xml": "<block atomic=\"true\">",\r
778         "atomic": "true",\r
779         "outputs": 1,\r
780         "x": 3610.66650390625,\r
781         "y": 1808,\r
782         "z": "cd8c161.e76ffe8",\r
783         "wires": [\r
784             [\r
785                 "6b02eeb7.bc53e8",\r
786                 "aa3dffa0.a80a58",\r
787                 "ce63ac06.8bd44",\r
788                 "c950727d.3e1368",\r
789                 "83539382.7676b8"\r
790             ]\r
791         ]\r
792     },\r
793     {\r
794         "id": "206889a2.ad62d6",\r
795         "type": "success",\r
796         "name": "success",\r
797         "xml": "<outcome value='success'>\n",\r
798         "comments": "",\r
799         "outputs": 1,\r
800         "x": 3438,\r
801         "y": 1809,\r
802         "z": "cd8c161.e76ffe8",\r
803         "wires": [\r
804             [\r
805                 "1bc4a1b0.e8f4e6"\r
806             ]\r
807         ]\r
808     },\r
809     {\r
810         "id": "eceddf53.8343c8",\r
811         "type": "not-found",\r
812         "name": "not-found",\r
813         "xml": "<outcome value='not-found'>\n",\r
814         "comments": "",\r
815         "outputs": 1,\r
816         "x": 3447.490966796875,\r
817         "y": 1851.5740356445312,\r
818         "z": "cd8c161.e76ffe8",\r
819         "wires": [\r
820             [\r
821                 "89316d2b.d76a7"\r
822             ]\r
823         ]\r
824     },\r
825     {\r
826         "id": "9f6e2dae.f13bd8",\r
827         "type": "failure",\r
828         "name": "failure",\r
829         "xml": "<outcome value='failure'>\n",\r
830         "comments": "",\r
831         "outputs": 1,\r
832         "x": 3436,\r
833         "y": 1898,\r
834         "z": "cd8c161.e76ffe8",\r
835         "wires": [\r
836             [\r
837                 "ff7b6926.fc1f5"\r
838             ]\r
839         ]\r
840     },\r
841     {\r
842         "id": "89316d2b.d76a7",\r
843         "type": "returnFailure",\r
844         "name": "return failure",\r
845         "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
846         "comments": "",\r
847         "x": 3601.0623779296875,\r
848         "y": 1854.8597717285156,\r
849         "z": "cd8c161.e76ffe8",\r
850         "wires": []\r
851     },\r
852     {\r
853         "id": "ff7b6926.fc1f5",\r
854         "type": "returnFailure",\r
855         "name": "return failure",\r
856         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
857         "comments": "",\r
858         "x": 3605,\r
859         "y": 1899,\r
860         "z": "cd8c161.e76ffe8",\r
861         "wires": []\r
862     },\r
863     {\r
864         "id": "e0f54a30.b97458",\r
865         "type": "execute",\r
866         "name": "execute split tp-id to get pnf-name",\r
867         "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
868         "comments": "",\r
869         "outputs": 1,\r
870         "x": 3907,\r
871         "y": 956,\r
872         "z": "cd8c161.e76ffe8",\r
873         "wires": [\r
874             [\r
875                 "8a48ffc4.99708",\r
876                 "9768c48e.e91b5"\r
877             ]\r
878         ]\r
879     },\r
880     {\r
881         "id": "9768c48e.e91b5",\r
882         "type": "failure",\r
883         "name": "success",\r
884         "xml": "<outcome value='success'>\n",\r
885         "comments": "",\r
886         "outputs": 1,\r
887         "x": 4130,\r
888         "y": 911,\r
889         "z": "cd8c161.e76ffe8",\r
890         "wires": [\r
891             [\r
892                 "704965d2.1b9644"\r
893             ]\r
894         ]\r
895     },\r
896     {\r
897         "id": "8a48ffc4.99708",\r
898         "type": "failure",\r
899         "name": "failure",\r
900         "xml": "<outcome value='failure'>\n",\r
901         "comments": "",\r
902         "outputs": 1,\r
903         "x": 4132,\r
904         "y": 975,\r
905         "z": "cd8c161.e76ffe8",\r
906         "wires": [\r
907             [\r
908                 "5140e6b9.7a9158"\r
909             ]\r
910         ]\r
911     },\r
912     {\r
913         "id": "b8a9d793.4e0ca",\r
914         "type": "set",\r
915         "name": "set ltpId",\r
916         "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
917         "comments": "",\r
918         "x": 4465,\r
919         "y": 866,\r
920         "z": "cd8c161.e76ffe8",\r
921         "wires": []\r
922     },\r
923     {\r
924         "id": "5140e6b9.7a9158",\r
925         "type": "returnFailure",\r
926         "name": "return failure",\r
927         "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
928         "comments": "",\r
929         "x": 4294,\r
930         "y": 971,\r
931         "z": "cd8c161.e76ffe8",\r
932         "wires": []\r
933     },\r
934     {\r
935         "id": "704965d2.1b9644",\r
936         "type": "block",\r
937         "name": "block : atomic",\r
938         "xml": "<block atomic=\"true\">",\r
939         "atomic": "true",\r
940         "outputs": 1,\r
941         "x": 4295,\r
942         "y": 908,\r
943         "z": "cd8c161.e76ffe8",\r
944         "wires": [\r
945             [\r
946                 "c30e1911.559b98",\r
947                 "b8a9d793.4e0ca"\r
948             ]\r
949         ]\r
950     },\r
951     {\r
952         "id": "c30e1911.559b98",\r
953         "type": "set",\r
954         "name": "set pnf-name",\r
955         "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
956         "comments": "",\r
957         "x": 4466,\r
958         "y": 974,\r
959         "z": "cd8c161.e76ffe8",\r
960         "wires": []\r
961     },\r
962     {\r
963         "id": "6b71df66.ebc0e",\r
964         "type": "comment",\r
965         "name": "TODO: FIXME",\r
966         "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
967         "comments": "",\r
968         "x": 4467,\r
969         "y": 923,\r
970         "z": "cd8c161.e76ffe8",\r
971         "wires": []\r
972     },\r
973     {\r
974         "id": "2d7aee5e.4b3492",\r
975         "type": "save",\r
976         "name": "save connectivity resource in AAI",\r
977         "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
978         "comments": "",\r
979         "outputs": 1,\r
980         "x": 3909,\r
981         "y": 1115,\r
982         "z": "cd8c161.e76ffe8",\r
983         "wires": [\r
984             []\r
985         ]\r
986     },\r
987     {\r
988         "id": "6e8fe0e8.771d7",\r
989         "type": "execute",\r
990         "name": "execute UUID generator for connectivity domainA",\r
991         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
992         "comments": "",\r
993         "outputs": 1,\r
994         "x": 3954,\r
995         "y": 1025,\r
996         "z": "cd8c161.e76ffe8",\r
997         "wires": [\r
998             []\r
999         ]\r
1000     },\r
1001     {\r
1002         "id": "703a6ba5.55da1c",\r
1003         "type": "comment",\r
1004         "name": "TODO: FIXME",\r
1005         "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
1006         "comments": "",\r
1007         "x": 3843,\r
1008         "y": 1066,\r
1009         "z": "cd8c161.e76ffe8",\r
1010         "wires": []\r
1011     },\r
1012     {\r
1013         "id": "6b02eeb7.bc53e8",\r
1014         "type": "execute",\r
1015         "name": "execute split tp-id to get pnf-name",\r
1016         "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
1017         "comments": "",\r
1018         "outputs": 1,\r
1019         "x": 3897,\r
1020         "y": 1812.0001220703125,\r
1021         "z": "cd8c161.e76ffe8",\r
1022         "wires": [\r
1023             [\r
1024                 "866b6a8.23d5e98",\r
1025                 "cb5f1ada.6b67f"\r
1026             ]\r
1027         ]\r
1028     },\r
1029     {\r
1030         "id": "cb5f1ada.6b67f",\r
1031         "type": "failure",\r
1032         "name": "success",\r
1033         "xml": "<outcome value='success'>\n",\r
1034         "comments": "",\r
1035         "outputs": 1,\r
1036         "x": 4120,\r
1037         "y": 1767.0001220703125,\r
1038         "z": "cd8c161.e76ffe8",\r
1039         "wires": [\r
1040             [\r
1041                 "e1a14a86.388a08"\r
1042             ]\r
1043         ]\r
1044     },\r
1045     {\r
1046         "id": "866b6a8.23d5e98",\r
1047         "type": "failure",\r
1048         "name": "failure",\r
1049         "xml": "<outcome value='failure'>\n",\r
1050         "comments": "",\r
1051         "outputs": 1,\r
1052         "x": 4122,\r
1053         "y": 1831.0001220703125,\r
1054         "z": "cd8c161.e76ffe8",\r
1055         "wires": [\r
1056             [\r
1057                 "e3367ed2.f52b78"\r
1058             ]\r
1059         ]\r
1060     },\r
1061     {\r
1062         "id": "c05c0482.6a0aa8",\r
1063         "type": "set",\r
1064         "name": "set ltpId",\r
1065         "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
1066         "comments": "",\r
1067         "x": 4455,\r
1068         "y": 1725.0001220703125,\r
1069         "z": "cd8c161.e76ffe8",\r
1070         "wires": []\r
1071     },\r
1072     {\r
1073         "id": "e3367ed2.f52b78",\r
1074         "type": "returnFailure",\r
1075         "name": "return failure",\r
1076         "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
1077         "comments": "",\r
1078         "x": 4281,\r
1079         "y": 1850.0001220703125,\r
1080         "z": "cd8c161.e76ffe8",\r
1081         "wires": []\r
1082     },\r
1083     {\r
1084         "id": "e1a14a86.388a08",\r
1085         "type": "block",\r
1086         "name": "block : atomic",\r
1087         "xml": "<block atomic=\"true\">",\r
1088         "atomic": "true",\r
1089         "outputs": 1,\r
1090         "x": 4285,\r
1091         "y": 1764.0001220703125,\r
1092         "z": "cd8c161.e76ffe8",\r
1093         "wires": [\r
1094             [\r
1095                 "c05c0482.6a0aa8",\r
1096                 "6625860d.59cf58"\r
1097             ]\r
1098         ]\r
1099     },\r
1100     {\r
1101         "id": "6625860d.59cf58",\r
1102         "type": "set",\r
1103         "name": "set pnf-name",\r
1104         "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
1105         "comments": "",\r
1106         "x": 4456,\r
1107         "y": 1830.0001220703125,\r
1108         "z": "cd8c161.e76ffe8",\r
1109         "wires": []\r
1110     },\r
1111     {\r
1112         "id": "3d78f64a.35443a",\r
1113         "type": "comment",\r
1114         "name": "TODO: FIXME",\r
1115         "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
1116         "comments": "",\r
1117         "x": 4451,\r
1118         "y": 1779.0001220703125,\r
1119         "z": "cd8c161.e76ffe8",\r
1120         "wires": []\r
1121     },\r
1122     {\r
1123         "id": "ce63ac06.8bd44",\r
1124         "type": "save",\r
1125         "name": "save connectivity resource in AAI",\r
1126         "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\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
1127         "comments": "",\r
1128         "outputs": 1,\r
1129         "x": 3899,\r
1130         "y": 1971.0001220703125,\r
1131         "z": "cd8c161.e76ffe8",\r
1132         "wires": [\r
1133             []\r
1134         ]\r
1135     },\r
1136     {\r
1137         "id": "aa3dffa0.a80a58",\r
1138         "type": "execute",\r
1139         "name": "execute UUID generator for connectivity domainB",\r
1140         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
1141         "comments": "",\r
1142         "outputs": 1,\r
1143         "x": 3944,\r
1144         "y": 1881.0001220703125,\r
1145         "z": "cd8c161.e76ffe8",\r
1146         "wires": [\r
1147             []\r
1148         ]\r
1149     },\r
1150     {\r
1151         "id": "de57e045.5d324",\r
1152         "type": "comment",\r
1153         "name": "TODO: FIXME",\r
1154         "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
1155         "comments": "",\r
1156         "x": 3833,\r
1157         "y": 1919.0001220703125,\r
1158         "z": "cd8c161.e76ffe8",\r
1159         "wires": []\r
1160     },\r
1161     {\r
1162         "id": "63c0978f.6d4218",\r
1163         "type": "call",\r
1164         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
1165         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
1166         "comments": "",\r
1167         "outputs": 1,\r
1168         "x": 2825,\r
1169         "y": 2386,\r
1170         "z": "cd8c161.e76ffe8",\r
1171         "wires": [\r
1172             []\r
1173         ]\r
1174     },\r
1175     {\r
1176         "id": "256b3f1a.6b05f8",\r
1177         "type": "set",\r
1178         "name": "set attachment_param",\r
1179         "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
1180         "comments": "",\r
1181         "x": 2623,\r
1182         "y": 2265,\r
1183         "z": "cd8c161.e76ffe8",\r
1184         "wires": []\r
1185     },\r
1186     {\r
1187         "id": "8870d8f4.24b26",\r
1188         "type": "comment",\r
1189         "name": "TODO: FIXME",\r
1190         "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
1191         "comments": "",\r
1192         "x": 2589,\r
1193         "y": 2199,\r
1194         "z": "cd8c161.e76ffe8",\r
1195         "wires": []\r
1196     },\r
1197     {\r
1198         "id": "d2697672.e5142",\r
1199         "type": "save",\r
1200         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1201         "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
1202         "comments": "",\r
1203         "outputs": 1,\r
1204         "x": 4037,\r
1205         "y": 1163,\r
1206         "z": "cd8c161.e76ffe8",\r
1207         "wires": [\r
1208             []\r
1209         ]\r
1210     },\r
1211     {\r
1212         "id": "c950727d.3e1368",\r
1213         "type": "save",\r
1214         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1215         "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
1216         "comments": "",\r
1217         "outputs": 1,\r
1218         "x": 4026,\r
1219         "y": 2036.0001220703125,\r
1220         "z": "cd8c161.e76ffe8",\r
1221         "wires": [\r
1222             []\r
1223         ]\r
1224     },\r
1225     {\r
1226         "id": "2cb22463.a9a10c",\r
1227         "type": "execute",\r
1228         "name": "get esr-thirdparty-sdnc",\r
1229         "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
1230         "comments": "",\r
1231         "outputs": 1,\r
1232         "x": 5081,\r
1233         "y": 683,\r
1234         "z": "cd8c161.e76ffe8",\r
1235         "wires": [\r
1236             [\r
1237                 "4afa0297.0e92ec",\r
1238                 "f0a2c2cf.76f7c",\r
1239                 "78f72703.090dd8"\r
1240             ]\r
1241         ]\r
1242     },\r
1243     {\r
1244         "id": "8e0be879.699538",\r
1245         "type": "block",\r
1246         "name": "block : atomic",\r
1247         "xml": "<block atomic=\"true\">",\r
1248         "atomic": "true",\r
1249         "outputs": 1,\r
1250         "x": 2634,\r
1251         "y": 339,\r
1252         "z": "cd8c161.e76ffe8",\r
1253         "wires": [\r
1254             [\r
1255                 "c6b29f32.96c43"\r
1256             ]\r
1257         ]\r
1258     },\r
1259     {\r
1260         "id": "926dbaa7.515a7",\r
1261         "type": "outcome",\r
1262         "name": "logical-link",\r
1263         "xml": "<outcome value='logical-link'>\n",\r
1264         "comments": "",\r
1265         "outputs": 1,\r
1266         "x": 1564.0001220703125,\r
1267         "y": 756.0001220703125,\r
1268         "z": "cd8c161.e76ffe8",\r
1269         "wires": [\r
1270             [\r
1271                 "aa0dd611.39e8d8"\r
1272             ]\r
1273         ]\r
1274     },\r
1275     {\r
1276         "id": "3fd9bf5c.04e708",\r
1277         "type": "switchNode",\r
1278         "name": "switch allotted-resource.relationship-list not empty",\r
1279         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
1280         "comments": "",\r
1281         "outputs": 1,\r
1282         "x": 2302,\r
1283         "y": 462,\r
1284         "z": "cd8c161.e76ffe8",\r
1285         "wires": [\r
1286             [\r
1287                 "2b043a11.143596",\r
1288                 "d91f0f1e.b29778"\r
1289             ]\r
1290         ]\r
1291     },\r
1292     {\r
1293         "id": "d91f0f1e.b29778",\r
1294         "type": "outcomeFalse",\r
1295         "name": "false",\r
1296         "xml": "<outcome value='false'>\n",\r
1297         "comments": "",\r
1298         "outputs": 1,\r
1299         "x": 2612,\r
1300         "y": 469,\r
1301         "z": "cd8c161.e76ffe8",\r
1302         "wires": [\r
1303             []\r
1304         ]\r
1305     },\r
1306     {\r
1307         "id": "2b043a11.143596",\r
1308         "type": "outcomeTrue",\r
1309         "name": "true",\r
1310         "xml": "<outcome value='true'>\n",\r
1311         "comments": "",\r
1312         "outputs": 1,\r
1313         "x": 2611,\r
1314         "y": 523,\r
1315         "z": "cd8c161.e76ffe8",\r
1316         "wires": [\r
1317             [\r
1318                 "53404fc0.a38be"\r
1319             ]\r
1320         ]\r
1321     },\r
1322     {\r
1323         "id": "dd4dd108.7ed66",\r
1324         "type": "set",\r
1325         "name": "set the current logical-link-name",\r
1326         "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
1327         "comments": "",\r
1328         "x": 1984,\r
1329         "y": 706,\r
1330         "z": "cd8c161.e76ffe8",\r
1331         "wires": []\r
1332     },\r
1333     {\r
1334         "id": "aa0dd611.39e8d8",\r
1335         "type": "block",\r
1336         "name": "block : atomic",\r
1337         "xml": "<block atomic=\"true\">",\r
1338         "atomic": "true",\r
1339         "outputs": 1,\r
1340         "x": 1741,\r
1341         "y": 749,\r
1342         "z": "cd8c161.e76ffe8",\r
1343         "wires": [\r
1344             [\r
1345                 "dd4dd108.7ed66",\r
1346                 "358e179e.99b9f"\r
1347             ]\r
1348         ]\r
1349     },\r
1350     {\r
1351         "id": "50481ed8.b97c38",\r
1352         "type": "comment",\r
1353         "name": "Question?",\r
1354         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1355         "comments": "",\r
1356         "x": 3170,\r
1357         "y": 935,\r
1358         "z": "cd8c161.e76ffe8",\r
1359         "wires": []\r
1360     },\r
1361     {\r
1362         "id": "bd63f21f.6d97a",\r
1363         "type": "save",\r
1364         "name": "get p-interface-src from aai",\r
1365         "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
1366         "comments": "",\r
1367         "outputs": 1,\r
1368         "x": 3213,\r
1369         "y": 1000,\r
1370         "z": "cd8c161.e76ffe8",\r
1371         "wires": [\r
1372             [\r
1373                 "c1db8d6e.967fa8",\r
1374                 "ea169f9.1e78f6",\r
1375                 "b37256ee.6a59a"\r
1376             ]\r
1377         ]\r
1378     },\r
1379     {\r
1380         "id": "d9529ce2.4ca64",\r
1381         "type": "save",\r
1382         "name": "get p-interface-dst from aai",\r
1383         "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
1384         "comments": "",\r
1385         "outputs": 1,\r
1386         "x": 3210,\r
1387         "y": 1844,\r
1388         "z": "cd8c161.e76ffe8",\r
1389         "wires": [\r
1390             [\r
1391                 "206889a2.ad62d6",\r
1392                 "eceddf53.8343c8",\r
1393                 "9f6e2dae.f13bd8"\r
1394             ]\r
1395         ]\r
1396     },\r
1397     {\r
1398         "id": "2cacaea3.bdcdca",\r
1399         "type": "comment",\r
1400         "name": "Question?",\r
1401         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1402         "comments": "",\r
1403         "x": 3171,\r
1404         "y": 1788,\r
1405         "z": "cd8c161.e76ffe8",\r
1406         "wires": []\r
1407     },\r
1408     {\r
1409         "id": "c6b29f32.96c43",\r
1410         "type": "save",\r
1411         "name": "get allotted-resource relationship from aai",\r
1412         "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
1413         "comments": "",\r
1414         "outputs": 1,\r
1415         "x": 2927,\r
1416         "y": 286,\r
1417         "z": "cd8c161.e76ffe8",\r
1418         "wires": [\r
1419             [\r
1420                 "9de6915b.b19d38",\r
1421                 "e8ebc1b6.d4d34",\r
1422                 "e6a28fa6.880708"\r
1423             ]\r
1424         ]\r
1425     },\r
1426     {\r
1427         "id": "e8ebc1b6.d4d34",\r
1428         "type": "not-found",\r
1429         "name": "not-found",\r
1430         "xml": "<outcome value='not-found'>\n",\r
1431         "comments": "",\r
1432         "outputs": 1,\r
1433         "x": 3200.490966796875,\r
1434         "y": 178.573974609375,\r
1435         "z": "cd8c161.e76ffe8",\r
1436         "wires": [\r
1437             [\r
1438                 "b49d6ada.3dcaf8"\r
1439             ]\r
1440         ]\r
1441     },\r
1442     {\r
1443         "id": "b49d6ada.3dcaf8",\r
1444         "type": "returnFailure",\r
1445         "name": "return failure",\r
1446         "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
1447         "comments": "",\r
1448         "x": 3378.0625,\r
1449         "y": 178.8597412109375,\r
1450         "z": "cd8c161.e76ffe8",\r
1451         "wires": []\r
1452     },\r
1453     {\r
1454         "id": "e6a28fa6.880708",\r
1455         "type": "failure",\r
1456         "name": "failure",\r
1457         "xml": "<outcome value='failure'>\n",\r
1458         "comments": "",\r
1459         "outputs": 1,\r
1460         "x": 3196,\r
1461         "y": 228,\r
1462         "z": "cd8c161.e76ffe8",\r
1463         "wires": [\r
1464             [\r
1465                 "d8c17b5e.5b6d48"\r
1466             ]\r
1467         ]\r
1468     },\r
1469     {\r
1470         "id": "d8c17b5e.5b6d48",\r
1471         "type": "returnFailure",\r
1472         "name": "return failure",\r
1473         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1474         "comments": "",\r
1475         "x": 3378,\r
1476         "y": 228,\r
1477         "z": "cd8c161.e76ffe8",\r
1478         "wires": []\r
1479     },\r
1480     {\r
1481         "id": "9de6915b.b19d38",\r
1482         "type": "success",\r
1483         "name": "success",\r
1484         "xml": "<outcome value='success'>\n",\r
1485         "comments": "",\r
1486         "outputs": 1,\r
1487         "x": 3200,\r
1488         "y": 279,\r
1489         "z": "cd8c161.e76ffe8",\r
1490         "wires": [\r
1491             [\r
1492                 "54518182.0b0878"\r
1493             ]\r
1494         ]\r
1495     },\r
1496     {\r
1497         "id": "54518182.0b0878",\r
1498         "type": "block",\r
1499         "name": "block : atomic",\r
1500         "xml": "<block atomic=\"true\">",\r
1501         "atomic": "true",\r
1502         "outputs": 1,\r
1503         "x": 3380,\r
1504         "y": 279,\r
1505         "z": "cd8c161.e76ffe8",\r
1506         "wires": [\r
1507             [\r
1508                 "3fd9bf5c.04e708"\r
1509             ]\r
1510         ]\r
1511     },\r
1512     {\r
1513         "id": "62e6aba8.2c101c",\r
1514         "type": "for",\r
1515         "name": "for each allotted-resource relationship",\r
1516         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
1517         "comments": "",\r
1518         "outputs": 1,\r
1519         "x": 2871,\r
1520         "y": 503,\r
1521         "z": "cd8c161.e76ffe8",\r
1522         "wires": [\r
1523             [\r
1524                 "ce3eb436.d43a6"\r
1525             ]\r
1526         ]\r
1527     },\r
1528     {\r
1529         "id": "ce3eb436.d43a6",\r
1530         "type": "switchNode",\r
1531         "name": "switch related-to",\r
1532         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
1533         "comments": "",\r
1534         "outputs": 1,\r
1535         "x": 3151,\r
1536         "y": 503,\r
1537         "z": "cd8c161.e76ffe8",\r
1538         "wires": [\r
1539             [\r
1540                 "926dbaa7.515a7"\r
1541             ]\r
1542         ]\r
1543     },\r
1544     {\r
1545         "id": "7737916f.9448f",\r
1546         "type": "outcome",\r
1547         "name": "network-policy",\r
1548         "xml": "<outcome value='network-policy'>\n",\r
1549         "comments": "",\r
1550         "outputs": 1,\r
1551         "x": 3356,\r
1552         "y": 477,\r
1553         "z": "cd8c161.e76ffe8",\r
1554         "wires": [\r
1555             [\r
1556                 "9c3216ab.adc2a8"\r
1557             ]\r
1558         ]\r
1559     },\r
1560     {\r
1561         "id": "9c3216ab.adc2a8",\r
1562         "type": "block",\r
1563         "name": "block : atomic",\r
1564         "xml": "<block atomic=\"true\">",\r
1565         "atomic": "true",\r
1566         "outputs": 1,\r
1567         "x": 3532.9998779296875,\r
1568         "y": 469.9998779296875,\r
1569         "z": "cd8c161.e76ffe8",\r
1570         "wires": [\r
1571             [\r
1572                 "6ca4307d.28f77",\r
1573                 "15dd1089.866707"\r
1574             ]\r
1575         ]\r
1576     },\r
1577     {\r
1578         "id": "6ca4307d.28f77",\r
1579         "type": "set",\r
1580         "name": "set the 1st network-policy-id",\r
1581         "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
1582         "comments": "",\r
1583         "x": 3775.9998779296875,\r
1584         "y": 426.9998779296875,\r
1585         "z": "cd8c161.e76ffe8",\r
1586         "wires": []\r
1587     },\r
1588     {\r
1589         "id": "15dd1089.866707",\r
1590         "type": "save",\r
1591         "name": "get network-policy from aai",\r
1592         "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
1593         "comments": "",\r
1594         "outputs": 1,\r
1595         "x": 3764.9998779296875,\r
1596         "y": 481.9998779296875,\r
1597         "z": "cd8c161.e76ffe8",\r
1598         "wires": [\r
1599             [\r
1600                 "af36166d.ada238",\r
1601                 "d07a4cd5.ac3678",\r
1602                 "65922e69.a77b18"\r
1603             ]\r
1604         ]\r
1605     },\r
1606     {\r
1607         "id": "65922e69.a77b18",\r
1608         "type": "not-found",\r
1609         "name": "not-found",\r
1610         "xml": "<outcome value='not-found'>\n",\r
1611         "comments": "",\r
1612         "outputs": 1,\r
1613         "x": 4018,\r
1614         "y": 368,\r
1615         "z": "cd8c161.e76ffe8",\r
1616         "wires": [\r
1617             [\r
1618                 "1424d407.3a5b34"\r
1619             ]\r
1620         ]\r
1621     },\r
1622     {\r
1623         "id": "1424d407.3a5b34",\r
1624         "type": "returnFailure",\r
1625         "name": "return failure",\r
1626         "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
1627         "comments": "",\r
1628         "x": 4166.571533203125,\r
1629         "y": 368.2857666015625,\r
1630         "z": "cd8c161.e76ffe8",\r
1631         "wires": []\r
1632     },\r
1633     {\r
1634         "id": "e640c3b9.1f16d",\r
1635         "type": "returnFailure",\r
1636         "name": "return failure",\r
1637         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1638         "comments": "",\r
1639         "x": 4165.509033203125,\r
1640         "y": 412.426025390625,\r
1641         "z": "cd8c161.e76ffe8",\r
1642         "wires": []\r
1643     },\r
1644     {\r
1645         "id": "d07a4cd5.ac3678",\r
1646         "type": "failure",\r
1647         "name": "failure",\r
1648         "xml": "<outcome value='failure'>\n",\r
1649         "comments": "",\r
1650         "outputs": 1,\r
1651         "x": 4006.509033203125,\r
1652         "y": 412.426025390625,\r
1653         "z": "cd8c161.e76ffe8",\r
1654         "wires": [\r
1655             [\r
1656                 "e640c3b9.1f16d"\r
1657             ]\r
1658         ]\r
1659     },\r
1660     {\r
1661         "id": "af36166d.ada238",\r
1662         "type": "success",\r
1663         "name": "success",\r
1664         "xml": "<outcome value='success'>\n",\r
1665         "comments": "",\r
1666         "outputs": 1,\r
1667         "x": 4013.509033203125,\r
1668         "y": 491.426025390625,\r
1669         "z": "cd8c161.e76ffe8",\r
1670         "wires": [\r
1671             [\r
1672                 "3b605de0.ec3a52"\r
1673             ]\r
1674         ]\r
1675     },\r
1676     {\r
1677         "id": "3b605de0.ec3a52",\r
1678         "type": "block",\r
1679         "name": "block",\r
1680         "xml": "<block>\n",\r
1681         "atomic": "false",\r
1682         "comments": "",\r
1683         "outputs": 1,\r
1684         "x": 4152.509033203125,\r
1685         "y": 491.426025390625,\r
1686         "z": "cd8c161.e76ffe8",\r
1687         "wires": [\r
1688             [\r
1689                 "e719047d.96b1f",\r
1690                 "36ea936c.0d2d9c"\r
1691             ]\r
1692         ]\r
1693     },\r
1694     {\r
1695         "id": "e719047d.96b1f",\r
1696         "type": "set",\r
1697         "name": "set the max bandwidth",\r
1698         "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
1699         "comments": "",\r
1700         "x": 4358,\r
1701         "y": 489,\r
1702         "z": "cd8c161.e76ffe8",\r
1703         "wires": []\r
1704     },\r
1705     {\r
1706         "id": "bcdc8dc3.72d61",\r
1707         "type": "execute",\r
1708         "name": "execute split tp-id to get pnf-name",\r
1709         "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
1710         "comments": "",\r
1711         "outputs": 1,\r
1712         "x": 3214,\r
1713         "y": 670,\r
1714         "z": "cd8c161.e76ffe8",\r
1715         "wires": [\r
1716             [\r
1717                 "88359d7a.204d2",\r
1718                 "184f5811.e1748"\r
1719             ]\r
1720         ]\r
1721     },\r
1722     {\r
1723         "id": "184f5811.e1748",\r
1724         "type": "failure",\r
1725         "name": "success",\r
1726         "xml": "<outcome value='success'>\n",\r
1727         "comments": "",\r
1728         "outputs": 1,\r
1729         "x": 3437,\r
1730         "y": 656,\r
1731         "z": "cd8c161.e76ffe8",\r
1732         "wires": [\r
1733             [\r
1734                 "65b8cca9.2ac444"\r
1735             ]\r
1736         ]\r
1737     },\r
1738     {\r
1739         "id": "88359d7a.204d2",\r
1740         "type": "failure",\r
1741         "name": "failure",\r
1742         "xml": "<outcome value='failure'>\n",\r
1743         "comments": "",\r
1744         "outputs": 1,\r
1745         "x": 3439,\r
1746         "y": 689,\r
1747         "z": "cd8c161.e76ffe8",\r
1748         "wires": [\r
1749             [\r
1750                 "776eb0a5.2fd87"\r
1751             ]\r
1752         ]\r
1753     },\r
1754     {\r
1755         "id": "776eb0a5.2fd87",\r
1756         "type": "returnFailure",\r
1757         "name": "return failure",\r
1758         "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
1759         "comments": "",\r
1760         "x": 3582,\r
1761         "y": 686,\r
1762         "z": "cd8c161.e76ffe8",\r
1763         "wires": []\r
1764     },\r
1765     {\r
1766         "id": "65b8cca9.2ac444",\r
1767         "type": "block",\r
1768         "name": "block : atomic",\r
1769         "xml": "<block atomic=\"true\">",\r
1770         "atomic": "true",\r
1771         "outputs": 1,\r
1772         "x": 3585,\r
1773         "y": 649,\r
1774         "z": "cd8c161.e76ffe8",\r
1775         "wires": [\r
1776             [\r
1777                 "2397aa3a.45e876",\r
1778                 "c5b3bcfd.d10508"\r
1779             ]\r
1780         ]\r
1781     },\r
1782     {\r
1783         "id": "2397aa3a.45e876",\r
1784         "type": "set",\r
1785         "name": "set pnf-name",\r
1786         "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
1787         "comments": "",\r
1788         "x": 3747,\r
1789         "y": 644,\r
1790         "z": "cd8c161.e76ffe8",\r
1791         "wires": []\r
1792     },\r
1793     {\r
1794         "id": "68b3ff1a.0849f",\r
1795         "type": "execute",\r
1796         "name": "execute split tp-id to get pnf-name",\r
1797         "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
1798         "comments": "",\r
1799         "outputs": 1,\r
1800         "x": 3228,\r
1801         "y": 1506.9998779296875,\r
1802         "z": "cd8c161.e76ffe8",\r
1803         "wires": [\r
1804             [\r
1805                 "6fc92ae0.49bd04",\r
1806                 "59f072e2.0b71ec"\r
1807             ]\r
1808         ]\r
1809     },\r
1810     {\r
1811         "id": "59f072e2.0b71ec",\r
1812         "type": "failure",\r
1813         "name": "success",\r
1814         "xml": "<outcome value='success'>\n",\r
1815         "comments": "",\r
1816         "outputs": 1,\r
1817         "x": 3451,\r
1818         "y": 1492.9998779296875,\r
1819         "z": "cd8c161.e76ffe8",\r
1820         "wires": [\r
1821             [\r
1822                 "a6cfeb0c.ecbd1"\r
1823             ]\r
1824         ]\r
1825     },\r
1826     {\r
1827         "id": "6fc92ae0.49bd04",\r
1828         "type": "failure",\r
1829         "name": "failure",\r
1830         "xml": "<outcome value='failure'>\n",\r
1831         "comments": "",\r
1832         "outputs": 1,\r
1833         "x": 3453,\r
1834         "y": 1525.9998779296875,\r
1835         "z": "cd8c161.e76ffe8",\r
1836         "wires": [\r
1837             [\r
1838                 "862c14a1.8553d8"\r
1839             ]\r
1840         ]\r
1841     },\r
1842     {\r
1843         "id": "862c14a1.8553d8",\r
1844         "type": "returnFailure",\r
1845         "name": "return failure",\r
1846         "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
1847         "comments": "",\r
1848         "x": 3596,\r
1849         "y": 1522.9998779296875,\r
1850         "z": "cd8c161.e76ffe8",\r
1851         "wires": []\r
1852     },\r
1853     {\r
1854         "id": "a6cfeb0c.ecbd1",\r
1855         "type": "block",\r
1856         "name": "block : atomic",\r
1857         "xml": "<block atomic=\"true\">",\r
1858         "atomic": "true",\r
1859         "outputs": 1,\r
1860         "x": 3599,\r
1861         "y": 1485.9998779296875,\r
1862         "z": "cd8c161.e76ffe8",\r
1863         "wires": [\r
1864             [\r
1865                 "9265a5e9.075d5",\r
1866                 "3387bb2a.b4fa7c"\r
1867             ]\r
1868         ]\r
1869     },\r
1870     {\r
1871         "id": "9265a5e9.075d5",\r
1872         "type": "set",\r
1873         "name": "set pnf-name",\r
1874         "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
1875         "comments": "",\r
1876         "x": 3793,\r
1877         "y": 1489,\r
1878         "z": "cd8c161.e76ffe8",\r
1879         "wires": []\r
1880     },\r
1881     {\r
1882         "id": "4430b278.87d9ac",\r
1883         "type": "execute",\r
1884         "name": "execute properties",\r
1885         "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
1886         "comments": "",\r
1887         "outputs": 1,\r
1888         "x": 1057,\r
1889         "y": 194,\r
1890         "z": "cd8c161.e76ffe8",\r
1891         "wires": [\r
1892             []\r
1893         ]\r
1894     },\r
1895     {\r
1896         "id": "c6965465.aeb14",\r
1897         "type": "for",\r
1898         "name": "for each relationship",\r
1899         "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1900         "comments": "",\r
1901         "outputs": 1,\r
1902         "x": 3861,\r
1903         "y": 1240,\r
1904         "z": "cd8c161.e76ffe8",\r
1905         "wires": [\r
1906             [\r
1907                 "d7da00cb.9e6198"\r
1908             ]\r
1909         ]\r
1910     },\r
1911     {\r
1912         "id": "d7da00cb.9e6198",\r
1913         "type": "switchNode",\r
1914         "name": "switch related-to",\r
1915         "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1916         "comments": "",\r
1917         "outputs": 1,\r
1918         "x": 4067,\r
1919         "y": 1240,\r
1920         "z": "cd8c161.e76ffe8",\r
1921         "wires": [\r
1922             [\r
1923                 "3e41f9e9.7f65b6"\r
1924             ]\r
1925         ]\r
1926     },\r
1927     {\r
1928         "id": "3e41f9e9.7f65b6",\r
1929         "type": "outcome",\r
1930         "name": "tunnel-termination-point",\r
1931         "xml": "<outcome value='tunnel-termination-point'>\n",\r
1932         "comments": "",\r
1933         "outputs": 1,\r
1934         "x": 4282.28564453125,\r
1935         "y": 1239.82177734375,\r
1936         "z": "cd8c161.e76ffe8",\r
1937         "wires": [\r
1938             [\r
1939                 "8a860c24.fed68"\r
1940             ]\r
1941         ]\r
1942     },\r
1943     {\r
1944         "id": "8a860c24.fed68",\r
1945         "type": "block",\r
1946         "name": "block : atomic",\r
1947         "xml": "<block atomic=\"true\">",\r
1948         "atomic": "true",\r
1949         "outputs": 1,\r
1950         "x": 4489.1171875,\r
1951         "y": 1240.34033203125,\r
1952         "z": "cd8c161.e76ffe8",\r
1953         "wires": [\r
1954             [\r
1955                 "377e7af0.ac592e",\r
1956                 "9af75c5e.34aa1",\r
1957                 "ad2bdd99.5817d"\r
1958             ]\r
1959         ]\r
1960     },\r
1961     {\r
1962         "id": "377e7af0.ac592e",\r
1963         "type": "set",\r
1964         "name": "set source ttp-id",\r
1965         "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
1966         "comments": "",\r
1967         "x": 4704.1171875,\r
1968         "y": 1202.34033203125,\r
1969         "z": "cd8c161.e76ffe8",\r
1970         "wires": []\r
1971     },\r
1972     {\r
1973         "id": "9af75c5e.34aa1",\r
1974         "type": "get-resource",\r
1975         "name": "get-resource src TTP",\r
1976         "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
1977         "comments": "",\r
1978         "outputs": 1,\r
1979         "x": 4701.1171875,\r
1980         "y": 1241.34033203125,\r
1981         "z": "cd8c161.e76ffe8",\r
1982         "wires": [\r
1983             [\r
1984                 "817cb438.99e4a8"\r
1985             ]\r
1986         ]\r
1987     },\r
1988     {\r
1989         "id": "ad2bdd99.5817d",\r
1990         "type": "break",\r
1991         "name": "break",\r
1992         "xml": "<break>\n",\r
1993         "comments": "",\r
1994         "x": 4656.6171875,\r
1995         "y": 1283.34033203125,\r
1996         "z": "cd8c161.e76ffe8",\r
1997         "wires": []\r
1998     },\r
1999     {\r
2000         "id": "817cb438.99e4a8",\r
2001         "type": "success",\r
2002         "name": "success",\r
2003         "xml": "<outcome value='success'>\n",\r
2004         "comments": "",\r
2005         "outputs": 1,\r
2006         "x": 4881.6171875,\r
2007         "y": 1240.34033203125,\r
2008         "z": "cd8c161.e76ffe8",\r
2009         "wires": [\r
2010             [\r
2011                 "4eac437.160bcbc"\r
2012             ]\r
2013         ]\r
2014     },\r
2015     {\r
2016         "id": "4eac437.160bcbc",\r
2017         "type": "block",\r
2018         "name": "block : atomic",\r
2019         "xml": "<block atomic=\"true\">",\r
2020         "atomic": "true",\r
2021         "outputs": 1,\r
2022         "x": 5039.6171875,\r
2023         "y": 1240.34033203125,\r
2024         "z": "cd8c161.e76ffe8",\r
2025         "wires": [\r
2026             [\r
2027                 "602a09ac.ab98b8"\r
2028             ]\r
2029         ]\r
2030     },\r
2031     {\r
2032         "id": "602a09ac.ab98b8",\r
2033         "type": "set",\r
2034         "name": "set source tunnel tp ip",\r
2035         "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2036         "comments": "",\r
2037         "x": 5246.6171875,\r
2038         "y": 1240.34033203125,\r
2039         "z": "cd8c161.e76ffe8",\r
2040         "wires": []\r
2041     },\r
2042     {\r
2043         "id": "83539382.7676b8",\r
2044         "type": "for",\r
2045         "name": "for each relationship",\r
2046         "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2047         "comments": "",\r
2048         "outputs": 1,\r
2049         "x": 3858,\r
2050         "y": 2109.0001220703125,\r
2051         "z": "cd8c161.e76ffe8",\r
2052         "wires": [\r
2053             [\r
2054                 "5579dfc7.be27d"\r
2055             ]\r
2056         ]\r
2057     },\r
2058     {\r
2059         "id": "5579dfc7.be27d",\r
2060         "type": "switchNode",\r
2061         "name": "switch related-to",\r
2062         "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2063         "comments": "",\r
2064         "outputs": 1,\r
2065         "x": 4064,\r
2066         "y": 2109.0001220703125,\r
2067         "z": "cd8c161.e76ffe8",\r
2068         "wires": [\r
2069             [\r
2070                 "901fbdc2.3ee4d"\r
2071             ]\r
2072         ]\r
2073     },\r
2074     {\r
2075         "id": "901fbdc2.3ee4d",\r
2076         "type": "outcome",\r
2077         "name": "tunnel-termination-point",\r
2078         "xml": "<outcome value='tunnel-termination-point'>\n",\r
2079         "comments": "",\r
2080         "outputs": 1,\r
2081         "x": 4279.28564453125,\r
2082         "y": 2108.8218994140625,\r
2083         "z": "cd8c161.e76ffe8",\r
2084         "wires": [\r
2085             [\r
2086                 "2e4b86b2.9caae2"\r
2087             ]\r
2088         ]\r
2089     },\r
2090     {\r
2091         "id": "2e4b86b2.9caae2",\r
2092         "type": "block",\r
2093         "name": "block : atomic",\r
2094         "xml": "<block atomic=\"true\">",\r
2095         "atomic": "true",\r
2096         "outputs": 1,\r
2097         "x": 4486.1171875,\r
2098         "y": 2109.3404541015625,\r
2099         "z": "cd8c161.e76ffe8",\r
2100         "wires": [\r
2101             [\r
2102                 "bc60382f.b0361",\r
2103                 "b3a5cd52.d83f2",\r
2104                 "ee9aa3b3.89ca4"\r
2105             ]\r
2106         ]\r
2107     },\r
2108     {\r
2109         "id": "bc60382f.b0361",\r
2110         "type": "set",\r
2111         "name": "set destination ttp-id",\r
2112         "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
2113         "comments": "",\r
2114         "x": 4701.1171875,\r
2115         "y": 2071.3404541015625,\r
2116         "z": "cd8c161.e76ffe8",\r
2117         "wires": []\r
2118     },\r
2119     {\r
2120         "id": "b3a5cd52.d83f2",\r
2121         "type": "get-resource",\r
2122         "name": "get-resource src TTP",\r
2123         "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
2124         "comments": "",\r
2125         "outputs": 1,\r
2126         "x": 4698.1171875,\r
2127         "y": 2110.3404541015625,\r
2128         "z": "cd8c161.e76ffe8",\r
2129         "wires": [\r
2130             [\r
2131                 "93e41626.124d78"\r
2132             ]\r
2133         ]\r
2134     },\r
2135     {\r
2136         "id": "ee9aa3b3.89ca4",\r
2137         "type": "break",\r
2138         "name": "break",\r
2139         "xml": "<break>\n",\r
2140         "comments": "",\r
2141         "x": 4653.6171875,\r
2142         "y": 2152.3404541015625,\r
2143         "z": "cd8c161.e76ffe8",\r
2144         "wires": []\r
2145     },\r
2146     {\r
2147         "id": "93e41626.124d78",\r
2148         "type": "success",\r
2149         "name": "success",\r
2150         "xml": "<outcome value='success'>\n",\r
2151         "comments": "",\r
2152         "outputs": 1,\r
2153         "x": 4878.6171875,\r
2154         "y": 2109.3404541015625,\r
2155         "z": "cd8c161.e76ffe8",\r
2156         "wires": [\r
2157             [\r
2158                 "6ea99290.2aa4d4"\r
2159             ]\r
2160         ]\r
2161     },\r
2162     {\r
2163         "id": "6ea99290.2aa4d4",\r
2164         "type": "block",\r
2165         "name": "block : atomic",\r
2166         "xml": "<block atomic=\"true\">",\r
2167         "atomic": "true",\r
2168         "outputs": 1,\r
2169         "x": 5036.6171875,\r
2170         "y": 2109.3404541015625,\r
2171         "z": "cd8c161.e76ffe8",\r
2172         "wires": [\r
2173             [\r
2174                 "a95428e7.14cad"\r
2175             ]\r
2176         ]\r
2177     },\r
2178     {\r
2179         "id": "a95428e7.14cad",\r
2180         "type": "set",\r
2181         "name": "set destination tunnel tp ip",\r
2182         "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2183         "comments": "",\r
2184         "x": 5243.6171875,\r
2185         "y": 2109.3404541015625,\r
2186         "z": "cd8c161.e76ffe8",\r
2187         "wires": []\r
2188     },\r
2189     {\r
2190         "id": "c5b3bcfd.d10508",\r
2191         "type": "get-resource",\r
2192         "name": "get-resource src pnf",\r
2193         "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
2194         "comments": "",\r
2195         "outputs": 1,\r
2196         "x": 3774,\r
2197         "y": 716,\r
2198         "z": "cd8c161.e76ffe8",\r
2199         "wires": [\r
2200             [\r
2201                 "8e60f4cf.82fba",\r
2202                 "2cad2896.c9df4",\r
2203                 "335dceb2.9bab72"\r
2204             ]\r
2205         ]\r
2206     },\r
2207     {\r
2208         "id": "8e60f4cf.82fba",\r
2209         "type": "success",\r
2210         "name": "success",\r
2211         "xml": "<outcome value='success'>\n",\r
2212         "comments": "",\r
2213         "outputs": 1,\r
2214         "x": 3969.5001220703125,\r
2215         "y": 668,\r
2216         "z": "cd8c161.e76ffe8",\r
2217         "wires": [\r
2218             [\r
2219                 "7a06334d.9731e4"\r
2220             ]\r
2221         ]\r
2222     },\r
2223     {\r
2224         "id": "2cad2896.c9df4",\r
2225         "type": "not-found",\r
2226         "name": "not-found",\r
2227         "xml": "<outcome value='not-found'>\n",\r
2228         "comments": "",\r
2229         "outputs": 1,\r
2230         "x": 3961.5001220703125,\r
2231         "y": 723,\r
2232         "z": "cd8c161.e76ffe8",\r
2233         "wires": [\r
2234             [\r
2235                 "17051d0f.c52e53"\r
2236             ]\r
2237         ]\r
2238     },\r
2239     {\r
2240         "id": "335dceb2.9bab72",\r
2241         "type": "other",\r
2242         "name": "other",\r
2243         "xml": "<outcome value='Other'>\n",\r
2244         "comments": "",\r
2245         "outputs": 1,\r
2246         "x": 3966.5001220703125,\r
2247         "y": 780,\r
2248         "z": "cd8c161.e76ffe8",\r
2249         "wires": [\r
2250             [\r
2251                 "328eeb2e.ff715c"\r
2252             ]\r
2253         ]\r
2254     },\r
2255     {\r
2256         "id": "328eeb2e.ff715c",\r
2257         "type": "returnFailure",\r
2258         "name": "return failure",\r
2259         "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
2260         "comments": "",\r
2261         "x": 4118.5001220703125,\r
2262         "y": 781,\r
2263         "z": "cd8c161.e76ffe8",\r
2264         "wires": []\r
2265     },\r
2266     {\r
2267         "id": "17051d0f.c52e53",\r
2268         "type": "returnFailure",\r
2269         "name": "return failure",\r
2270         "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
2271         "comments": "",\r
2272         "x": 4129.5001220703125,\r
2273         "y": 726,\r
2274         "z": "cd8c161.e76ffe8",\r
2275         "wires": []\r
2276     },\r
2277     {\r
2278         "id": "7a06334d.9731e4",\r
2279         "type": "block",\r
2280         "name": "block",\r
2281         "xml": "<block>\n",\r
2282         "atomic": "false",\r
2283         "comments": "",\r
2284         "outputs": 1,\r
2285         "x": 4113.8824462890625,\r
2286         "y": 665.6556701660156,\r
2287         "z": "cd8c161.e76ffe8",\r
2288         "wires": [\r
2289             [\r
2290                 "89e57d02.e9996"\r
2291             ]\r
2292         ]\r
2293     },\r
2294     {\r
2295         "id": "c9d4f321.66364",\r
2296         "type": "outcome",\r
2297         "name": "esr-thirdparty-sdnc",\r
2298         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2299         "comments": "",\r
2300         "outputs": 1,\r
2301         "x": 4696,\r
2302         "y": 684,\r
2303         "z": "cd8c161.e76ffe8",\r
2304         "wires": [\r
2305             [\r
2306                 "f8e16adc.55ac68"\r
2307             ]\r
2308         ]\r
2309     },\r
2310     {\r
2311         "id": "f8e16adc.55ac68",\r
2312         "type": "block",\r
2313         "name": "block : atomic",\r
2314         "xml": "<block atomic=\"true\">",\r
2315         "atomic": "true",\r
2316         "outputs": 1,\r
2317         "x": 4873,\r
2318         "y": 676,\r
2319         "z": "cd8c161.e76ffe8",\r
2320         "wires": [\r
2321             [\r
2322                 "f8c4bbbd.612dc",\r
2323                 "2cb22463.a9a10c"\r
2324             ]\r
2325         ]\r
2326     },\r
2327     {\r
2328         "id": "89e57d02.e9996",\r
2329         "type": "for",\r
2330         "name": "for each relationship",\r
2331         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
2332         "comments": "",\r
2333         "outputs": 1,\r
2334         "x": 4298,\r
2335         "y": 680,\r
2336         "z": "cd8c161.e76ffe8",\r
2337         "wires": [\r
2338             [\r
2339                 "ffc907a3.634c3"\r
2340             ]\r
2341         ]\r
2342     },\r
2343     {\r
2344         "id": "ffc907a3.634c3",\r
2345         "type": "switchNode",\r
2346         "name": "switch related-to",\r
2347         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2348         "comments": "",\r
2349         "outputs": 1,\r
2350         "x": 4493,\r
2351         "y": 680,\r
2352         "z": "cd8c161.e76ffe8",\r
2353         "wires": [\r
2354             [\r
2355                 "c9d4f321.66364",\r
2356                 "d8e84e3d.259878"\r
2357             ]\r
2358         ]\r
2359     },\r
2360     {\r
2361         "id": "f8c4bbbd.612dc",\r
2362         "type": "set",\r
2363         "name": "set esr-thirdparty-sdnc domainA id",\r
2364         "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
2365         "comments": "",\r
2366         "x": 5111,\r
2367         "y": 631,\r
2368         "z": "cd8c161.e76ffe8",\r
2369         "wires": []\r
2370     },\r
2371     {\r
2372         "id": "4afa0297.0e92ec",\r
2373         "type": "success",\r
2374         "name": "success",\r
2375         "xml": "<outcome value='success'>\n",\r
2376         "comments": "",\r
2377         "outputs": 1,\r
2378         "x": 5291,\r
2379         "y": 674,\r
2380         "z": "cd8c161.e76ffe8",\r
2381         "wires": [\r
2382             [\r
2383                 "ba53a591.c08868"\r
2384             ]\r
2385         ]\r
2386     },\r
2387     {\r
2388         "id": "f0a2c2cf.76f7c",\r
2389         "type": "not-found",\r
2390         "name": "not-found",\r
2391         "xml": "<outcome value='not-found'>\n",\r
2392         "comments": "",\r
2393         "outputs": 1,\r
2394         "x": 5283,\r
2395         "y": 729,\r
2396         "z": "cd8c161.e76ffe8",\r
2397         "wires": [\r
2398             [\r
2399                 "3a442fd2.17b8b8"\r
2400             ]\r
2401         ]\r
2402     },\r
2403     {\r
2404         "id": "78f72703.090dd8",\r
2405         "type": "other",\r
2406         "name": "other",\r
2407         "xml": "<outcome value='Other'>\n",\r
2408         "comments": "",\r
2409         "outputs": 1,\r
2410         "x": 5288,\r
2411         "y": 786,\r
2412         "z": "cd8c161.e76ffe8",\r
2413         "wires": [\r
2414             [\r
2415                 "3131a765.52f598"\r
2416             ]\r
2417         ]\r
2418     },\r
2419     {\r
2420         "id": "3131a765.52f598",\r
2421         "type": "returnFailure",\r
2422         "name": "return failure",\r
2423         "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
2424         "comments": "",\r
2425         "x": 5440,\r
2426         "y": 787,\r
2427         "z": "cd8c161.e76ffe8",\r
2428         "wires": []\r
2429     },\r
2430     {\r
2431         "id": "3a442fd2.17b8b8",\r
2432         "type": "returnFailure",\r
2433         "name": "return failure",\r
2434         "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
2435         "comments": "",\r
2436         "x": 5451,\r
2437         "y": 732,\r
2438         "z": "cd8c161.e76ffe8",\r
2439         "wires": []\r
2440     },\r
2441     {\r
2442         "id": "ba53a591.c08868",\r
2443         "type": "block",\r
2444         "name": "block",\r
2445         "xml": "<block>\n",\r
2446         "atomic": "false",\r
2447         "comments": "",\r
2448         "outputs": 1,\r
2449         "x": 5435.38232421875,\r
2450         "y": 671.6556701660156,\r
2451         "z": "cd8c161.e76ffe8",\r
2452         "wires": [\r
2453             [\r
2454                 "280c0a87.0e105e"\r
2455             ]\r
2456         ]\r
2457     },\r
2458     {\r
2459         "id": "280c0a87.0e105e",\r
2460         "type": "set",\r
2461         "name": "set controller domainA data",\r
2462         "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
2463         "comments": "",\r
2464         "x": 5650,\r
2465         "y": 668,\r
2466         "z": "cd8c161.e76ffe8",\r
2467         "wires": []\r
2468     },\r
2469     {\r
2470         "id": "3387bb2a.b4fa7c",\r
2471         "type": "get-resource",\r
2472         "name": "get-resource src pnf",\r
2473         "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
2474         "comments": "",\r
2475         "outputs": 1,\r
2476         "x": 3815,\r
2477         "y": 1557,\r
2478         "z": "cd8c161.e76ffe8",\r
2479         "wires": [\r
2480             [\r
2481                 "4d61cd16.0abdfc",\r
2482                 "83252466.aa101",\r
2483                 "a13a024e.f66fb"\r
2484             ]\r
2485         ]\r
2486     },\r
2487     {\r
2488         "id": "4d61cd16.0abdfc",\r
2489         "type": "success",\r
2490         "name": "success",\r
2491         "xml": "<outcome value='success'>\n",\r
2492         "comments": "",\r
2493         "outputs": 1,\r
2494         "x": 4010.5001220703125,\r
2495         "y": 1509,\r
2496         "z": "cd8c161.e76ffe8",\r
2497         "wires": [\r
2498             [\r
2499                 "45754d39.0b500c"\r
2500             ]\r
2501         ]\r
2502     },\r
2503     {\r
2504         "id": "83252466.aa101",\r
2505         "type": "not-found",\r
2506         "name": "not-found",\r
2507         "xml": "<outcome value='not-found'>\n",\r
2508         "comments": "",\r
2509         "outputs": 1,\r
2510         "x": 4002.5001220703125,\r
2511         "y": 1564,\r
2512         "z": "cd8c161.e76ffe8",\r
2513         "wires": [\r
2514             [\r
2515                 "7042d1e3.edb1d"\r
2516             ]\r
2517         ]\r
2518     },\r
2519     {\r
2520         "id": "a13a024e.f66fb",\r
2521         "type": "other",\r
2522         "name": "other",\r
2523         "xml": "<outcome value='Other'>\n",\r
2524         "comments": "",\r
2525         "outputs": 1,\r
2526         "x": 4007.5001220703125,\r
2527         "y": 1621,\r
2528         "z": "cd8c161.e76ffe8",\r
2529         "wires": [\r
2530             [\r
2531                 "67ddb18b.39ea7"\r
2532             ]\r
2533         ]\r
2534     },\r
2535     {\r
2536         "id": "67ddb18b.39ea7",\r
2537         "type": "returnFailure",\r
2538         "name": "return failure",\r
2539         "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
2540         "comments": "",\r
2541         "x": 4159.5001220703125,\r
2542         "y": 1622,\r
2543         "z": "cd8c161.e76ffe8",\r
2544         "wires": []\r
2545     },\r
2546     {\r
2547         "id": "7042d1e3.edb1d",\r
2548         "type": "returnFailure",\r
2549         "name": "return failure",\r
2550         "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
2551         "comments": "",\r
2552         "x": 4170.5001220703125,\r
2553         "y": 1567,\r
2554         "z": "cd8c161.e76ffe8",\r
2555         "wires": []\r
2556     },\r
2557     {\r
2558         "id": "45754d39.0b500c",\r
2559         "type": "block",\r
2560         "name": "block",\r
2561         "xml": "<block>\n",\r
2562         "atomic": "false",\r
2563         "comments": "",\r
2564         "outputs": 1,\r
2565         "x": 4154.8824462890625,\r
2566         "y": 1506.6556701660156,\r
2567         "z": "cd8c161.e76ffe8",\r
2568         "wires": [\r
2569             [\r
2570                 "f1a969ab.50fa7"\r
2571             ]\r
2572         ]\r
2573     },\r
2574     {\r
2575         "id": "e2a984cd.aa357",\r
2576         "type": "outcome",\r
2577         "name": "esr-thirdparty-sdnc",\r
2578         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2579         "comments": "",\r
2580         "outputs": 1,\r
2581         "x": 4737,\r
2582         "y": 1525,\r
2583         "z": "cd8c161.e76ffe8",\r
2584         "wires": [\r
2585             [\r
2586                 "3a9f2f8b.e28ed"\r
2587             ]\r
2588         ]\r
2589     },\r
2590     {\r
2591         "id": "3a9f2f8b.e28ed",\r
2592         "type": "block",\r
2593         "name": "block : atomic",\r
2594         "xml": "<block atomic=\"true\">",\r
2595         "atomic": "true",\r
2596         "outputs": 1,\r
2597         "x": 4914,\r
2598         "y": 1517,\r
2599         "z": "cd8c161.e76ffe8",\r
2600         "wires": [\r
2601             [\r
2602                 "53b7b7ea.79ccb8",\r
2603                 "abc0256.22d4b58"\r
2604             ]\r
2605         ]\r
2606     },\r
2607     {\r
2608         "id": "f1a969ab.50fa7",\r
2609         "type": "for",\r
2610         "name": "for each relationship",\r
2611         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
2612         "comments": "",\r
2613         "outputs": 1,\r
2614         "x": 4339,\r
2615         "y": 1521,\r
2616         "z": "cd8c161.e76ffe8",\r
2617         "wires": [\r
2618             [\r
2619                 "f0d37653.530e5"\r
2620             ]\r
2621         ]\r
2622     },\r
2623     {\r
2624         "id": "f0d37653.530e5",\r
2625         "type": "switchNode",\r
2626         "name": "switch related-to",\r
2627         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
2628         "comments": "",\r
2629         "outputs": 1,\r
2630         "x": 4534,\r
2631         "y": 1521,\r
2632         "z": "cd8c161.e76ffe8",\r
2633         "wires": [\r
2634             [\r
2635                 "e2a984cd.aa357",\r
2636                 "19b04051.d11648"\r
2637             ]\r
2638         ]\r
2639     },\r
2640     {\r
2641         "id": "abc0256.22d4b58",\r
2642         "type": "execute",\r
2643         "name": "get esr-thirdparty-sdnc",\r
2644         "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
2645         "comments": "",\r
2646         "outputs": 1,\r
2647         "x": 5122,\r
2648         "y": 1524,\r
2649         "z": "cd8c161.e76ffe8",\r
2650         "wires": [\r
2651             [\r
2652                 "ee461c39.fc6a98",\r
2653                 "85f503dc.f3ae58",\r
2654                 "2cdb4338.f53074"\r
2655             ]\r
2656         ]\r
2657     },\r
2658     {\r
2659         "id": "53b7b7ea.79ccb8",\r
2660         "type": "set",\r
2661         "name": "set esr-thirdparty-sdnc domainB id",\r
2662         "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
2663         "comments": "",\r
2664         "x": 5152,\r
2665         "y": 1472,\r
2666         "z": "cd8c161.e76ffe8",\r
2667         "wires": []\r
2668     },\r
2669     {\r
2670         "id": "ee461c39.fc6a98",\r
2671         "type": "success",\r
2672         "name": "success",\r
2673         "xml": "<outcome value='success'>\n",\r
2674         "comments": "",\r
2675         "outputs": 1,\r
2676         "x": 5332,\r
2677         "y": 1515,\r
2678         "z": "cd8c161.e76ffe8",\r
2679         "wires": [\r
2680             [\r
2681                 "bc865963.b711a"\r
2682             ]\r
2683         ]\r
2684     },\r
2685     {\r
2686         "id": "85f503dc.f3ae58",\r
2687         "type": "not-found",\r
2688         "name": "not-found",\r
2689         "xml": "<outcome value='not-found'>\n",\r
2690         "comments": "",\r
2691         "outputs": 1,\r
2692         "x": 5324,\r
2693         "y": 1570,\r
2694         "z": "cd8c161.e76ffe8",\r
2695         "wires": [\r
2696             [\r
2697                 "f79338ab.92167"\r
2698             ]\r
2699         ]\r
2700     },\r
2701     {\r
2702         "id": "2cdb4338.f53074",\r
2703         "type": "other",\r
2704         "name": "other",\r
2705         "xml": "<outcome value='Other'>\n",\r
2706         "comments": "",\r
2707         "outputs": 1,\r
2708         "x": 5329,\r
2709         "y": 1627,\r
2710         "z": "cd8c161.e76ffe8",\r
2711         "wires": [\r
2712             [\r
2713                 "bfc5b714.cbe288"\r
2714             ]\r
2715         ]\r
2716     },\r
2717     {\r
2718         "id": "bfc5b714.cbe288",\r
2719         "type": "returnFailure",\r
2720         "name": "return failure",\r
2721         "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
2722         "comments": "",\r
2723         "x": 5481,\r
2724         "y": 1628,\r
2725         "z": "cd8c161.e76ffe8",\r
2726         "wires": []\r
2727     },\r
2728     {\r
2729         "id": "f79338ab.92167",\r
2730         "type": "returnFailure",\r
2731         "name": "return failure",\r
2732         "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
2733         "comments": "",\r
2734         "x": 5492,\r
2735         "y": 1573,\r
2736         "z": "cd8c161.e76ffe8",\r
2737         "wires": []\r
2738     },\r
2739     {\r
2740         "id": "bc865963.b711a",\r
2741         "type": "block",\r
2742         "name": "block",\r
2743         "xml": "<block>\n",\r
2744         "atomic": "false",\r
2745         "comments": "",\r
2746         "outputs": 1,\r
2747         "x": 5476.38232421875,\r
2748         "y": 1512.6556701660156,\r
2749         "z": "cd8c161.e76ffe8",\r
2750         "wires": [\r
2751             [\r
2752                 "6cd4d323.819c7c"\r
2753             ]\r
2754         ]\r
2755     },\r
2756     {\r
2757         "id": "6cd4d323.819c7c",\r
2758         "type": "set",\r
2759         "name": "set controller domainB data",\r
2760         "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
2761         "comments": "",\r
2762         "x": 5691,\r
2763         "y": 1509,\r
2764         "z": "cd8c161.e76ffe8",\r
2765         "wires": []\r
2766     },\r
2767     {\r
2768         "id": "53404fc0.a38be",\r
2769         "type": "block",\r
2770         "name": "block : atomic",\r
2771         "xml": "<block atomic=\"true\">",\r
2772         "atomic": "true",\r
2773         "outputs": 1,\r
2774         "x": 2775,\r
2775         "y": 449,\r
2776         "z": "cd8c161.e76ffe8",\r
2777         "wires": [\r
2778             [\r
2779                 "62e6aba8.2c101c",\r
2780                 "9754a6dd.67f03"\r
2781             ]\r
2782         ]\r
2783     },\r
2784     {\r
2785         "id": "9754a6dd.67f03",\r
2786         "type": "for",\r
2787         "name": "for each allotted-resource relationship",\r
2788         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
2789         "comments": "",\r
2790         "outputs": 1,\r
2791         "x": 3056,\r
2792         "y": 405,\r
2793         "z": "cd8c161.e76ffe8",\r
2794         "wires": [\r
2795             [\r
2796                 "a377e213.201cf8"\r
2797             ]\r
2798         ]\r
2799     },\r
2800     {\r
2801         "id": "a377e213.201cf8",\r
2802         "type": "switchNode",\r
2803         "name": "switch related-to",\r
2804         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
2805         "comments": "",\r
2806         "outputs": 1,\r
2807         "x": 3318,\r
2808         "y": 405,\r
2809         "z": "cd8c161.e76ffe8",\r
2810         "wires": [\r
2811             [\r
2812                 "7737916f.9448f"\r
2813             ]\r
2814         ]\r
2815     },\r
2816     {\r
2817         "id": "d8e84e3d.259878",\r
2818         "type": "outcome",\r
2819         "name": "network-resource",\r
2820         "xml": "<outcome value='network-resource'>",\r
2821         "comments": "",\r
2822         "outputs": 1,\r
2823         "x": 4699,\r
2824         "y": 758,\r
2825         "z": "cd8c161.e76ffe8",\r
2826         "wires": [\r
2827             [\r
2828                 "3db61f55.c940b"\r
2829             ]\r
2830         ]\r
2831     },\r
2832     {\r
2833         "id": "3db61f55.c940b",\r
2834         "type": "block",\r
2835         "name": "block : atomic",\r
2836         "xml": "<block atomic=\"true\">",\r
2837         "atomic": "true",\r
2838         "outputs": 1,\r
2839         "x": 4876,\r
2840         "y": 750,\r
2841         "z": "cd8c161.e76ffe8",\r
2842         "wires": [\r
2843             [\r
2844                 "c68e6afb.37cad8"\r
2845             ]\r
2846         ]\r
2847     },\r
2848     {\r
2849         "id": "c68e6afb.37cad8",\r
2850         "type": "set",\r
2851         "name": "set domainA ethernet layer network-id",\r
2852         "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
2853         "comments": "",\r
2854         "x": 5111,\r
2855         "y": 874,\r
2856         "z": "cd8c161.e76ffe8",\r
2857         "wires": []\r
2858     },\r
2859     {\r
2860         "id": "70ffeb00.3c6c1c",\r
2861         "type": "set",\r
2862         "name": "set domainB ethernet layer network-id",\r
2863         "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
2864         "comments": "",\r
2865         "x": 5151,\r
2866         "y": 1714,\r
2867         "z": "cd8c161.e76ffe8",\r
2868         "wires": []\r
2869     },\r
2870     {\r
2871         "id": "ce30230.018a56",\r
2872         "type": "block",\r
2873         "name": "block : atomic",\r
2874         "xml": "<block atomic=\"true\">",\r
2875         "atomic": "true",\r
2876         "outputs": 1,\r
2877         "x": 4916,\r
2878         "y": 1590,\r
2879         "z": "cd8c161.e76ffe8",\r
2880         "wires": [\r
2881             [\r
2882                 "70ffeb00.3c6c1c"\r
2883             ]\r
2884         ]\r
2885     },\r
2886     {\r
2887         "id": "19b04051.d11648",\r
2888         "type": "outcome",\r
2889         "name": "network-resource",\r
2890         "xml": "<outcome value='network-resource'>",\r
2891         "comments": "",\r
2892         "outputs": 1,\r
2893         "x": 4739,\r
2894         "y": 1598,\r
2895         "z": "cd8c161.e76ffe8",\r
2896         "wires": [\r
2897             [\r
2898                 "ce30230.018a56"\r
2899             ]\r
2900         ]\r
2901     },\r
2902     {\r
2903         "id": "36ea936c.0d2d9c",\r
2904         "type": "set",\r
2905         "name": "set the max bandwidth",\r
2906         "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
2907         "comments": "",\r
2908         "x": 4357,\r
2909         "y": 535,\r
2910         "z": "cd8c161.e76ffe8",\r
2911         "wires": []\r
2912     },\r
2913     {\r
2914         "id": "39c2d67.9f1a22a",\r
2915         "type": "execute",\r
2916         "name": "execute UUID generator for ethernet-service-name",\r
2917         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
2918         "comments": "",\r
2919         "outputs": 1,\r
2920         "x": 2713,\r
2921         "y": 669,\r
2922         "z": "cd8c161.e76ffe8",\r
2923         "wires": [\r
2924             []\r
2925         ]\r
2926     },\r
2927     {\r
2928         "id": "d6aa9ec.33fa46",\r
2929         "type": "execute",\r
2930         "name": "execute UUID generator for otn-tunnel-name",\r
2931         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
2932         "comments": "",\r
2933         "outputs": 1,\r
2934         "x": 2694,\r
2935         "y": 719,\r
2936         "z": "cd8c161.e76ffe8",\r
2937         "wires": [\r
2938             []\r
2939         ]\r
2940     },\r
2941     {\r
2942         "id": "3b75dc28.79bec4",\r
2943         "type": "for",\r
2944         "name": "for each allotted-resource",\r
2945         "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
2946         "comments": "",\r
2947         "outputs": 1,\r
2948         "x": 1955,\r
2949         "y": 253,\r
2950         "z": "cd8c161.e76ffe8",\r
2951         "wires": [\r
2952             [\r
2953                 "42ce53ea.f9d9f4",\r
2954                 "fea2a65.c94cf58"\r
2955             ]\r
2956         ]\r
2957     },\r
2958     {\r
2959         "id": "42ce53ea.f9d9f4",\r
2960         "type": "set",\r
2961         "name": "set the current allotted-resource-id",\r
2962         "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
2963         "comments": "",\r
2964         "x": 2235,\r
2965         "y": 191,\r
2966         "z": "cd8c161.e76ffe8",\r
2967         "wires": []\r
2968     },\r
2969     {\r
2970         "id": "72dba682.c63c9",\r
2971         "type": "set",\r
2972         "name": "set query_param",\r
2973         "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
2974         "comments": "",\r
2975         "x": 2604,\r
2976         "y": 2318,\r
2977         "z": "cd8c161.e76ffe8",\r
2978         "wires": []\r
2979     },\r
2980     {\r
2981         "id": "1b6d1c66.bc0bb4",\r
2982         "type": "set",\r
2983         "name": "unset parameters",\r
2984         "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
2985         "comments": "",\r
2986         "x": 2594,\r
2987         "y": 3927,\r
2988         "z": "cd8c161.e76ffe8",\r
2989         "wires": []\r
2990     },\r
2991     {\r
2992         "id": "6c32ab13.072304",\r
2993         "type": "set",\r
2994         "name": "set new ethernet-service-name",\r
2995         "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
2996         "comments": "",\r
2997         "x": 2651,\r
2998         "y": 764,\r
2999         "z": "cd8c161.e76ffe8",\r
3000         "wires": []\r
3001     },\r
3002     {\r
3003         "id": "35f98555.2ceed2",\r
3004         "type": "for",\r
3005         "name": "for vidx..tmp.otninfo_length[]",\r
3006         "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",\r
3007         "comments": "",\r
3008         "outputs": 1,\r
3009         "x": 2639,\r
3010         "y": 2494,\r
3011         "z": "cd8c161.e76ffe8",\r
3012         "wires": [\r
3013             [\r
3014                 "5f7bc0b4.b38de8"\r
3015             ]\r
3016         ]\r
3017     },\r
3018     {\r
3019         "id": "3340e53d.b2b492",\r
3020         "type": "save",\r
3021         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
3022         "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",\r
3023         "comments": "",\r
3024         "outputs": 1,\r
3025         "x": 3768,\r
3026         "y": 2916,\r
3027         "z": "cd8c161.e76ffe8",\r
3028         "wires": [\r
3029             [\r
3030                 "b711db38.ba184"\r
3031             ]\r
3032         ]\r
3033     },\r
3034     {\r
3035         "id": "4bdc0f0f.14fc9",\r
3036         "type": "save",\r
3037         "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
3038         "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
3039         "comments": "",\r
3040         "outputs": 1,\r
3041         "x": 4340.5,\r
3042         "y": 3020,\r
3043         "z": "cd8c161.e76ffe8",\r
3044         "wires": [\r
3045             []\r
3046         ]\r
3047     },\r
3048     {\r
3049         "id": "b711db38.ba184",\r
3050         "type": "success",\r
3051         "name": "success",\r
3052         "xml": "<outcome value='success'>\n",\r
3053         "comments": "",\r
3054         "outputs": 1,\r
3055         "x": 4074,\r
3056         "y": 2915,\r
3057         "z": "cd8c161.e76ffe8",\r
3058         "wires": [\r
3059             [\r
3060                 "b22521de.818118"\r
3061             ]\r
3062         ]\r
3063     },\r
3064     {\r
3065         "id": "b22521de.818118",\r
3066         "type": "block",\r
3067         "name": "block",\r
3068         "xml": "<block>\n",\r
3069         "atomic": "false",\r
3070         "comments": "",\r
3071         "outputs": 1,\r
3072         "x": 4283.5,\r
3073         "y": 2915.25390625,\r
3074         "z": "cd8c161.e76ffe8",\r
3075         "wires": [\r
3076             []\r
3077         ]\r
3078     },\r
3079     {\r
3080         "id": "585cd143.7d2b8",\r
3081         "type": "execute",\r
3082         "name": "execute UUID generator for vpn-binding $otnidx",\r
3083         "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
3084         "comments": "",\r
3085         "outputs": 1,\r
3086         "x": 3801,\r
3087         "y": 2395,\r
3088         "z": "cd8c161.e76ffe8",\r
3089         "wires": [\r
3090             []\r
3091         ]\r
3092     },\r
3093     {\r
3094         "id": "f49c0fd7.2e7c08",\r
3095         "type": "switchNode",\r
3096         "name": "switch otnidx == 0",\r
3097         "xml": "<switch test='`$otnidx == 0`'>\n",\r
3098         "comments": "",\r
3099         "outputs": 1,\r
3100         "x": 3677,\r
3101         "y": 3033,\r
3102         "z": "cd8c161.e76ffe8",\r
3103         "wires": [\r
3104             [\r
3105                 "fed6bc26.f071a8",\r
3106                 "1d37d7ca.3763f"\r
3107             ]\r
3108         ]\r
3109     },\r
3110     {\r
3111         "id": "fed6bc26.f071a8",\r
3112         "type": "outcomeTrue",\r
3113         "name": "true",\r
3114         "xml": "<outcome value='true'>\n",\r
3115         "comments": "",\r
3116         "outputs": 1,\r
3117         "x": 3860,\r
3118         "y": 3033,\r
3119         "z": "cd8c161.e76ffe8",\r
3120         "wires": [\r
3121             [\r
3122                 "73494a81.45e24c"\r
3123             ]\r
3124         ]\r
3125     },\r
3126     {\r
3127         "id": "1d37d7ca.3763f",\r
3128         "type": "outcomeFalse",\r
3129         "name": "false",\r
3130         "xml": "<outcome value='false'>\n",\r
3131         "comments": "",\r
3132         "outputs": 1,\r
3133         "x": 3685,\r
3134         "y": 3180,\r
3135         "z": "cd8c161.e76ffe8",\r
3136         "wires": [\r
3137             [\r
3138                 "d3242d0f.9401e"\r
3139             ]\r
3140         ]\r
3141     },\r
3142     {\r
3143         "id": "e99682a.c4f64",\r
3144         "type": "switchNode",\r
3145         "name": "switch otnidx == last",\r
3146         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",\r
3147         "comments": "",\r
3148         "outputs": 1,\r
3149         "x": 4026,\r
3150         "y": 3261,\r
3151         "z": "cd8c161.e76ffe8",\r
3152         "wires": [\r
3153             [\r
3154                 "eb362179.9d3068",\r
3155                 "72ad90f5.140788"\r
3156             ]\r
3157         ]\r
3158     },\r
3159     {\r
3160         "id": "eb362179.9d3068",\r
3161         "type": "outcomeTrue",\r
3162         "name": "true",\r
3163         "xml": "<outcome value='true'>\n",\r
3164         "comments": "",\r
3165         "outputs": 1,\r
3166         "x": 4211,\r
3167         "y": 3262,\r
3168         "z": "cd8c161.e76ffe8",\r
3169         "wires": [\r
3170             [\r
3171                 "9791b470.15bff8"\r
3172             ]\r
3173         ]\r
3174     },\r
3175     {\r
3176         "id": "72ad90f5.140788",\r
3177         "type": "outcomeFalse",\r
3178         "name": "false",\r
3179         "xml": "<outcome value='false'>\n",\r
3180         "comments": "",\r
3181         "outputs": 1,\r
3182         "x": 4230,\r
3183         "y": 3528,\r
3184         "z": "cd8c161.e76ffe8",\r
3185         "wires": [\r
3186             [\r
3187                 "aff1f53d.8faa"\r
3188             ]\r
3189         ]\r
3190     },\r
3191     {\r
3192         "id": "c78f87c4.9bed48",\r
3193         "type": "save",\r
3194         "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
3195         "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
3196         "comments": "",\r
3197         "outputs": 1,\r
3198         "x": 4641,\r
3199         "y": 3263,\r
3200         "z": "cd8c161.e76ffe8",\r
3201         "wires": [\r
3202             []\r
3203         ]\r
3204     },\r
3205     {\r
3206         "id": "d7d2c7f0.8e25f8",\r
3207         "type": "execute",\r
3208         "name": "execute UUID generator for connectivity domain otnidx",\r
3209         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
3210         "comments": "",\r
3211         "outputs": 1,\r
3212         "x": 4715,\r
3213         "y": 3561,\r
3214         "z": "cd8c161.e76ffe8",\r
3215         "wires": [\r
3216             []\r
3217         ]\r
3218     },\r
3219     {\r
3220         "id": "1d6b059f.4c3bfa",\r
3221         "type": "save",\r
3222         "name": "save connectivity resource in AAI",\r
3223         "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='`$prop.sotn.etht-svc-name`' />-->\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
3224         "comments": "",\r
3225         "outputs": 1,\r
3226         "x": 4651,\r
3227         "y": 3612,\r
3228         "z": "cd8c161.e76ffe8",\r
3229         "wires": [\r
3230             []\r
3231         ]\r
3232     },\r
3233     {\r
3234         "id": "3d6ca865.871a5",\r
3235         "type": "save",\r
3236         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3237         "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
3238         "comments": "",\r
3239         "outputs": 1,\r
3240         "x": 4780,\r
3241         "y": 3662,\r
3242         "z": "cd8c161.e76ffe8",\r
3243         "wires": [\r
3244             []\r
3245         ]\r
3246     },\r
3247     {\r
3248         "id": "cd227f8a.a8638",\r
3249         "type": "comment",\r
3250         "name": "connectivity has not been created for middle domains, so we have to create one",\r
3251         "info": "",\r
3252         "comments": "",\r
3253         "x": 4790,\r
3254         "y": 3505,\r
3255         "z": "cd8c161.e76ffe8",\r
3256         "wires": []\r
3257     },\r
3258     {\r
3259         "id": "bfa230df.6f6f98",\r
3260         "type": "save",\r
3261         "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
3262         "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
3263         "comments": "",\r
3264         "outputs": 1,\r
3265         "x": 4748,\r
3266         "y": 3721,\r
3267         "z": "cd8c161.e76ffe8",\r
3268         "wires": [\r
3269             []\r
3270         ]\r
3271     },\r
3272     {\r
3273         "id": "aff1f53d.8faa",\r
3274         "type": "block",\r
3275         "name": "block : atomic",\r
3276         "xml": "<block atomic='true'>",\r
3277         "atomic": "true",\r
3278         "comments": "",\r
3279         "outputs": 1,\r
3280         "x": 4387,\r
3281         "y": 3529,\r
3282         "z": "cd8c161.e76ffe8",\r
3283         "wires": [\r
3284             [\r
3285                 "d7d2c7f0.8e25f8",\r
3286                 "1d6b059f.4c3bfa",\r
3287                 "3d6ca865.871a5",\r
3288                 "bfa230df.6f6f98",\r
3289                 "12522f2b.6fc8b1"\r
3290             ]\r
3291         ]\r
3292     },\r
3293     {\r
3294         "id": "5f7bc0b4.b38de8",\r
3295         "type": "block",\r
3296         "name": "block : atomic",\r
3297         "xml": "<block atomic='true'>",\r
3298         "atomic": "true",\r
3299         "comments": "",\r
3300         "outputs": 1,\r
3301         "x": 2908,\r
3302         "y": 2494,\r
3303         "z": "cd8c161.e76ffe8",\r
3304         "wires": [\r
3305             [\r
3306                 "585cd143.7d2b8",\r
3307                 "3340e53d.b2b492",\r
3308                 "f49c0fd7.2e7c08",\r
3309                 "f42a2589.31a0b",\r
3310                 "cc8174a8.50b7f",\r
3311                 "90db4521.56089",\r
3312                 "7bd1d477.e03354"\r
3313             ]\r
3314         ]\r
3315     },\r
3316     {\r
3317         "id": "4e1b8da0.7824b4",\r
3318         "type": "set",\r
3319         "name": "set attachment_param domain A",\r
3320         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",\r
3321         "comments": "",\r
3322         "x": 4265,\r
3323         "y": 3077,\r
3324         "z": "cd8c161.e76ffe8",\r
3325         "wires": []\r
3326     },\r
3327     {\r
3328         "id": "5449eb52.31f6ec",\r
3329         "type": "execute",\r
3330         "name": "execute RestApiCallNode domainA UNI Coloring",\r
3331         "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
3332         "comments": "",\r
3333         "outputs": 1,\r
3334         "x": 4318,\r
3335         "y": 3121,\r
3336         "z": "cd8c161.e76ffe8",\r
3337         "wires": [\r
3338             [\r
3339                 "1830f22c.565b16",\r
3340                 "d371e563.9b53a"\r
3341             ]\r
3342         ]\r
3343     },\r
3344     {\r
3345         "id": "d371e563.9b53a",\r
3346         "type": "failure",\r
3347         "name": "failure",\r
3348         "xml": "<outcome value='failure'>\n",\r
3349         "comments": "",\r
3350         "outputs": 1,\r
3351         "x": 4589,\r
3352         "y": 3106,\r
3353         "z": "cd8c161.e76ffe8",\r
3354         "wires": [\r
3355             [\r
3356                 "e029f2f6.ad875"\r
3357             ]\r
3358         ]\r
3359     },\r
3360     {\r
3361         "id": "1830f22c.565b16",\r
3362         "type": "success",\r
3363         "name": "success",\r
3364         "xml": "<outcome value='success'>\n",\r
3365         "comments": "",\r
3366         "outputs": 1,\r
3367         "x": 4587.000213623047,\r
3368         "y": 3163.99990940094,\r
3369         "z": "cd8c161.e76ffe8",\r
3370         "wires": [\r
3371             [\r
3372                 "adfa6667.8c9cb"\r
3373             ]\r
3374         ]\r
3375     },\r
3376     {\r
3377         "id": "e029f2f6.ad875",\r
3378         "type": "returnFailure",\r
3379         "name": "return failure",\r
3380         "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
3381         "comments": "",\r
3382         "x": 4729.000247955322,\r
3383         "y": 3106.0000009536743,\r
3384         "z": "cd8c161.e76ffe8",\r
3385         "wires": []\r
3386     },\r
3387     {\r
3388         "id": "adfa6667.8c9cb",\r
3389         "type": "block",\r
3390         "name": "block",\r
3391         "xml": "<block>\n",\r
3392         "atomic": "false",\r
3393         "comments": "",\r
3394         "outputs": 1,\r
3395         "x": 4735.02725982666,\r
3396         "y": 3154.745394706726,\r
3397         "z": "cd8c161.e76ffe8",\r
3398         "wires": [\r
3399             []\r
3400         ]\r
3401     },\r
3402     {\r
3403         "id": "73494a81.45e24c",\r
3404         "type": "block",\r
3405         "name": "block",\r
3406         "xml": "<block>\n",\r
3407         "atomic": "false",\r
3408         "comments": "",\r
3409         "outputs": 1,\r
3410         "x": 4001,\r
3411         "y": 3023,\r
3412         "z": "cd8c161.e76ffe8",\r
3413         "wires": [\r
3414             [\r
3415                 "4bdc0f0f.14fc9",\r
3416                 "5449eb52.31f6ec",\r
3417                 "4e1b8da0.7824b4"\r
3418             ]\r
3419         ]\r
3420     },\r
3421     {\r
3422         "id": "9791b470.15bff8",\r
3423         "type": "block",\r
3424         "name": "block",\r
3425         "xml": "<block>\n",\r
3426         "atomic": "false",\r
3427         "comments": "",\r
3428         "outputs": 1,\r
3429         "x": 4345,\r
3430         "y": 3263,\r
3431         "z": "cd8c161.e76ffe8",\r
3432         "wires": [\r
3433             [\r
3434                 "c78f87c4.9bed48",\r
3435                 "96e361f0.0cb568",\r
3436                 "e43c5196.95971"\r
3437             ]\r
3438         ]\r
3439     },\r
3440     {\r
3441         "id": "e43c5196.95971",\r
3442         "type": "set",\r
3443         "name": "set attachment_param domain B",\r
3444         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",\r
3445         "comments": "",\r
3446         "x": 4565,\r
3447         "y": 3307,\r
3448         "z": "cd8c161.e76ffe8",\r
3449         "wires": []\r
3450     },\r
3451     {\r
3452         "id": "96e361f0.0cb568",\r
3453         "type": "execute",\r
3454         "name": "execute RestApiCallNode domainB UNI Coloring",\r
3455         "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
3456         "comments": "",\r
3457         "outputs": 1,\r
3458         "x": 4616,\r
3459         "y": 3351,\r
3460         "z": "cd8c161.e76ffe8",\r
3461         "wires": [\r
3462             [\r
3463                 "d02e29cf.263e8",\r
3464                 "ecba049c.afd758"\r
3465             ]\r
3466         ]\r
3467     },\r
3468     {\r
3469         "id": "ecba049c.afd758",\r
3470         "type": "failure",\r
3471         "name": "failure",\r
3472         "xml": "<outcome value='failure'>\n",\r
3473         "comments": "",\r
3474         "outputs": 1,\r
3475         "x": 4879,\r
3476         "y": 3331,\r
3477         "z": "cd8c161.e76ffe8",\r
3478         "wires": [\r
3479             [\r
3480                 "335f23f9.119f0c"\r
3481             ]\r
3482         ]\r
3483     },\r
3484     {\r
3485         "id": "d02e29cf.263e8",\r
3486         "type": "success",\r
3487         "name": "success",\r
3488         "xml": "<outcome value='success'>\n",\r
3489         "comments": "",\r
3490         "outputs": 1,\r
3491         "x": 4880.000213623047,\r
3492         "y": 3381.99990940094,\r
3493         "z": "cd8c161.e76ffe8",\r
3494         "wires": [\r
3495             [\r
3496                 "49ab66fd.a6d9f8"\r
3497             ]\r
3498         ]\r
3499     },\r
3500     {\r
3501         "id": "335f23f9.119f0c",\r
3502         "type": "returnFailure",\r
3503         "name": "return failure",\r
3504         "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
3505         "comments": "",\r
3506         "x": 5019.000247955322,\r
3507         "y": 3331.0000009536743,\r
3508         "z": "cd8c161.e76ffe8",\r
3509         "wires": []\r
3510     },\r
3511     {\r
3512         "id": "49ab66fd.a6d9f8",\r
3513         "type": "block",\r
3514         "name": "block",\r
3515         "xml": "<block>\n",\r
3516         "atomic": "false",\r
3517         "comments": "",\r
3518         "outputs": 1,\r
3519         "x": 5025.02725982666,\r
3520         "y": 3379.745394706726,\r
3521         "z": "cd8c161.e76ffe8",\r
3522         "wires": [\r
3523             []\r
3524         ]\r
3525     },\r
3526     {\r
3527         "id": "12522f2b.6fc8b1",\r
3528         "type": "set",\r
3529         "name": "set attachment_param domain otnidx",\r
3530         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
3531         "comments": "",\r
3532         "x": 4662,\r
3533         "y": 3781,\r
3534         "z": "cd8c161.e76ffe8",\r
3535         "wires": []\r
3536     },\r
3537     {\r
3538         "id": "48979781.1681f8",\r
3539         "type": "save",\r
3540         "name": "get all-vpn-bindings from aai",\r
3541         "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
3542         "comments": "",\r
3543         "outputs": 1,\r
3544         "x": 1981,\r
3545         "y": 4128,\r
3546         "z": "cd8c161.e76ffe8",\r
3547         "wires": [\r
3548             [\r
3549                 "c2f0d7a5.dddd68",\r
3550                 "39032723.2690f8",\r
3551                 "52e0bd76.c6817c"\r
3552             ]\r
3553         ]\r
3554     },\r
3555     {\r
3556         "id": "c2f0d7a5.dddd68",\r
3557         "type": "success",\r
3558         "name": "success",\r
3559         "xml": "<outcome value='success'>\n",\r
3560         "comments": "",\r
3561         "outputs": 1,\r
3562         "x": 2169,\r
3563         "y": 4141,\r
3564         "z": "cd8c161.e76ffe8",\r
3565         "wires": [\r
3566             [\r
3567                 "ab5cddb1.22da4"\r
3568             ]\r
3569         ]\r
3570     },\r
3571     {\r
3572         "id": "39032723.2690f8",\r
3573         "type": "not-found",\r
3574         "name": "not-found",\r
3575         "xml": "<outcome value='not-found'>\n",\r
3576         "comments": "",\r
3577         "outputs": 1,\r
3578         "x": 2169.490966796875,\r
3579         "y": 4186.574035644531,\r
3580         "z": "cd8c161.e76ffe8",\r
3581         "wires": [\r
3582             [\r
3583                 "14fe4895.b40197"\r
3584             ]\r
3585         ]\r
3586     },\r
3587     {\r
3588         "id": "52e0bd76.c6817c",\r
3589         "type": "failure",\r
3590         "name": "failure",\r
3591         "xml": "<outcome value='failure'>\n",\r
3592         "comments": "",\r
3593         "outputs": 1,\r
3594         "x": 2167,\r
3595         "y": 4230,\r
3596         "z": "cd8c161.e76ffe8",\r
3597         "wires": [\r
3598             [\r
3599                 "b5248481.e522a"\r
3600             ]\r
3601         ]\r
3602     },\r
3603     {\r
3604         "id": "ab5cddb1.22da4",\r
3605         "type": "block",\r
3606         "name": "block : atomic",\r
3607         "xml": "<block atomic=\"true\">",\r
3608         "atomic": "true",\r
3609         "outputs": 1,\r
3610         "x": 2342,\r
3611         "y": 4139,\r
3612         "z": "cd8c161.e76ffe8",\r
3613         "wires": [\r
3614             [\r
3615                 "4470cae1.fbd614"\r
3616             ]\r
3617         ]\r
3618     },\r
3619     {\r
3620         "id": "14fe4895.b40197",\r
3621         "type": "returnFailure",\r
3622         "name": "return failure",\r
3623         "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
3624         "comments": "",\r
3625         "x": 2332.0623779296875,\r
3626         "y": 4186.859771728516,\r
3627         "z": "cd8c161.e76ffe8",\r
3628         "wires": []\r
3629     },\r
3630     {\r
3631         "id": "b5248481.e522a",\r
3632         "type": "returnFailure",\r
3633         "name": "return failure",\r
3634         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3635         "comments": "",\r
3636         "x": 2334,\r
3637         "y": 4229,\r
3638         "z": "cd8c161.e76ffe8",\r
3639         "wires": []\r
3640     },\r
3641     {\r
3642         "id": "5d2f9da2.d38694",\r
3643         "type": "for",\r
3644         "name": "for vidx..tmp.otninfo_length[]",\r
3645         "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",\r
3646         "comments": "",\r
3647         "outputs": 1,\r
3648         "x": 1970,\r
3649         "y": 4319,\r
3650         "z": "cd8c161.e76ffe8",\r
3651         "wires": [\r
3652             [\r
3653                 "8dfa636a.7429d"\r
3654             ]\r
3655         ]\r
3656     },\r
3657     {\r
3658         "id": "e79af240.ca6e5",\r
3659         "type": "block",\r
3660         "name": "block : atomic",\r
3661         "xml": "<block atomic='true'>",\r
3662         "atomic": "true",\r
3663         "comments": "",\r
3664         "outputs": 1,\r
3665         "x": 2780,\r
3666         "y": 4319,\r
3667         "z": "cd8c161.e76ffe8",\r
3668         "wires": [\r
3669             [\r
3670                 "6c6212ef.f90554"\r
3671             ]\r
3672         ]\r
3673     },\r
3674     {\r
3675         "id": "da3d1785.252e3",\r
3676         "type": "for",\r
3677         "name": "for vidx..tmp.otninfo_length[]",\r
3678         "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",\r
3679         "comments": "",\r
3680         "outputs": 1,\r
3681         "x": 2552,\r
3682         "y": 4319,\r
3683         "z": "cd8c161.e76ffe8",\r
3684         "wires": [\r
3685             [\r
3686                 "e79af240.ca6e5"\r
3687             ]\r
3688         ]\r
3689     },\r
3690     {\r
3691         "id": "14ccf193.a7ba36",\r
3692         "type": "set",\r
3693         "name": "set providerValue",\r
3694         "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
3695         "comments": "",\r
3696         "x": 3672,\r
3697         "y": 4086,\r
3698         "z": "cd8c161.e76ffe8",\r
3699         "wires": []\r
3700     },\r
3701     {\r
3702         "id": "3ba4980a.a7808",\r
3703         "type": "set",\r
3704         "name": "set",\r
3705         "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
3706         "comments": "",\r
3707         "x": 3974,\r
3708         "y": 3212,\r
3709         "z": "cd8c161.e76ffe8",\r
3710         "wires": []\r
3711     },\r
3712     {\r
3713         "id": "d3242d0f.9401e",\r
3714         "type": "block",\r
3715         "name": "block",\r
3716         "xml": "<block>\n",\r
3717         "atomic": "false",\r
3718         "comments": "",\r
3719         "outputs": 1,\r
3720         "x": 3809,\r
3721         "y": 3187,\r
3722         "z": "cd8c161.e76ffe8",\r
3723         "wires": [\r
3724             [\r
3725                 "3ba4980a.a7808",\r
3726                 "e99682a.c4f64"\r
3727             ]\r
3728         ]\r
3729     },\r
3730     {\r
3731         "id": "a26db7da.175a4",\r
3732         "type": "set",\r
3733         "name": "set tmp.arr",\r
3734         "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\n",\r
3735         "comments": "",\r
3736         "x": 1929,\r
3737         "y": 203,\r
3738         "z": "cd8c161.e76ffe8",\r
3739         "wires": []\r
3740     },\r
3741     {\r
3742         "id": "4470cae1.fbd614",\r
3743         "type": "for",\r
3744         "name": "for vpnidx in all-vpn-bindings",\r
3745         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
3746         "comments": "",\r
3747         "outputs": 1,\r
3748         "x": 2571,\r
3749         "y": 4140,\r
3750         "z": "cd8c161.e76ffe8",\r
3751         "wires": [\r
3752             [\r
3753                 "af51805a.3f6e48"\r
3754             ]\r
3755         ]\r
3756     },\r
3757     {\r
3758         "id": "af51805a.3f6e48",\r
3759         "type": "block",\r
3760         "name": "block : atomic",\r
3761         "xml": "<block atomic='true'>",\r
3762         "atomic": "true",\r
3763         "comments": "",\r
3764         "outputs": 1,\r
3765         "x": 2786,\r
3766         "y": 4141,\r
3767         "z": "cd8c161.e76ffe8",\r
3768         "wires": [\r
3769             [\r
3770                 "b29ba493.8896c8"\r
3771             ]\r
3772         ]\r
3773     },\r
3774     {\r
3775         "id": "de53bb83.199eb",\r
3776         "type": "for",\r
3777         "name": "for arridx in tmp.arr",\r
3778         "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",\r
3779         "comments": "",\r
3780         "outputs": 1,\r
3781         "x": 4239,\r
3782         "y": 4061,\r
3783         "z": "cd8c161.e76ffe8",\r
3784         "wires": [\r
3785             [\r
3786                 "204c9a7d.7d28b6"\r
3787             ]\r
3788         ]\r
3789     },\r
3790     {\r
3791         "id": "4aa9ee27.313a08",\r
3792         "type": "switchNode",\r
3793         "name": "switch $tmp.arr_length != 0",\r
3794         "xml": "<switch test='`$tmp.arr_length != 0`'>\n",\r
3795         "comments": "",\r
3796         "outputs": 1,\r
3797         "x": 3705,\r
3798         "y": 4141,\r
3799         "z": "cd8c161.e76ffe8",\r
3800         "wires": [\r
3801             [\r
3802                 "2d961aee.1b3a76",\r
3803                 "3325a435.f57dbc"\r
3804             ]\r
3805         ]\r
3806     },\r
3807     {\r
3808         "id": "2d961aee.1b3a76",\r
3809         "type": "outcomeTrue",\r
3810         "name": "true",\r
3811         "xml": "<outcome value='true'>\n",\r
3812         "comments": "",\r
3813         "outputs": 1,\r
3814         "x": 3901,\r
3815         "y": 4111,\r
3816         "z": "cd8c161.e76ffe8",\r
3817         "wires": [\r
3818             [\r
3819                 "78c69440.64f1a4"\r
3820             ]\r
3821         ]\r
3822     },\r
3823     {\r
3824         "id": "3325a435.f57dbc",\r
3825         "type": "outcomeFalse",\r
3826         "name": "false",\r
3827         "xml": "<outcome value='false'>\n",\r
3828         "comments": "",\r
3829         "outputs": 1,\r
3830         "x": 3902,\r
3831         "y": 4182,\r
3832         "z": "cd8c161.e76ffe8",\r
3833         "wires": [\r
3834             [\r
3835                 "fefe3e36.023678"\r
3836             ]\r
3837         ]\r
3838     },\r
3839     {\r
3840         "id": "78c69440.64f1a4",\r
3841         "type": "block",\r
3842         "name": "block : atomic",\r
3843         "xml": "<block atomic='true'>",\r
3844         "atomic": "true",\r
3845         "comments": "",\r
3846         "outputs": 1,\r
3847         "x": 4052,\r
3848         "y": 4109,\r
3849         "z": "cd8c161.e76ffe8",\r
3850         "wires": [\r
3851             [\r
3852                 "de53bb83.199eb",\r
3853                 "8df94468.3b3aa8"\r
3854             ]\r
3855         ]\r
3856     },\r
3857     {\r
3858         "id": "204c9a7d.7d28b6",\r
3859         "type": "switchNode",\r
3860         "name": "switch tmp.arr[$arridx] == $providerValue",\r
3861         "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",\r
3862         "comments": "",\r
3863         "outputs": 1,\r
3864         "x": 4530,\r
3865         "y": 4061,\r
3866         "z": "cd8c161.e76ffe8",\r
3867         "wires": [\r
3868             [\r
3869                 "c41481ab.88bea8",\r
3870                 "e1b07d6e.872148"\r
3871             ]\r
3872         ]\r
3873     },\r
3874     {\r
3875         "id": "c41481ab.88bea8",\r
3876         "type": "outcomeTrue",\r
3877         "name": "true",\r
3878         "xml": "<outcome value='true'>\n",\r
3879         "comments": "",\r
3880         "outputs": 1,\r
3881         "x": 4805,\r
3882         "y": 4030,\r
3883         "z": "cd8c161.e76ffe8",\r
3884         "wires": [\r
3885             [\r
3886                 "f1ff9d18.303e98"\r
3887             ]\r
3888         ]\r
3889     },\r
3890     {\r
3891         "id": "e1b07d6e.872148",\r
3892         "type": "outcomeFalse",\r
3893         "name": "false",\r
3894         "xml": "<outcome value='false'>\n",\r
3895         "comments": "",\r
3896         "outputs": 1,\r
3897         "x": 4806,\r
3898         "y": 4101,\r
3899         "z": "cd8c161.e76ffe8",\r
3900         "wires": [\r
3901             [\r
3902                 "14131c89.49f9f3"\r
3903             ]\r
3904         ]\r
3905     },\r
3906     {\r
3907         "id": "f1ff9d18.303e98",\r
3908         "type": "block",\r
3909         "name": "block : atomic",\r
3910         "xml": "<block atomic='true'>",\r
3911         "atomic": "true",\r
3912         "comments": "",\r
3913         "outputs": 1,\r
3914         "x": 4956,\r
3915         "y": 4028,\r
3916         "z": "cd8c161.e76ffe8",\r
3917         "wires": [\r
3918             [\r
3919                 "40d1e81e.6cc88",\r
3920                 "dbbf7f90.5aa4c8",\r
3921                 "83374978.c1c35",\r
3922                 "d7033d3e.83e278",\r
3923                 "8b158b61.9a9f58"\r
3924             ]\r
3925         ]\r
3926     },\r
3927     {\r
3928         "id": "40d1e81e.6cc88",\r
3929         "type": "set",\r
3930         "name": "set found to true",\r
3931         "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",\r
3932         "comments": "",\r
3933         "x": 5144,\r
3934         "y": 3988,\r
3935         "z": "cd8c161.e76ffe8",\r
3936         "wires": []\r
3937     },\r
3938     {\r
3939         "id": "dbbf7f90.5aa4c8",\r
3940         "type": "save",\r
3941         "name": "store $arridx somewhere in vpn-binding",\r
3942         "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
3943         "comments": "",\r
3944         "outputs": 1,\r
3945         "x": 5216,\r
3946         "y": 4033,\r
3947         "z": "cd8c161.e76ffe8",\r
3948         "wires": [\r
3949             []\r
3950         ]\r
3951     },\r
3952     {\r
3953         "id": "8b158b61.9a9f58",\r
3954         "type": "set",\r
3955         "name": "set twoD arr",\r
3956         "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
3957         "comments": "",\r
3958         "x": 5131,\r
3959         "y": 4160,\r
3960         "z": "cd8c161.e76ffe8",\r
3961         "wires": []\r
3962     },\r
3963     {\r
3964         "id": "d7033d3e.83e278",\r
3965         "type": "set",\r
3966         "name": "set sizeOfSliceList",\r
3967         "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",\r
3968         "comments": "",\r
3969         "x": 5152,\r
3970         "y": 4096,\r
3971         "z": "cd8c161.e76ffe8",\r
3972         "wires": []\r
3973     },\r
3974     {\r
3975         "id": "fefe3e36.023678",\r
3976         "type": "block",\r
3977         "name": "block : atomic",\r
3978         "xml": "<block atomic='true'>",\r
3979         "atomic": "true",\r
3980         "comments": "",\r
3981         "outputs": 1,\r
3982         "x": 4054,\r
3983         "y": 4182,\r
3984         "z": "cd8c161.e76ffe8",\r
3985         "wires": [\r
3986             [\r
3987                 "8b5a5937.7b14e8",\r
3988                 "738e0247.d8b784"\r
3989             ]\r
3990         ]\r
3991     },\r
3992     {\r
3993         "id": "8b5a5937.7b14e8",\r
3994         "type": "save",\r
3995         "name": "store $arridx somewhere in vpn-binding",\r
3996         "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
3997         "comments": "",\r
3998         "outputs": 1,\r
3999         "x": 4309,\r
4000         "y": 4175,\r
4001         "z": "cd8c161.e76ffe8",\r
4002         "wires": [\r
4003             []\r
4004         ]\r
4005     },\r
4006     {\r
4007         "id": "738e0247.d8b784",\r
4008         "type": "set",\r
4009         "name": "set twoD array",\r
4010         "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
4011         "comments": "",\r
4012         "x": 4237,\r
4013         "y": 4222,\r
4014         "z": "cd8c161.e76ffe8",\r
4015         "wires": []\r
4016     },\r
4017     {\r
4018         "id": "8df94468.3b3aa8",\r
4019         "type": "switchNode",\r
4020         "name": "switch found?",\r
4021         "xml": "<switch test='`$found`'>\n",\r
4022         "comments": "",\r
4023         "outputs": 1,\r
4024         "x": 4230,\r
4025         "y": 4106,\r
4026         "z": "cd8c161.e76ffe8",\r
4027         "wires": [\r
4028             [\r
4029                 "df11cc3e.1263f",\r
4030                 "1fe91094.d80647"\r
4031             ]\r
4032         ]\r
4033     },\r
4034     {\r
4035         "id": "df11cc3e.1263f",\r
4036         "type": "outcomeTrue",\r
4037         "name": "true",\r
4038         "xml": "<outcome value='true'>\n",\r
4039         "comments": "",\r
4040         "outputs": 1,\r
4041         "x": 4390,\r
4042         "y": 4098,\r
4043         "z": "cd8c161.e76ffe8",\r
4044         "wires": [\r
4045             [\r
4046                 "6014caa7.dd1974"\r
4047             ]\r
4048         ]\r
4049     },\r
4050     {\r
4051         "id": "1fe91094.d80647",\r
4052         "type": "outcomeFalse",\r
4053         "name": "false",\r
4054         "xml": "<outcome value='false'>\n",\r
4055         "comments": "",\r
4056         "outputs": 1,\r
4057         "x": 4388,\r
4058         "y": 4135,\r
4059         "z": "cd8c161.e76ffe8",\r
4060         "wires": [\r
4061             [\r
4062                 "4b7b9538.9e1144"\r
4063             ]\r
4064         ]\r
4065     },\r
4066     {\r
4067         "id": "6014caa7.dd1974",\r
4068         "type": "block",\r
4069         "name": "block",\r
4070         "xml": "<block>\n",\r
4071         "atomic": "false",\r
4072         "comments": "",\r
4073         "outputs": 1,\r
4074         "x": 4515,\r
4075         "y": 4098,\r
4076         "z": "cd8c161.e76ffe8",\r
4077         "wires": [\r
4078             []\r
4079         ]\r
4080     },\r
4081     {\r
4082         "id": "f4cf80fc.6110b8",\r
4083         "type": "save",\r
4084         "name": "store $arridx+1 somewhere in vpn-binding",\r
4085         "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
4086         "comments": "",\r
4087         "outputs": 1,\r
4088         "x": 4822,\r
4089         "y": 4156,\r
4090         "z": "cd8c161.e76ffe8",\r
4091         "wires": [\r
4092             []\r
4093         ]\r
4094     },\r
4095     {\r
4096         "id": "4b7b9538.9e1144",\r
4097         "type": "block",\r
4098         "name": "block : atomic",\r
4099         "xml": "<block atomic='true'>",\r
4100         "atomic": "true",\r
4101         "comments": "",\r
4102         "outputs": 1,\r
4103         "x": 4548,\r
4104         "y": 4143,\r
4105         "z": "cd8c161.e76ffe8",\r
4106         "wires": [\r
4107             [\r
4108                 "f4cf80fc.6110b8",\r
4109                 "cb01b96d.902da8"\r
4110             ]\r
4111         ]\r
4112     },\r
4113     {\r
4114         "id": "cb01b96d.902da8",\r
4115         "type": "set",\r
4116         "name": "set twoD array",\r
4117         "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
4118         "comments": "",\r
4119         "x": 4739,\r
4120         "y": 4202,\r
4121         "z": "cd8c161.e76ffe8",\r
4122         "wires": []\r
4123     },\r
4124     {\r
4125         "id": "14131c89.49f9f3",\r
4126         "type": "block",\r
4127         "name": "block",\r
4128         "xml": "<block>\n",\r
4129         "atomic": "false",\r
4130         "comments": "",\r
4131         "outputs": 1,\r
4132         "x": 4939,\r
4133         "y": 4100,\r
4134         "z": "cd8c161.e76ffe8",\r
4135         "wires": [\r
4136             []\r
4137         ]\r
4138     },\r
4139     {\r
4140         "id": "83374978.c1c35",\r
4141         "type": "break",\r
4142         "name": "break",\r
4143         "xml": "<break>\n",\r
4144         "comments": "",\r
4145         "x": 5110,\r
4146         "y": 4227,\r
4147         "z": "cd8c161.e76ffe8",\r
4148         "wires": []\r
4149     },\r
4150     {\r
4151         "id": "f42a2589.31a0b",\r
4152         "type": "switchNode",\r
4153         "name": "switch dstPort == NULL",\r
4154         "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
4155         "comments": "",\r
4156         "outputs": 1,\r
4157         "x": 3515,\r
4158         "y": 2485,\r
4159         "z": "cd8c161.e76ffe8",\r
4160         "wires": [\r
4161             [\r
4162                 "ac6a7600.1391a8",\r
4163                 "6c99c1a3.b2c848"\r
4164             ]\r
4165         ]\r
4166     },\r
4167     {\r
4168         "id": "ac6a7600.1391a8",\r
4169         "type": "outcomeTrue",\r
4170         "name": "true",\r
4171         "xml": "<outcome value='true'>\n",\r
4172         "comments": "",\r
4173         "outputs": 1,\r
4174         "x": 3881,\r
4175         "y": 2446,\r
4176         "z": "cd8c161.e76ffe8",\r
4177         "wires": [\r
4178             [\r
4179                 "c094d1a4.3a348"\r
4180             ]\r
4181         ]\r
4182     },\r
4183     {\r
4184         "id": "6c99c1a3.b2c848",\r
4185         "type": "outcomeFalse",\r
4186         "name": "false",\r
4187         "xml": "<outcome value='false'>\n",\r
4188         "comments": "",\r
4189         "outputs": 1,\r
4190         "x": 3882,\r
4191         "y": 2492,\r
4192         "z": "cd8c161.e76ffe8",\r
4193         "wires": [\r
4194             [\r
4195                 "11e69cf.d047563"\r
4196             ]\r
4197         ]\r
4198     },\r
4199     {\r
4200         "id": "c094d1a4.3a348",\r
4201         "type": "set",\r
4202         "name": "set access-provider-id and client-id",\r
4203         "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
4204         "comments": "",\r
4205         "x": 4095,\r
4206         "y": 2445,\r
4207         "z": "cd8c161.e76ffe8",\r
4208         "wires": []\r
4209     },\r
4210     {\r
4211         "id": "11e69cf.d047563",\r
4212         "type": "set",\r
4213         "name": "set access-provider-id and client-id",\r
4214         "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
4215         "comments": "",\r
4216         "x": 4093,\r
4217         "y": 2490,\r
4218         "z": "cd8c161.e76ffe8",\r
4219         "wires": []\r
4220     },\r
4221     {\r
4222         "id": "6c6212ef.f90554",\r
4223         "type": "set",\r
4224         "name": "set attachment_param sliceG",\r
4225         "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
4226         "comments": "",\r
4227         "x": 3033,\r
4228         "y": 4317,\r
4229         "z": "cd8c161.e76ffe8",\r
4230         "wires": []\r
4231     },\r
4232     {\r
4233         "id": "a54ce659.29b108",\r
4234         "type": "execute",\r
4235         "name": "execute RestApiCallNode sliceG creation domainG",\r
4236         "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
4237         "comments": "",\r
4238         "outputs": 1,\r
4239         "x": 2618,\r
4240         "y": 4425,\r
4241         "z": "cd8c161.e76ffe8",\r
4242         "wires": [\r
4243             [\r
4244                 "3fa26ce7.7e0224",\r
4245                 "b2b0e72c.a11478"\r
4246             ]\r
4247         ]\r
4248     },\r
4249     {\r
4250         "id": "b2b0e72c.a11478",\r
4251         "type": "failure",\r
4252         "name": "failure",\r
4253         "xml": "<outcome value='failure'>\n",\r
4254         "comments": "",\r
4255         "outputs": 1,\r
4256         "x": 2901,\r
4257         "y": 4405,\r
4258         "z": "cd8c161.e76ffe8",\r
4259         "wires": [\r
4260             [\r
4261                 "fa1f56ce.f832c8"\r
4262             ]\r
4263         ]\r
4264     },\r
4265     {\r
4266         "id": "3fa26ce7.7e0224",\r
4267         "type": "success",\r
4268         "name": "success",\r
4269         "xml": "<outcome value='success'>\n",\r
4270         "comments": "",\r
4271         "outputs": 1,\r
4272         "x": 2902.000213623047,\r
4273         "y": 4455.99990940094,\r
4274         "z": "cd8c161.e76ffe8",\r
4275         "wires": [\r
4276             [\r
4277                 "50896aad.7e40ec"\r
4278             ]\r
4279         ]\r
4280     },\r
4281     {\r
4282         "id": "fa1f56ce.f832c8",\r
4283         "type": "returnFailure",\r
4284         "name": "return failure",\r
4285         "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
4286         "comments": "",\r
4287         "x": 3041.0002479553223,\r
4288         "y": 4405.000000953674,\r
4289         "z": "cd8c161.e76ffe8",\r
4290         "wires": []\r
4291     },\r
4292     {\r
4293         "id": "50896aad.7e40ec",\r
4294         "type": "block",\r
4295         "name": "block",\r
4296         "xml": "<block>\n",\r
4297         "atomic": "false",\r
4298         "comments": "",\r
4299         "outputs": 1,\r
4300         "x": 3047.02725982666,\r
4301         "y": 4453.745394706726,\r
4302         "z": "cd8c161.e76ffe8",\r
4303         "wires": [\r
4304             []\r
4305         ]\r
4306     },\r
4307     {\r
4308         "id": "cc8174a8.50b7f",\r
4309         "type": "set",\r
4310         "name": "set srcdstpnf-name",\r
4311         "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
4312         "comments": "",\r
4313         "x": 3691,\r
4314         "y": 2559,\r
4315         "z": "cd8c161.e76ffe8",\r
4316         "wires": []\r
4317     },\r
4318     {\r
4319         "id": "90db4521.56089",\r
4320         "type": "get-resource",\r
4321         "name": "get-resource tmp.srcdstpnf-name",\r
4322         "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
4323         "comments": "",\r
4324         "outputs": 1,\r
4325         "x": 3735,\r
4326         "y": 2607,\r
4327         "z": "cd8c161.e76ffe8",\r
4328         "wires": [\r
4329             [\r
4330                 "3240cb0e.b7a8d4",\r
4331                 "f04379f7.8df68",\r
4332                 "3ab1dbdc.5ba7f4"\r
4333             ]\r
4334         ]\r
4335     },\r
4336     {\r
4337         "id": "3240cb0e.b7a8d4",\r
4338         "type": "success",\r
4339         "name": "success",\r
4340         "xml": "<outcome value='success'>\n",\r
4341         "comments": "",\r
4342         "outputs": 1,\r
4343         "x": 3947.5,\r
4344         "y": 2554,\r
4345         "z": "cd8c161.e76ffe8",\r
4346         "wires": [\r
4347             [\r
4348                 "e8a8f72b.6c9a08"\r
4349             ]\r
4350         ]\r
4351     },\r
4352     {\r
4353         "id": "f04379f7.8df68",\r
4354         "type": "not-found",\r
4355         "name": "not-found",\r
4356         "xml": "<outcome value='not-found'>\n",\r
4357         "comments": "",\r
4358         "outputs": 1,\r
4359         "x": 3959.5,\r
4360         "y": 2604,\r
4361         "z": "cd8c161.e76ffe8",\r
4362         "wires": [\r
4363             [\r
4364                 "b12e923.fc82e7"\r
4365             ]\r
4366         ]\r
4367     },\r
4368     {\r
4369         "id": "3ab1dbdc.5ba7f4",\r
4370         "type": "other",\r
4371         "name": "other",\r
4372         "xml": "<outcome value='Other'>\n",\r
4373         "comments": "",\r
4374         "outputs": 1,\r
4375         "x": 3950.5,\r
4376         "y": 2659,\r
4377         "z": "cd8c161.e76ffe8",\r
4378         "wires": [\r
4379             [\r
4380                 "582f59ae.92f2a8"\r
4381             ]\r
4382         ]\r
4383     },\r
4384     {\r
4385         "id": "582f59ae.92f2a8",\r
4386         "type": "returnFailure",\r
4387         "name": "return failure",\r
4388         "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
4389         "comments": "",\r
4390         "x": 4095.5,\r
4391         "y": 2658,\r
4392         "z": "cd8c161.e76ffe8",\r
4393         "wires": []\r
4394     },\r
4395     {\r
4396         "id": "b12e923.fc82e7",\r
4397         "type": "returnFailure",\r
4398         "name": "return failure",\r
4399         "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
4400         "comments": "",\r
4401         "x": 4106.5,\r
4402         "y": 2601,\r
4403         "z": "cd8c161.e76ffe8",\r
4404         "wires": []\r
4405     },\r
4406     {\r
4407         "id": "e8a8f72b.6c9a08",\r
4408         "type": "block",\r
4409         "name": "block",\r
4410         "xml": "<block>\n",\r
4411         "atomic": "false",\r
4412         "comments": "",\r
4413         "outputs": 1,\r
4414         "x": 4072.8824462890625,\r
4415         "y": 2547.6556701660156,\r
4416         "z": "cd8c161.e76ffe8",\r
4417         "wires": [\r
4418             [\r
4419                 "212a31bf.dceac6"\r
4420             ]\r
4421         ]\r
4422     },\r
4423     {\r
4424         "id": "935dfeb6.9be7f8",\r
4425         "type": "outcome",\r
4426         "name": "esr-thirdparty-sdnc",\r
4427         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
4428         "comments": "",\r
4429         "outputs": 1,\r
4430         "x": 4632,\r
4431         "y": 2566,\r
4432         "z": "cd8c161.e76ffe8",\r
4433         "wires": [\r
4434             [\r
4435                 "1328892f.88f617"\r
4436             ]\r
4437         ]\r
4438     },\r
4439     {\r
4440         "id": "1328892f.88f617",\r
4441         "type": "block",\r
4442         "name": "block : atomic",\r
4443         "xml": "<block atomic=\"true\">",\r
4444         "atomic": "true",\r
4445         "outputs": 1,\r
4446         "x": 4809,\r
4447         "y": 2558,\r
4448         "z": "cd8c161.e76ffe8",\r
4449         "wires": [\r
4450             [\r
4451                 "6a8226d0.94ebf",\r
4452                 "3a8b4f5e.be2aa8"\r
4453             ]\r
4454         ]\r
4455     },\r
4456     {\r
4457         "id": "212a31bf.dceac6",\r
4458         "type": "for",\r
4459         "name": "for each relationship",\r
4460         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
4461         "comments": "",\r
4462         "outputs": 1,\r
4463         "x": 4234,\r
4464         "y": 2562,\r
4465         "z": "cd8c161.e76ffe8",\r
4466         "wires": [\r
4467             [\r
4468                 "384efd0c.a6d9aa"\r
4469             ]\r
4470         ]\r
4471     },\r
4472     {\r
4473         "id": "384efd0c.a6d9aa",\r
4474         "type": "switchNode",\r
4475         "name": "switch related-to",\r
4476         "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
4477         "comments": "",\r
4478         "outputs": 1,\r
4479         "x": 4429,\r
4480         "y": 2562,\r
4481         "z": "cd8c161.e76ffe8",\r
4482         "wires": [\r
4483             [\r
4484                 "935dfeb6.9be7f8"\r
4485             ]\r
4486         ]\r
4487     },\r
4488     {\r
4489         "id": "3a8b4f5e.be2aa8",\r
4490         "type": "execute",\r
4491         "name": "get esr-thirdparty-sdnc",\r
4492         "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
4493         "comments": "",\r
4494         "outputs": 1,\r
4495         "x": 5017,\r
4496         "y": 2565,\r
4497         "z": "cd8c161.e76ffe8",\r
4498         "wires": [\r
4499             [\r
4500                 "a2f18412.fa34",\r
4501                 "938b13a9.db22e",\r
4502                 "e46fd8a5.7a34e8"\r
4503             ]\r
4504         ]\r
4505     },\r
4506     {\r
4507         "id": "6a8226d0.94ebf",\r
4508         "type": "set",\r
4509         "name": "set esr-thirdparty-sdnc domainG id",\r
4510         "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
4511         "comments": "",\r
4512         "x": 5047,\r
4513         "y": 2513,\r
4514         "z": "cd8c161.e76ffe8",\r
4515         "wires": []\r
4516     },\r
4517     {\r
4518         "id": "a2f18412.fa34",\r
4519         "type": "success",\r
4520         "name": "success",\r
4521         "xml": "<outcome value='success'>\n",\r
4522         "comments": "",\r
4523         "outputs": 1,\r
4524         "x": 5227,\r
4525         "y": 2556,\r
4526         "z": "cd8c161.e76ffe8",\r
4527         "wires": [\r
4528             [\r
4529                 "dfc55645.4078e"\r
4530             ]\r
4531         ]\r
4532     },\r
4533     {\r
4534         "id": "938b13a9.db22e",\r
4535         "type": "not-found",\r
4536         "name": "not-found",\r
4537         "xml": "<outcome value='not-found'>\n",\r
4538         "comments": "",\r
4539         "outputs": 1,\r
4540         "x": 5219,\r
4541         "y": 2611,\r
4542         "z": "cd8c161.e76ffe8",\r
4543         "wires": [\r
4544             [\r
4545                 "ad8534e.8f07fc8"\r
4546             ]\r
4547         ]\r
4548     },\r
4549     {\r
4550         "id": "e46fd8a5.7a34e8",\r
4551         "type": "other",\r
4552         "name": "other",\r
4553         "xml": "<outcome value='Other'>\n",\r
4554         "comments": "",\r
4555         "outputs": 1,\r
4556         "x": 5224,\r
4557         "y": 2668,\r
4558         "z": "cd8c161.e76ffe8",\r
4559         "wires": [\r
4560             [\r
4561                 "292bb9fe.d0f886"\r
4562             ]\r
4563         ]\r
4564     },\r
4565     {\r
4566         "id": "292bb9fe.d0f886",\r
4567         "type": "returnFailure",\r
4568         "name": "return failure",\r
4569         "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
4570         "comments": "",\r
4571         "x": 5376,\r
4572         "y": 2669,\r
4573         "z": "cd8c161.e76ffe8",\r
4574         "wires": []\r
4575     },\r
4576     {\r
4577         "id": "ad8534e.8f07fc8",\r
4578         "type": "returnFailure",\r
4579         "name": "return failure",\r
4580         "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
4581         "comments": "",\r
4582         "x": 5387,\r
4583         "y": 2614,\r
4584         "z": "cd8c161.e76ffe8",\r
4585         "wires": []\r
4586     },\r
4587     {\r
4588         "id": "dfc55645.4078e",\r
4589         "type": "block",\r
4590         "name": "block",\r
4591         "xml": "<block>\n",\r
4592         "atomic": "false",\r
4593         "comments": "",\r
4594         "outputs": 1,\r
4595         "x": 5371.38232421875,\r
4596         "y": 2553.6556701660156,\r
4597         "z": "cd8c161.e76ffe8",\r
4598         "wires": [\r
4599             [\r
4600                 "295d998d.b4f986"\r
4601             ]\r
4602         ]\r
4603     },\r
4604     {\r
4605         "id": "295d998d.b4f986",\r
4606         "type": "set",\r
4607         "name": "set controller domainA data",\r
4608         "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
4609         "comments": "",\r
4610         "x": 5586,\r
4611         "y": 2550,\r
4612         "z": "cd8c161.e76ffe8",\r
4613         "wires": []\r
4614     },\r
4615     {\r
4616         "id": "8dfa636a.7429d",\r
4617         "type": "block",\r
4618         "name": "block : atomic",\r
4619         "xml": "<block atomic='true'>",\r
4620         "atomic": "true",\r
4621         "comments": "",\r
4622         "outputs": 1,\r
4623         "x": 2202,\r
4624         "y": 4317,\r
4625         "z": "cd8c161.e76ffe8",\r
4626         "wires": [\r
4627             [\r
4628                 "da3d1785.252e3",\r
4629                 "a54ce659.29b108"\r
4630             ]\r
4631         ]\r
4632     },\r
4633     {\r
4634         "id": "7bd1d477.e03354",\r
4635         "type": "switchNode",\r
4636         "name": "switch dmnsidx == 0 (domainA)",\r
4637         "xml": "<switch test='`$otnidx == 0`'>\n",\r
4638         "comments": "",\r
4639         "outputs": 1,\r
4640         "x": 3705,\r
4641         "y": 2776,\r
4642         "z": "cd8c161.e76ffe8",\r
4643         "wires": [\r
4644             [\r
4645                 "3ed7d0cf.bd363",\r
4646                 "60e3c11b.60b2b8"\r
4647             ]\r
4648         ]\r
4649     },\r
4650     {\r
4651         "id": "3ed7d0cf.bd363",\r
4652         "type": "outcomeTrue",\r
4653         "name": "true",\r
4654         "xml": "<outcome value='true'>\n",\r
4655         "comments": "",\r
4656         "outputs": 1,\r
4657         "x": 3906,\r
4658         "y": 2774,\r
4659         "z": "cd8c161.e76ffe8",\r
4660         "wires": [\r
4661             [\r
4662                 "c5282b2e.c25f08"\r
4663             ]\r
4664         ]\r
4665     },\r
4666     {\r
4667         "id": "7fc9a02.f9a08e",\r
4668         "type": "set",\r
4669         "name": "set pce-src-node",\r
4670         "xml": "<set>\n<parameter name='tmp.pce-src-node' value='`$tmp.srcdstpnf-name`' />",\r
4671         "comments": "",\r
4672         "x": 4187,\r
4673         "y": 2724,\r
4674         "z": "cd8c161.e76ffe8",\r
4675         "wires": []\r
4676     },\r
4677     {\r
4678         "id": "6fcb3e30.7095c8",\r
4679         "type": "switchNode",\r
4680         "name": "switch dmnsidx == last (domainB)",\r
4681         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
4682         "comments": "",\r
4683         "outputs": 1,\r
4684         "x": 4123,\r
4685         "y": 2825,\r
4686         "z": "cd8c161.e76ffe8",\r
4687         "wires": [\r
4688             [\r
4689                 "65a08e4c.a1dc",\r
4690                 "640adf38.eff8b"\r
4691             ]\r
4692         ]\r
4693     },\r
4694     {\r
4695         "id": "65a08e4c.a1dc",\r
4696         "type": "outcomeTrue",\r
4697         "name": "true",\r
4698         "xml": "<outcome value='true'>\n",\r
4699         "comments": "",\r
4700         "outputs": 1,\r
4701         "x": 4353,\r
4702         "y": 2821,\r
4703         "z": "cd8c161.e76ffe8",\r
4704         "wires": [\r
4705             [\r
4706                 "4413ca18.7ca70c"\r
4707             ]\r
4708         ]\r
4709     },\r
4710     {\r
4711         "id": "8da31065.a87e4",\r
4712         "type": "set",\r
4713         "name": "set attachment_param domain B",\r
4714         "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
4715         "comments": "",\r
4716         "x": 4690,\r
4717         "y": 2765,\r
4718         "z": "cd8c161.e76ffe8",\r
4719         "wires": []\r
4720     },\r
4721     {\r
4722         "id": "60e3c11b.60b2b8",\r
4723         "type": "outcomeFalse",\r
4724         "name": "false",\r
4725         "xml": "<outcome value='false'>\n",\r
4726         "comments": "",\r
4727         "outputs": 1,\r
4728         "x": 3906,\r
4729         "y": 2823,\r
4730         "z": "cd8c161.e76ffe8",\r
4731         "wires": [\r
4732             [\r
4733                 "6fcb3e30.7095c8"\r
4734             ]\r
4735         ]\r
4736     },\r
4737     {\r
4738         "id": "640adf38.eff8b",\r
4739         "type": "outcomeFalse",\r
4740         "name": "false",\r
4741         "xml": "<outcome value='false'>\n",\r
4742         "comments": "",\r
4743         "outputs": 1,\r
4744         "x": 4354,\r
4745         "y": 2867,\r
4746         "z": "cd8c161.e76ffe8",\r
4747         "wires": [\r
4748             [\r
4749                 "7faf9acd.559b34"\r
4750             ]\r
4751         ]\r
4752     },\r
4753     {\r
4754         "id": "7faf9acd.559b34",\r
4755         "type": "set",\r
4756         "name": "set attachment_param domain G",\r
4757         "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
4758         "comments": "",\r
4759         "x": 4568,\r
4760         "y": 2867,\r
4761         "z": "cd8c161.e76ffe8",\r
4762         "wires": []\r
4763     },\r
4764     {\r
4765         "id": "9723f206.45f868",\r
4766         "type": "set",\r
4767         "name": "set tmp.slicevpns",\r
4768         "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
4769         "comments": "",\r
4770         "x": 4466,\r
4771         "y": 2916,\r
4772         "z": "cd8c161.e76ffe8",\r
4773         "wires": []\r
4774     },\r
4775     {\r
4776         "id": "b29ba493.8896c8",\r
4777         "type": "switchNode",\r
4778         "name": "switch vpnuuid is for this slice",\r
4779         "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\n",\r
4780         "comments": "",\r
4781         "outputs": 1,\r
4782         "x": 3030,\r
4783         "y": 4140,\r
4784         "z": "cd8c161.e76ffe8",\r
4785         "wires": [\r
4786             [\r
4787                 "174edd69.713c5b",\r
4788                 "af581154.4e753"\r
4789             ]\r
4790         ]\r
4791     },\r
4792     {\r
4793         "id": "174edd69.713c5b",\r
4794         "type": "outcomeTrue",\r
4795         "name": "true",\r
4796         "xml": "<outcome value='true'>\n",\r
4797         "comments": "",\r
4798         "outputs": 1,\r
4799         "x": 3247,\r
4800         "y": 4119,\r
4801         "z": "cd8c161.e76ffe8",\r
4802         "wires": [\r
4803             [\r
4804                 "53925b1.87893a4"\r
4805             ]\r
4806         ]\r
4807     },\r
4808     {\r
4809         "id": "af581154.4e753",\r
4810         "type": "outcomeFalse",\r
4811         "name": "false",\r
4812         "xml": "<outcome value='false'>\n",\r
4813         "comments": "",\r
4814         "outputs": 1,\r
4815         "x": 3247,\r
4816         "y": 4168,\r
4817         "z": "cd8c161.e76ffe8",\r
4818         "wires": [\r
4819             []\r
4820         ]\r
4821     },\r
4822     {\r
4823         "id": "53925b1.87893a4",\r
4824         "type": "block",\r
4825         "name": "block : atomic",\r
4826         "xml": "<block atomic='true'>",\r
4827         "atomic": "true",\r
4828         "comments": "",\r
4829         "outputs": 1,\r
4830         "x": 3415,\r
4831         "y": 4119,\r
4832         "z": "cd8c161.e76ffe8",\r
4833         "wires": [\r
4834             [\r
4835                 "14ccf193.a7ba36",\r
4836                 "4aa9ee27.313a08"\r
4837             ]\r
4838         ]\r
4839     },\r
4840     {\r
4841         "id": "2f0ddb5a.e806c4",\r
4842         "type": "set",\r
4843         "name": "set attachment_param domain A",\r
4844         "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
4845         "comments": "",\r
4846         "x": 4242,\r
4847         "y": 2771,\r
4848         "z": "cd8c161.e76ffe8",\r
4849         "wires": []\r
4850     },\r
4851     {\r
4852         "id": "c5282b2e.c25f08",\r
4853         "type": "block",\r
4854         "name": "block",\r
4855         "xml": "<block>\n",\r
4856         "atomic": "false",\r
4857         "comments": "",\r
4858         "outputs": 1,\r
4859         "x": 4030,\r
4860         "y": 2765,\r
4861         "z": "cd8c161.e76ffe8",\r
4862         "wires": [\r
4863             [\r
4864                 "2f0ddb5a.e806c4"\r
4865             ]\r
4866         ]\r
4867     },\r
4868     {\r
4869         "id": "60f94c1c.9e2504",\r
4870         "type": "set",\r
4871         "name": "set pce-src-node",\r
4872         "xml": "<set>\n<parameter name='tmp.pce-dst-node' value='`$tmp.srcdstpnf-name`' />",\r
4873         "comments": "",\r
4874         "x": 4642,\r
4875         "y": 2813,\r
4876         "z": "cd8c161.e76ffe8",\r
4877         "wires": []\r
4878     },\r
4879     {\r
4880         "id": "4413ca18.7ca70c",\r
4881         "type": "block",\r
4882         "name": "block",\r
4883         "xml": "<block>\n",\r
4884         "atomic": "false",\r
4885         "comments": "",\r
4886         "outputs": 1,\r
4887         "x": 4486,\r
4888         "y": 2797,\r
4889         "z": "cd8c161.e76ffe8",\r
4890         "wires": [\r
4891             [\r
4892                 "8da31065.a87e4"\r
4893             ]\r
4894         ]\r
4895     },\r
4896     {\r
4897         "id": "93c183ce.0a9ed8",\r
4898         "type": "get-resource",\r
4899         "name": "get-resource pnfs-list",\r
4900         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/pnfs?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
4901         "comments": "",\r
4902         "outputs": 1,\r
4903         "x": 1972,\r
4904         "y": 62,\r
4905         "z": "cd8c161.e76ffe8",\r
4906         "wires": [\r
4907             []\r
4908         ]\r
4909     },\r
4910     {\r
4911         "id": "5d8a5506.b8ac8c",\r
4912         "type": "get-resource",\r
4913         "name": "get-resource logical-links",\r
4914         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
4915         "comments": "",\r
4916         "outputs": 1,\r
4917         "x": 1984,\r
4918         "y": 103,\r
4919         "z": "cd8c161.e76ffe8",\r
4920         "wires": [\r
4921             []\r
4922         ]\r
4923     },\r
4924     {\r
4925         "id": "307d8c13.43fe3c",\r
4926         "type": "comment",\r
4927         "name": "The following two nodes are for PCE",\r
4928         "info": "",\r
4929         "comments": "",\r
4930         "x": 2008,\r
4931         "y": 25,\r
4932         "z": "cd8c161.e76ffe8",\r
4933         "wires": []\r
4934     },\r
4935     {\r
4936         "id": "86333e24.199f7",\r
4937         "type": "set",\r
4938         "name": "set tmp.arr",\r
4939         "xml": "<set>\n<parameter name='tmp.arr.' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='otn-tunnel-slice.' value='' />\n\n\n",\r
4940         "comments": "",\r
4941         "x": 1929,\r
4942         "y": 149,\r
4943         "z": "cd8c161.e76ffe8",\r
4944         "wires": []\r
4945     },\r
4946     {\r
4947         "id": "63cf541.20dacac",\r
4948         "type": "execute",\r
4949         "name": "execute printContext",\r
4950         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",\r
4951         "comments": "",\r
4952         "outputs": 1,\r
4953         "x": 2615,\r
4954         "y": 2432,\r
4955         "z": "cd8c161.e76ffe8",\r
4956         "wires": [\r
4957             []\r
4958         ]\r
4959     }\r
4960 ]