d08dd5a7464780a4be97452ef05df7d9a42325e9
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / p2p_eline / GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json
1 [\r
2     {\r
3         "id": "63d6efcd.91928",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 117.75,\r
8         "y": 202.75,\r
9         "z": "265dc029.a18eb8",\r
10         "wires": [\r
11             [\r
12                 "52717356.ffbb94"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "52717356.ffbb94",\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": 402.0356903076172,\r
26         "y": 263.98810863494873,\r
27         "z": "265dc029.a18eb8",\r
28         "wires": [\r
29             [\r
30                 "84b7b306.9f6af8"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "84b7b306.9f6af8",\r
36         "type": "method",\r
37         "name": "method p2p-vnf-topology-operation-p2p-create",\r
38         "xml": "<method rpc='p2p-vnf-topology-operation-p2p-create' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 408.17860412597656,\r
42         "y": 348.7500305175781,\r
43         "z": "265dc029.a18eb8",\r
44         "wires": [\r
45             [\r
46                 "7e2299c2.fed878"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "7e2299c2.fed878",\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": 777.988037109375,\r
58         "y": 373.41668701171875,\r
59         "z": "265dc029.a18eb8",\r
60         "wires": [\r
61             [\r
62                 "78c59c4d.b8fa2c",\r
63                 "dabba24a.9b138",\r
64                 "8be878cc.82db9"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "78c59c4d.b8fa2c",\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": 1079.321533203125,\r
75         "y": 644.3469848632812,\r
76         "z": "265dc029.a18eb8",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "dabba24a.9b138",\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": 1100.75,\r
87         "y": 346.75,\r
88         "z": "265dc029.a18eb8",\r
89         "wires": [\r
90             [\r
91                 "bb092529.d25fb8",\r
92                 "4416c12c.f02068",\r
93                 "148b7d66.64da3b"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "bb092529.d25fb8",\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": 1325.75,\r
105         "y": 204.75,\r
106         "z": "265dc029.a18eb8",\r
107         "wires": [\r
108             [\r
109                 "3a48b7db.b6fde8"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "4416c12c.f02068",\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": 1321.240966796875,\r
121         "y": 274.32403564453125,\r
122         "z": "265dc029.a18eb8",\r
123         "wires": [\r
124             [\r
125                 "f3e87723.d8879"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "148b7d66.64da3b",\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": 1309.75,\r
137         "y": 320.75,\r
138         "z": "265dc029.a18eb8",\r
139         "wires": [\r
140             [\r
141                 "e5cc88dc.b07a2"\r
142             ]\r
143         ]\r
144     },\r
145     {\r
146         "id": "3a48b7db.b6fde8",\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": 1564.75,\r
153         "y": 201.75,\r
154         "z": "265dc029.a18eb8",\r
155         "wires": [\r
156             [\r
157                 "604cb7eb.7b1a68",\r
158                 "ce2646b2.7561a"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "f3e87723.d8879",\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": 1474.8123779296875,\r
169         "y": 277.6097717285156,\r
170         "z": "265dc029.a18eb8",\r
171         "wires": []\r
172     },\r
173     {\r
174         "id": "e5cc88dc.b07a2",\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": 1478.75,\r
180         "y": 321.75,\r
181         "z": "265dc029.a18eb8",\r
182         "wires": []\r
183     },\r
184     {\r
185         "id": "604cb7eb.7b1a68",\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": 1777.75,\r
192         "y": 225.75,\r
193         "z": "265dc029.a18eb8",\r
194         "wires": [\r
195             [\r
196                 "b4021335.1e3ac"\r
197             ]\r
198         ]\r
199     },\r
200     {\r
201         "id": "ce2646b2.7561a",\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": 1779.75,\r
208         "y": 165.75,\r
209         "z": "265dc029.a18eb8",\r
210         "wires": [\r
211             []\r
212         ]\r
213     },\r
214     {\r
215         "id": "5b1f2cfd.e132ac",\r
216         "type": "comment",\r
217         "name": "new for TransportSlicing",\r
218         "info": "",\r
219         "comments": "",\r
220         "x": 1079.75,\r
221         "y": 234.75,\r
222         "z": "265dc029.a18eb8",\r
223         "wires": []\r
224     },\r
225     {\r
226         "id": "b4021335.1e3ac",\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": 1762.75,\r
234         "y": 313.75,\r
235         "z": "265dc029.a18eb8",\r
236         "wires": [\r
237             [\r
238                 "e47816c1.46d19",\r
239                 "bf3fdeb7.6e1648",\r
240                 "b761fd8.2b6b08",\r
241                 "50d31847.5f509",\r
242                 "9bdaad5a.e56e08"\r
243             ]\r
244         ]\r
245     },\r
246     {\r
247         "id": "d40580c2.e45d78",\r
248         "type": "set",\r
249         "name": "set network-route-A",\r
250         "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
251         "comments": "",\r
252         "x": 2625.75,\r
253         "y": 913.75,\r
254         "z": "265dc029.a18eb8",\r
255         "wires": []\r
256     },\r
257     {\r
258         "id": "b659bcf9.848a1",\r
259         "type": "set",\r
260         "name": "set network-route-B",\r
261         "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
262         "comments": "",\r
263         "x": 2626.75,\r
264         "y": 968.75,\r
265         "z": "265dc029.a18eb8",\r
266         "wires": []\r
267     },\r
268     {\r
269         "id": "2fd2492.76d5db6",\r
270         "type": "save",\r
271         "name": "get allotted-resource from aai",\r
272         "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
273         "comments": "",\r
274         "outputs": 1,\r
275         "x": 2248.75,\r
276         "y": 364.75,\r
277         "z": "265dc029.a18eb8",\r
278         "wires": [\r
279             [\r
280                 "c9dda2b1.43ab8",\r
281                 "ef111932.8f23",\r
282                 "cbe8fd1f.6baa2"\r
283             ]\r
284         ]\r
285     },\r
286     {\r
287         "id": "c9dda2b1.43ab8",\r
288         "type": "success",\r
289         "name": "success",\r
290         "xml": "<outcome value='success'>\n",\r
291         "comments": "",\r
292         "outputs": 1,\r
293         "x": 2464.75,\r
294         "y": 431.75,\r
295         "z": "265dc029.a18eb8",\r
296         "wires": [\r
297             [\r
298                 "17fe2d2.f198953"\r
299             ]\r
300         ]\r
301     },\r
302     {\r
303         "id": "ef111932.8f23",\r
304         "type": "not-found",\r
305         "name": "not-found",\r
306         "xml": "<outcome value='not-found'>\n",\r
307         "comments": "",\r
308         "outputs": 1,\r
309         "x": 2465.240966796875,\r
310         "y": 331.323974609375,\r
311         "z": "265dc029.a18eb8",\r
312         "wires": [\r
313             [\r
314                 "87a60ba4.535a68"\r
315             ]\r
316         ]\r
317     },\r
318     {\r
319         "id": "cbe8fd1f.6baa2",\r
320         "type": "failure",\r
321         "name": "failure",\r
322         "xml": "<outcome value='failure'>\n",\r
323         "comments": "",\r
324         "outputs": 1,\r
325         "x": 2460.75,\r
326         "y": 380.75,\r
327         "z": "265dc029.a18eb8",\r
328         "wires": [\r
329             [\r
330                 "22e5c805.c55278"\r
331             ]\r
332         ]\r
333     },\r
334     {\r
335         "id": "87a60ba4.535a68",\r
336         "type": "returnFailure",\r
337         "name": "return failure",\r
338         "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
339         "comments": "",\r
340         "x": 2642.8125,\r
341         "y": 331.6097412109375,\r
342         "z": "265dc029.a18eb8",\r
343         "wires": []\r
344     },\r
345     {\r
346         "id": "22e5c805.c55278",\r
347         "type": "returnFailure",\r
348         "name": "return failure",\r
349         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
350         "comments": "",\r
351         "x": 2642.75,\r
352         "y": 380.75,\r
353         "z": "265dc029.a18eb8",\r
354         "wires": []\r
355     },\r
356     {\r
357         "id": "caff6575.521c18",\r
358         "type": "save",\r
359         "name": "get logical-link from aai",\r
360         "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
361         "comments": "",\r
362         "outputs": 1,\r
363         "x": 1983.75,\r
364         "y": 853.75,\r
365         "z": "265dc029.a18eb8",\r
366         "wires": [\r
367             [\r
368                 "b6506162.cc4e28",\r
369                 "aa283f4f.6ff15",\r
370                 "4fc62792.1d1aa"\r
371             ]\r
372         ]\r
373     },\r
374     {\r
375         "id": "b6506162.cc4e28",\r
376         "type": "not-found",\r
377         "name": "not-found",\r
378         "xml": "<outcome value='not-found'>\n",\r
379         "comments": "",\r
380         "outputs": 1,\r
381         "x": 2275.240966796875,\r
382         "y": 832.323974609375,\r
383         "z": "265dc029.a18eb8",\r
384         "wires": [\r
385             [\r
386                 "854cdcdd.af5178"\r
387             ]\r
388         ]\r
389     },\r
390     {\r
391         "id": "aa283f4f.6ff15",\r
392         "type": "failure",\r
393         "name": "failure",\r
394         "xml": "<outcome value='failure'>\n",\r
395         "comments": "",\r
396         "outputs": 1,\r
397         "x": 2263.75,\r
398         "y": 876.75,\r
399         "z": "265dc029.a18eb8",\r
400         "wires": [\r
401             [\r
402                 "4317fabe.8b662c"\r
403             ]\r
404         ]\r
405     },\r
406     {\r
407         "id": "854cdcdd.af5178",\r
408         "type": "returnFailure",\r
409         "name": "return failure",\r
410         "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
411         "comments": "",\r
412         "x": 2423.8125,\r
413         "y": 832.6097412109375,\r
414         "z": "265dc029.a18eb8",\r
415         "wires": []\r
416     },\r
417     {\r
418         "id": "4317fabe.8b662c",\r
419         "type": "returnFailure",\r
420         "name": "return failure",\r
421         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
422         "comments": "",\r
423         "x": 2422.75,\r
424         "y": 876.75,\r
425         "z": "265dc029.a18eb8",\r
426         "wires": []\r
427     },\r
428     {\r
429         "id": "4fc62792.1d1aa",\r
430         "type": "success",\r
431         "name": "success",\r
432         "xml": "<outcome value='success'>\n",\r
433         "comments": "",\r
434         "outputs": 1,\r
435         "x": 2270.75,\r
436         "y": 955.75,\r
437         "z": "265dc029.a18eb8",\r
438         "wires": [\r
439             [\r
440                 "ab7c1440.9f704"\r
441             ]\r
442         ]\r
443     },\r
444     {\r
445         "id": "ab7c1440.9f704",\r
446         "type": "block",\r
447         "name": "block",\r
448         "xml": "<block>\n",\r
449         "atomic": "false",\r
450         "comments": "",\r
451         "outputs": 1,\r
452         "x": 2409.75,\r
453         "y": 955.75,\r
454         "z": "265dc029.a18eb8",\r
455         "wires": [\r
456             [\r
457                 "d40580c2.e45d78",\r
458                 "b659bcf9.848a1",\r
459                 "a136fb28.0b527",\r
460                 "1648afc0.52dbc8",\r
461                 "b920e24f.94b628",\r
462                 "558b33bb.a28914",\r
463                 "14b3fe.dfa6ec02",\r
464                 "cd49f082.fc7e6",\r
465                 "ccca18a2.ea7ad8",\r
466                 "348e2352.849ddc",\r
467                 "631d9619.9d9ee",\r
468                 "c3b37174.45567"\r
469             ]\r
470         ]\r
471     },\r
472     {\r
473         "id": "a136fb28.0b527",\r
474         "type": "save",\r
475         "name": "get network-route-A from aai",\r
476         "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
477         "comments": "",\r
478         "outputs": 1,\r
479         "x": 2638.75,\r
480         "y": 1036.75,\r
481         "z": "265dc029.a18eb8",\r
482         "wires": [\r
483             [\r
484                 "1145371f.91a831",\r
485                 "5a2e1129.154e8",\r
486                 "b9792c95.c6cf1"\r
487             ]\r
488         ]\r
489     },\r
490     {\r
491         "id": "1648afc0.52dbc8",\r
492         "type": "save",\r
493         "name": "get network-route-B from aai",\r
494         "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
495         "comments": "",\r
496         "outputs": 1,\r
497         "x": 2617.75,\r
498         "y": 1638.7498779296875,\r
499         "z": "265dc029.a18eb8",\r
500         "wires": [\r
501             [\r
502                 "2e980743.252ac8",\r
503                 "1e789473.1cf9ec",\r
504                 "90160a99.2f8a58"\r
505             ]\r
506         ]\r
507     },\r
508     {\r
509         "id": "1145371f.91a831",\r
510         "type": "not-found",\r
511         "name": "not-found",\r
512         "xml": "<outcome value='not-found'>\n",\r
513         "comments": "",\r
514         "outputs": 1,\r
515         "x": 2839.75,\r
516         "y": 920.75,\r
517         "z": "265dc029.a18eb8",\r
518         "wires": [\r
519             [\r
520                 "3ed8df93.4273e"\r
521             ]\r
522         ]\r
523     },\r
524     {\r
525         "id": "5a2e1129.154e8",\r
526         "type": "failure",\r
527         "name": "failure",\r
528         "xml": "<outcome value='failure'>\n",\r
529         "comments": "",\r
530         "outputs": 1,\r
531         "x": 2835.259033203125,\r
532         "y": 970.176025390625,\r
533         "z": "265dc029.a18eb8",\r
534         "wires": [\r
535             [\r
536                 "33754642.9ad63a"\r
537             ]\r
538         ]\r
539     },\r
540     {\r
541         "id": "b9792c95.c6cf1",\r
542         "type": "success",\r
543         "name": "success",\r
544         "xml": "<outcome value='success'>\n",\r
545         "comments": "",\r
546         "outputs": 1,\r
547         "x": 2839.259033203125,\r
548         "y": 1021.176025390625,\r
549         "z": "265dc029.a18eb8",\r
550         "wires": [\r
551             [\r
552                 "64d30532.9bdba4"\r
553             ]\r
554         ]\r
555     },\r
556     {\r
557         "id": "3ed8df93.4273e",\r
558         "type": "returnFailure",\r
559         "name": "return failure",\r
560         "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
561         "comments": "",\r
562         "x": 2988.321533203125,\r
563         "y": 920.0357666015625,\r
564         "z": "265dc029.a18eb8",\r
565         "wires": []\r
566     },\r
567     {\r
568         "id": "33754642.9ad63a",\r
569         "type": "returnFailure",\r
570         "name": "return failure",\r
571         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
572         "comments": "",\r
573         "x": 2978.259033203125,\r
574         "y": 970.176025390625,\r
575         "z": "265dc029.a18eb8",\r
576         "wires": []\r
577     },\r
578     {\r
579         "id": "2e980743.252ac8",\r
580         "type": "not-found",\r
581         "name": "not-found",\r
582         "xml": "<outcome value='not-found'>\n",\r
583         "comments": "",\r
584         "outputs": 1,\r
585         "x": 2840.75,\r
586         "y": 1608.7498779296875,\r
587         "z": "265dc029.a18eb8",\r
588         "wires": [\r
589             [\r
590                 "9b0a176a.3fd41"\r
591             ]\r
592         ]\r
593     },\r
594     {\r
595         "id": "1e789473.1cf9ec",\r
596         "type": "failure",\r
597         "name": "failure",\r
598         "xml": "<outcome value='failure'>\n",\r
599         "comments": "",\r
600         "outputs": 1,\r
601         "x": 2836.259033203125,\r
602         "y": 1658.1759033203125,\r
603         "z": "265dc029.a18eb8",\r
604         "wires": [\r
605             [\r
606                 "b94ccd2f.84b8b8"\r
607             ]\r
608         ]\r
609     },\r
610     {\r
611         "id": "90160a99.2f8a58",\r
612         "type": "success",\r
613         "name": "success",\r
614         "xml": "<outcome value='success'>\n",\r
615         "comments": "",\r
616         "outputs": 1,\r
617         "x": 2840.259033203125,\r
618         "y": 1709.1759033203125,\r
619         "z": "265dc029.a18eb8",\r
620         "wires": [\r
621             [\r
622                 "8f6fd298.ecc1e8"\r
623             ]\r
624         ]\r
625     },\r
626     {\r
627         "id": "9b0a176a.3fd41",\r
628         "type": "returnFailure",\r
629         "name": "return failure",\r
630         "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
631         "comments": "",\r
632         "x": 2989.321533203125,\r
633         "y": 1608.03564453125,\r
634         "z": "265dc029.a18eb8",\r
635         "wires": []\r
636     },\r
637     {\r
638         "id": "b94ccd2f.84b8b8",\r
639         "type": "returnFailure",\r
640         "name": "return failure",\r
641         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
642         "comments": "",\r
643         "x": 2979.259033203125,\r
644         "y": 1658.1759033203125,\r
645         "z": "265dc029.a18eb8",\r
646         "wires": []\r
647     },\r
648     {\r
649         "id": "da7f1dce.5cb46",\r
650         "type": "block",\r
651         "name": "block : atomic",\r
652         "xml": "<block atomic=\"true\">",\r
653         "atomic": "true",\r
654         "outputs": 1,\r
655         "x": 3653.41650390625,\r
656         "y": 1064.75,\r
657         "z": "265dc029.a18eb8",\r
658         "wires": [\r
659             [\r
660                 "826c0f72.a70018",\r
661                 "36f8f99c.c030b6",\r
662                 "57c1cc0d.dcb6ac",\r
663                 "9cbc6da7.b032e",\r
664                 "992f0b42.313448"\r
665             ]\r
666         ]\r
667     },\r
668     {\r
669         "id": "b7d2e547.bd45e8",\r
670         "type": "success",\r
671         "name": "success",\r
672         "xml": "<outcome value='success'>\n",\r
673         "comments": "",\r
674         "outputs": 1,\r
675         "x": 3480.75,\r
676         "y": 1065.75,\r
677         "z": "265dc029.a18eb8",\r
678         "wires": [\r
679             [\r
680                 "da7f1dce.5cb46"\r
681             ]\r
682         ]\r
683     },\r
684     {\r
685         "id": "647aea0c.904444",\r
686         "type": "not-found",\r
687         "name": "not-found",\r
688         "xml": "<outcome value='not-found'>\n",\r
689         "comments": "",\r
690         "outputs": 1,\r
691         "x": 3490.240966796875,\r
692         "y": 1108.3240356445312,\r
693         "z": "265dc029.a18eb8",\r
694         "wires": [\r
695             [\r
696                 "99f9ef28.22d7a"\r
697             ]\r
698         ]\r
699     },\r
700     {\r
701         "id": "1b3a301d.df26c",\r
702         "type": "failure",\r
703         "name": "failure",\r
704         "xml": "<outcome value='failure'>\n",\r
705         "comments": "",\r
706         "outputs": 1,\r
707         "x": 3478.75,\r
708         "y": 1154.75,\r
709         "z": "265dc029.a18eb8",\r
710         "wires": [\r
711             [\r
712                 "6ff92d51.144e3c"\r
713             ]\r
714         ]\r
715     },\r
716     {\r
717         "id": "99f9ef28.22d7a",\r
718         "type": "returnFailure",\r
719         "name": "return failure",\r
720         "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
721         "comments": "",\r
722         "x": 3643.8123779296875,\r
723         "y": 1111.6097717285156,\r
724         "z": "265dc029.a18eb8",\r
725         "wires": []\r
726     },\r
727     {\r
728         "id": "6ff92d51.144e3c",\r
729         "type": "returnFailure",\r
730         "name": "return failure",\r
731         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
732         "comments": "",\r
733         "x": 3647.75,\r
734         "y": 1155.75,\r
735         "z": "265dc029.a18eb8",\r
736         "wires": []\r
737     },\r
738     {\r
739         "id": "64d30532.9bdba4",\r
740         "type": "block",\r
741         "name": "block : atomic",\r
742         "xml": "<block atomic=\"true\">",\r
743         "atomic": "true",\r
744         "outputs": 1,\r
745         "x": 3000.75,\r
746         "y": 1022.75,\r
747         "z": "265dc029.a18eb8",\r
748         "wires": [\r
749             [\r
750                 "f7fe7886.c5f688",\r
751                 "97630cf9.61551"\r
752             ]\r
753         ]\r
754     },\r
755     {\r
756         "id": "8f6fd298.ecc1e8",\r
757         "type": "block",\r
758         "name": "block : atomic",\r
759         "xml": "<block atomic=\"true\">",\r
760         "atomic": "true",\r
761         "outputs": 1,\r
762         "x": 2990.75,\r
763         "y": 1710.7498779296875,\r
764         "z": "265dc029.a18eb8",\r
765         "wires": [\r
766             [\r
767                 "d321b170.fefc18",\r
768                 "ffb149d2.1a2f38"\r
769             ]\r
770         ]\r
771     },\r
772     {\r
773         "id": "821eddca.0e3588",\r
774         "type": "block",\r
775         "name": "block : atomic",\r
776         "xml": "<block atomic=\"true\">",\r
777         "atomic": "true",\r
778         "outputs": 1,\r
779         "x": 3621.41650390625,\r
780         "y": 1900.75,\r
781         "z": "265dc029.a18eb8",\r
782         "wires": [\r
783             [\r
784                 "e0128afe.007bf",\r
785                 "2edd1a44.e4eb5e",\r
786                 "af1082c8.2a9af",\r
787                 "ebc710f0.247328",\r
788                 "5282e7ba.b5ae6"\r
789             ]\r
790         ]\r
791     },\r
792     {\r
793         "id": "a826813e.688038",\r
794         "type": "success",\r
795         "name": "success",\r
796         "xml": "<outcome value='success'>\n",\r
797         "comments": "",\r
798         "outputs": 1,\r
799         "x": 3448.75,\r
800         "y": 1901.75,\r
801         "z": "265dc029.a18eb8",\r
802         "wires": [\r
803             [\r
804                 "821eddca.0e3588"\r
805             ]\r
806         ]\r
807     },\r
808     {\r
809         "id": "31b9c040.452a38",\r
810         "type": "not-found",\r
811         "name": "not-found",\r
812         "xml": "<outcome value='not-found'>\n",\r
813         "comments": "",\r
814         "outputs": 1,\r
815         "x": 3458.240966796875,\r
816         "y": 1944.3240356445312,\r
817         "z": "265dc029.a18eb8",\r
818         "wires": [\r
819             [\r
820                 "17be006a.5f45e"\r
821             ]\r
822         ]\r
823     },\r
824     {\r
825         "id": "28d3d57c.d8ea12",\r
826         "type": "failure",\r
827         "name": "failure",\r
828         "xml": "<outcome value='failure'>\n",\r
829         "comments": "",\r
830         "outputs": 1,\r
831         "x": 3446.75,\r
832         "y": 1990.75,\r
833         "z": "265dc029.a18eb8",\r
834         "wires": [\r
835             [\r
836                 "2fae66b5.5bd00a"\r
837             ]\r
838         ]\r
839     },\r
840     {\r
841         "id": "17be006a.5f45e",\r
842         "type": "returnFailure",\r
843         "name": "return failure",\r
844         "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
845         "comments": "",\r
846         "x": 3611.8123779296875,\r
847         "y": 1947.6097717285156,\r
848         "z": "265dc029.a18eb8",\r
849         "wires": []\r
850     },\r
851     {\r
852         "id": "2fae66b5.5bd00a",\r
853         "type": "returnFailure",\r
854         "name": "return failure",\r
855         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
856         "comments": "",\r
857         "x": 3615.75,\r
858         "y": 1991.75,\r
859         "z": "265dc029.a18eb8",\r
860         "wires": []\r
861     },\r
862     {\r
863         "id": "826c0f72.a70018",\r
864         "type": "execute",\r
865         "name": "execute split tp-id to get pnf-name",\r
866         "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
867         "comments": "",\r
868         "outputs": 1,\r
869         "x": 3917.75,\r
870         "y": 1048.75,\r
871         "z": "265dc029.a18eb8",\r
872         "wires": [\r
873             [\r
874                 "2cce3874.ab433",\r
875                 "ee660e5a.b83a"\r
876             ]\r
877         ]\r
878     },\r
879     {\r
880         "id": "ee660e5a.b83a",\r
881         "type": "failure",\r
882         "name": "success",\r
883         "xml": "<outcome value='success'>\n",\r
884         "comments": "",\r
885         "outputs": 1,\r
886         "x": 4140.75,\r
887         "y": 1003.75,\r
888         "z": "265dc029.a18eb8",\r
889         "wires": [\r
890             [\r
891                 "5270775.80a9288"\r
892             ]\r
893         ]\r
894     },\r
895     {\r
896         "id": "2cce3874.ab433",\r
897         "type": "failure",\r
898         "name": "failure",\r
899         "xml": "<outcome value='failure'>\n",\r
900         "comments": "",\r
901         "outputs": 1,\r
902         "x": 4142.75,\r
903         "y": 1067.75,\r
904         "z": "265dc029.a18eb8",\r
905         "wires": [\r
906             [\r
907                 "838db3c8.831b8"\r
908             ]\r
909         ]\r
910     },\r
911     {\r
912         "id": "6ce9021f.48b204",\r
913         "type": "set",\r
914         "name": "set ltpId",\r
915         "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
916         "comments": "",\r
917         "x": 4475.75,\r
918         "y": 958.75,\r
919         "z": "265dc029.a18eb8",\r
920         "wires": []\r
921     },\r
922     {\r
923         "id": "838db3c8.831b8",\r
924         "type": "returnFailure",\r
925         "name": "return failure",\r
926         "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
927         "comments": "",\r
928         "x": 4304.75,\r
929         "y": 1063.75,\r
930         "z": "265dc029.a18eb8",\r
931         "wires": []\r
932     },\r
933     {\r
934         "id": "5270775.80a9288",\r
935         "type": "block",\r
936         "name": "block : atomic",\r
937         "xml": "<block atomic=\"true\">",\r
938         "atomic": "true",\r
939         "outputs": 1,\r
940         "x": 4305.75,\r
941         "y": 1000.75,\r
942         "z": "265dc029.a18eb8",\r
943         "wires": [\r
944             [\r
945                 "a369f63d.8d0208",\r
946                 "6ce9021f.48b204"\r
947             ]\r
948         ]\r
949     },\r
950     {\r
951         "id": "a369f63d.8d0208",\r
952         "type": "set",\r
953         "name": "set pnf-name",\r
954         "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
955         "comments": "",\r
956         "x": 4476.75,\r
957         "y": 1066.75,\r
958         "z": "265dc029.a18eb8",\r
959         "wires": []\r
960     },\r
961     {\r
962         "id": "dc0e098a.8d3498",\r
963         "type": "comment",\r
964         "name": "TODO: FIXME",\r
965         "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
966         "comments": "",\r
967         "x": 4477.75,\r
968         "y": 1015.75,\r
969         "z": "265dc029.a18eb8",\r
970         "wires": []\r
971     },\r
972     {\r
973         "id": "57c1cc0d.dcb6ac",\r
974         "type": "save",\r
975         "name": "save connectivity resource in AAI",\r
976         "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
977         "comments": "",\r
978         "outputs": 1,\r
979         "x": 3919.75,\r
980         "y": 1207.75,\r
981         "z": "265dc029.a18eb8",\r
982         "wires": [\r
983             []\r
984         ]\r
985     },\r
986     {\r
987         "id": "36f8f99c.c030b6",\r
988         "type": "execute",\r
989         "name": "execute UUID generator for connectivity domainA",\r
990         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
991         "comments": "",\r
992         "outputs": 1,\r
993         "x": 3964.75,\r
994         "y": 1117.75,\r
995         "z": "265dc029.a18eb8",\r
996         "wires": [\r
997             []\r
998         ]\r
999     },\r
1000     {\r
1001         "id": "dbdce200.a0ebf",\r
1002         "type": "comment",\r
1003         "name": "TODO: FIXME",\r
1004         "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
1005         "comments": "",\r
1006         "x": 3853.75,\r
1007         "y": 1158.75,\r
1008         "z": "265dc029.a18eb8",\r
1009         "wires": []\r
1010     },\r
1011     {\r
1012         "id": "e0128afe.007bf",\r
1013         "type": "execute",\r
1014         "name": "execute split tp-id to get pnf-name",\r
1015         "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
1016         "comments": "",\r
1017         "outputs": 1,\r
1018         "x": 3907.75,\r
1019         "y": 1904.7501220703125,\r
1020         "z": "265dc029.a18eb8",\r
1021         "wires": [\r
1022             [\r
1023                 "a6039dc8.090cc",\r
1024                 "5bb0c93.9199ab8"\r
1025             ]\r
1026         ]\r
1027     },\r
1028     {\r
1029         "id": "5bb0c93.9199ab8",\r
1030         "type": "failure",\r
1031         "name": "success",\r
1032         "xml": "<outcome value='success'>\n",\r
1033         "comments": "",\r
1034         "outputs": 1,\r
1035         "x": 4130.75,\r
1036         "y": 1859.7501220703125,\r
1037         "z": "265dc029.a18eb8",\r
1038         "wires": [\r
1039             [\r
1040                 "d06cbf2c.85f9c"\r
1041             ]\r
1042         ]\r
1043     },\r
1044     {\r
1045         "id": "a6039dc8.090cc",\r
1046         "type": "failure",\r
1047         "name": "failure",\r
1048         "xml": "<outcome value='failure'>\n",\r
1049         "comments": "",\r
1050         "outputs": 1,\r
1051         "x": 4132.75,\r
1052         "y": 1923.7501220703125,\r
1053         "z": "265dc029.a18eb8",\r
1054         "wires": [\r
1055             [\r
1056                 "9ac2c145.9482"\r
1057             ]\r
1058         ]\r
1059     },\r
1060     {\r
1061         "id": "5b53dee5.e8008",\r
1062         "type": "set",\r
1063         "name": "set ltpId",\r
1064         "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
1065         "comments": "",\r
1066         "x": 4465.75,\r
1067         "y": 1817.7501220703125,\r
1068         "z": "265dc029.a18eb8",\r
1069         "wires": []\r
1070     },\r
1071     {\r
1072         "id": "9ac2c145.9482",\r
1073         "type": "returnFailure",\r
1074         "name": "return failure",\r
1075         "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
1076         "comments": "",\r
1077         "x": 4291.75,\r
1078         "y": 1942.7501220703125,\r
1079         "z": "265dc029.a18eb8",\r
1080         "wires": []\r
1081     },\r
1082     {\r
1083         "id": "d06cbf2c.85f9c",\r
1084         "type": "block",\r
1085         "name": "block : atomic",\r
1086         "xml": "<block atomic=\"true\">",\r
1087         "atomic": "true",\r
1088         "outputs": 1,\r
1089         "x": 4295.75,\r
1090         "y": 1856.7501220703125,\r
1091         "z": "265dc029.a18eb8",\r
1092         "wires": [\r
1093             [\r
1094                 "5b53dee5.e8008",\r
1095                 "1365606a.f41bb8"\r
1096             ]\r
1097         ]\r
1098     },\r
1099     {\r
1100         "id": "1365606a.f41bb8",\r
1101         "type": "set",\r
1102         "name": "set pnf-name",\r
1103         "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
1104         "comments": "",\r
1105         "x": 4466.75,\r
1106         "y": 1922.7501220703125,\r
1107         "z": "265dc029.a18eb8",\r
1108         "wires": []\r
1109     },\r
1110     {\r
1111         "id": "d703d891.d4c1c",\r
1112         "type": "comment",\r
1113         "name": "TODO: FIXME",\r
1114         "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
1115         "comments": "",\r
1116         "x": 4461.75,\r
1117         "y": 1871.7501220703125,\r
1118         "z": "265dc029.a18eb8",\r
1119         "wires": []\r
1120     },\r
1121     {\r
1122         "id": "af1082c8.2a9af",\r
1123         "type": "save",\r
1124         "name": "save connectivity resource in AAI",\r
1125         "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
1126         "comments": "",\r
1127         "outputs": 1,\r
1128         "x": 3909.75,\r
1129         "y": 2063.7501220703125,\r
1130         "z": "265dc029.a18eb8",\r
1131         "wires": [\r
1132             []\r
1133         ]\r
1134     },\r
1135     {\r
1136         "id": "2edd1a44.e4eb5e",\r
1137         "type": "execute",\r
1138         "name": "execute UUID generator for connectivity domainB",\r
1139         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
1140         "comments": "",\r
1141         "outputs": 1,\r
1142         "x": 3954.75,\r
1143         "y": 1973.7501220703125,\r
1144         "z": "265dc029.a18eb8",\r
1145         "wires": [\r
1146             []\r
1147         ]\r
1148     },\r
1149     {\r
1150         "id": "fc18d76a.4302d",\r
1151         "type": "comment",\r
1152         "name": "TODO: FIXME",\r
1153         "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
1154         "comments": "",\r
1155         "x": 3843.75,\r
1156         "y": 2011.7501220703125,\r
1157         "z": "265dc029.a18eb8",\r
1158         "wires": []\r
1159     },\r
1160     {\r
1161         "id": "b920e24f.94b628",\r
1162         "type": "set",\r
1163         "name": "set attachment_param",\r
1164         "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
1165         "comments": "",\r
1166         "x": 2653.75,\r
1167         "y": 2123.7501220703125,\r
1168         "z": "265dc029.a18eb8",\r
1169         "wires": []\r
1170     },\r
1171     {\r
1172         "id": "7dfe65de.953a14",\r
1173         "type": "comment",\r
1174         "name": "TODO: FIXME",\r
1175         "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
1176         "comments": "",\r
1177         "x": 2619.75,\r
1178         "y": 2057.7501220703125,\r
1179         "z": "265dc029.a18eb8",\r
1180         "wires": []\r
1181     },\r
1182     {\r
1183         "id": "9cbc6da7.b032e",\r
1184         "type": "save",\r
1185         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1186         "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
1187         "comments": "",\r
1188         "outputs": 1,\r
1189         "x": 4047.75,\r
1190         "y": 1255.75,\r
1191         "z": "265dc029.a18eb8",\r
1192         "wires": [\r
1193             []\r
1194         ]\r
1195     },\r
1196     {\r
1197         "id": "ebc710f0.247328",\r
1198         "type": "save",\r
1199         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1200         "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
1201         "comments": "",\r
1202         "outputs": 1,\r
1203         "x": 4036.75,\r
1204         "y": 2128.7501220703125,\r
1205         "z": "265dc029.a18eb8",\r
1206         "wires": [\r
1207             []\r
1208         ]\r
1209     },\r
1210     {\r
1211         "id": "a4a52ebd.07da98",\r
1212         "type": "execute",\r
1213         "name": "get esr-thirdparty-sdnc",\r
1214         "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
1215         "comments": "",\r
1216         "outputs": 1,\r
1217         "x": 5091.75,\r
1218         "y": 775.75,\r
1219         "z": "265dc029.a18eb8",\r
1220         "wires": [\r
1221             [\r
1222                 "147a8d1b.1ee80b",\r
1223                 "d765c1e1.9d8848",\r
1224                 "55e4f273.918784"\r
1225             ]\r
1226         ]\r
1227     },\r
1228     {\r
1229         "id": "17fe2d2.f198953",\r
1230         "type": "block",\r
1231         "name": "block : atomic",\r
1232         "xml": "<block atomic=\"true\">",\r
1233         "atomic": "true",\r
1234         "outputs": 1,\r
1235         "x": 2644.75,\r
1236         "y": 431.75,\r
1237         "z": "265dc029.a18eb8",\r
1238         "wires": [\r
1239             [\r
1240                 "92c83ff4.32672"\r
1241             ]\r
1242         ]\r
1243     },\r
1244     {\r
1245         "id": "fa993007.6297d",\r
1246         "type": "outcome",\r
1247         "name": "logical-link",\r
1248         "xml": "<outcome value='logical-link'>\n",\r
1249         "comments": "",\r
1250         "outputs": 1,\r
1251         "x": 1574.7501220703125,\r
1252         "y": 848.7501220703125,\r
1253         "z": "265dc029.a18eb8",\r
1254         "wires": [\r
1255             [\r
1256                 "71dec788.b2b82"\r
1257             ]\r
1258         ]\r
1259     },\r
1260     {\r
1261         "id": "9822d888.33539",\r
1262         "type": "switchNode",\r
1263         "name": "switch allotted-resource.relationship-list not empty",\r
1264         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
1265         "comments": "",\r
1266         "outputs": 1,\r
1267         "x": 2312.75,\r
1268         "y": 554.75,\r
1269         "z": "265dc029.a18eb8",\r
1270         "wires": [\r
1271             [\r
1272                 "bb40c414.d4fe5",\r
1273                 "986079fe.da93b"\r
1274             ]\r
1275         ]\r
1276     },\r
1277     {\r
1278         "id": "986079fe.da93b",\r
1279         "type": "outcomeFalse",\r
1280         "name": "false",\r
1281         "xml": "<outcome value='false'>\n",\r
1282         "comments": "",\r
1283         "outputs": 1,\r
1284         "x": 2622.75,\r
1285         "y": 561.75,\r
1286         "z": "265dc029.a18eb8",\r
1287         "wires": [\r
1288             []\r
1289         ]\r
1290     },\r
1291     {\r
1292         "id": "bb40c414.d4fe5",\r
1293         "type": "outcomeTrue",\r
1294         "name": "true",\r
1295         "xml": "<outcome value='true'>\n",\r
1296         "comments": "",\r
1297         "outputs": 1,\r
1298         "x": 2621.75,\r
1299         "y": 615.75,\r
1300         "z": "265dc029.a18eb8",\r
1301         "wires": [\r
1302             [\r
1303                 "7898c9b3.45357"\r
1304             ]\r
1305         ]\r
1306     },\r
1307     {\r
1308         "id": "256c12f1.36937e",\r
1309         "type": "set",\r
1310         "name": "set the current logical-link-name",\r
1311         "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
1312         "comments": "",\r
1313         "x": 1994.75,\r
1314         "y": 798.75,\r
1315         "z": "265dc029.a18eb8",\r
1316         "wires": []\r
1317     },\r
1318     {\r
1319         "id": "71dec788.b2b82",\r
1320         "type": "block",\r
1321         "name": "block : atomic",\r
1322         "xml": "<block atomic=\"true\">",\r
1323         "atomic": "true",\r
1324         "outputs": 1,\r
1325         "x": 1751.75,\r
1326         "y": 841.75,\r
1327         "z": "265dc029.a18eb8",\r
1328         "wires": [\r
1329             [\r
1330                 "256c12f1.36937e",\r
1331                 "caff6575.521c18"\r
1332             ]\r
1333         ]\r
1334     },\r
1335     {\r
1336         "id": "b640b2e3.7d557",\r
1337         "type": "comment",\r
1338         "name": "Question?",\r
1339         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1340         "comments": "",\r
1341         "x": 3180.75,\r
1342         "y": 1027.75,\r
1343         "z": "265dc029.a18eb8",\r
1344         "wires": []\r
1345     },\r
1346     {\r
1347         "id": "f7fe7886.c5f688",\r
1348         "type": "save",\r
1349         "name": "get p-interface-src from aai",\r
1350         "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
1351         "comments": "",\r
1352         "outputs": 1,\r
1353         "x": 3223.75,\r
1354         "y": 1092.75,\r
1355         "z": "265dc029.a18eb8",\r
1356         "wires": [\r
1357             [\r
1358                 "b7d2e547.bd45e8",\r
1359                 "647aea0c.904444",\r
1360                 "1b3a301d.df26c"\r
1361             ]\r
1362         ]\r
1363     },\r
1364     {\r
1365         "id": "d321b170.fefc18",\r
1366         "type": "save",\r
1367         "name": "get p-interface-dst from aai",\r
1368         "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
1369         "comments": "",\r
1370         "outputs": 1,\r
1371         "x": 3220.75,\r
1372         "y": 1936.75,\r
1373         "z": "265dc029.a18eb8",\r
1374         "wires": [\r
1375             [\r
1376                 "a826813e.688038",\r
1377                 "31b9c040.452a38",\r
1378                 "28d3d57c.d8ea12"\r
1379             ]\r
1380         ]\r
1381     },\r
1382     {\r
1383         "id": "9ef3c368.db5f5",\r
1384         "type": "comment",\r
1385         "name": "Question?",\r
1386         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1387         "comments": "",\r
1388         "x": 3181.75,\r
1389         "y": 1880.75,\r
1390         "z": "265dc029.a18eb8",\r
1391         "wires": []\r
1392     },\r
1393     {\r
1394         "id": "92c83ff4.32672",\r
1395         "type": "save",\r
1396         "name": "get allotted-resource relationship from aai",\r
1397         "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
1398         "comments": "",\r
1399         "outputs": 1,\r
1400         "x": 2937.75,\r
1401         "y": 378.75,\r
1402         "z": "265dc029.a18eb8",\r
1403         "wires": [\r
1404             [\r
1405                 "95b0e196.505ca",\r
1406                 "18577af2.228375",\r
1407                 "e930ed34.7c0138"\r
1408             ]\r
1409         ]\r
1410     },\r
1411     {\r
1412         "id": "18577af2.228375",\r
1413         "type": "not-found",\r
1414         "name": "not-found",\r
1415         "xml": "<outcome value='not-found'>\n",\r
1416         "comments": "",\r
1417         "outputs": 1,\r
1418         "x": 3211.240966796875,\r
1419         "y": 271.323974609375,\r
1420         "z": "265dc029.a18eb8",\r
1421         "wires": [\r
1422             [\r
1423                 "88d8bef2.b299b"\r
1424             ]\r
1425         ]\r
1426     },\r
1427     {\r
1428         "id": "88d8bef2.b299b",\r
1429         "type": "returnFailure",\r
1430         "name": "return failure",\r
1431         "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
1432         "comments": "",\r
1433         "x": 3388.8125,\r
1434         "y": 271.6097412109375,\r
1435         "z": "265dc029.a18eb8",\r
1436         "wires": []\r
1437     },\r
1438     {\r
1439         "id": "e930ed34.7c0138",\r
1440         "type": "failure",\r
1441         "name": "failure",\r
1442         "xml": "<outcome value='failure'>\n",\r
1443         "comments": "",\r
1444         "outputs": 1,\r
1445         "x": 3206.75,\r
1446         "y": 320.75,\r
1447         "z": "265dc029.a18eb8",\r
1448         "wires": [\r
1449             [\r
1450                 "d9c208e6.92ace8"\r
1451             ]\r
1452         ]\r
1453     },\r
1454     {\r
1455         "id": "d9c208e6.92ace8",\r
1456         "type": "returnFailure",\r
1457         "name": "return failure",\r
1458         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1459         "comments": "",\r
1460         "x": 3388.75,\r
1461         "y": 320.75,\r
1462         "z": "265dc029.a18eb8",\r
1463         "wires": []\r
1464     },\r
1465     {\r
1466         "id": "95b0e196.505ca",\r
1467         "type": "success",\r
1468         "name": "success",\r
1469         "xml": "<outcome value='success'>\n",\r
1470         "comments": "",\r
1471         "outputs": 1,\r
1472         "x": 3210.75,\r
1473         "y": 371.75,\r
1474         "z": "265dc029.a18eb8",\r
1475         "wires": [\r
1476             [\r
1477                 "1e6206a8.c04df9"\r
1478             ]\r
1479         ]\r
1480     },\r
1481     {\r
1482         "id": "1e6206a8.c04df9",\r
1483         "type": "block",\r
1484         "name": "block : atomic",\r
1485         "xml": "<block atomic=\"true\">",\r
1486         "atomic": "true",\r
1487         "outputs": 1,\r
1488         "x": 3390.75,\r
1489         "y": 371.75,\r
1490         "z": "265dc029.a18eb8",\r
1491         "wires": [\r
1492             [\r
1493                 "9822d888.33539"\r
1494             ]\r
1495         ]\r
1496     },\r
1497     {\r
1498         "id": "7e565315.5e9c94",\r
1499         "type": "for",\r
1500         "name": "for each allotted-resource relationship",\r
1501         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
1502         "comments": "",\r
1503         "outputs": 1,\r
1504         "x": 2881.75,\r
1505         "y": 595.75,\r
1506         "z": "265dc029.a18eb8",\r
1507         "wires": [\r
1508             [\r
1509                 "ad48e1c.1164d2"\r
1510             ]\r
1511         ]\r
1512     },\r
1513     {\r
1514         "id": "ad48e1c.1164d2",\r
1515         "type": "switchNode",\r
1516         "name": "switch related-to",\r
1517         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
1518         "comments": "",\r
1519         "outputs": 1,\r
1520         "x": 3161.75,\r
1521         "y": 595.75,\r
1522         "z": "265dc029.a18eb8",\r
1523         "wires": [\r
1524             [\r
1525                 "fa993007.6297d"\r
1526             ]\r
1527         ]\r
1528     },\r
1529     {\r
1530         "id": "f45e9748.7b5398",\r
1531         "type": "outcome",\r
1532         "name": "network-policy",\r
1533         "xml": "<outcome value='network-policy'>\n",\r
1534         "comments": "",\r
1535         "outputs": 1,\r
1536         "x": 3366.75,\r
1537         "y": 569.75,\r
1538         "z": "265dc029.a18eb8",\r
1539         "wires": [\r
1540             [\r
1541                 "765d29c.dd249d8"\r
1542             ]\r
1543         ]\r
1544     },\r
1545     {\r
1546         "id": "765d29c.dd249d8",\r
1547         "type": "block",\r
1548         "name": "block : atomic",\r
1549         "xml": "<block atomic=\"true\">",\r
1550         "atomic": "true",\r
1551         "outputs": 1,\r
1552         "x": 3543.7498779296875,\r
1553         "y": 562.7498779296875,\r
1554         "z": "265dc029.a18eb8",\r
1555         "wires": [\r
1556             [\r
1557                 "75683ebe.1d381",\r
1558                 "bda78544.b92ef8"\r
1559             ]\r
1560         ]\r
1561     },\r
1562     {\r
1563         "id": "75683ebe.1d381",\r
1564         "type": "set",\r
1565         "name": "set the 1st network-policy-id",\r
1566         "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
1567         "comments": "",\r
1568         "x": 3786.7498779296875,\r
1569         "y": 519.7498779296875,\r
1570         "z": "265dc029.a18eb8",\r
1571         "wires": []\r
1572     },\r
1573     {\r
1574         "id": "bda78544.b92ef8",\r
1575         "type": "save",\r
1576         "name": "get network-policy from aai",\r
1577         "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
1578         "comments": "",\r
1579         "outputs": 1,\r
1580         "x": 3775.7498779296875,\r
1581         "y": 574.7498779296875,\r
1582         "z": "265dc029.a18eb8",\r
1583         "wires": [\r
1584             [\r
1585                 "ca6a5b49.f6776",\r
1586                 "a806a879.064e2",\r
1587                 "e87f6cd7.19d238"\r
1588             ]\r
1589         ]\r
1590     },\r
1591     {\r
1592         "id": "e87f6cd7.19d238",\r
1593         "type": "not-found",\r
1594         "name": "not-found",\r
1595         "xml": "<outcome value='not-found'>\n",\r
1596         "comments": "",\r
1597         "outputs": 1,\r
1598         "x": 4028.75,\r
1599         "y": 460.75,\r
1600         "z": "265dc029.a18eb8",\r
1601         "wires": [\r
1602             [\r
1603                 "8b6c5048.f1e68"\r
1604             ]\r
1605         ]\r
1606     },\r
1607     {\r
1608         "id": "8b6c5048.f1e68",\r
1609         "type": "returnFailure",\r
1610         "name": "return failure",\r
1611         "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
1612         "comments": "",\r
1613         "x": 4177.321533203125,\r
1614         "y": 461.0357666015625,\r
1615         "z": "265dc029.a18eb8",\r
1616         "wires": []\r
1617     },\r
1618     {\r
1619         "id": "180d4dab.bdf5aa",\r
1620         "type": "returnFailure",\r
1621         "name": "return failure",\r
1622         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1623         "comments": "",\r
1624         "x": 4176.259033203125,\r
1625         "y": 505.176025390625,\r
1626         "z": "265dc029.a18eb8",\r
1627         "wires": []\r
1628     },\r
1629     {\r
1630         "id": "a806a879.064e2",\r
1631         "type": "failure",\r
1632         "name": "failure",\r
1633         "xml": "<outcome value='failure'>\n",\r
1634         "comments": "",\r
1635         "outputs": 1,\r
1636         "x": 4017.259033203125,\r
1637         "y": 505.176025390625,\r
1638         "z": "265dc029.a18eb8",\r
1639         "wires": [\r
1640             [\r
1641                 "180d4dab.bdf5aa"\r
1642             ]\r
1643         ]\r
1644     },\r
1645     {\r
1646         "id": "ca6a5b49.f6776",\r
1647         "type": "success",\r
1648         "name": "success",\r
1649         "xml": "<outcome value='success'>\n",\r
1650         "comments": "",\r
1651         "outputs": 1,\r
1652         "x": 4024.259033203125,\r
1653         "y": 584.176025390625,\r
1654         "z": "265dc029.a18eb8",\r
1655         "wires": [\r
1656             [\r
1657                 "64e4dfe7.932de"\r
1658             ]\r
1659         ]\r
1660     },\r
1661     {\r
1662         "id": "64e4dfe7.932de",\r
1663         "type": "block",\r
1664         "name": "block",\r
1665         "xml": "<block>\n",\r
1666         "atomic": "false",\r
1667         "comments": "",\r
1668         "outputs": 1,\r
1669         "x": 4163.259033203125,\r
1670         "y": 584.176025390625,\r
1671         "z": "265dc029.a18eb8",\r
1672         "wires": [\r
1673             [\r
1674                 "ee6b0ff5.49f928",\r
1675                 "2bb1c801.8cdbe"\r
1676             ]\r
1677         ]\r
1678     },\r
1679     {\r
1680         "id": "ee6b0ff5.49f928",\r
1681         "type": "set",\r
1682         "name": "set the max bandwidth",\r
1683         "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
1684         "comments": "",\r
1685         "x": 4368.75,\r
1686         "y": 581.75,\r
1687         "z": "265dc029.a18eb8",\r
1688         "wires": []\r
1689     },\r
1690     {\r
1691         "id": "97630cf9.61551",\r
1692         "type": "execute",\r
1693         "name": "execute split tp-id to get pnf-name",\r
1694         "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
1695         "comments": "",\r
1696         "outputs": 1,\r
1697         "x": 3224.75,\r
1698         "y": 762.75,\r
1699         "z": "265dc029.a18eb8",\r
1700         "wires": [\r
1701             [\r
1702                 "934ca0f9.e9628",\r
1703                 "acb0ef25.bdb28"\r
1704             ]\r
1705         ]\r
1706     },\r
1707     {\r
1708         "id": "acb0ef25.bdb28",\r
1709         "type": "failure",\r
1710         "name": "success",\r
1711         "xml": "<outcome value='success'>\n",\r
1712         "comments": "",\r
1713         "outputs": 1,\r
1714         "x": 3447.75,\r
1715         "y": 748.75,\r
1716         "z": "265dc029.a18eb8",\r
1717         "wires": [\r
1718             [\r
1719                 "86c41dd1.cd9b3"\r
1720             ]\r
1721         ]\r
1722     },\r
1723     {\r
1724         "id": "934ca0f9.e9628",\r
1725         "type": "failure",\r
1726         "name": "failure",\r
1727         "xml": "<outcome value='failure'>\n",\r
1728         "comments": "",\r
1729         "outputs": 1,\r
1730         "x": 3449.75,\r
1731         "y": 781.75,\r
1732         "z": "265dc029.a18eb8",\r
1733         "wires": [\r
1734             [\r
1735                 "7c1914e6.7de444"\r
1736             ]\r
1737         ]\r
1738     },\r
1739     {\r
1740         "id": "7c1914e6.7de444",\r
1741         "type": "returnFailure",\r
1742         "name": "return failure",\r
1743         "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
1744         "comments": "",\r
1745         "x": 3592.75,\r
1746         "y": 778.75,\r
1747         "z": "265dc029.a18eb8",\r
1748         "wires": []\r
1749     },\r
1750     {\r
1751         "id": "86c41dd1.cd9b3",\r
1752         "type": "block",\r
1753         "name": "block : atomic",\r
1754         "xml": "<block atomic=\"true\">",\r
1755         "atomic": "true",\r
1756         "outputs": 1,\r
1757         "x": 3595.75,\r
1758         "y": 741.75,\r
1759         "z": "265dc029.a18eb8",\r
1760         "wires": [\r
1761             [\r
1762                 "9c125821.e182b8",\r
1763                 "15e72cc8.739c23"\r
1764             ]\r
1765         ]\r
1766     },\r
1767     {\r
1768         "id": "9c125821.e182b8",\r
1769         "type": "set",\r
1770         "name": "set pnf-name",\r
1771         "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
1772         "comments": "",\r
1773         "x": 3757.75,\r
1774         "y": 736.75,\r
1775         "z": "265dc029.a18eb8",\r
1776         "wires": []\r
1777     },\r
1778     {\r
1779         "id": "ffb149d2.1a2f38",\r
1780         "type": "execute",\r
1781         "name": "execute split tp-id to get pnf-name",\r
1782         "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
1783         "comments": "",\r
1784         "outputs": 1,\r
1785         "x": 3238.75,\r
1786         "y": 1599.7498779296875,\r
1787         "z": "265dc029.a18eb8",\r
1788         "wires": [\r
1789             [\r
1790                 "bf5eff49.e98d88",\r
1791                 "54638e9e.e4ced"\r
1792             ]\r
1793         ]\r
1794     },\r
1795     {\r
1796         "id": "54638e9e.e4ced",\r
1797         "type": "failure",\r
1798         "name": "success",\r
1799         "xml": "<outcome value='success'>\n",\r
1800         "comments": "",\r
1801         "outputs": 1,\r
1802         "x": 3461.75,\r
1803         "y": 1585.7498779296875,\r
1804         "z": "265dc029.a18eb8",\r
1805         "wires": [\r
1806             [\r
1807                 "16f61dc.50bc1e2"\r
1808             ]\r
1809         ]\r
1810     },\r
1811     {\r
1812         "id": "bf5eff49.e98d88",\r
1813         "type": "failure",\r
1814         "name": "failure",\r
1815         "xml": "<outcome value='failure'>\n",\r
1816         "comments": "",\r
1817         "outputs": 1,\r
1818         "x": 3463.75,\r
1819         "y": 1618.7498779296875,\r
1820         "z": "265dc029.a18eb8",\r
1821         "wires": [\r
1822             [\r
1823                 "9dee5daf.af14f"\r
1824             ]\r
1825         ]\r
1826     },\r
1827     {\r
1828         "id": "9dee5daf.af14f",\r
1829         "type": "returnFailure",\r
1830         "name": "return failure",\r
1831         "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
1832         "comments": "",\r
1833         "x": 3606.75,\r
1834         "y": 1615.7498779296875,\r
1835         "z": "265dc029.a18eb8",\r
1836         "wires": []\r
1837     },\r
1838     {\r
1839         "id": "16f61dc.50bc1e2",\r
1840         "type": "block",\r
1841         "name": "block : atomic",\r
1842         "xml": "<block atomic=\"true\">",\r
1843         "atomic": "true",\r
1844         "outputs": 1,\r
1845         "x": 3609.75,\r
1846         "y": 1578.7498779296875,\r
1847         "z": "265dc029.a18eb8",\r
1848         "wires": [\r
1849             [\r
1850                 "8dcdd4c8.096dc8",\r
1851                 "d98e4cd6.39d27"\r
1852             ]\r
1853         ]\r
1854     },\r
1855     {\r
1856         "id": "8dcdd4c8.096dc8",\r
1857         "type": "set",\r
1858         "name": "set pnf-name",\r
1859         "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
1860         "comments": "",\r
1861         "x": 3803.75,\r
1862         "y": 1581.75,\r
1863         "z": "265dc029.a18eb8",\r
1864         "wires": []\r
1865     },\r
1866     {\r
1867         "id": "8be878cc.82db9",\r
1868         "type": "execute",\r
1869         "name": "execute properties",\r
1870         "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
1871         "comments": "",\r
1872         "outputs": 1,\r
1873         "x": 1067.75,\r
1874         "y": 286.75,\r
1875         "z": "265dc029.a18eb8",\r
1876         "wires": [\r
1877             []\r
1878         ]\r
1879     },\r
1880     {\r
1881         "id": "992f0b42.313448",\r
1882         "type": "for",\r
1883         "name": "for each relationship",\r
1884         "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1885         "comments": "",\r
1886         "outputs": 1,\r
1887         "x": 3871.75,\r
1888         "y": 1332.75,\r
1889         "z": "265dc029.a18eb8",\r
1890         "wires": [\r
1891             [\r
1892                 "b7afaa03.1d1688"\r
1893             ]\r
1894         ]\r
1895     },\r
1896     {\r
1897         "id": "b7afaa03.1d1688",\r
1898         "type": "switchNode",\r
1899         "name": "switch related-to",\r
1900         "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1901         "comments": "",\r
1902         "outputs": 1,\r
1903         "x": 4077.75,\r
1904         "y": 1332.75,\r
1905         "z": "265dc029.a18eb8",\r
1906         "wires": [\r
1907             [\r
1908                 "40933173.919508"\r
1909             ]\r
1910         ]\r
1911     },\r
1912     {\r
1913         "id": "40933173.919508",\r
1914         "type": "outcome",\r
1915         "name": "tunnel-termination-point",\r
1916         "xml": "<outcome value='tunnel-termination-point'>\n",\r
1917         "comments": "",\r
1918         "outputs": 1,\r
1919         "x": 4293.03564453125,\r
1920         "y": 1332.57177734375,\r
1921         "z": "265dc029.a18eb8",\r
1922         "wires": [\r
1923             [\r
1924                 "8a032b26.4ca96"\r
1925             ]\r
1926         ]\r
1927     },\r
1928     {\r
1929         "id": "8a032b26.4ca96",\r
1930         "type": "block",\r
1931         "name": "block : atomic",\r
1932         "xml": "<block atomic=\"true\">",\r
1933         "atomic": "true",\r
1934         "outputs": 1,\r
1935         "x": 4499.8671875,\r
1936         "y": 1333.09033203125,\r
1937         "z": "265dc029.a18eb8",\r
1938         "wires": [\r
1939             [\r
1940                 "2723496.6122eb6",\r
1941                 "e5650eda.402e4",\r
1942                 "1295e367.d34e2d"\r
1943             ]\r
1944         ]\r
1945     },\r
1946     {\r
1947         "id": "2723496.6122eb6",\r
1948         "type": "set",\r
1949         "name": "set source ttp-id",\r
1950         "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
1951         "comments": "",\r
1952         "x": 4714.8671875,\r
1953         "y": 1295.09033203125,\r
1954         "z": "265dc029.a18eb8",\r
1955         "wires": []\r
1956     },\r
1957     {\r
1958         "id": "e5650eda.402e4",\r
1959         "type": "get-resource",\r
1960         "name": "get-resource src TTP",\r
1961         "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
1962         "comments": "",\r
1963         "outputs": 1,\r
1964         "x": 4711.8671875,\r
1965         "y": 1334.09033203125,\r
1966         "z": "265dc029.a18eb8",\r
1967         "wires": [\r
1968             [\r
1969                 "217f847a.1b8f9c"\r
1970             ]\r
1971         ]\r
1972     },\r
1973     {\r
1974         "id": "1295e367.d34e2d",\r
1975         "type": "break",\r
1976         "name": "break",\r
1977         "xml": "<break>\n",\r
1978         "comments": "",\r
1979         "x": 4667.3671875,\r
1980         "y": 1376.09033203125,\r
1981         "z": "265dc029.a18eb8",\r
1982         "wires": []\r
1983     },\r
1984     {\r
1985         "id": "217f847a.1b8f9c",\r
1986         "type": "success",\r
1987         "name": "success",\r
1988         "xml": "<outcome value='success'>\n",\r
1989         "comments": "",\r
1990         "outputs": 1,\r
1991         "x": 4892.3671875,\r
1992         "y": 1333.09033203125,\r
1993         "z": "265dc029.a18eb8",\r
1994         "wires": [\r
1995             [\r
1996                 "9a62abd2.875488"\r
1997             ]\r
1998         ]\r
1999     },\r
2000     {\r
2001         "id": "9a62abd2.875488",\r
2002         "type": "block",\r
2003         "name": "block : atomic",\r
2004         "xml": "<block atomic=\"true\">",\r
2005         "atomic": "true",\r
2006         "outputs": 1,\r
2007         "x": 5050.3671875,\r
2008         "y": 1333.09033203125,\r
2009         "z": "265dc029.a18eb8",\r
2010         "wires": [\r
2011             [\r
2012                 "84d611e0.38611"\r
2013             ]\r
2014         ]\r
2015     },\r
2016     {\r
2017         "id": "84d611e0.38611",\r
2018         "type": "set",\r
2019         "name": "set source tunnel tp ip",\r
2020         "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2021         "comments": "",\r
2022         "x": 5257.3671875,\r
2023         "y": 1333.09033203125,\r
2024         "z": "265dc029.a18eb8",\r
2025         "wires": []\r
2026     },\r
2027     {\r
2028         "id": "5282e7ba.b5ae6",\r
2029         "type": "for",\r
2030         "name": "for each relationship",\r
2031         "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2032         "comments": "",\r
2033         "outputs": 1,\r
2034         "x": 3868.75,\r
2035         "y": 2201.7501220703125,\r
2036         "z": "265dc029.a18eb8",\r
2037         "wires": [\r
2038             [\r
2039                 "bd545475.b3b6c"\r
2040             ]\r
2041         ]\r
2042     },\r
2043     {\r
2044         "id": "bd545475.b3b6c",\r
2045         "type": "switchNode",\r
2046         "name": "switch related-to",\r
2047         "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2048         "comments": "",\r
2049         "outputs": 1,\r
2050         "x": 4074.75,\r
2051         "y": 2201.7501220703125,\r
2052         "z": "265dc029.a18eb8",\r
2053         "wires": [\r
2054             [\r
2055                 "83564e37.d48218"\r
2056             ]\r
2057         ]\r
2058     },\r
2059     {\r
2060         "id": "83564e37.d48218",\r
2061         "type": "outcome",\r
2062         "name": "tunnel-termination-point",\r
2063         "xml": "<outcome value='tunnel-termination-point'>\n",\r
2064         "comments": "",\r
2065         "outputs": 1,\r
2066         "x": 4290.03564453125,\r
2067         "y": 2201.5718994140625,\r
2068         "z": "265dc029.a18eb8",\r
2069         "wires": [\r
2070             [\r
2071                 "93bbce92.5201a"\r
2072             ]\r
2073         ]\r
2074     },\r
2075     {\r
2076         "id": "93bbce92.5201a",\r
2077         "type": "block",\r
2078         "name": "block : atomic",\r
2079         "xml": "<block atomic=\"true\">",\r
2080         "atomic": "true",\r
2081         "outputs": 1,\r
2082         "x": 4496.8671875,\r
2083         "y": 2202.0904541015625,\r
2084         "z": "265dc029.a18eb8",\r
2085         "wires": [\r
2086             [\r
2087                 "fd9657a3.dc9388",\r
2088                 "30813f1a.ba22e",\r
2089                 "20bd551d.f1ff8a"\r
2090             ]\r
2091         ]\r
2092     },\r
2093     {\r
2094         "id": "fd9657a3.dc9388",\r
2095         "type": "set",\r
2096         "name": "set destination ttp-id",\r
2097         "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
2098         "comments": "",\r
2099         "x": 4711.8671875,\r
2100         "y": 2164.0904541015625,\r
2101         "z": "265dc029.a18eb8",\r
2102         "wires": []\r
2103     },\r
2104     {\r
2105         "id": "30813f1a.ba22e",\r
2106         "type": "get-resource",\r
2107         "name": "get-resource src TTP",\r
2108         "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
2109         "comments": "",\r
2110         "outputs": 1,\r
2111         "x": 4708.8671875,\r
2112         "y": 2203.0904541015625,\r
2113         "z": "265dc029.a18eb8",\r
2114         "wires": [\r
2115             [\r
2116                 "a170e3c8.bc39e8"\r
2117             ]\r
2118         ]\r
2119     },\r
2120     {\r
2121         "id": "20bd551d.f1ff8a",\r
2122         "type": "break",\r
2123         "name": "break",\r
2124         "xml": "<break>\n",\r
2125         "comments": "",\r
2126         "x": 4664.3671875,\r
2127         "y": 2245.0904541015625,\r
2128         "z": "265dc029.a18eb8",\r
2129         "wires": []\r
2130     },\r
2131     {\r
2132         "id": "a170e3c8.bc39e8",\r
2133         "type": "success",\r
2134         "name": "success",\r
2135         "xml": "<outcome value='success'>\n",\r
2136         "comments": "",\r
2137         "outputs": 1,\r
2138         "x": 4889.3671875,\r
2139         "y": 2202.0904541015625,\r
2140         "z": "265dc029.a18eb8",\r
2141         "wires": [\r
2142             [\r
2143                 "2f28ce6e.7c805a"\r
2144             ]\r
2145         ]\r
2146     },\r
2147     {\r
2148         "id": "2f28ce6e.7c805a",\r
2149         "type": "block",\r
2150         "name": "block : atomic",\r
2151         "xml": "<block atomic=\"true\">",\r
2152         "atomic": "true",\r
2153         "outputs": 1,\r
2154         "x": 5047.3671875,\r
2155         "y": 2202.0904541015625,\r
2156         "z": "265dc029.a18eb8",\r
2157         "wires": [\r
2158             [\r
2159                 "8acb087c.8a0c18"\r
2160             ]\r
2161         ]\r
2162     },\r
2163     {\r
2164         "id": "8acb087c.8a0c18",\r
2165         "type": "set",\r
2166         "name": "set destination tunnel tp ip",\r
2167         "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2168         "comments": "",\r
2169         "x": 5254.3671875,\r
2170         "y": 2202.0904541015625,\r
2171         "z": "265dc029.a18eb8",\r
2172         "wires": []\r
2173     },\r
2174     {\r
2175         "id": "15e72cc8.739c23",\r
2176         "type": "get-resource",\r
2177         "name": "get-resource src pnf",\r
2178         "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
2179         "comments": "",\r
2180         "outputs": 1,\r
2181         "x": 3784.75,\r
2182         "y": 808.75,\r
2183         "z": "265dc029.a18eb8",\r
2184         "wires": [\r
2185             [\r
2186                 "4a52b982.f91c28",\r
2187                 "a11e568c.3be85",\r
2188                 "99ab9191.08f9c8"\r
2189             ]\r
2190         ]\r
2191     },\r
2192     {\r
2193         "id": "4a52b982.f91c28",\r
2194         "type": "success",\r
2195         "name": "success",\r
2196         "xml": "<outcome value='success'>\n",\r
2197         "comments": "",\r
2198         "outputs": 1,\r
2199         "x": 3980.2501220703125,\r
2200         "y": 760.75,\r
2201         "z": "265dc029.a18eb8",\r
2202         "wires": [\r
2203             [\r
2204                 "b692ef38.8280a"\r
2205             ]\r
2206         ]\r
2207     },\r
2208     {\r
2209         "id": "a11e568c.3be85",\r
2210         "type": "not-found",\r
2211         "name": "not-found",\r
2212         "xml": "<outcome value='not-found'>\n",\r
2213         "comments": "",\r
2214         "outputs": 1,\r
2215         "x": 3972.2501220703125,\r
2216         "y": 815.75,\r
2217         "z": "265dc029.a18eb8",\r
2218         "wires": [\r
2219             [\r
2220                 "e2c6f054.dcba8"\r
2221             ]\r
2222         ]\r
2223     },\r
2224     {\r
2225         "id": "99ab9191.08f9c8",\r
2226         "type": "other",\r
2227         "name": "other",\r
2228         "xml": "<outcome value='Other'>\n",\r
2229         "comments": "",\r
2230         "outputs": 1,\r
2231         "x": 3977.2501220703125,\r
2232         "y": 872.75,\r
2233         "z": "265dc029.a18eb8",\r
2234         "wires": [\r
2235             [\r
2236                 "b3b61906.89b6c"\r
2237             ]\r
2238         ]\r
2239     },\r
2240     {\r
2241         "id": "b3b61906.89b6c",\r
2242         "type": "returnFailure",\r
2243         "name": "return failure",\r
2244         "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
2245         "comments": "",\r
2246         "x": 4129.2501220703125,\r
2247         "y": 873.75,\r
2248         "z": "265dc029.a18eb8",\r
2249         "wires": []\r
2250     },\r
2251     {\r
2252         "id": "e2c6f054.dcba8",\r
2253         "type": "returnFailure",\r
2254         "name": "return failure",\r
2255         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2256         "comments": "",\r
2257         "x": 4140.2501220703125,\r
2258         "y": 818.75,\r
2259         "z": "265dc029.a18eb8",\r
2260         "wires": []\r
2261     },\r
2262     {\r
2263         "id": "b692ef38.8280a",\r
2264         "type": "block",\r
2265         "name": "block",\r
2266         "xml": "<block>\n",\r
2267         "atomic": "false",\r
2268         "comments": "",\r
2269         "outputs": 1,\r
2270         "x": 4124.6324462890625,\r
2271         "y": 758.4056701660156,\r
2272         "z": "265dc029.a18eb8",\r
2273         "wires": [\r
2274             [\r
2275                 "7c1e7393.5f430c"\r
2276             ]\r
2277         ]\r
2278     },\r
2279     {\r
2280         "id": "bfce8ca8.7f158",\r
2281         "type": "outcome",\r
2282         "name": "esr-thirdparty-sdnc",\r
2283         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2284         "comments": "",\r
2285         "outputs": 1,\r
2286         "x": 4706.75,\r
2287         "y": 776.75,\r
2288         "z": "265dc029.a18eb8",\r
2289         "wires": [\r
2290             [\r
2291                 "66e0242c.eca1f4"\r
2292             ]\r
2293         ]\r
2294     },\r
2295     {\r
2296         "id": "66e0242c.eca1f4",\r
2297         "type": "block",\r
2298         "name": "block : atomic",\r
2299         "xml": "<block atomic=\"true\">",\r
2300         "atomic": "true",\r
2301         "outputs": 1,\r
2302         "x": 4883.75,\r
2303         "y": 768.75,\r
2304         "z": "265dc029.a18eb8",\r
2305         "wires": [\r
2306             [\r
2307                 "bb4e4d04.403498",\r
2308                 "a4a52ebd.07da98"\r
2309             ]\r
2310         ]\r
2311     },\r
2312     {\r
2313         "id": "7c1e7393.5f430c",\r
2314         "type": "for",\r
2315         "name": "for each relationship",\r
2316         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
2317         "comments": "",\r
2318         "outputs": 1,\r
2319         "x": 4308.75,\r
2320         "y": 772.75,\r
2321         "z": "265dc029.a18eb8",\r
2322         "wires": [\r
2323             [\r
2324                 "fdc19a74.7f3248"\r
2325             ]\r
2326         ]\r
2327     },\r
2328     {\r
2329         "id": "fdc19a74.7f3248",\r
2330         "type": "switchNode",\r
2331         "name": "switch related-to",\r
2332         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2333         "comments": "",\r
2334         "outputs": 1,\r
2335         "x": 4503.75,\r
2336         "y": 772.75,\r
2337         "z": "265dc029.a18eb8",\r
2338         "wires": [\r
2339             [\r
2340                 "bfce8ca8.7f158",\r
2341                 "86b82394.a43d88"\r
2342             ]\r
2343         ]\r
2344     },\r
2345     {\r
2346         "id": "bb4e4d04.403498",\r
2347         "type": "set",\r
2348         "name": "set esr-thirdparty-sdnc domainA id",\r
2349         "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
2350         "comments": "",\r
2351         "x": 5121.75,\r
2352         "y": 723.75,\r
2353         "z": "265dc029.a18eb8",\r
2354         "wires": []\r
2355     },\r
2356     {\r
2357         "id": "147a8d1b.1ee80b",\r
2358         "type": "success",\r
2359         "name": "success",\r
2360         "xml": "<outcome value='success'>\n",\r
2361         "comments": "",\r
2362         "outputs": 1,\r
2363         "x": 5301.75,\r
2364         "y": 766.75,\r
2365         "z": "265dc029.a18eb8",\r
2366         "wires": [\r
2367             [\r
2368                 "b87f751d.f3da7"\r
2369             ]\r
2370         ]\r
2371     },\r
2372     {\r
2373         "id": "d765c1e1.9d8848",\r
2374         "type": "not-found",\r
2375         "name": "not-found",\r
2376         "xml": "<outcome value='not-found'>\n",\r
2377         "comments": "",\r
2378         "outputs": 1,\r
2379         "x": 5293.75,\r
2380         "y": 821.75,\r
2381         "z": "265dc029.a18eb8",\r
2382         "wires": [\r
2383             [\r
2384                 "df22bf16.07f7a"\r
2385             ]\r
2386         ]\r
2387     },\r
2388     {\r
2389         "id": "55e4f273.918784",\r
2390         "type": "other",\r
2391         "name": "other",\r
2392         "xml": "<outcome value='Other'>\n",\r
2393         "comments": "",\r
2394         "outputs": 1,\r
2395         "x": 5298.75,\r
2396         "y": 878.75,\r
2397         "z": "265dc029.a18eb8",\r
2398         "wires": [\r
2399             [\r
2400                 "6f4ec167.ab122"\r
2401             ]\r
2402         ]\r
2403     },\r
2404     {\r
2405         "id": "6f4ec167.ab122",\r
2406         "type": "returnFailure",\r
2407         "name": "return failure",\r
2408         "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
2409         "comments": "",\r
2410         "x": 5450.75,\r
2411         "y": 879.75,\r
2412         "z": "265dc029.a18eb8",\r
2413         "wires": []\r
2414     },\r
2415     {\r
2416         "id": "df22bf16.07f7a",\r
2417         "type": "returnFailure",\r
2418         "name": "return failure",\r
2419         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2420         "comments": "",\r
2421         "x": 5461.75,\r
2422         "y": 824.75,\r
2423         "z": "265dc029.a18eb8",\r
2424         "wires": []\r
2425     },\r
2426     {\r
2427         "id": "b87f751d.f3da7",\r
2428         "type": "block",\r
2429         "name": "block",\r
2430         "xml": "<block>\n",\r
2431         "atomic": "false",\r
2432         "comments": "",\r
2433         "outputs": 1,\r
2434         "x": 5446.13232421875,\r
2435         "y": 764.4056701660156,\r
2436         "z": "265dc029.a18eb8",\r
2437         "wires": [\r
2438             [\r
2439                 "65560228.e1b304"\r
2440             ]\r
2441         ]\r
2442     },\r
2443     {\r
2444         "id": "65560228.e1b304",\r
2445         "type": "set",\r
2446         "name": "set controller domainA data",\r
2447         "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
2448         "comments": "",\r
2449         "x": 5660.75,\r
2450         "y": 760.75,\r
2451         "z": "265dc029.a18eb8",\r
2452         "wires": []\r
2453     },\r
2454     {\r
2455         "id": "d98e4cd6.39d27",\r
2456         "type": "get-resource",\r
2457         "name": "get-resource src pnf",\r
2458         "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
2459         "comments": "",\r
2460         "outputs": 1,\r
2461         "x": 3825.75,\r
2462         "y": 1649.75,\r
2463         "z": "265dc029.a18eb8",\r
2464         "wires": [\r
2465             [\r
2466                 "2868cde5.076bda",\r
2467                 "b742f188.d99c98",\r
2468                 "7bcbe6e5.b6855"\r
2469             ]\r
2470         ]\r
2471     },\r
2472     {\r
2473         "id": "2868cde5.076bda",\r
2474         "type": "success",\r
2475         "name": "success",\r
2476         "xml": "<outcome value='success'>\n",\r
2477         "comments": "",\r
2478         "outputs": 1,\r
2479         "x": 4021.2501220703125,\r
2480         "y": 1601.75,\r
2481         "z": "265dc029.a18eb8",\r
2482         "wires": [\r
2483             [\r
2484                 "ddae6fe1.18737"\r
2485             ]\r
2486         ]\r
2487     },\r
2488     {\r
2489         "id": "b742f188.d99c98",\r
2490         "type": "not-found",\r
2491         "name": "not-found",\r
2492         "xml": "<outcome value='not-found'>\n",\r
2493         "comments": "",\r
2494         "outputs": 1,\r
2495         "x": 4013.2501220703125,\r
2496         "y": 1656.75,\r
2497         "z": "265dc029.a18eb8",\r
2498         "wires": [\r
2499             [\r
2500                 "22adb7ad.9c7eb8"\r
2501             ]\r
2502         ]\r
2503     },\r
2504     {\r
2505         "id": "7bcbe6e5.b6855",\r
2506         "type": "other",\r
2507         "name": "other",\r
2508         "xml": "<outcome value='Other'>\n",\r
2509         "comments": "",\r
2510         "outputs": 1,\r
2511         "x": 4018.2501220703125,\r
2512         "y": 1713.75,\r
2513         "z": "265dc029.a18eb8",\r
2514         "wires": [\r
2515             [\r
2516                 "8bbca88.4bf3658"\r
2517             ]\r
2518         ]\r
2519     },\r
2520     {\r
2521         "id": "8bbca88.4bf3658",\r
2522         "type": "returnFailure",\r
2523         "name": "return failure",\r
2524         "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
2525         "comments": "",\r
2526         "x": 4170.2501220703125,\r
2527         "y": 1714.75,\r
2528         "z": "265dc029.a18eb8",\r
2529         "wires": []\r
2530     },\r
2531     {\r
2532         "id": "22adb7ad.9c7eb8",\r
2533         "type": "returnFailure",\r
2534         "name": "return failure",\r
2535         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2536         "comments": "",\r
2537         "x": 4181.2501220703125,\r
2538         "y": 1659.75,\r
2539         "z": "265dc029.a18eb8",\r
2540         "wires": []\r
2541     },\r
2542     {\r
2543         "id": "ddae6fe1.18737",\r
2544         "type": "block",\r
2545         "name": "block",\r
2546         "xml": "<block>\n",\r
2547         "atomic": "false",\r
2548         "comments": "",\r
2549         "outputs": 1,\r
2550         "x": 4165.6324462890625,\r
2551         "y": 1599.4056701660156,\r
2552         "z": "265dc029.a18eb8",\r
2553         "wires": [\r
2554             [\r
2555                 "745549ac.76522"\r
2556             ]\r
2557         ]\r
2558     },\r
2559     {\r
2560         "id": "6c51f1bb.fdd338",\r
2561         "type": "outcome",\r
2562         "name": "esr-thirdparty-sdnc",\r
2563         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2564         "comments": "",\r
2565         "outputs": 1,\r
2566         "x": 4747.75,\r
2567         "y": 1617.75,\r
2568         "z": "265dc029.a18eb8",\r
2569         "wires": [\r
2570             [\r
2571                 "bec84375.9834d8"\r
2572             ]\r
2573         ]\r
2574     },\r
2575     {\r
2576         "id": "bec84375.9834d8",\r
2577         "type": "block",\r
2578         "name": "block : atomic",\r
2579         "xml": "<block atomic=\"true\">",\r
2580         "atomic": "true",\r
2581         "outputs": 1,\r
2582         "x": 4924.75,\r
2583         "y": 1609.75,\r
2584         "z": "265dc029.a18eb8",\r
2585         "wires": [\r
2586             [\r
2587                 "10746af3.442ea5",\r
2588                 "c8d59f37.05516"\r
2589             ]\r
2590         ]\r
2591     },\r
2592     {\r
2593         "id": "745549ac.76522",\r
2594         "type": "for",\r
2595         "name": "for each relationship",\r
2596         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
2597         "comments": "",\r
2598         "outputs": 1,\r
2599         "x": 4349.75,\r
2600         "y": 1613.75,\r
2601         "z": "265dc029.a18eb8",\r
2602         "wires": [\r
2603             [\r
2604                 "6f4edcf8.0264a4"\r
2605             ]\r
2606         ]\r
2607     },\r
2608     {\r
2609         "id": "6f4edcf8.0264a4",\r
2610         "type": "switchNode",\r
2611         "name": "switch related-to",\r
2612         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
2613         "comments": "",\r
2614         "outputs": 1,\r
2615         "x": 4544.75,\r
2616         "y": 1613.75,\r
2617         "z": "265dc029.a18eb8",\r
2618         "wires": [\r
2619             [\r
2620                 "6c51f1bb.fdd338",\r
2621                 "bd360057.ae7f88"\r
2622             ]\r
2623         ]\r
2624     },\r
2625     {\r
2626         "id": "c8d59f37.05516",\r
2627         "type": "execute",\r
2628         "name": "get esr-thirdparty-sdnc",\r
2629         "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
2630         "comments": "",\r
2631         "outputs": 1,\r
2632         "x": 5132.75,\r
2633         "y": 1616.75,\r
2634         "z": "265dc029.a18eb8",\r
2635         "wires": [\r
2636             [\r
2637                 "cfff8041.7a41a",\r
2638                 "e8bb74eb.2b006",\r
2639                 "38cb0a35.e7b596"\r
2640             ]\r
2641         ]\r
2642     },\r
2643     {\r
2644         "id": "10746af3.442ea5",\r
2645         "type": "set",\r
2646         "name": "set esr-thirdparty-sdnc domainB id",\r
2647         "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
2648         "comments": "",\r
2649         "x": 5162.75,\r
2650         "y": 1564.75,\r
2651         "z": "265dc029.a18eb8",\r
2652         "wires": []\r
2653     },\r
2654     {\r
2655         "id": "cfff8041.7a41a",\r
2656         "type": "success",\r
2657         "name": "success",\r
2658         "xml": "<outcome value='success'>\n",\r
2659         "comments": "",\r
2660         "outputs": 1,\r
2661         "x": 5342.75,\r
2662         "y": 1607.75,\r
2663         "z": "265dc029.a18eb8",\r
2664         "wires": [\r
2665             [\r
2666                 "48760758.d51b1"\r
2667             ]\r
2668         ]\r
2669     },\r
2670     {\r
2671         "id": "e8bb74eb.2b006",\r
2672         "type": "not-found",\r
2673         "name": "not-found",\r
2674         "xml": "<outcome value='not-found'>\n",\r
2675         "comments": "",\r
2676         "outputs": 1,\r
2677         "x": 5334.75,\r
2678         "y": 1662.75,\r
2679         "z": "265dc029.a18eb8",\r
2680         "wires": [\r
2681             [\r
2682                 "cd0857ad.373e5"\r
2683             ]\r
2684         ]\r
2685     },\r
2686     {\r
2687         "id": "38cb0a35.e7b596",\r
2688         "type": "other",\r
2689         "name": "other",\r
2690         "xml": "<outcome value='Other'>\n",\r
2691         "comments": "",\r
2692         "outputs": 1,\r
2693         "x": 5339.75,\r
2694         "y": 1719.75,\r
2695         "z": "265dc029.a18eb8",\r
2696         "wires": [\r
2697             [\r
2698                 "dc5ac250.081388"\r
2699             ]\r
2700         ]\r
2701     },\r
2702     {\r
2703         "id": "dc5ac250.081388",\r
2704         "type": "returnFailure",\r
2705         "name": "return failure",\r
2706         "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
2707         "comments": "",\r
2708         "x": 5491.75,\r
2709         "y": 1720.75,\r
2710         "z": "265dc029.a18eb8",\r
2711         "wires": []\r
2712     },\r
2713     {\r
2714         "id": "cd0857ad.373e5",\r
2715         "type": "returnFailure",\r
2716         "name": "return failure",\r
2717         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2718         "comments": "",\r
2719         "x": 5502.75,\r
2720         "y": 1665.75,\r
2721         "z": "265dc029.a18eb8",\r
2722         "wires": []\r
2723     },\r
2724     {\r
2725         "id": "48760758.d51b1",\r
2726         "type": "block",\r
2727         "name": "block",\r
2728         "xml": "<block>\n",\r
2729         "atomic": "false",\r
2730         "comments": "",\r
2731         "outputs": 1,\r
2732         "x": 5487.13232421875,\r
2733         "y": 1605.4056701660156,\r
2734         "z": "265dc029.a18eb8",\r
2735         "wires": [\r
2736             [\r
2737                 "4f464150.595d48"\r
2738             ]\r
2739         ]\r
2740     },\r
2741     {\r
2742         "id": "4f464150.595d48",\r
2743         "type": "set",\r
2744         "name": "set controller domainB data",\r
2745         "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
2746         "comments": "",\r
2747         "x": 5701.75,\r
2748         "y": 1601.75,\r
2749         "z": "265dc029.a18eb8",\r
2750         "wires": []\r
2751     },\r
2752     {\r
2753         "id": "7898c9b3.45357",\r
2754         "type": "block",\r
2755         "name": "block : atomic",\r
2756         "xml": "<block atomic=\"true\">",\r
2757         "atomic": "true",\r
2758         "outputs": 1,\r
2759         "x": 2785.75,\r
2760         "y": 541.75,\r
2761         "z": "265dc029.a18eb8",\r
2762         "wires": [\r
2763             [\r
2764                 "7e565315.5e9c94",\r
2765                 "d1780d52.965428"\r
2766             ]\r
2767         ]\r
2768     },\r
2769     {\r
2770         "id": "d1780d52.965428",\r
2771         "type": "for",\r
2772         "name": "for each allotted-resource relationship",\r
2773         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
2774         "comments": "",\r
2775         "outputs": 1,\r
2776         "x": 3066.75,\r
2777         "y": 497.75,\r
2778         "z": "265dc029.a18eb8",\r
2779         "wires": [\r
2780             [\r
2781                 "3ca961.874bbea"\r
2782             ]\r
2783         ]\r
2784     },\r
2785     {\r
2786         "id": "3ca961.874bbea",\r
2787         "type": "switchNode",\r
2788         "name": "switch related-to",\r
2789         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
2790         "comments": "",\r
2791         "outputs": 1,\r
2792         "x": 3328.75,\r
2793         "y": 497.75,\r
2794         "z": "265dc029.a18eb8",\r
2795         "wires": [\r
2796             [\r
2797                 "f45e9748.7b5398"\r
2798             ]\r
2799         ]\r
2800     },\r
2801     {\r
2802         "id": "86b82394.a43d88",\r
2803         "type": "outcome",\r
2804         "name": "network-resource",\r
2805         "xml": "<outcome value='network-resource'>",\r
2806         "comments": "",\r
2807         "outputs": 1,\r
2808         "x": 4709.75,\r
2809         "y": 850.75,\r
2810         "z": "265dc029.a18eb8",\r
2811         "wires": [\r
2812             [\r
2813                 "d6ae6456.c7b7d"\r
2814             ]\r
2815         ]\r
2816     },\r
2817     {\r
2818         "id": "d6ae6456.c7b7d",\r
2819         "type": "block",\r
2820         "name": "block : atomic",\r
2821         "xml": "<block atomic=\"true\">",\r
2822         "atomic": "true",\r
2823         "outputs": 1,\r
2824         "x": 4886.75,\r
2825         "y": 842.75,\r
2826         "z": "265dc029.a18eb8",\r
2827         "wires": [\r
2828             [\r
2829                 "e0c26dc1.c6609"\r
2830             ]\r
2831         ]\r
2832     },\r
2833     {\r
2834         "id": "e0c26dc1.c6609",\r
2835         "type": "set",\r
2836         "name": "set domainA ethernet layer network-id",\r
2837         "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
2838         "comments": "",\r
2839         "x": 5121.75,\r
2840         "y": 966.75,\r
2841         "z": "265dc029.a18eb8",\r
2842         "wires": []\r
2843     },\r
2844     {\r
2845         "id": "d695d085.dfc6b8",\r
2846         "type": "set",\r
2847         "name": "set domainB ethernet layer network-id",\r
2848         "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
2849         "comments": "",\r
2850         "x": 5161.75,\r
2851         "y": 1806.75,\r
2852         "z": "265dc029.a18eb8",\r
2853         "wires": []\r
2854     },\r
2855     {\r
2856         "id": "d2aa9e81.4a2188",\r
2857         "type": "block",\r
2858         "name": "block : atomic",\r
2859         "xml": "<block atomic=\"true\">",\r
2860         "atomic": "true",\r
2861         "outputs": 1,\r
2862         "x": 4926.75,\r
2863         "y": 1682.75,\r
2864         "z": "265dc029.a18eb8",\r
2865         "wires": [\r
2866             [\r
2867                 "d695d085.dfc6b8"\r
2868             ]\r
2869         ]\r
2870     },\r
2871     {\r
2872         "id": "bd360057.ae7f88",\r
2873         "type": "outcome",\r
2874         "name": "network-resource",\r
2875         "xml": "<outcome value='network-resource'>",\r
2876         "comments": "",\r
2877         "outputs": 1,\r
2878         "x": 4749.75,\r
2879         "y": 1690.75,\r
2880         "z": "265dc029.a18eb8",\r
2881         "wires": [\r
2882             [\r
2883                 "d2aa9e81.4a2188"\r
2884             ]\r
2885         ]\r
2886     },\r
2887     {\r
2888         "id": "2bb1c801.8cdbe",\r
2889         "type": "set",\r
2890         "name": "set the max bandwidth",\r
2891         "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
2892         "comments": "",\r
2893         "x": 4367.75,\r
2894         "y": 627.75,\r
2895         "z": "265dc029.a18eb8",\r
2896         "wires": []\r
2897     },\r
2898     {\r
2899         "id": "f8e47c26.52e4d8",\r
2900         "type": "execute",\r
2901         "name": "execute UUID generator for ethernet-service-name",\r
2902         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
2903         "comments": "",\r
2904         "outputs": 1,\r
2905         "x": 2723.75,\r
2906         "y": 761.75,\r
2907         "z": "265dc029.a18eb8",\r
2908         "wires": [\r
2909             []\r
2910         ]\r
2911     },\r
2912     {\r
2913         "id": "cd49f082.fc7e6",\r
2914         "type": "execute",\r
2915         "name": "execute UUID generator for otn-tunnel-name",\r
2916         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
2917         "comments": "",\r
2918         "outputs": 1,\r
2919         "x": 2704.75,\r
2920         "y": 811.75,\r
2921         "z": "265dc029.a18eb8",\r
2922         "wires": [\r
2923             []\r
2924         ]\r
2925     },\r
2926     {\r
2927         "id": "e47816c1.46d19",\r
2928         "type": "for",\r
2929         "name": "for each allotted-resource",\r
2930         "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
2931         "comments": "",\r
2932         "outputs": 1,\r
2933         "x": 1965.75,\r
2934         "y": 345.75,\r
2935         "z": "265dc029.a18eb8",\r
2936         "wires": [\r
2937             [\r
2938                 "d88bc8a5.b522",\r
2939                 "2fd2492.76d5db6"\r
2940             ]\r
2941         ]\r
2942     },\r
2943     {\r
2944         "id": "d88bc8a5.b522",\r
2945         "type": "set",\r
2946         "name": "set the current allotted-resource-id",\r
2947         "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
2948         "comments": "",\r
2949         "x": 2245.75,\r
2950         "y": 283.75,\r
2951         "z": "265dc029.a18eb8",\r
2952         "wires": []\r
2953     },\r
2954     {\r
2955         "id": "558b33bb.a28914",\r
2956         "type": "set",\r
2957         "name": "set query_param",\r
2958         "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
2959         "comments": "",\r
2960         "x": 2634.75,\r
2961         "y": 2176.7501220703125,\r
2962         "z": "265dc029.a18eb8",\r
2963         "wires": []\r
2964     },\r
2965     {\r
2966         "id": "14b3fe.dfa6ec02",\r
2967         "type": "set",\r
2968         "name": "unset parameters",\r
2969         "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
2970         "comments": "",\r
2971         "x": 2604.75,\r
2972         "y": 4019.75,\r
2973         "z": "265dc029.a18eb8",\r
2974         "wires": []\r
2975     },\r
2976     {\r
2977         "id": "ccca18a2.ea7ad8",\r
2978         "type": "set",\r
2979         "name": "set new ethernet-service-name",\r
2980         "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
2981         "comments": "",\r
2982         "x": 2661.75,\r
2983         "y": 856.75,\r
2984         "z": "265dc029.a18eb8",\r
2985         "wires": []\r
2986     },\r
2987     {\r
2988         "id": "cca04ac5.91465",\r
2989         "type": "for",\r
2990         "name": "for vidx..tmp.otninfo_length[]",\r
2991         "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",\r
2992         "comments": "",\r
2993         "outputs": 1,\r
2994         "x": 2960.75,\r
2995         "y": 2573.7501220703125,\r
2996         "z": "265dc029.a18eb8",\r
2997         "wires": [\r
2998             [\r
2999                 "632d67d8.477b4"\r
3000             ]\r
3001         ]\r
3002     },\r
3003     {\r
3004         "id": "509c5188.74c83",\r
3005         "type": "save",\r
3006         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
3007         "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
3008         "comments": "",\r
3009         "outputs": 1,\r
3010         "x": 3778.75,\r
3011         "y": 3008.75,\r
3012         "z": "265dc029.a18eb8",\r
3013         "wires": [\r
3014             [\r
3015                 "47e5c711.f9e42"\r
3016             ]\r
3017         ]\r
3018     },\r
3019     {\r
3020         "id": "e45b6160.4b64a",\r
3021         "type": "save",\r
3022         "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
3023         "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
3024         "comments": "",\r
3025         "outputs": 1,\r
3026         "x": 4346.249755859375,\r
3027         "y": 3117.75,\r
3028         "z": "265dc029.a18eb8",\r
3029         "wires": [\r
3030             []\r
3031         ]\r
3032     },\r
3033     {\r
3034         "id": "47e5c711.f9e42",\r
3035         "type": "success",\r
3036         "name": "success",\r
3037         "xml": "<outcome value='success'>\n",\r
3038         "comments": "",\r
3039         "outputs": 1,\r
3040         "x": 4084.75,\r
3041         "y": 3007.75,\r
3042         "z": "265dc029.a18eb8",\r
3043         "wires": [\r
3044             [\r
3045                 "145a15c9.c3f512"\r
3046             ]\r
3047         ]\r
3048     },\r
3049     {\r
3050         "id": "145a15c9.c3f512",\r
3051         "type": "block",\r
3052         "name": "block",\r
3053         "xml": "<block>\n",\r
3054         "atomic": "false",\r
3055         "comments": "",\r
3056         "outputs": 1,\r
3057         "x": 4294.25,\r
3058         "y": 3008.00390625,\r
3059         "z": "265dc029.a18eb8",\r
3060         "wires": [\r
3061             []\r
3062         ]\r
3063     },\r
3064     {\r
3065         "id": "7555fbf6.cdbdcc",\r
3066         "type": "execute",\r
3067         "name": "execute UUID generator for vpn-binding $otnidx",\r
3068         "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
3069         "comments": "",\r
3070         "outputs": 1,\r
3071         "x": 3811.75,\r
3072         "y": 2487.75,\r
3073         "z": "265dc029.a18eb8",\r
3074         "wires": [\r
3075             []\r
3076         ]\r
3077     },\r
3078     {\r
3079         "id": "6602c404.9c0314",\r
3080         "type": "switchNode",\r
3081         "name": "switch otnidx == 0",\r
3082         "xml": "<switch test='`$otnidx == 0`'>\n",\r
3083         "comments": "",\r
3084         "outputs": 1,\r
3085         "x": 3687.75,\r
3086         "y": 3125.75,\r
3087         "z": "265dc029.a18eb8",\r
3088         "wires": [\r
3089             [\r
3090                 "ecf5d9ca.029638",\r
3091                 "7cbff457.bc10a4"\r
3092             ]\r
3093         ]\r
3094     },\r
3095     {\r
3096         "id": "ecf5d9ca.029638",\r
3097         "type": "outcomeTrue",\r
3098         "name": "true",\r
3099         "xml": "<outcome value='true'>\n",\r
3100         "comments": "",\r
3101         "outputs": 1,\r
3102         "x": 3870.75,\r
3103         "y": 3125.75,\r
3104         "z": "265dc029.a18eb8",\r
3105         "wires": [\r
3106             [\r
3107                 "8b66f50b.a495e"\r
3108             ]\r
3109         ]\r
3110     },\r
3111     {\r
3112         "id": "7cbff457.bc10a4",\r
3113         "type": "outcomeFalse",\r
3114         "name": "false",\r
3115         "xml": "<outcome value='false'>\n",\r
3116         "comments": "",\r
3117         "outputs": 1,\r
3118         "x": 3695.75,\r
3119         "y": 3272.75,\r
3120         "z": "265dc029.a18eb8",\r
3121         "wires": [\r
3122             [\r
3123                 "98fe960.02a01e8"\r
3124             ]\r
3125         ]\r
3126     },\r
3127     {\r
3128         "id": "a6856d07.c2a888",\r
3129         "type": "switchNode",\r
3130         "name": "switch otnidx == last",\r
3131         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",\r
3132         "comments": "",\r
3133         "outputs": 1,\r
3134         "x": 4036.75,\r
3135         "y": 3353.75,\r
3136         "z": "265dc029.a18eb8",\r
3137         "wires": [\r
3138             [\r
3139                 "95cc5926.bc205",\r
3140                 "51ef39f3.21a02"\r
3141             ]\r
3142         ]\r
3143     },\r
3144     {\r
3145         "id": "95cc5926.bc205",\r
3146         "type": "outcomeTrue",\r
3147         "name": "true",\r
3148         "xml": "<outcome value='true'>\n",\r
3149         "comments": "",\r
3150         "outputs": 1,\r
3151         "x": 4221.75,\r
3152         "y": 3354.75,\r
3153         "z": "265dc029.a18eb8",\r
3154         "wires": [\r
3155             [\r
3156                 "7a243a1b.dc43dc"\r
3157             ]\r
3158         ]\r
3159     },\r
3160     {\r
3161         "id": "51ef39f3.21a02",\r
3162         "type": "outcomeFalse",\r
3163         "name": "false",\r
3164         "xml": "<outcome value='false'>\n",\r
3165         "comments": "",\r
3166         "outputs": 1,\r
3167         "x": 4240.75,\r
3168         "y": 3620.75,\r
3169         "z": "265dc029.a18eb8",\r
3170         "wires": [\r
3171             [\r
3172                 "d80d30d2.312238"\r
3173             ]\r
3174         ]\r
3175     },\r
3176     {\r
3177         "id": "5262e36b.131f54",\r
3178         "type": "save",\r
3179         "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
3180         "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
3181         "comments": "",\r
3182         "outputs": 1,\r
3183         "x": 4651.75,\r
3184         "y": 3355.75,\r
3185         "z": "265dc029.a18eb8",\r
3186         "wires": [\r
3187             []\r
3188         ]\r
3189     },\r
3190     {\r
3191         "id": "fe37c597.d52ae8",\r
3192         "type": "execute",\r
3193         "name": "execute UUID generator for connectivity domain otnidx",\r
3194         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
3195         "comments": "",\r
3196         "outputs": 1,\r
3197         "x": 4725.75,\r
3198         "y": 3653.75,\r
3199         "z": "265dc029.a18eb8",\r
3200         "wires": [\r
3201             []\r
3202         ]\r
3203     },\r
3204     {\r
3205         "id": "f1eb5c8d.f0efd",\r
3206         "type": "save",\r
3207         "name": "save connectivity resource in AAI",\r
3208         "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
3209         "comments": "",\r
3210         "outputs": 1,\r
3211         "x": 4661.75,\r
3212         "y": 3704.75,\r
3213         "z": "265dc029.a18eb8",\r
3214         "wires": [\r
3215             []\r
3216         ]\r
3217     },\r
3218     {\r
3219         "id": "269da2fb.91d39e",\r
3220         "type": "save",\r
3221         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3222         "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
3223         "comments": "",\r
3224         "outputs": 1,\r
3225         "x": 4790.75,\r
3226         "y": 3754.75,\r
3227         "z": "265dc029.a18eb8",\r
3228         "wires": [\r
3229             []\r
3230         ]\r
3231     },\r
3232     {\r
3233         "id": "72735598.b392e4",\r
3234         "type": "comment",\r
3235         "name": "connectivity has not been created for middle domains, so we have to create one",\r
3236         "info": "",\r
3237         "comments": "",\r
3238         "x": 4800.75,\r
3239         "y": 3597.75,\r
3240         "z": "265dc029.a18eb8",\r
3241         "wires": []\r
3242     },\r
3243     {\r
3244         "id": "c95e91b6.ee604",\r
3245         "type": "save",\r
3246         "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
3247         "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
3248         "comments": "",\r
3249         "outputs": 1,\r
3250         "x": 4758.75,\r
3251         "y": 3813.75,\r
3252         "z": "265dc029.a18eb8",\r
3253         "wires": [\r
3254             []\r
3255         ]\r
3256     },\r
3257     {\r
3258         "id": "d80d30d2.312238",\r
3259         "type": "block",\r
3260         "name": "block : atomic",\r
3261         "xml": "<block atomic='true'>",\r
3262         "atomic": "true",\r
3263         "comments": "",\r
3264         "outputs": 1,\r
3265         "x": 4397.75,\r
3266         "y": 3621.75,\r
3267         "z": "265dc029.a18eb8",\r
3268         "wires": [\r
3269             [\r
3270                 "fe37c597.d52ae8",\r
3271                 "f1eb5c8d.f0efd",\r
3272                 "269da2fb.91d39e",\r
3273                 "c95e91b6.ee604",\r
3274                 "e869dcfa.21d6a"\r
3275             ]\r
3276         ]\r
3277     },\r
3278     {\r
3279         "id": "632d67d8.477b4",\r
3280         "type": "block",\r
3281         "name": "block : atomic",\r
3282         "xml": "<block atomic='true'>",\r
3283         "atomic": "true",\r
3284         "comments": "",\r
3285         "outputs": 1,\r
3286         "x": 3229.75,\r
3287         "y": 2573.7501220703125,\r
3288         "z": "265dc029.a18eb8",\r
3289         "wires": [\r
3290             [\r
3291                 "7555fbf6.cdbdcc",\r
3292                 "509c5188.74c83",\r
3293                 "6602c404.9c0314",\r
3294                 "a7981473.cca18",\r
3295                 "67f8bed4.589038",\r
3296                 "84f21d5d.cb936",\r
3297                 "cf841c7f.9aedb"\r
3298             ]\r
3299         ]\r
3300     },\r
3301     {\r
3302         "id": "355e2bbf.8d08b4",\r
3303         "type": "set",\r
3304         "name": "set attachment_param domain A",\r
3305         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",\r
3306         "comments": "",\r
3307         "x": 4275.75,\r
3308         "y": 3169.75,\r
3309         "z": "265dc029.a18eb8",\r
3310         "wires": []\r
3311     },\r
3312     {\r
3313         "id": "5e65478a.e55ec8",\r
3314         "type": "execute",\r
3315         "name": "execute RestApiCallNode domainA UNI Coloring",\r
3316         "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
3317         "comments": "",\r
3318         "outputs": 1,\r
3319         "x": 4328.75,\r
3320         "y": 3213.75,\r
3321         "z": "265dc029.a18eb8",\r
3322         "wires": [\r
3323             [\r
3324                 "6aa94454.63c71c",\r
3325                 "8b32fc97.557eb"\r
3326             ]\r
3327         ]\r
3328     },\r
3329     {\r
3330         "id": "8b32fc97.557eb",\r
3331         "type": "failure",\r
3332         "name": "failure",\r
3333         "xml": "<outcome value='failure'>\n",\r
3334         "comments": "",\r
3335         "outputs": 1,\r
3336         "x": 4599.75,\r
3337         "y": 3198.75,\r
3338         "z": "265dc029.a18eb8",\r
3339         "wires": [\r
3340             [\r
3341                 "25abbf8d.056b1"\r
3342             ]\r
3343         ]\r
3344     },\r
3345     {\r
3346         "id": "6aa94454.63c71c",\r
3347         "type": "success",\r
3348         "name": "success",\r
3349         "xml": "<outcome value='success'>\n",\r
3350         "comments": "",\r
3351         "outputs": 1,\r
3352         "x": 4597.750213623047,\r
3353         "y": 3256.74990940094,\r
3354         "z": "265dc029.a18eb8",\r
3355         "wires": [\r
3356             [\r
3357                 "e943d471.fc5ba"\r
3358             ]\r
3359         ]\r
3360     },\r
3361     {\r
3362         "id": "25abbf8d.056b1",\r
3363         "type": "returnFailure",\r
3364         "name": "return failure",\r
3365         "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
3366         "comments": "",\r
3367         "x": 4739.750247955322,\r
3368         "y": 3198.7500009536743,\r
3369         "z": "265dc029.a18eb8",\r
3370         "wires": []\r
3371     },\r
3372     {\r
3373         "id": "e943d471.fc5ba",\r
3374         "type": "block",\r
3375         "name": "block",\r
3376         "xml": "<block>\n",\r
3377         "atomic": "false",\r
3378         "comments": "",\r
3379         "outputs": 1,\r
3380         "x": 4745.77725982666,\r
3381         "y": 3247.495394706726,\r
3382         "z": "265dc029.a18eb8",\r
3383         "wires": [\r
3384             []\r
3385         ]\r
3386     },\r
3387     {\r
3388         "id": "8b66f50b.a495e",\r
3389         "type": "block",\r
3390         "name": "block",\r
3391         "xml": "<block>\n",\r
3392         "atomic": "false",\r
3393         "comments": "",\r
3394         "outputs": 1,\r
3395         "x": 4011.75,\r
3396         "y": 3115.75,\r
3397         "z": "265dc029.a18eb8",\r
3398         "wires": [\r
3399             [\r
3400                 "e45b6160.4b64a",\r
3401                 "355e2bbf.8d08b4"\r
3402             ]\r
3403         ]\r
3404     },\r
3405     {\r
3406         "id": "7a243a1b.dc43dc",\r
3407         "type": "block",\r
3408         "name": "block",\r
3409         "xml": "<block>\n",\r
3410         "atomic": "false",\r
3411         "comments": "",\r
3412         "outputs": 1,\r
3413         "x": 4355.75,\r
3414         "y": 3355.75,\r
3415         "z": "265dc029.a18eb8",\r
3416         "wires": [\r
3417             [\r
3418                 "5262e36b.131f54",\r
3419                 "74f9fcf1.d739a4"\r
3420             ]\r
3421         ]\r
3422     },\r
3423     {\r
3424         "id": "74f9fcf1.d739a4",\r
3425         "type": "set",\r
3426         "name": "set attachment_param domain B",\r
3427         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",\r
3428         "comments": "",\r
3429         "x": 4575.75,\r
3430         "y": 3399.75,\r
3431         "z": "265dc029.a18eb8",\r
3432         "wires": []\r
3433     },\r
3434     {\r
3435         "id": "14bf600d.e67a7",\r
3436         "type": "execute",\r
3437         "name": "execute RestApiCallNode domainB UNI Coloring",\r
3438         "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
3439         "comments": "",\r
3440         "outputs": 1,\r
3441         "x": 4626.75,\r
3442         "y": 3443.75,\r
3443         "z": "265dc029.a18eb8",\r
3444         "wires": [\r
3445             [\r
3446                 "b9df2951.d6312",\r
3447                 "2675c857.253648"\r
3448             ]\r
3449         ]\r
3450     },\r
3451     {\r
3452         "id": "2675c857.253648",\r
3453         "type": "failure",\r
3454         "name": "failure",\r
3455         "xml": "<outcome value='failure'>\n",\r
3456         "comments": "",\r
3457         "outputs": 1,\r
3458         "x": 4889.75,\r
3459         "y": 3423.75,\r
3460         "z": "265dc029.a18eb8",\r
3461         "wires": [\r
3462             [\r
3463                 "ee37ae98.df0788"\r
3464             ]\r
3465         ]\r
3466     },\r
3467     {\r
3468         "id": "b9df2951.d6312",\r
3469         "type": "success",\r
3470         "name": "success",\r
3471         "xml": "<outcome value='success'>\n",\r
3472         "comments": "",\r
3473         "outputs": 1,\r
3474         "x": 4890.750213623047,\r
3475         "y": 3474.74990940094,\r
3476         "z": "265dc029.a18eb8",\r
3477         "wires": [\r
3478             [\r
3479                 "6b1e1b93.fd4064"\r
3480             ]\r
3481         ]\r
3482     },\r
3483     {\r
3484         "id": "ee37ae98.df0788",\r
3485         "type": "returnFailure",\r
3486         "name": "return failure",\r
3487         "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
3488         "comments": "",\r
3489         "x": 5029.750247955322,\r
3490         "y": 3423.7500009536743,\r
3491         "z": "265dc029.a18eb8",\r
3492         "wires": []\r
3493     },\r
3494     {\r
3495         "id": "6b1e1b93.fd4064",\r
3496         "type": "block",\r
3497         "name": "block",\r
3498         "xml": "<block>\n",\r
3499         "atomic": "false",\r
3500         "comments": "",\r
3501         "outputs": 1,\r
3502         "x": 5035.77725982666,\r
3503         "y": 3472.495394706726,\r
3504         "z": "265dc029.a18eb8",\r
3505         "wires": [\r
3506             []\r
3507         ]\r
3508     },\r
3509     {\r
3510         "id": "e869dcfa.21d6a",\r
3511         "type": "set",\r
3512         "name": "set attachment_param domain otnidx",\r
3513         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
3514         "comments": "",\r
3515         "x": 4672.75,\r
3516         "y": 3873.75,\r
3517         "z": "265dc029.a18eb8",\r
3518         "wires": []\r
3519     },\r
3520     {\r
3521         "id": "7226b3cc.67998c",\r
3522         "type": "save",\r
3523         "name": "get all-vpn-bindings from aai",\r
3524         "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
3525         "comments": "",\r
3526         "outputs": 1,\r
3527         "x": 1991.75,\r
3528         "y": 4220.75,\r
3529         "z": "265dc029.a18eb8",\r
3530         "wires": [\r
3531             [\r
3532                 "afb2b4e.a4009c8",\r
3533                 "c2c67e99.895238",\r
3534                 "f60b7df.b2997"\r
3535             ]\r
3536         ]\r
3537     },\r
3538     {\r
3539         "id": "afb2b4e.a4009c8",\r
3540         "type": "success",\r
3541         "name": "success",\r
3542         "xml": "<outcome value='success'>\n",\r
3543         "comments": "",\r
3544         "outputs": 1,\r
3545         "x": 2179.75,\r
3546         "y": 4233.75,\r
3547         "z": "265dc029.a18eb8",\r
3548         "wires": [\r
3549             [\r
3550                 "81feb431.c2cd38"\r
3551             ]\r
3552         ]\r
3553     },\r
3554     {\r
3555         "id": "c2c67e99.895238",\r
3556         "type": "not-found",\r
3557         "name": "not-found",\r
3558         "xml": "<outcome value='not-found'>\n",\r
3559         "comments": "",\r
3560         "outputs": 1,\r
3561         "x": 2180.240966796875,\r
3562         "y": 4279.324035644531,\r
3563         "z": "265dc029.a18eb8",\r
3564         "wires": [\r
3565             [\r
3566                 "63caf3db.7d3514"\r
3567             ]\r
3568         ]\r
3569     },\r
3570     {\r
3571         "id": "f60b7df.b2997",\r
3572         "type": "failure",\r
3573         "name": "failure",\r
3574         "xml": "<outcome value='failure'>\n",\r
3575         "comments": "",\r
3576         "outputs": 1,\r
3577         "x": 2177.75,\r
3578         "y": 4322.75,\r
3579         "z": "265dc029.a18eb8",\r
3580         "wires": [\r
3581             [\r
3582                 "bc2cc67c.a26e68"\r
3583             ]\r
3584         ]\r
3585     },\r
3586     {\r
3587         "id": "81feb431.c2cd38",\r
3588         "type": "block",\r
3589         "name": "block : atomic",\r
3590         "xml": "<block atomic=\"true\">",\r
3591         "atomic": "true",\r
3592         "outputs": 1,\r
3593         "x": 2352.75,\r
3594         "y": 4231.75,\r
3595         "z": "265dc029.a18eb8",\r
3596         "wires": [\r
3597             [\r
3598                 "799860e4.4d402"\r
3599             ]\r
3600         ]\r
3601     },\r
3602     {\r
3603         "id": "63caf3db.7d3514",\r
3604         "type": "returnFailure",\r
3605         "name": "return failure",\r
3606         "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
3607         "comments": "",\r
3608         "x": 2342.8123779296875,\r
3609         "y": 4279.609771728516,\r
3610         "z": "265dc029.a18eb8",\r
3611         "wires": []\r
3612     },\r
3613     {\r
3614         "id": "bc2cc67c.a26e68",\r
3615         "type": "returnFailure",\r
3616         "name": "return failure",\r
3617         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3618         "comments": "",\r
3619         "x": 2344.75,\r
3620         "y": 4321.75,\r
3621         "z": "265dc029.a18eb8",\r
3622         "wires": []\r
3623     },\r
3624     {\r
3625         "id": "e9edd1fa.062c48",\r
3626         "type": "for",\r
3627         "name": "for vidx..tmp.otninfo_length[]",\r
3628         "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",\r
3629         "comments": "",\r
3630         "outputs": 1,\r
3631         "x": 1980.75,\r
3632         "y": 4411.75,\r
3633         "z": "265dc029.a18eb8",\r
3634         "wires": [\r
3635             [\r
3636                 "213a40e6.50fa5"\r
3637             ]\r
3638         ]\r
3639     },\r
3640     {\r
3641         "id": "ef976188.656f28",\r
3642         "type": "block",\r
3643         "name": "block : atomic",\r
3644         "xml": "<block atomic='true'>",\r
3645         "atomic": "true",\r
3646         "comments": "",\r
3647         "outputs": 1,\r
3648         "x": 2790.75,\r
3649         "y": 4411.75,\r
3650         "z": "265dc029.a18eb8",\r
3651         "wires": [\r
3652             [\r
3653                 "17b05ad0.008d15"\r
3654             ]\r
3655         ]\r
3656     },\r
3657     {\r
3658         "id": "21007b2.f080e84",\r
3659         "type": "for",\r
3660         "name": "for vidx..tmp.otninfo_length[]",\r
3661         "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",\r
3662         "comments": "",\r
3663         "outputs": 1,\r
3664         "x": 2562.75,\r
3665         "y": 4411.75,\r
3666         "z": "265dc029.a18eb8",\r
3667         "wires": [\r
3668             [\r
3669                 "ef976188.656f28"\r
3670             ]\r
3671         ]\r
3672     },\r
3673     {\r
3674         "id": "51229269.4b1c8c",\r
3675         "type": "set",\r
3676         "name": "set providerValue",\r
3677         "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
3678         "comments": "",\r
3679         "x": 3682.75,\r
3680         "y": 4178.75,\r
3681         "z": "265dc029.a18eb8",\r
3682         "wires": []\r
3683     },\r
3684     {\r
3685         "id": "35c690e7.fe6c",\r
3686         "type": "set",\r
3687         "name": "set",\r
3688         "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
3689         "comments": "",\r
3690         "x": 3984.75,\r
3691         "y": 3304.75,\r
3692         "z": "265dc029.a18eb8",\r
3693         "wires": []\r
3694     },\r
3695     {\r
3696         "id": "98fe960.02a01e8",\r
3697         "type": "block",\r
3698         "name": "block",\r
3699         "xml": "<block>\n",\r
3700         "atomic": "false",\r
3701         "comments": "",\r
3702         "outputs": 1,\r
3703         "x": 3819.75,\r
3704         "y": 3279.75,\r
3705         "z": "265dc029.a18eb8",\r
3706         "wires": [\r
3707             [\r
3708                 "35c690e7.fe6c",\r
3709                 "a6856d07.c2a888"\r
3710             ]\r
3711         ]\r
3712     },\r
3713     {\r
3714         "id": "50d31847.5f509",\r
3715         "type": "set",\r
3716         "name": "set tmp.arr",\r
3717         "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
3718         "comments": "",\r
3719         "x": 1939.75,\r
3720         "y": 295.75,\r
3721         "z": "265dc029.a18eb8",\r
3722         "wires": []\r
3723     },\r
3724     {\r
3725         "id": "799860e4.4d402",\r
3726         "type": "for",\r
3727         "name": "for vpnidx in all-vpn-bindings",\r
3728         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
3729         "comments": "",\r
3730         "outputs": 1,\r
3731         "x": 2581.75,\r
3732         "y": 4232.75,\r
3733         "z": "265dc029.a18eb8",\r
3734         "wires": [\r
3735             [\r
3736                 "abc14f3.125f83"\r
3737             ]\r
3738         ]\r
3739     },\r
3740     {\r
3741         "id": "abc14f3.125f83",\r
3742         "type": "block",\r
3743         "name": "block : atomic",\r
3744         "xml": "<block atomic='true'>",\r
3745         "atomic": "true",\r
3746         "comments": "",\r
3747         "outputs": 1,\r
3748         "x": 2796.75,\r
3749         "y": 4233.75,\r
3750         "z": "265dc029.a18eb8",\r
3751         "wires": [\r
3752             [\r
3753                 "cf481547.940d"\r
3754             ]\r
3755         ]\r
3756     },\r
3757     {\r
3758         "id": "22357a40.6f5826",\r
3759         "type": "for",\r
3760         "name": "for arridx in tmp.arr",\r
3761         "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",\r
3762         "comments": "",\r
3763         "outputs": 1,\r
3764         "x": 4249.75,\r
3765         "y": 4153.75,\r
3766         "z": "265dc029.a18eb8",\r
3767         "wires": [\r
3768             [\r
3769                 "6890c215.76779c"\r
3770             ]\r
3771         ]\r
3772     },\r
3773     {\r
3774         "id": "a03f6736.1a323",\r
3775         "type": "switchNode",\r
3776         "name": "switch $tmp.arr_length != 0",\r
3777         "xml": "<switch test='`$tmp.arr_length != 0`'>\n",\r
3778         "comments": "",\r
3779         "outputs": 1,\r
3780         "x": 3715.75,\r
3781         "y": 4233.75,\r
3782         "z": "265dc029.a18eb8",\r
3783         "wires": [\r
3784             [\r
3785                 "9db4f6d6.d9ce7",\r
3786                 "6099e33b.8b2e7c"\r
3787             ]\r
3788         ]\r
3789     },\r
3790     {\r
3791         "id": "9db4f6d6.d9ce7",\r
3792         "type": "outcomeTrue",\r
3793         "name": "true",\r
3794         "xml": "<outcome value='true'>\n",\r
3795         "comments": "",\r
3796         "outputs": 1,\r
3797         "x": 3911.75,\r
3798         "y": 4203.75,\r
3799         "z": "265dc029.a18eb8",\r
3800         "wires": [\r
3801             [\r
3802                 "6cbffd71.0d955c"\r
3803             ]\r
3804         ]\r
3805     },\r
3806     {\r
3807         "id": "6099e33b.8b2e7c",\r
3808         "type": "outcomeFalse",\r
3809         "name": "false",\r
3810         "xml": "<outcome value='false'>\n",\r
3811         "comments": "",\r
3812         "outputs": 1,\r
3813         "x": 3912.75,\r
3814         "y": 4274.75,\r
3815         "z": "265dc029.a18eb8",\r
3816         "wires": [\r
3817             [\r
3818                 "cb3a25fd.09afe8"\r
3819             ]\r
3820         ]\r
3821     },\r
3822     {\r
3823         "id": "6cbffd71.0d955c",\r
3824         "type": "block",\r
3825         "name": "block : atomic",\r
3826         "xml": "<block atomic='true'>",\r
3827         "atomic": "true",\r
3828         "comments": "",\r
3829         "outputs": 1,\r
3830         "x": 4062.75,\r
3831         "y": 4201.75,\r
3832         "z": "265dc029.a18eb8",\r
3833         "wires": [\r
3834             [\r
3835                 "22357a40.6f5826",\r
3836                 "691995c9.4a5b7c"\r
3837             ]\r
3838         ]\r
3839     },\r
3840     {\r
3841         "id": "6890c215.76779c",\r
3842         "type": "switchNode",\r
3843         "name": "switch tmp.arr[$arridx] == $providerValue",\r
3844         "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",\r
3845         "comments": "",\r
3846         "outputs": 1,\r
3847         "x": 4540.75,\r
3848         "y": 4153.75,\r
3849         "z": "265dc029.a18eb8",\r
3850         "wires": [\r
3851             [\r
3852                 "31547cc0.03bc84",\r
3853                 "df9fb700.28a918"\r
3854             ]\r
3855         ]\r
3856     },\r
3857     {\r
3858         "id": "31547cc0.03bc84",\r
3859         "type": "outcomeTrue",\r
3860         "name": "true",\r
3861         "xml": "<outcome value='true'>\n",\r
3862         "comments": "",\r
3863         "outputs": 1,\r
3864         "x": 4815.75,\r
3865         "y": 4122.75,\r
3866         "z": "265dc029.a18eb8",\r
3867         "wires": [\r
3868             [\r
3869                 "bf755b2.9db4a28"\r
3870             ]\r
3871         ]\r
3872     },\r
3873     {\r
3874         "id": "df9fb700.28a918",\r
3875         "type": "outcomeFalse",\r
3876         "name": "false",\r
3877         "xml": "<outcome value='false'>\n",\r
3878         "comments": "",\r
3879         "outputs": 1,\r
3880         "x": 4816.75,\r
3881         "y": 4193.75,\r
3882         "z": "265dc029.a18eb8",\r
3883         "wires": [\r
3884             [\r
3885                 "7fbeef42.b23dd"\r
3886             ]\r
3887         ]\r
3888     },\r
3889     {\r
3890         "id": "bf755b2.9db4a28",\r
3891         "type": "block",\r
3892         "name": "block : atomic",\r
3893         "xml": "<block atomic='true'>",\r
3894         "atomic": "true",\r
3895         "comments": "",\r
3896         "outputs": 1,\r
3897         "x": 4966.75,\r
3898         "y": 4120.75,\r
3899         "z": "265dc029.a18eb8",\r
3900         "wires": [\r
3901             [\r
3902                 "a9bad327.3607d8",\r
3903                 "47f11e50.783bc8",\r
3904                 "c8d8ebb6.b093d8",\r
3905                 "aab03464.9d75e",\r
3906                 "aa4f54f.319aaa8"\r
3907             ]\r
3908         ]\r
3909     },\r
3910     {\r
3911         "id": "a9bad327.3607d8",\r
3912         "type": "set",\r
3913         "name": "set found to true",\r
3914         "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",\r
3915         "comments": "",\r
3916         "x": 5154.75,\r
3917         "y": 4080.75,\r
3918         "z": "265dc029.a18eb8",\r
3919         "wires": []\r
3920     },\r
3921     {\r
3922         "id": "47f11e50.783bc8",\r
3923         "type": "save",\r
3924         "name": "store $arridx somewhere in vpn-binding",\r
3925         "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
3926         "comments": "",\r
3927         "outputs": 1,\r
3928         "x": 5226.75,\r
3929         "y": 4125.75,\r
3930         "z": "265dc029.a18eb8",\r
3931         "wires": [\r
3932             []\r
3933         ]\r
3934     },\r
3935     {\r
3936         "id": "aa4f54f.319aaa8",\r
3937         "type": "set",\r
3938         "name": "set twoD arr",\r
3939         "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
3940         "comments": "",\r
3941         "x": 5141.75,\r
3942         "y": 4252.75,\r
3943         "z": "265dc029.a18eb8",\r
3944         "wires": []\r
3945     },\r
3946     {\r
3947         "id": "aab03464.9d75e",\r
3948         "type": "set",\r
3949         "name": "set sizeOfSliceList",\r
3950         "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",\r
3951         "comments": "",\r
3952         "x": 5162.75,\r
3953         "y": 4188.75,\r
3954         "z": "265dc029.a18eb8",\r
3955         "wires": []\r
3956     },\r
3957     {\r
3958         "id": "cb3a25fd.09afe8",\r
3959         "type": "block",\r
3960         "name": "block : atomic",\r
3961         "xml": "<block atomic='true'>",\r
3962         "atomic": "true",\r
3963         "comments": "",\r
3964         "outputs": 1,\r
3965         "x": 4064.75,\r
3966         "y": 4274.75,\r
3967         "z": "265dc029.a18eb8",\r
3968         "wires": [\r
3969             [\r
3970                 "6bbef268.dd7bec",\r
3971                 "a07fd57f.628ce8"\r
3972             ]\r
3973         ]\r
3974     },\r
3975     {\r
3976         "id": "6bbef268.dd7bec",\r
3977         "type": "save",\r
3978         "name": "store $arridx somewhere in vpn-binding",\r
3979         "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
3980         "comments": "",\r
3981         "outputs": 1,\r
3982         "x": 4319.75,\r
3983         "y": 4267.75,\r
3984         "z": "265dc029.a18eb8",\r
3985         "wires": [\r
3986             []\r
3987         ]\r
3988     },\r
3989     {\r
3990         "id": "a07fd57f.628ce8",\r
3991         "type": "set",\r
3992         "name": "set twoD array",\r
3993         "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
3994         "comments": "",\r
3995         "x": 4247.75,\r
3996         "y": 4314.75,\r
3997         "z": "265dc029.a18eb8",\r
3998         "wires": []\r
3999     },\r
4000     {\r
4001         "id": "691995c9.4a5b7c",\r
4002         "type": "switchNode",\r
4003         "name": "switch found?",\r
4004         "xml": "<switch test='`$found`'>\n",\r
4005         "comments": "",\r
4006         "outputs": 1,\r
4007         "x": 4240.75,\r
4008         "y": 4198.75,\r
4009         "z": "265dc029.a18eb8",\r
4010         "wires": [\r
4011             [\r
4012                 "62e3ceb.ffa193",\r
4013                 "b6d5bce1.09744"\r
4014             ]\r
4015         ]\r
4016     },\r
4017     {\r
4018         "id": "62e3ceb.ffa193",\r
4019         "type": "outcomeTrue",\r
4020         "name": "true",\r
4021         "xml": "<outcome value='true'>\n",\r
4022         "comments": "",\r
4023         "outputs": 1,\r
4024         "x": 4400.75,\r
4025         "y": 4190.75,\r
4026         "z": "265dc029.a18eb8",\r
4027         "wires": [\r
4028             [\r
4029                 "1a17890a.8f540f"\r
4030             ]\r
4031         ]\r
4032     },\r
4033     {\r
4034         "id": "b6d5bce1.09744",\r
4035         "type": "outcomeFalse",\r
4036         "name": "false",\r
4037         "xml": "<outcome value='false'>\n",\r
4038         "comments": "",\r
4039         "outputs": 1,\r
4040         "x": 4398.75,\r
4041         "y": 4227.75,\r
4042         "z": "265dc029.a18eb8",\r
4043         "wires": [\r
4044             [\r
4045                 "5a545bc0.7dd69c"\r
4046             ]\r
4047         ]\r
4048     },\r
4049     {\r
4050         "id": "1a17890a.8f540f",\r
4051         "type": "block",\r
4052         "name": "block",\r
4053         "xml": "<block>\n",\r
4054         "atomic": "false",\r
4055         "comments": "",\r
4056         "outputs": 1,\r
4057         "x": 4525.75,\r
4058         "y": 4190.75,\r
4059         "z": "265dc029.a18eb8",\r
4060         "wires": [\r
4061             []\r
4062         ]\r
4063     },\r
4064     {\r
4065         "id": "f0fb3ac4.b3f8f",\r
4066         "type": "save",\r
4067         "name": "store $arridx+1 somewhere in vpn-binding",\r
4068         "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
4069         "comments": "",\r
4070         "outputs": 1,\r
4071         "x": 4832.75,\r
4072         "y": 4248.75,\r
4073         "z": "265dc029.a18eb8",\r
4074         "wires": [\r
4075             []\r
4076         ]\r
4077     },\r
4078     {\r
4079         "id": "5a545bc0.7dd69c",\r
4080         "type": "block",\r
4081         "name": "block : atomic",\r
4082         "xml": "<block atomic='true'>",\r
4083         "atomic": "true",\r
4084         "comments": "",\r
4085         "outputs": 1,\r
4086         "x": 4558.75,\r
4087         "y": 4235.75,\r
4088         "z": "265dc029.a18eb8",\r
4089         "wires": [\r
4090             [\r
4091                 "f0fb3ac4.b3f8f",\r
4092                 "bad15fff.31fcb8"\r
4093             ]\r
4094         ]\r
4095     },\r
4096     {\r
4097         "id": "bad15fff.31fcb8",\r
4098         "type": "set",\r
4099         "name": "set twoD array",\r
4100         "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
4101         "comments": "",\r
4102         "x": 4749.75,\r
4103         "y": 4294.75,\r
4104         "z": "265dc029.a18eb8",\r
4105         "wires": []\r
4106     },\r
4107     {\r
4108         "id": "7fbeef42.b23dd",\r
4109         "type": "block",\r
4110         "name": "block",\r
4111         "xml": "<block>\n",\r
4112         "atomic": "false",\r
4113         "comments": "",\r
4114         "outputs": 1,\r
4115         "x": 4949.75,\r
4116         "y": 4192.75,\r
4117         "z": "265dc029.a18eb8",\r
4118         "wires": [\r
4119             []\r
4120         ]\r
4121     },\r
4122     {\r
4123         "id": "c8d8ebb6.b093d8",\r
4124         "type": "break",\r
4125         "name": "break",\r
4126         "xml": "<break>\n",\r
4127         "comments": "",\r
4128         "x": 5120.75,\r
4129         "y": 4319.75,\r
4130         "z": "265dc029.a18eb8",\r
4131         "wires": []\r
4132     },\r
4133     {\r
4134         "id": "a7981473.cca18",\r
4135         "type": "switchNode",\r
4136         "name": "switch dstPort == NULL",\r
4137         "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
4138         "comments": "",\r
4139         "outputs": 1,\r
4140         "x": 3521.75,\r
4141         "y": 2577.7501220703125,\r
4142         "z": "265dc029.a18eb8",\r
4143         "wires": [\r
4144             [\r
4145                 "c33d9535.8046e8",\r
4146                 "63062baf.1fbb34"\r
4147             ]\r
4148         ]\r
4149     },\r
4150     {\r
4151         "id": "c33d9535.8046e8",\r
4152         "type": "outcomeTrue",\r
4153         "name": "true",\r
4154         "xml": "<outcome value='true'>\n",\r
4155         "comments": "",\r
4156         "outputs": 1,\r
4157         "x": 3891.75,\r
4158         "y": 2538.75,\r
4159         "z": "265dc029.a18eb8",\r
4160         "wires": [\r
4161             [\r
4162                 "45a9cb43.516104"\r
4163             ]\r
4164         ]\r
4165     },\r
4166     {\r
4167         "id": "63062baf.1fbb34",\r
4168         "type": "outcomeFalse",\r
4169         "name": "false",\r
4170         "xml": "<outcome value='false'>\n",\r
4171         "comments": "",\r
4172         "outputs": 1,\r
4173         "x": 3892.75,\r
4174         "y": 2584.75,\r
4175         "z": "265dc029.a18eb8",\r
4176         "wires": [\r
4177             [\r
4178                 "f89446bd.e3f558"\r
4179             ]\r
4180         ]\r
4181     },\r
4182     {\r
4183         "id": "45a9cb43.516104",\r
4184         "type": "set",\r
4185         "name": "set access-provider-id and client-id",\r
4186         "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
4187         "comments": "",\r
4188         "x": 4105.75,\r
4189         "y": 2537.75,\r
4190         "z": "265dc029.a18eb8",\r
4191         "wires": []\r
4192     },\r
4193     {\r
4194         "id": "f89446bd.e3f558",\r
4195         "type": "set",\r
4196         "name": "set access-provider-id and client-id",\r
4197         "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
4198         "comments": "",\r
4199         "x": 4103.75,\r
4200         "y": 2582.75,\r
4201         "z": "265dc029.a18eb8",\r
4202         "wires": []\r
4203     },\r
4204     {\r
4205         "id": "17b05ad0.008d15",\r
4206         "type": "set",\r
4207         "name": "set attachment_param sliceG",\r
4208         "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
4209         "comments": "",\r
4210         "x": 3043.75,\r
4211         "y": 4409.75,\r
4212         "z": "265dc029.a18eb8",\r
4213         "wires": []\r
4214     },\r
4215     {\r
4216         "id": "7cf6092b.1331b",\r
4217         "type": "execute",\r
4218         "name": "execute RestApiCallNode sliceG creation domainG",\r
4219         "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
4220         "comments": "",\r
4221         "outputs": 1,\r
4222         "x": 2628.75,\r
4223         "y": 4517.75,\r
4224         "z": "265dc029.a18eb8",\r
4225         "wires": [\r
4226             [\r
4227                 "37bbe2d.a04a59e",\r
4228                 "ec906b95.a9e49"\r
4229             ]\r
4230         ]\r
4231     },\r
4232     {\r
4233         "id": "ec906b95.a9e49",\r
4234         "type": "failure",\r
4235         "name": "failure",\r
4236         "xml": "<outcome value='failure'>\n",\r
4237         "comments": "",\r
4238         "outputs": 1,\r
4239         "x": 2911.75,\r
4240         "y": 4497.75,\r
4241         "z": "265dc029.a18eb8",\r
4242         "wires": [\r
4243             [\r
4244                 "4e96bd46.3d74cc"\r
4245             ]\r
4246         ]\r
4247     },\r
4248     {\r
4249         "id": "37bbe2d.a04a59e",\r
4250         "type": "success",\r
4251         "name": "success",\r
4252         "xml": "<outcome value='success'>\n",\r
4253         "comments": "",\r
4254         "outputs": 1,\r
4255         "x": 2912.750213623047,\r
4256         "y": 4548.74990940094,\r
4257         "z": "265dc029.a18eb8",\r
4258         "wires": [\r
4259             [\r
4260                 "9691327c.3cba08"\r
4261             ]\r
4262         ]\r
4263     },\r
4264     {\r
4265         "id": "4e96bd46.3d74cc",\r
4266         "type": "returnFailure",\r
4267         "name": "return failure",\r
4268         "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
4269         "comments": "",\r
4270         "x": 3051.7502479553223,\r
4271         "y": 4497.750000953674,\r
4272         "z": "265dc029.a18eb8",\r
4273         "wires": []\r
4274     },\r
4275     {\r
4276         "id": "9691327c.3cba08",\r
4277         "type": "block",\r
4278         "name": "block",\r
4279         "xml": "<block>\n",\r
4280         "atomic": "false",\r
4281         "comments": "",\r
4282         "outputs": 1,\r
4283         "x": 3057.77725982666,\r
4284         "y": 4546.495394706726,\r
4285         "z": "265dc029.a18eb8",\r
4286         "wires": [\r
4287             []\r
4288         ]\r
4289     },\r
4290     {\r
4291         "id": "67f8bed4.589038",\r
4292         "type": "set",\r
4293         "name": "set srcdstpnf-name",\r
4294         "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
4295         "comments": "",\r
4296         "x": 3701.75,\r
4297         "y": 2651.75,\r
4298         "z": "265dc029.a18eb8",\r
4299         "wires": []\r
4300     },\r
4301     {\r
4302         "id": "84f21d5d.cb936",\r
4303         "type": "get-resource",\r
4304         "name": "get-resource tmp.srcdstpnf-name",\r
4305         "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
4306         "comments": "",\r
4307         "outputs": 1,\r
4308         "x": 3745.75,\r
4309         "y": 2699.75,\r
4310         "z": "265dc029.a18eb8",\r
4311         "wires": [\r
4312             [\r
4313                 "843896b4.ca2438",\r
4314                 "ac8c03cf.0b987",\r
4315                 "317bf09e.750c58"\r
4316             ]\r
4317         ]\r
4318     },\r
4319     {\r
4320         "id": "843896b4.ca2438",\r
4321         "type": "success",\r
4322         "name": "success",\r
4323         "xml": "<outcome value='success'>\n",\r
4324         "comments": "",\r
4325         "outputs": 1,\r
4326         "x": 3958.25,\r
4327         "y": 2646.75,\r
4328         "z": "265dc029.a18eb8",\r
4329         "wires": [\r
4330             [\r
4331                 "6887d40d.f6aafc"\r
4332             ]\r
4333         ]\r
4334     },\r
4335     {\r
4336         "id": "ac8c03cf.0b987",\r
4337         "type": "not-found",\r
4338         "name": "not-found",\r
4339         "xml": "<outcome value='not-found'>\n",\r
4340         "comments": "",\r
4341         "outputs": 1,\r
4342         "x": 3970.25,\r
4343         "y": 2696.75,\r
4344         "z": "265dc029.a18eb8",\r
4345         "wires": [\r
4346             [\r
4347                 "1adffb9b.f04b4c"\r
4348             ]\r
4349         ]\r
4350     },\r
4351     {\r
4352         "id": "317bf09e.750c58",\r
4353         "type": "other",\r
4354         "name": "other",\r
4355         "xml": "<outcome value='Other'>\n",\r
4356         "comments": "",\r
4357         "outputs": 1,\r
4358         "x": 3961.25,\r
4359         "y": 2751.75,\r
4360         "z": "265dc029.a18eb8",\r
4361         "wires": [\r
4362             [\r
4363                 "1d79ff10.1f9c61"\r
4364             ]\r
4365         ]\r
4366     },\r
4367     {\r
4368         "id": "1d79ff10.1f9c61",\r
4369         "type": "returnFailure",\r
4370         "name": "return failure",\r
4371         "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
4372         "comments": "",\r
4373         "x": 4106.25,\r
4374         "y": 2750.75,\r
4375         "z": "265dc029.a18eb8",\r
4376         "wires": []\r
4377     },\r
4378     {\r
4379         "id": "1adffb9b.f04b4c",\r
4380         "type": "returnFailure",\r
4381         "name": "return failure",\r
4382         "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
4383         "comments": "",\r
4384         "x": 4117.25,\r
4385         "y": 2693.75,\r
4386         "z": "265dc029.a18eb8",\r
4387         "wires": []\r
4388     },\r
4389     {\r
4390         "id": "6887d40d.f6aafc",\r
4391         "type": "block",\r
4392         "name": "block",\r
4393         "xml": "<block>\n",\r
4394         "atomic": "false",\r
4395         "comments": "",\r
4396         "outputs": 1,\r
4397         "x": 4083.6324462890625,\r
4398         "y": 2640.4056701660156,\r
4399         "z": "265dc029.a18eb8",\r
4400         "wires": [\r
4401             [\r
4402                 "b8e05e44.e79d2"\r
4403             ]\r
4404         ]\r
4405     },\r
4406     {\r
4407         "id": "9d661556.4c1148",\r
4408         "type": "outcome",\r
4409         "name": "esr-thirdparty-sdnc",\r
4410         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
4411         "comments": "",\r
4412         "outputs": 1,\r
4413         "x": 4642.75,\r
4414         "y": 2658.75,\r
4415         "z": "265dc029.a18eb8",\r
4416         "wires": [\r
4417             [\r
4418                 "2a2f98dd.6349d"\r
4419             ]\r
4420         ]\r
4421     },\r
4422     {\r
4423         "id": "2a2f98dd.6349d",\r
4424         "type": "block",\r
4425         "name": "block : atomic",\r
4426         "xml": "<block atomic=\"true\">",\r
4427         "atomic": "true",\r
4428         "outputs": 1,\r
4429         "x": 4819.75,\r
4430         "y": 2650.75,\r
4431         "z": "265dc029.a18eb8",\r
4432         "wires": [\r
4433             [\r
4434                 "8fec35b6.fb7118",\r
4435                 "8057ed3d.b8b71"\r
4436             ]\r
4437         ]\r
4438     },\r
4439     {\r
4440         "id": "b8e05e44.e79d2",\r
4441         "type": "for",\r
4442         "name": "for each relationship",\r
4443         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
4444         "comments": "",\r
4445         "outputs": 1,\r
4446         "x": 4244.75,\r
4447         "y": 2654.75,\r
4448         "z": "265dc029.a18eb8",\r
4449         "wires": [\r
4450             [\r
4451                 "20794f9a.c05a58"\r
4452             ]\r
4453         ]\r
4454     },\r
4455     {\r
4456         "id": "20794f9a.c05a58",\r
4457         "type": "switchNode",\r
4458         "name": "switch related-to",\r
4459         "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
4460         "comments": "",\r
4461         "outputs": 1,\r
4462         "x": 4439.75,\r
4463         "y": 2654.75,\r
4464         "z": "265dc029.a18eb8",\r
4465         "wires": [\r
4466             [\r
4467                 "9d661556.4c1148"\r
4468             ]\r
4469         ]\r
4470     },\r
4471     {\r
4472         "id": "8057ed3d.b8b71",\r
4473         "type": "execute",\r
4474         "name": "get esr-thirdparty-sdnc",\r
4475         "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
4476         "comments": "",\r
4477         "outputs": 1,\r
4478         "x": 5027.75,\r
4479         "y": 2657.75,\r
4480         "z": "265dc029.a18eb8",\r
4481         "wires": [\r
4482             [\r
4483                 "326bc8b9.4e89f8",\r
4484                 "c42e4071.ccae88",\r
4485                 "2f974d9f.6edb3a"\r
4486             ]\r
4487         ]\r
4488     },\r
4489     {\r
4490         "id": "8fec35b6.fb7118",\r
4491         "type": "set",\r
4492         "name": "set esr-thirdparty-sdnc domainG id",\r
4493         "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
4494         "comments": "",\r
4495         "x": 5057.75,\r
4496         "y": 2605.75,\r
4497         "z": "265dc029.a18eb8",\r
4498         "wires": []\r
4499     },\r
4500     {\r
4501         "id": "326bc8b9.4e89f8",\r
4502         "type": "success",\r
4503         "name": "success",\r
4504         "xml": "<outcome value='success'>\n",\r
4505         "comments": "",\r
4506         "outputs": 1,\r
4507         "x": 5237.75,\r
4508         "y": 2648.75,\r
4509         "z": "265dc029.a18eb8",\r
4510         "wires": [\r
4511             [\r
4512                 "bbcf0dbb.ad16f8"\r
4513             ]\r
4514         ]\r
4515     },\r
4516     {\r
4517         "id": "c42e4071.ccae88",\r
4518         "type": "not-found",\r
4519         "name": "not-found",\r
4520         "xml": "<outcome value='not-found'>\n",\r
4521         "comments": "",\r
4522         "outputs": 1,\r
4523         "x": 5229.75,\r
4524         "y": 2703.75,\r
4525         "z": "265dc029.a18eb8",\r
4526         "wires": [\r
4527             [\r
4528                 "5371f364.6c9824"\r
4529             ]\r
4530         ]\r
4531     },\r
4532     {\r
4533         "id": "2f974d9f.6edb3a",\r
4534         "type": "other",\r
4535         "name": "other",\r
4536         "xml": "<outcome value='Other'>\n",\r
4537         "comments": "",\r
4538         "outputs": 1,\r
4539         "x": 5234.75,\r
4540         "y": 2760.75,\r
4541         "z": "265dc029.a18eb8",\r
4542         "wires": [\r
4543             [\r
4544                 "32c39ad7.59b1f6"\r
4545             ]\r
4546         ]\r
4547     },\r
4548     {\r
4549         "id": "32c39ad7.59b1f6",\r
4550         "type": "returnFailure",\r
4551         "name": "return failure",\r
4552         "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
4553         "comments": "",\r
4554         "x": 5386.75,\r
4555         "y": 2761.75,\r
4556         "z": "265dc029.a18eb8",\r
4557         "wires": []\r
4558     },\r
4559     {\r
4560         "id": "5371f364.6c9824",\r
4561         "type": "returnFailure",\r
4562         "name": "return failure",\r
4563         "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
4564         "comments": "",\r
4565         "x": 5397.75,\r
4566         "y": 2706.75,\r
4567         "z": "265dc029.a18eb8",\r
4568         "wires": []\r
4569     },\r
4570     {\r
4571         "id": "bbcf0dbb.ad16f8",\r
4572         "type": "block",\r
4573         "name": "block",\r
4574         "xml": "<block>\n",\r
4575         "atomic": "false",\r
4576         "comments": "",\r
4577         "outputs": 1,\r
4578         "x": 5382.13232421875,\r
4579         "y": 2646.4056701660156,\r
4580         "z": "265dc029.a18eb8",\r
4581         "wires": [\r
4582             [\r
4583                 "3a973226.73340e"\r
4584             ]\r
4585         ]\r
4586     },\r
4587     {\r
4588         "id": "3a973226.73340e",\r
4589         "type": "set",\r
4590         "name": "set controller domainA data",\r
4591         "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
4592         "comments": "",\r
4593         "x": 5596.75,\r
4594         "y": 2642.75,\r
4595         "z": "265dc029.a18eb8",\r
4596         "wires": []\r
4597     },\r
4598     {\r
4599         "id": "213a40e6.50fa5",\r
4600         "type": "block",\r
4601         "name": "block : atomic",\r
4602         "xml": "<block atomic='true'>",\r
4603         "atomic": "true",\r
4604         "comments": "",\r
4605         "outputs": 1,\r
4606         "x": 2212.75,\r
4607         "y": 4409.75,\r
4608         "z": "265dc029.a18eb8",\r
4609         "wires": [\r
4610             [\r
4611                 "21007b2.f080e84",\r
4612                 "7cf6092b.1331b"\r
4613             ]\r
4614         ]\r
4615     },\r
4616     {\r
4617         "id": "cf841c7f.9aedb",\r
4618         "type": "switchNode",\r
4619         "name": "switch dmnsidx == 0 (domainA)",\r
4620         "xml": "<switch test='`$otnidx == 0`'>\n",\r
4621         "comments": "",\r
4622         "outputs": 1,\r
4623         "x": 3715.75,\r
4624         "y": 2868.75,\r
4625         "z": "265dc029.a18eb8",\r
4626         "wires": [\r
4627             [\r
4628                 "1b951b0e.92335d",\r
4629                 "f7aacac2.db3d8"\r
4630             ]\r
4631         ]\r
4632     },\r
4633     {\r
4634         "id": "1b951b0e.92335d",\r
4635         "type": "outcomeTrue",\r
4636         "name": "true",\r
4637         "xml": "<outcome value='true'>\n",\r
4638         "comments": "",\r
4639         "outputs": 1,\r
4640         "x": 3916.75,\r
4641         "y": 2866.75,\r
4642         "z": "265dc029.a18eb8",\r
4643         "wires": [\r
4644             [\r
4645                 "9efec827.a86c9"\r
4646             ]\r
4647         ]\r
4648     },\r
4649     {\r
4650         "id": "8c34835c.e791b",\r
4651         "type": "set",\r
4652         "name": "set pce-src-node",\r
4653         "xml": "<set>\n<parameter name='tmp.pce-src-node' value='`$tmp.srcdstpnf-name`' />",\r
4654         "comments": "",\r
4655         "x": 4197.75,\r
4656         "y": 2816.75,\r
4657         "z": "265dc029.a18eb8",\r
4658         "wires": []\r
4659     },\r
4660     {\r
4661         "id": "b7bb7b24.1b292",\r
4662         "type": "switchNode",\r
4663         "name": "switch dmnsidx == last (domainB)",\r
4664         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
4665         "comments": "",\r
4666         "outputs": 1,\r
4667         "x": 4133.75,\r
4668         "y": 2917.75,\r
4669         "z": "265dc029.a18eb8",\r
4670         "wires": [\r
4671             [\r
4672                 "fd4b8583.fd9098",\r
4673                 "bed77cd6.05b48"\r
4674             ]\r
4675         ]\r
4676     },\r
4677     {\r
4678         "id": "fd4b8583.fd9098",\r
4679         "type": "outcomeTrue",\r
4680         "name": "true",\r
4681         "xml": "<outcome value='true'>\n",\r
4682         "comments": "",\r
4683         "outputs": 1,\r
4684         "x": 4363.75,\r
4685         "y": 2913.75,\r
4686         "z": "265dc029.a18eb8",\r
4687         "wires": [\r
4688             [\r
4689                 "16a0b639.60baea"\r
4690             ]\r
4691         ]\r
4692     },\r
4693     {\r
4694         "id": "b96f50fd.127ab8",\r
4695         "type": "set",\r
4696         "name": "set attachment_param domain B",\r
4697         "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
4698         "comments": "",\r
4699         "x": 4700.75,\r
4700         "y": 2857.75,\r
4701         "z": "265dc029.a18eb8",\r
4702         "wires": []\r
4703     },\r
4704     {\r
4705         "id": "f7aacac2.db3d8",\r
4706         "type": "outcomeFalse",\r
4707         "name": "false",\r
4708         "xml": "<outcome value='false'>\n",\r
4709         "comments": "",\r
4710         "outputs": 1,\r
4711         "x": 3916.75,\r
4712         "y": 2915.75,\r
4713         "z": "265dc029.a18eb8",\r
4714         "wires": [\r
4715             [\r
4716                 "b7bb7b24.1b292"\r
4717             ]\r
4718         ]\r
4719     },\r
4720     {\r
4721         "id": "bed77cd6.05b48",\r
4722         "type": "outcomeFalse",\r
4723         "name": "false",\r
4724         "xml": "<outcome value='false'>\n",\r
4725         "comments": "",\r
4726         "outputs": 1,\r
4727         "x": 4364.75,\r
4728         "y": 2959.75,\r
4729         "z": "265dc029.a18eb8",\r
4730         "wires": [\r
4731             [\r
4732                 "6600d5fa.31b8fc"\r
4733             ]\r
4734         ]\r
4735     },\r
4736     {\r
4737         "id": "6600d5fa.31b8fc",\r
4738         "type": "set",\r
4739         "name": "set attachment_param domain G",\r
4740         "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
4741         "comments": "",\r
4742         "x": 4578.75,\r
4743         "y": 2959.75,\r
4744         "z": "265dc029.a18eb8",\r
4745         "wires": []\r
4746     },\r
4747     {\r
4748         "id": "3048e42b.381204",\r
4749         "type": "set",\r
4750         "name": "set tmp.slicevpns",\r
4751         "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
4752         "comments": "",\r
4753         "x": 4476.75,\r
4754         "y": 3008.75,\r
4755         "z": "265dc029.a18eb8",\r
4756         "wires": []\r
4757     },\r
4758     {\r
4759         "id": "cf481547.940d",\r
4760         "type": "switchNode",\r
4761         "name": "switch vpnuuid is for this slice",\r
4762         "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
4763         "comments": "",\r
4764         "outputs": 1,\r
4765         "x": 3040.75,\r
4766         "y": 4232.75,\r
4767         "z": "265dc029.a18eb8",\r
4768         "wires": [\r
4769             [\r
4770                 "8d7304cc.0aa318",\r
4771                 "ffcae489.323bb8"\r
4772             ]\r
4773         ]\r
4774     },\r
4775     {\r
4776         "id": "8d7304cc.0aa318",\r
4777         "type": "outcomeTrue",\r
4778         "name": "true",\r
4779         "xml": "<outcome value='true'>\n",\r
4780         "comments": "",\r
4781         "outputs": 1,\r
4782         "x": 3257.75,\r
4783         "y": 4211.75,\r
4784         "z": "265dc029.a18eb8",\r
4785         "wires": [\r
4786             [\r
4787                 "c5705cb.18e75a"\r
4788             ]\r
4789         ]\r
4790     },\r
4791     {\r
4792         "id": "ffcae489.323bb8",\r
4793         "type": "outcomeFalse",\r
4794         "name": "false",\r
4795         "xml": "<outcome value='false'>\n",\r
4796         "comments": "",\r
4797         "outputs": 1,\r
4798         "x": 3257.75,\r
4799         "y": 4260.75,\r
4800         "z": "265dc029.a18eb8",\r
4801         "wires": [\r
4802             []\r
4803         ]\r
4804     },\r
4805     {\r
4806         "id": "c5705cb.18e75a",\r
4807         "type": "block",\r
4808         "name": "block : atomic",\r
4809         "xml": "<block atomic='true'>",\r
4810         "atomic": "true",\r
4811         "comments": "",\r
4812         "outputs": 1,\r
4813         "x": 3425.75,\r
4814         "y": 4211.75,\r
4815         "z": "265dc029.a18eb8",\r
4816         "wires": [\r
4817             [\r
4818                 "51229269.4b1c8c",\r
4819                 "a03f6736.1a323"\r
4820             ]\r
4821         ]\r
4822     },\r
4823     {\r
4824         "id": "a574d94d.6c4aa8",\r
4825         "type": "set",\r
4826         "name": "set attachment_param domain A",\r
4827         "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
4828         "comments": "",\r
4829         "x": 4252.75,\r
4830         "y": 2863.75,\r
4831         "z": "265dc029.a18eb8",\r
4832         "wires": []\r
4833     },\r
4834     {\r
4835         "id": "9efec827.a86c9",\r
4836         "type": "block",\r
4837         "name": "block",\r
4838         "xml": "<block>\n",\r
4839         "atomic": "false",\r
4840         "comments": "",\r
4841         "outputs": 1,\r
4842         "x": 4040.75,\r
4843         "y": 2857.75,\r
4844         "z": "265dc029.a18eb8",\r
4845         "wires": [\r
4846             [\r
4847                 "a574d94d.6c4aa8"\r
4848             ]\r
4849         ]\r
4850     },\r
4851     {\r
4852         "id": "d2a8a4e9.34f1c8",\r
4853         "type": "set",\r
4854         "name": "set pce-src-node",\r
4855         "xml": "<set>\n<parameter name='tmp.pce-dst-node' value='`$tmp.srcdstpnf-name`' />",\r
4856         "comments": "",\r
4857         "x": 4652.75,\r
4858         "y": 2905.75,\r
4859         "z": "265dc029.a18eb8",\r
4860         "wires": []\r
4861     },\r
4862     {\r
4863         "id": "16a0b639.60baea",\r
4864         "type": "block",\r
4865         "name": "block",\r
4866         "xml": "<block>\n",\r
4867         "atomic": "false",\r
4868         "comments": "",\r
4869         "outputs": 1,\r
4870         "x": 4496.75,\r
4871         "y": 2889.75,\r
4872         "z": "265dc029.a18eb8",\r
4873         "wires": [\r
4874             [\r
4875                 "b96f50fd.127ab8"\r
4876             ]\r
4877         ]\r
4878     },\r
4879     {\r
4880         "id": "bf3fdeb7.6e1648",\r
4881         "type": "get-resource",\r
4882         "name": "get-resource pnfs-list",\r
4883         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v25/network/pnfs?depth=0' depth = 0\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
4884         "comments": "",\r
4885         "outputs": 1,\r
4886         "x": 1982.75,\r
4887         "y": 154.75,\r
4888         "z": "265dc029.a18eb8",\r
4889         "wires": [\r
4890             []\r
4891         ]\r
4892     },\r
4893     {\r
4894         "id": "b761fd8.2b6b08",\r
4895         "type": "get-resource",\r
4896         "name": "get-resource logical-links",\r
4897         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v25/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
4898         "comments": "",\r
4899         "outputs": 1,\r
4900         "x": 1994.75,\r
4901         "y": 195.75,\r
4902         "z": "265dc029.a18eb8",\r
4903         "wires": [\r
4904             []\r
4905         ]\r
4906     },\r
4907     {\r
4908         "id": "a66f6106.d6897",\r
4909         "type": "comment",\r
4910         "name": "The following two nodes are for PCE",\r
4911         "info": "",\r
4912         "comments": "",\r
4913         "x": 2018.75,\r
4914         "y": 117.75,\r
4915         "z": "265dc029.a18eb8",\r
4916         "wires": []\r
4917     },\r
4918     {\r
4919         "id": "8f7720f3.7aae9",\r
4920         "type": "set",\r
4921         "name": "set tmp.arr",\r
4922         "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
4923         "comments": "",\r
4924         "x": 1939.75,\r
4925         "y": 241.75,\r
4926         "z": "265dc029.a18eb8",\r
4927         "wires": []\r
4928     },\r
4929     {\r
4930         "id": "631d9619.9d9ee",\r
4931         "type": "execute",\r
4932         "name": "execute printContext",\r
4933         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",\r
4934         "comments": "",\r
4935         "outputs": 1,\r
4936         "x": 1592.75,\r
4937         "y": 2373.7496337890625,\r
4938         "z": "265dc029.a18eb8",\r
4939         "wires": [\r
4940             []\r
4941         ]\r
4942     },\r
4943     {\r
4944         "id": "1cbcaef8.fee281",\r
4945         "type": "set",\r
4946         "name": "set maxtpn",\r
4947         "xml": "<set>\n<parameter name='maxtpn' value='`($maxtpn + $gfp)`' />",\r
4948         "comments": "",\r
4949         "x": 3656.75,\r
4950         "y": 3056.75,\r
4951         "z": "265dc029.a18eb8",\r
4952         "wires": []\r
4953     },\r
4954     {\r
4955         "id": "c3b37174.45567",\r
4956         "type": "call",\r
4957         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-find-maximum-used-tpn",\r
4958         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
4959         "comments": "",\r
4960         "outputs": 1,\r
4961         "x": 1791.75,\r
4962         "y": 2421.7498779296875,\r
4963         "z": "265dc029.a18eb8",\r
4964         "wires": [\r
4965             []\r
4966         ]\r
4967     },\r
4968     {\r
4969         "id": "348e2352.849ddc",\r
4970         "type": "switchNode",\r
4971         "name": "switch src and dst same domain?",\r
4972         "xml": "<switch test=\"`$param-prefix-domainA[$param-prefix-domainA_length -9] == $param-prefix-domainB[$param-prefix-domainB_length -9]`\">\n    \n    `\n\n",\r
4973         "comments": "",\r
4974         "outputs": 1,\r
4975         "x": 1607.3334350585938,\r
4976         "y": 2483.3336181640625,\r
4977         "z": "265dc029.a18eb8",\r
4978         "wires": [\r
4979             [\r
4980                 "4a5bbbb8.21f4f4",\r
4981                 "f0483d5d.c65838"\r
4982             ]\r
4983         ]\r
4984     },\r
4985     {\r
4986         "id": "4a5bbbb8.21f4f4",\r
4987         "type": "outcomeTrue",\r
4988         "name": "true",\r
4989         "xml": "<outcome value='true'>\n",\r
4990         "comments": "",\r
4991         "outputs": 1,\r
4992         "x": 1802.3333129882812,\r
4993         "y": 2597.3336181640625,\r
4994         "z": "265dc029.a18eb8",\r
4995         "wires": [\r
4996             [\r
4997                 "277d2781.ec4fb8"\r
4998             ]\r
4999         ]\r
5000     },\r
5001     {\r
5002         "id": "f0483d5d.c65838",\r
5003         "type": "outcomeFalse",\r
5004         "name": "false",\r
5005         "xml": "<outcome value='false'>\n",\r
5006         "comments": "",\r
5007         "outputs": 1,\r
5008         "x": 1821.3333740234375,\r
5009         "y": 2496.33349609375,\r
5010         "z": "265dc029.a18eb8",\r
5011         "wires": [\r
5012             [\r
5013                 "69fab2f3.f4d724"\r
5014             ]\r
5015         ]\r
5016     },\r
5017     {\r
5018         "id": "69fab2f3.f4d724",\r
5019         "type": "call",\r
5020         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
5021         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
5022         "comments": "",\r
5023         "outputs": 1,\r
5024         "x": 2228.6668701171875,\r
5025         "y": 2502.6666259765625,\r
5026         "z": "265dc029.a18eb8",\r
5027         "wires": [\r
5028             [\r
5029                 "41433a02.61754c"\r
5030             ]\r
5031         ]\r
5032     },\r
5033     {\r
5034         "id": "277d2781.ec4fb8",\r
5035         "type": "block",\r
5036         "name": "block",\r
5037         "xml": "<block>\n",\r
5038         "atomic": "false",\r
5039         "comments": "",\r
5040         "outputs": 1,\r
5041         "x": 1952.666748046875,\r
5042         "y": 2597.6666259765625,\r
5043         "z": "265dc029.a18eb8",\r
5044         "wires": [\r
5045             [\r
5046                 "db17525b.9cda9",\r
5047                 "98634dfa.681d6",\r
5048                 "59852974.659be",\r
5049                 "f9710261.9f9158"\r
5050             ]\r
5051         ]\r
5052     },\r
5053     {\r
5054         "id": "41433a02.61754c",\r
5055         "type": "block",\r
5056         "name": "block : atomic",\r
5057         "xml": "<block atomic='true'>",\r
5058         "atomic": "true",\r
5059         "comments": "",\r
5060         "outputs": 1,\r
5061         "x": 2655,\r
5062         "y": 2502.3336181640625,\r
5063         "z": "265dc029.a18eb8",\r
5064         "wires": [\r
5065             [\r
5066                 "cca04ac5.91465"\r
5067             ]\r
5068         ]\r
5069     },\r
5070     {\r
5071         "id": "db17525b.9cda9",\r
5072         "type": "execute",\r
5073         "name": "execute UUID generator for vpn-binding $otnidx",\r
5074         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-samedomain-uuid\"/>\n",\r
5075         "comments": "",\r
5076         "outputs": 1,\r
5077         "x": 2236.6666259765625,\r
5078         "y": 2603.33349609375,\r
5079         "z": "265dc029.a18eb8",\r
5080         "wires": [\r
5081             []\r
5082         ]\r
5083     },\r
5084     {\r
5085         "id": "98634dfa.681d6",\r
5086         "type": "set",\r
5087         "name": "set attachment_param Same Domain",\r
5088         "xml": "<set>\n<parameter name='tmp.sameDomain-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.sameDomain-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
5089         "comments": "",\r
5090         "x": 2204.6666259765625,\r
5091         "y": 2663.66650390625,\r
5092         "z": "265dc029.a18eb8",\r
5093         "wires": []\r
5094     },\r
5095     {\r
5096         "id": "59852974.659be",\r
5097         "type": "save",\r
5098         "name": "save vpn-binding same domain resource (aka. OTN) in AAI",\r
5099         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-samedomain-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='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\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.sameDomain-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.sameDomain-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
5100         "comments": "",\r
5101         "outputs": 1,\r
5102         "x": 2269.9998779296875,\r
5103         "y": 2719.66650390625,\r
5104         "z": "265dc029.a18eb8",\r
5105         "wires": [\r
5106             [\r
5107                 "733c1bcc.d90d64"\r
5108             ]\r
5109         ]\r
5110     },\r
5111     {\r
5112         "id": "733c1bcc.d90d64",\r
5113         "type": "success",\r
5114         "name": "success",\r
5115         "xml": "<outcome value='success'>\n",\r
5116         "comments": "",\r
5117         "outputs": 1,\r
5118         "x": 2586.9998779296875,\r
5119         "y": 2721.66650390625,\r
5120         "z": "265dc029.a18eb8",\r
5121         "wires": [\r
5122             [\r
5123                 "c2cbdd5e.c4e688"\r
5124             ]\r
5125         ]\r
5126     },\r
5127     {\r
5128         "id": "c2cbdd5e.c4e688",\r
5129         "type": "block",\r
5130         "name": "block",\r
5131         "xml": "<block>\n",\r
5132         "atomic": "false",\r
5133         "comments": "",\r
5134         "outputs": 1,\r
5135         "x": 2750.4998779296875,\r
5136         "y": 2720.92041015625,\r
5137         "z": "265dc029.a18eb8",\r
5138         "wires": [\r
5139             []\r
5140         ]\r
5141     },\r
5142     {\r
5143         "id": "9bdaad5a.e56e08",\r
5144         "type": "call",\r
5145         "name": "call GENERIC-RESOURCE-API:p2p-vnf-topology-operation-p2p-activate",\r
5146         "xml": "<call module='GENERIC-RESOURCE-API' rpc='p2p-vnf-topology-operation-p2p-activate' mode='sync' >\n\n",\r
5147         "comments": "",\r
5148         "outputs": 1,\r
5149         "x": 2186.666748046875,\r
5150         "y": 4145.3330078125,\r
5151         "z": "265dc029.a18eb8",\r
5152         "wires": [\r
5153             []\r
5154         ]\r
5155     },\r
5156     {\r
5157         "id": "f9710261.9f9158",\r
5158         "type": "save",\r
5159         "name": "save connectivity-domainA relationship to vpn-binding-sameDomain, in AAI",\r
5160         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-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
5161         "comments": "",\r
5162         "outputs": 1,\r
5163         "x": 2318.666259765625,\r
5164         "y": 2774.333251953125,\r
5165         "z": "265dc029.a18eb8",\r
5166         "wires": [\r
5167             []\r
5168         ]\r
5169     }\r
5170 ]