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