651d55ce7e1492dfe3e98ea67955895e71993509
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / p2p_eline / GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json
1 [\r
2     {\r
3         "id": "2211395a.011d9e",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 163.3333282470703,\r
8         "y": 160.33334350585938,\r
9         "z": "1f8b432c.7b707d",\r
10         "wires": [\r
11             [\r
12                 "76c66690.98a45"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "76c66690.98a45",\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": 388.6190185546875,\r
26         "y": 234.5714521408081,\r
27         "z": "1f8b432c.7b707d",\r
28         "wires": [\r
29             [\r
30                 "b63d123d.97032"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "b63d123d.97032",\r
36         "type": "method",\r
37         "name": "method p2p-vnf-topology-operation-p2p-modify",\r
38         "xml": "<method rpc='p2p-vnf-topology-operation-p2p-modify' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 394.7619323730469,\r
42         "y": 319.3333740234375,\r
43         "z": "1f8b432c.7b707d",\r
44         "wires": [\r
45             [\r
46                 "8673b8f9.6a3da8"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "8673b8f9.6a3da8",\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": 764.5713653564453,\r
58         "y": 344.0000305175781,\r
59         "z": "1f8b432c.7b707d",\r
60         "wires": [\r
61             [\r
62                 "ae3ebf6e.ef0d08",\r
63                 "ab777fe6.923ff8",\r
64                 "74df18ed.a4e518"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "ae3ebf6e.ef0d08",\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": 1019.9048614501953,\r
75         "y": 497.9303283691406,\r
76         "z": "1f8b432c.7b707d",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "ab777fe6.923ff8",\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": 1087.3333282470703,\r
87         "y": 317.3333435058594,\r
88         "z": "1f8b432c.7b707d",\r
89         "wires": [\r
90             [\r
91                 "aea97b8e.023f8",\r
92                 "722dfa8c.b5ceac",\r
93                 "9688fc7c.73aaf"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "aea97b8e.023f8",\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": 1312.3333282470703,\r
105         "y": 175.33334350585938,\r
106         "z": "1f8b432c.7b707d",\r
107         "wires": [\r
108             [\r
109                 "ef41f2be.ad3298"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "722dfa8c.b5ceac",\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": 1307.8242950439453,\r
121         "y": 244.90737915039062,\r
122         "z": "1f8b432c.7b707d",\r
123         "wires": [\r
124             [\r
125                 "1d2d7b8b.bf556c"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "9688fc7c.73aaf",\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": 1296.3333282470703,\r
137         "y": 291.3333435058594,\r
138         "z": "1f8b432c.7b707d",\r
139         "wires": [\r
140             [\r
141                 "8b1a56ec.d55058"\r
142             ]\r
143         ]\r
144     },\r
145     {\r
146         "id": "ef41f2be.ad3298",\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": 1551.3333282470703,\r
153         "y": 172.33334350585938,\r
154         "z": "1f8b432c.7b707d",\r
155         "wires": [\r
156             [\r
157                 "34ae60f0.b22a",\r
158                 "2322bdf8.c6bb02"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "1d2d7b8b.bf556c",\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": 1461.3957061767578,\r
169         "y": 248.193115234375,\r
170         "z": "1f8b432c.7b707d",\r
171         "wires": []\r
172     },\r
173     {\r
174         "id": "8b1a56ec.d55058",\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": 1465.3333282470703,\r
180         "y": 292.3333435058594,\r
181         "z": "1f8b432c.7b707d",\r
182         "wires": []\r
183     },\r
184     {\r
185         "id": "34ae60f0.b22a",\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": 1764.3333282470703,\r
192         "y": 196.33334350585938,\r
193         "z": "1f8b432c.7b707d",\r
194         "wires": [\r
195             [\r
196                 "3d51a7bc.14e5d"\r
197             ]\r
198         ]\r
199     },\r
200     {\r
201         "id": "2322bdf8.c6bb02",\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": 1766.3333282470703,\r
208         "y": 136.33334350585938,\r
209         "z": "1f8b432c.7b707d",\r
210         "wires": [\r
211             []\r
212         ]\r
213     },\r
214     {\r
215         "id": "660e6b22.7f394c",\r
216         "type": "comment",\r
217         "name": "new for TransportSlicing",\r
218         "info": "",\r
219         "comments": "",\r
220         "x": 1066.3333282470703,\r
221         "y": 205.33334350585938,\r
222         "z": "1f8b432c.7b707d",\r
223         "wires": []\r
224     },\r
225     {\r
226         "id": "3d51a7bc.14e5d",\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": 1709.3333282470703,\r
234         "y": 378.3333435058594,\r
235         "z": "1f8b432c.7b707d",\r
236         "wires": [\r
237             [\r
238                 "5c997953.c5b528",\r
239                 "38f52a4e.84a6be",\r
240                 "efd37c2f.4ac7f",\r
241                 "ba577b94.b0dc8"\r
242             ]\r
243         ]\r
244     },\r
245     {\r
246         "id": "c943499a.5fba18",\r
247         "type": "set",\r
248         "name": "set network-route-A",\r
249         "xml": "<set>\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />-->\n\n\n",\r
250         "comments": "",\r
251         "x": 4278.33332824707,\r
252         "y": 885.3333435058594,\r
253         "z": "1f8b432c.7b707d",\r
254         "wires": []\r
255     },\r
256     {\r
257         "id": "a02a2dea.0be938",\r
258         "type": "set",\r
259         "name": "set network-route-B",\r
260         "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
261         "comments": "",\r
262         "x": 4279.33332824707,\r
263         "y": 940.3333435058594,\r
264         "z": "1f8b432c.7b707d",\r
265         "wires": []\r
266     },\r
267     {\r
268         "id": "b14c900.06de0f",\r
269         "type": "save",\r
270         "name": "get allotted-resource from aai",\r
271         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!--         AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",\r
272         "comments": "",\r
273         "outputs": 1,\r
274         "x": 2235.3333282470703,\r
275         "y": 335.3333435058594,\r
276         "z": "1f8b432c.7b707d",\r
277         "wires": [\r
278             [\r
279                 "dfed5f78.dacb98",\r
280                 "5582b318.e9d204",\r
281                 "2fce3c04.1858e4"\r
282             ]\r
283         ]\r
284     },\r
285     {\r
286         "id": "dfed5f78.dacb98",\r
287         "type": "success",\r
288         "name": "success",\r
289         "xml": "<outcome value='success'>\n",\r
290         "comments": "",\r
291         "outputs": 1,\r
292         "x": 2451.3333282470703,\r
293         "y": 402.3333435058594,\r
294         "z": "1f8b432c.7b707d",\r
295         "wires": [\r
296             [\r
297                 "782c069d.e39358"\r
298             ]\r
299         ]\r
300     },\r
301     {\r
302         "id": "5582b318.e9d204",\r
303         "type": "not-found",\r
304         "name": "not-found",\r
305         "xml": "<outcome value='not-found'>\n",\r
306         "comments": "",\r
307         "outputs": 1,\r
308         "x": 2451.8242950439453,\r
309         "y": 301.9073181152344,\r
310         "z": "1f8b432c.7b707d",\r
311         "wires": [\r
312             [\r
313                 "6fdc0c14.bf49ec"\r
314             ]\r
315         ]\r
316     },\r
317     {\r
318         "id": "2fce3c04.1858e4",\r
319         "type": "failure",\r
320         "name": "failure",\r
321         "xml": "<outcome value='failure'>\n",\r
322         "comments": "",\r
323         "outputs": 1,\r
324         "x": 2447.3333282470703,\r
325         "y": 351.3333435058594,\r
326         "z": "1f8b432c.7b707d",\r
327         "wires": [\r
328             [\r
329                 "40e570f4.a7125"\r
330             ]\r
331         ]\r
332     },\r
333     {\r
334         "id": "6fdc0c14.bf49ec",\r
335         "type": "returnFailure",\r
336         "name": "return failure",\r
337         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
338         "comments": "",\r
339         "x": 2629.3958282470703,\r
340         "y": 302.1930847167969,\r
341         "z": "1f8b432c.7b707d",\r
342         "wires": []\r
343     },\r
344     {\r
345         "id": "40e570f4.a7125",\r
346         "type": "returnFailure",\r
347         "name": "return failure",\r
348         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
349         "comments": "",\r
350         "x": 2629.3333282470703,\r
351         "y": 351.3333435058594,\r
352         "z": "1f8b432c.7b707d",\r
353         "wires": []\r
354     },\r
355     {\r
356         "id": "c63be28d.8bf768",\r
357         "type": "save",\r
358         "name": "get logical-link from aai",\r
359         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
360         "comments": "",\r
361         "outputs": 1,\r
362         "x": 3504.3333282470703,\r
363         "y": 856.3333435058594,\r
364         "z": "1f8b432c.7b707d",\r
365         "wires": [\r
366             [\r
367                 "fe4eb74e.b16da8",\r
368                 "f1a8adba.61278",\r
369                 "1668ffd4.4ff0c"\r
370             ]\r
371         ]\r
372     },\r
373     {\r
374         "id": "fe4eb74e.b16da8",\r
375         "type": "not-found",\r
376         "name": "not-found",\r
377         "xml": "<outcome value='not-found'>\n",\r
378         "comments": "",\r
379         "outputs": 1,\r
380         "x": 3795.8242950439453,\r
381         "y": 834.9073181152344,\r
382         "z": "1f8b432c.7b707d",\r
383         "wires": [\r
384             [\r
385                 "1a4b644b.4c6e64"\r
386             ]\r
387         ]\r
388     },\r
389     {\r
390         "id": "f1a8adba.61278",\r
391         "type": "failure",\r
392         "name": "failure",\r
393         "xml": "<outcome value='failure'>\n",\r
394         "comments": "",\r
395         "outputs": 1,\r
396         "x": 3784.3333282470703,\r
397         "y": 879.3333435058594,\r
398         "z": "1f8b432c.7b707d",\r
399         "wires": [\r
400             [\r
401                 "9213678.fc93898"\r
402             ]\r
403         ]\r
404     },\r
405     {\r
406         "id": "1a4b644b.4c6e64",\r
407         "type": "returnFailure",\r
408         "name": "return failure",\r
409         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
410         "comments": "",\r
411         "x": 3944.3958282470703,\r
412         "y": 835.1930847167969,\r
413         "z": "1f8b432c.7b707d",\r
414         "wires": []\r
415     },\r
416     {\r
417         "id": "9213678.fc93898",\r
418         "type": "returnFailure",\r
419         "name": "return failure",\r
420         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
421         "comments": "",\r
422         "x": 3943.3333282470703,\r
423         "y": 879.3333435058594,\r
424         "z": "1f8b432c.7b707d",\r
425         "wires": []\r
426     },\r
427     {\r
428         "id": "1668ffd4.4ff0c",\r
429         "type": "success",\r
430         "name": "success",\r
431         "xml": "<outcome value='success'>\n",\r
432         "comments": "",\r
433         "outputs": 1,\r
434         "x": 3790.3333282470703,\r
435         "y": 926.3333435058594,\r
436         "z": "1f8b432c.7b707d",\r
437         "wires": [\r
438             []\r
439         ]\r
440     },\r
441     {\r
442         "id": "498e3ba4.cbc914",\r
443         "type": "block",\r
444         "name": "block",\r
445         "xml": "<block>\n",\r
446         "atomic": "false",\r
447         "comments": "",\r
448         "outputs": 1,\r
449         "x": 3944.3333282470703,\r
450         "y": 965.3333435058594,\r
451         "z": "1f8b432c.7b707d",\r
452         "wires": [\r
453             [\r
454                 "c943499a.5fba18",\r
455                 "a02a2dea.0be938",\r
456                 "baaef2d3.b5b91",\r
457                 "217d122e.216aae",\r
458                 "f7348f80.aa12e8",\r
459                 "7a252ae2.45ae64",\r
460                 "9446dea5.335408",\r
461                 "adfb9d4f.ef8fd8",\r
462                 "586bfbbd.46cc14",\r
463                 "2a7b5024.c32ac8",\r
464                 "8e0823d9.c3d5f",\r
465                 "642b12a.3e870ec",\r
466                 "f34b01.8e0f75"\r
467             ]\r
468         ]\r
469     },\r
470     {\r
471         "id": "baaef2d3.b5b91",\r
472         "type": "save",\r
473         "name": "get network-route-A from aai",\r
474         "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
475         "comments": "",\r
476         "outputs": 1,\r
477         "x": 4291.33332824707,\r
478         "y": 1008.3333435058594,\r
479         "z": "1f8b432c.7b707d",\r
480         "wires": [\r
481             [\r
482                 "d4cc395.cbcc8c8",\r
483                 "73709604.b968f",\r
484                 "7296162a.34f3c8"\r
485             ]\r
486         ]\r
487     },\r
488     {\r
489         "id": "217d122e.216aae",\r
490         "type": "save",\r
491         "name": "get network-route-B from aai",\r
492         "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
493         "comments": "",\r
494         "outputs": 1,\r
495         "x": 4270.33332824707,\r
496         "y": 1610.3332214355469,\r
497         "z": "1f8b432c.7b707d",\r
498         "wires": [\r
499             [\r
500                 "33c50f98.788ad",\r
501                 "41cb8574.dd9304",\r
502                 "d536577b.eef8e8"\r
503             ]\r
504         ]\r
505     },\r
506     {\r
507         "id": "d4cc395.cbcc8c8",\r
508         "type": "not-found",\r
509         "name": "not-found",\r
510         "xml": "<outcome value='not-found'>\n",\r
511         "comments": "",\r
512         "outputs": 1,\r
513         "x": 4492.33332824707,\r
514         "y": 892.3333435058594,\r
515         "z": "1f8b432c.7b707d",\r
516         "wires": [\r
517             [\r
518                 "d86c12e3.b2275"\r
519             ]\r
520         ]\r
521     },\r
522     {\r
523         "id": "73709604.b968f",\r
524         "type": "failure",\r
525         "name": "failure",\r
526         "xml": "<outcome value='failure'>\n",\r
527         "comments": "",\r
528         "outputs": 1,\r
529         "x": 4487.842361450195,\r
530         "y": 941.7593688964844,\r
531         "z": "1f8b432c.7b707d",\r
532         "wires": [\r
533             [\r
534                 "800e46e3.3573a"\r
535             ]\r
536         ]\r
537     },\r
538     {\r
539         "id": "7296162a.34f3c8",\r
540         "type": "success",\r
541         "name": "success",\r
542         "xml": "<outcome value='success'>\n",\r
543         "comments": "",\r
544         "outputs": 1,\r
545         "x": 4491.842361450195,\r
546         "y": 992.7593688964844,\r
547         "z": "1f8b432c.7b707d",\r
548         "wires": [\r
549             [\r
550                 "a34e2377.27ccd8"\r
551             ]\r
552         ]\r
553     },\r
554     {\r
555         "id": "d86c12e3.b2275",\r
556         "type": "returnFailure",\r
557         "name": "return failure",\r
558         "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
559         "comments": "",\r
560         "x": 4640.904861450195,\r
561         "y": 891.6191101074219,\r
562         "z": "1f8b432c.7b707d",\r
563         "wires": []\r
564     },\r
565     {\r
566         "id": "800e46e3.3573a",\r
567         "type": "returnFailure",\r
568         "name": "return failure",\r
569         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
570         "comments": "",\r
571         "x": 4630.842361450195,\r
572         "y": 941.7593688964844,\r
573         "z": "1f8b432c.7b707d",\r
574         "wires": []\r
575     },\r
576     {\r
577         "id": "33c50f98.788ad",\r
578         "type": "not-found",\r
579         "name": "not-found",\r
580         "xml": "<outcome value='not-found'>\n",\r
581         "comments": "",\r
582         "outputs": 1,\r
583         "x": 4493.33332824707,\r
584         "y": 1580.3332214355469,\r
585         "z": "1f8b432c.7b707d",\r
586         "wires": [\r
587             [\r
588                 "4a962304.a215f4"\r
589             ]\r
590         ]\r
591     },\r
592     {\r
593         "id": "41cb8574.dd9304",\r
594         "type": "failure",\r
595         "name": "failure",\r
596         "xml": "<outcome value='failure'>\n",\r
597         "comments": "",\r
598         "outputs": 1,\r
599         "x": 4488.842361450195,\r
600         "y": 1629.7592468261719,\r
601         "z": "1f8b432c.7b707d",\r
602         "wires": [\r
603             [\r
604                 "310d3fa7.cc4238"\r
605             ]\r
606         ]\r
607     },\r
608     {\r
609         "id": "d536577b.eef8e8",\r
610         "type": "success",\r
611         "name": "success",\r
612         "xml": "<outcome value='success'>\n",\r
613         "comments": "",\r
614         "outputs": 1,\r
615         "x": 4492.842361450195,\r
616         "y": 1680.7592468261719,\r
617         "z": "1f8b432c.7b707d",\r
618         "wires": [\r
619             [\r
620                 "c757b760.b406b"\r
621             ]\r
622         ]\r
623     },\r
624     {\r
625         "id": "4a962304.a215f4",\r
626         "type": "returnFailure",\r
627         "name": "return failure",\r
628         "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
629         "comments": "",\r
630         "x": 4641.904861450195,\r
631         "y": 1579.6189880371094,\r
632         "z": "1f8b432c.7b707d",\r
633         "wires": []\r
634     },\r
635     {\r
636         "id": "310d3fa7.cc4238",\r
637         "type": "returnFailure",\r
638         "name": "return failure",\r
639         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
640         "comments": "",\r
641         "x": 4631.842361450195,\r
642         "y": 1629.7592468261719,\r
643         "z": "1f8b432c.7b707d",\r
644         "wires": []\r
645     },\r
646     {\r
647         "id": "62da33ab.561f8c",\r
648         "type": "block",\r
649         "name": "block : atomic",\r
650         "xml": "<block atomic=\"true\">",\r
651         "atomic": "true",\r
652         "outputs": 1,\r
653         "x": 5305.99983215332,\r
654         "y": 1036.3333435058594,\r
655         "z": "1f8b432c.7b707d",\r
656         "wires": [\r
657             [\r
658                 "70f308bc.05dc48",\r
659                 "a4aed251.f9b08",\r
660                 "d868e9d5.e95cb",\r
661                 "2078a502.9da27a",\r
662                 "8465e4fd.6de0a"\r
663             ]\r
664         ]\r
665     },\r
666     {\r
667         "id": "24a2bf70.dd5f6",\r
668         "type": "success",\r
669         "name": "success",\r
670         "xml": "<outcome value='success'>\n",\r
671         "comments": "",\r
672         "outputs": 1,\r
673         "x": 5133.33332824707,\r
674         "y": 1037.3333435058594,\r
675         "z": "1f8b432c.7b707d",\r
676         "wires": [\r
677             [\r
678                 "62da33ab.561f8c"\r
679             ]\r
680         ]\r
681     },\r
682     {\r
683         "id": "b92bac73.6c9778",\r
684         "type": "not-found",\r
685         "name": "not-found",\r
686         "xml": "<outcome value='not-found'>\n",\r
687         "comments": "",\r
688         "outputs": 1,\r
689         "x": 5142.824295043945,\r
690         "y": 1079.9073791503906,\r
691         "z": "1f8b432c.7b707d",\r
692         "wires": [\r
693             [\r
694                 "e76a7bba.50458"\r
695             ]\r
696         ]\r
697     },\r
698     {\r
699         "id": "4c3b9d0a.797a8c",\r
700         "type": "failure",\r
701         "name": "failure",\r
702         "xml": "<outcome value='failure'>\n",\r
703         "comments": "",\r
704         "outputs": 1,\r
705         "x": 5131.33332824707,\r
706         "y": 1126.3333435058594,\r
707         "z": "1f8b432c.7b707d",\r
708         "wires": [\r
709             [\r
710                 "24a51d5a.eb4b0a"\r
711             ]\r
712         ]\r
713     },\r
714     {\r
715         "id": "e76a7bba.50458",\r
716         "type": "returnFailure",\r
717         "name": "return failure",\r
718         "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
719         "comments": "",\r
720         "x": 5296.395706176758,\r
721         "y": 1083.193115234375,\r
722         "z": "1f8b432c.7b707d",\r
723         "wires": []\r
724     },\r
725     {\r
726         "id": "24a51d5a.eb4b0a",\r
727         "type": "returnFailure",\r
728         "name": "return failure",\r
729         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
730         "comments": "",\r
731         "x": 5300.33332824707,\r
732         "y": 1127.3333435058594,\r
733         "z": "1f8b432c.7b707d",\r
734         "wires": []\r
735     },\r
736     {\r
737         "id": "a34e2377.27ccd8",\r
738         "type": "block",\r
739         "name": "block : atomic",\r
740         "xml": "<block atomic=\"true\">",\r
741         "atomic": "true",\r
742         "outputs": 1,\r
743         "x": 4653.33332824707,\r
744         "y": 994.3333435058594,\r
745         "z": "1f8b432c.7b707d",\r
746         "wires": [\r
747             [\r
748                 "709f1167.bbcf68",\r
749                 "77da836c.7c453c"\r
750             ]\r
751         ]\r
752     },\r
753     {\r
754         "id": "c757b760.b406b",\r
755         "type": "block",\r
756         "name": "block : atomic",\r
757         "xml": "<block atomic=\"true\">",\r
758         "atomic": "true",\r
759         "outputs": 1,\r
760         "x": 4643.33332824707,\r
761         "y": 1682.3332214355469,\r
762         "z": "1f8b432c.7b707d",\r
763         "wires": [\r
764             [\r
765                 "e832df40.3cb4e8",\r
766                 "e46caf0e.563478"\r
767             ]\r
768         ]\r
769     },\r
770     {\r
771         "id": "e7fcac87.3713a",\r
772         "type": "block",\r
773         "name": "block : atomic",\r
774         "xml": "<block atomic=\"true\">",\r
775         "atomic": "true",\r
776         "outputs": 1,\r
777         "x": 5273.99983215332,\r
778         "y": 1872.3333435058594,\r
779         "z": "1f8b432c.7b707d",\r
780         "wires": [\r
781             [\r
782                 "53c6fb5d.111ec4",\r
783                 "34b35dcd.443f82",\r
784                 "3a858051.3cdb98",\r
785                 "a5489f79.fd4018",\r
786                 "a9a1085f.9d214"\r
787             ]\r
788         ]\r
789     },\r
790     {\r
791         "id": "d0bf9af7.9310c",\r
792         "type": "success",\r
793         "name": "success",\r
794         "xml": "<outcome value='success'>\n",\r
795         "comments": "",\r
796         "outputs": 1,\r
797         "x": 5101.33332824707,\r
798         "y": 1873.3333435058594,\r
799         "z": "1f8b432c.7b707d",\r
800         "wires": [\r
801             [\r
802                 "e7fcac87.3713a"\r
803             ]\r
804         ]\r
805     },\r
806     {\r
807         "id": "26c8c3e3.b7c694",\r
808         "type": "not-found",\r
809         "name": "not-found",\r
810         "xml": "<outcome value='not-found'>\n",\r
811         "comments": "",\r
812         "outputs": 1,\r
813         "x": 5110.824295043945,\r
814         "y": 1915.9073791503906,\r
815         "z": "1f8b432c.7b707d",\r
816         "wires": [\r
817             [\r
818                 "a82c31f6.750ae8"\r
819             ]\r
820         ]\r
821     },\r
822     {\r
823         "id": "dbc3af7a.2f9fb8",\r
824         "type": "failure",\r
825         "name": "failure",\r
826         "xml": "<outcome value='failure'>\n",\r
827         "comments": "",\r
828         "outputs": 1,\r
829         "x": 5099.33332824707,\r
830         "y": 1962.3333435058594,\r
831         "z": "1f8b432c.7b707d",\r
832         "wires": [\r
833             [\r
834                 "10e75613.88aafa"\r
835             ]\r
836         ]\r
837     },\r
838     {\r
839         "id": "a82c31f6.750ae8",\r
840         "type": "returnFailure",\r
841         "name": "return failure",\r
842         "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
843         "comments": "",\r
844         "x": 5264.395706176758,\r
845         "y": 1919.193115234375,\r
846         "z": "1f8b432c.7b707d",\r
847         "wires": []\r
848     },\r
849     {\r
850         "id": "10e75613.88aafa",\r
851         "type": "returnFailure",\r
852         "name": "return failure",\r
853         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
854         "comments": "",\r
855         "x": 5268.33332824707,\r
856         "y": 1963.3333435058594,\r
857         "z": "1f8b432c.7b707d",\r
858         "wires": []\r
859     },\r
860     {\r
861         "id": "70f308bc.05dc48",\r
862         "type": "execute",\r
863         "name": "execute split tp-id to get pnf-name",\r
864         "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
865         "comments": "",\r
866         "outputs": 1,\r
867         "x": 5570.33332824707,\r
868         "y": 1020.3333435058594,\r
869         "z": "1f8b432c.7b707d",\r
870         "wires": [\r
871             [\r
872                 "6bbffa2e.46690c",\r
873                 "77cd07cb.ebdf78"\r
874             ]\r
875         ]\r
876     },\r
877     {\r
878         "id": "77cd07cb.ebdf78",\r
879         "type": "failure",\r
880         "name": "success",\r
881         "xml": "<outcome value='success'>\n",\r
882         "comments": "",\r
883         "outputs": 1,\r
884         "x": 5793.33332824707,\r
885         "y": 975.3333435058594,\r
886         "z": "1f8b432c.7b707d",\r
887         "wires": [\r
888             [\r
889                 "e975bc36.28a99"\r
890             ]\r
891         ]\r
892     },\r
893     {\r
894         "id": "6bbffa2e.46690c",\r
895         "type": "failure",\r
896         "name": "failure",\r
897         "xml": "<outcome value='failure'>\n",\r
898         "comments": "",\r
899         "outputs": 1,\r
900         "x": 5795.33332824707,\r
901         "y": 1039.3333435058594,\r
902         "z": "1f8b432c.7b707d",\r
903         "wires": [\r
904             [\r
905                 "8466cb9d.f4bc28"\r
906             ]\r
907         ]\r
908     },\r
909     {\r
910         "id": "d8fed17b.7e481",\r
911         "type": "set",\r
912         "name": "set ltpId",\r
913         "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
914         "comments": "",\r
915         "x": 6128.33332824707,\r
916         "y": 930.3333435058594,\r
917         "z": "1f8b432c.7b707d",\r
918         "wires": []\r
919     },\r
920     {\r
921         "id": "8466cb9d.f4bc28",\r
922         "type": "returnFailure",\r
923         "name": "return failure",\r
924         "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
925         "comments": "",\r
926         "x": 5957.33332824707,\r
927         "y": 1035.3333435058594,\r
928         "z": "1f8b432c.7b707d",\r
929         "wires": []\r
930     },\r
931     {\r
932         "id": "e975bc36.28a99",\r
933         "type": "block",\r
934         "name": "block : atomic",\r
935         "xml": "<block atomic=\"true\">",\r
936         "atomic": "true",\r
937         "outputs": 1,\r
938         "x": 5958.33332824707,\r
939         "y": 972.3333435058594,\r
940         "z": "1f8b432c.7b707d",\r
941         "wires": [\r
942             [\r
943                 "34be39c3.d02096",\r
944                 "d8fed17b.7e481"\r
945             ]\r
946         ]\r
947     },\r
948     {\r
949         "id": "34be39c3.d02096",\r
950         "type": "set",\r
951         "name": "set pnf-name",\r
952         "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
953         "comments": "",\r
954         "x": 6129.33332824707,\r
955         "y": 1038.3333435058594,\r
956         "z": "1f8b432c.7b707d",\r
957         "wires": []\r
958     },\r
959     {\r
960         "id": "becbdb78.8c28c",\r
961         "type": "comment",\r
962         "name": "TODO: FIXME",\r
963         "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
964         "comments": "",\r
965         "x": 6130.33332824707,\r
966         "y": 987.3333435058594,\r
967         "z": "1f8b432c.7b707d",\r
968         "wires": []\r
969     },\r
970     {\r
971         "id": "a4aed251.f9b08",\r
972         "type": "execute",\r
973         "name": "execute UUID generator for connectivity domainA",\r
974         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
975         "comments": "",\r
976         "outputs": 1,\r
977         "x": 5617.33332824707,\r
978         "y": 1089.3333435058594,\r
979         "z": "1f8b432c.7b707d",\r
980         "wires": [\r
981             []\r
982         ]\r
983     },\r
984     {\r
985         "id": "1e8d2c8e.4a5dbb",\r
986         "type": "comment",\r
987         "name": "TODO: FIXME",\r
988         "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
989         "comments": "",\r
990         "x": 5506.33332824707,\r
991         "y": 1130.3333435058594,\r
992         "z": "1f8b432c.7b707d",\r
993         "wires": []\r
994     },\r
995     {\r
996         "id": "53c6fb5d.111ec4",\r
997         "type": "execute",\r
998         "name": "execute split tp-id to get pnf-name",\r
999         "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
1000         "comments": "",\r
1001         "outputs": 1,\r
1002         "x": 5560.33332824707,\r
1003         "y": 1876.3334655761719,\r
1004         "z": "1f8b432c.7b707d",\r
1005         "wires": [\r
1006             [\r
1007                 "46b3e138.d3f2e8",\r
1008                 "cddf08d4.ef0a5"\r
1009             ]\r
1010         ]\r
1011     },\r
1012     {\r
1013         "id": "cddf08d4.ef0a5",\r
1014         "type": "failure",\r
1015         "name": "success",\r
1016         "xml": "<outcome value='success'>\n",\r
1017         "comments": "",\r
1018         "outputs": 1,\r
1019         "x": 5783.33332824707,\r
1020         "y": 1831.3334655761719,\r
1021         "z": "1f8b432c.7b707d",\r
1022         "wires": [\r
1023             [\r
1024                 "f20f3066.a035b8"\r
1025             ]\r
1026         ]\r
1027     },\r
1028     {\r
1029         "id": "46b3e138.d3f2e8",\r
1030         "type": "failure",\r
1031         "name": "failure",\r
1032         "xml": "<outcome value='failure'>\n",\r
1033         "comments": "",\r
1034         "outputs": 1,\r
1035         "x": 5785.33332824707,\r
1036         "y": 1895.3334655761719,\r
1037         "z": "1f8b432c.7b707d",\r
1038         "wires": [\r
1039             [\r
1040                 "2b8acdb2.b50cfa"\r
1041             ]\r
1042         ]\r
1043     },\r
1044     {\r
1045         "id": "db0e4a6.96bfeb8",\r
1046         "type": "set",\r
1047         "name": "set ltpId",\r
1048         "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
1049         "comments": "",\r
1050         "x": 6118.33332824707,\r
1051         "y": 1789.3334655761719,\r
1052         "z": "1f8b432c.7b707d",\r
1053         "wires": []\r
1054     },\r
1055     {\r
1056         "id": "2b8acdb2.b50cfa",\r
1057         "type": "returnFailure",\r
1058         "name": "return failure",\r
1059         "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
1060         "comments": "",\r
1061         "x": 5944.33332824707,\r
1062         "y": 1914.3334655761719,\r
1063         "z": "1f8b432c.7b707d",\r
1064         "wires": []\r
1065     },\r
1066     {\r
1067         "id": "f20f3066.a035b8",\r
1068         "type": "block",\r
1069         "name": "block : atomic",\r
1070         "xml": "<block atomic=\"true\">",\r
1071         "atomic": "true",\r
1072         "outputs": 1,\r
1073         "x": 5948.33332824707,\r
1074         "y": 1828.3334655761719,\r
1075         "z": "1f8b432c.7b707d",\r
1076         "wires": [\r
1077             [\r
1078                 "db0e4a6.96bfeb8",\r
1079                 "aa82495b.a24c98"\r
1080             ]\r
1081         ]\r
1082     },\r
1083     {\r
1084         "id": "aa82495b.a24c98",\r
1085         "type": "set",\r
1086         "name": "set pnf-name",\r
1087         "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
1088         "comments": "",\r
1089         "x": 6119.33332824707,\r
1090         "y": 1894.3334655761719,\r
1091         "z": "1f8b432c.7b707d",\r
1092         "wires": []\r
1093     },\r
1094     {\r
1095         "id": "76704f22.ba3f58",\r
1096         "type": "comment",\r
1097         "name": "TODO: FIXME",\r
1098         "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
1099         "comments": "",\r
1100         "x": 6114.33332824707,\r
1101         "y": 1843.3334655761719,\r
1102         "z": "1f8b432c.7b707d",\r
1103         "wires": []\r
1104     },\r
1105     {\r
1106         "id": "3a858051.3cdb98",\r
1107         "type": "save",\r
1108         "name": "save connectivity resource in AAI",\r
1109         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
1110         "comments": "",\r
1111         "outputs": 1,\r
1112         "x": 5562.33332824707,\r
1113         "y": 2035.3334655761719,\r
1114         "z": "1f8b432c.7b707d",\r
1115         "wires": [\r
1116             []\r
1117         ]\r
1118     },\r
1119     {\r
1120         "id": "34b35dcd.443f82",\r
1121         "type": "execute",\r
1122         "name": "execute UUID generator for connectivity domainB",\r
1123         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
1124         "comments": "",\r
1125         "outputs": 1,\r
1126         "x": 5607.33332824707,\r
1127         "y": 1945.3334655761719,\r
1128         "z": "1f8b432c.7b707d",\r
1129         "wires": [\r
1130             []\r
1131         ]\r
1132     },\r
1133     {\r
1134         "id": "c373fb4d.a3a7f",\r
1135         "type": "comment",\r
1136         "name": "TODO: FIXME",\r
1137         "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
1138         "comments": "",\r
1139         "x": 5496.33332824707,\r
1140         "y": 1983.3334655761719,\r
1141         "z": "1f8b432c.7b707d",\r
1142         "wires": []\r
1143     },\r
1144     {\r
1145         "id": "f7348f80.aa12e8",\r
1146         "type": "call",\r
1147         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
1148         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
1149         "comments": "",\r
1150         "outputs": 1,\r
1151         "x": 4491.33332824707,\r
1152         "y": 2280.3333435058594,\r
1153         "z": "1f8b432c.7b707d",\r
1154         "wires": [\r
1155             []\r
1156         ]\r
1157     },\r
1158     {\r
1159         "id": "7a252ae2.45ae64",\r
1160         "type": "set",\r
1161         "name": "set attachment_param",\r
1162         "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
1163         "comments": "",\r
1164         "x": 4285.33332824707,\r
1165         "y": 2181.3333435058594,\r
1166         "z": "1f8b432c.7b707d",\r
1167         "wires": []\r
1168     },\r
1169     {\r
1170         "id": "c4146d99.a600e",\r
1171         "type": "comment",\r
1172         "name": "TODO: FIXME",\r
1173         "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
1174         "comments": "",\r
1175         "x": 4259.33332824707,\r
1176         "y": 2134.3333435058594,\r
1177         "z": "1f8b432c.7b707d",\r
1178         "wires": []\r
1179     },\r
1180     {\r
1181         "id": "d868e9d5.e95cb",\r
1182         "type": "save",\r
1183         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1184         "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
1185         "comments": "",\r
1186         "outputs": 1,\r
1187         "x": 5700.33332824707,\r
1188         "y": 1227.3333435058594,\r
1189         "z": "1f8b432c.7b707d",\r
1190         "wires": [\r
1191             []\r
1192         ]\r
1193     },\r
1194     {\r
1195         "id": "a5489f79.fd4018",\r
1196         "type": "save",\r
1197         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1198         "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
1199         "comments": "",\r
1200         "outputs": 1,\r
1201         "x": 5689.33332824707,\r
1202         "y": 2100.333465576172,\r
1203         "z": "1f8b432c.7b707d",\r
1204         "wires": [\r
1205             []\r
1206         ]\r
1207     },\r
1208     {\r
1209         "id": "e38e7099.4c1268",\r
1210         "type": "execute",\r
1211         "name": "get esr-thirdparty-sdnc",\r
1212         "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
1213         "comments": "",\r
1214         "outputs": 1,\r
1215         "x": 6744.33332824707,\r
1216         "y": 747.3333435058594,\r
1217         "z": "1f8b432c.7b707d",\r
1218         "wires": [\r
1219             [\r
1220                 "60adc82e.ec907",\r
1221                 "ef6befb7.25ec38",\r
1222                 "2514309d.ea219"\r
1223             ]\r
1224         ]\r
1225     },\r
1226     {\r
1227         "id": "782c069d.e39358",\r
1228         "type": "block",\r
1229         "name": "block : atomic",\r
1230         "xml": "<block atomic=\"true\">",\r
1231         "atomic": "true",\r
1232         "outputs": 1,\r
1233         "x": 2631.3333282470703,\r
1234         "y": 402.3333435058594,\r
1235         "z": "1f8b432c.7b707d",\r
1236         "wires": [\r
1237             [\r
1238                 "5b7c0727.9a035"\r
1239             ]\r
1240         ]\r
1241     },\r
1242     {\r
1243         "id": "47d4cad8.17d52c",\r
1244         "type": "outcome",\r
1245         "name": "logical-link",\r
1246         "xml": "<outcome value='logical-link'>\n",\r
1247         "comments": "",\r
1248         "outputs": 1,\r
1249         "x": 1028.3334503173828,\r
1250         "y": 797.3334655761719,\r
1251         "z": "1f8b432c.7b707d",\r
1252         "wires": [\r
1253             [\r
1254                 "6079a4cf.66fe14"\r
1255             ]\r
1256         ]\r
1257     },\r
1258     {\r
1259         "id": "21c0e3fe.82515c",\r
1260         "type": "switchNode",\r
1261         "name": "switch allotted-resource.relationship-list not empty",\r
1262         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
1263         "comments": "",\r
1264         "outputs": 1,\r
1265         "x": 2194.3333282470703,\r
1266         "y": 496.3333435058594,\r
1267         "z": "1f8b432c.7b707d",\r
1268         "wires": [\r
1269             [\r
1270                 "8d2ba343.63f8c8",\r
1271                 "ae4416d5.ca7b4"\r
1272             ]\r
1273         ]\r
1274     },\r
1275     {\r
1276         "id": "ae4416d5.ca7b4",\r
1277         "type": "outcomeFalse",\r
1278         "name": "false",\r
1279         "xml": "<outcome value='false'>\n",\r
1280         "comments": "",\r
1281         "outputs": 1,\r
1282         "x": 2515.3333282470703,\r
1283         "y": 478.3333435058594,\r
1284         "z": "1f8b432c.7b707d",\r
1285         "wires": [\r
1286             []\r
1287         ]\r
1288     },\r
1289     {\r
1290         "id": "8d2ba343.63f8c8",\r
1291         "type": "outcomeTrue",\r
1292         "name": "true",\r
1293         "xml": "<outcome value='true'>\n",\r
1294         "comments": "",\r
1295         "outputs": 1,\r
1296         "x": 2497.3333282470703,\r
1297         "y": 576.3333435058594,\r
1298         "z": "1f8b432c.7b707d",\r
1299         "wires": [\r
1300             [\r
1301                 "b6502203.02c108"\r
1302             ]\r
1303         ]\r
1304     },\r
1305     {\r
1306         "id": "8bb28c9b.5b048",\r
1307         "type": "set",\r
1308         "name": "set the current logical-link-name",\r
1309         "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n<parameter name='currLinkIsFound' value=\"false\" />\n\n\n",\r
1310         "comments": "",\r
1311         "x": 1451.3333282470703,\r
1312         "y": 700.3333435058594,\r
1313         "z": "1f8b432c.7b707d",\r
1314         "wires": []\r
1315     },\r
1316     {\r
1317         "id": "6079a4cf.66fe14",\r
1318         "type": "block",\r
1319         "name": "block : atomic",\r
1320         "xml": "<block atomic=\"true\">",\r
1321         "atomic": "true",\r
1322         "outputs": 1,\r
1323         "x": 1205.3333282470703,\r
1324         "y": 790.3333435058594,\r
1325         "z": "1f8b432c.7b707d",\r
1326         "wires": [\r
1327             [\r
1328                 "8bb28c9b.5b048",\r
1329                 "b7e06d6e.f371a",\r
1330                 "9653963e.b4d7a8"\r
1331             ]\r
1332         ]\r
1333     },\r
1334     {\r
1335         "id": "485e027f.e391bc",\r
1336         "type": "comment",\r
1337         "name": "Question?",\r
1338         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1339         "comments": "",\r
1340         "x": 4833.33332824707,\r
1341         "y": 999.3333435058594,\r
1342         "z": "1f8b432c.7b707d",\r
1343         "wires": []\r
1344     },\r
1345     {\r
1346         "id": "709f1167.bbcf68",\r
1347         "type": "save",\r
1348         "name": "get p-interface-src from aai",\r
1349         "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
1350         "comments": "",\r
1351         "outputs": 1,\r
1352         "x": 4876.33332824707,\r
1353         "y": 1064.3333435058594,\r
1354         "z": "1f8b432c.7b707d",\r
1355         "wires": [\r
1356             [\r
1357                 "24a2bf70.dd5f6",\r
1358                 "b92bac73.6c9778",\r
1359                 "4c3b9d0a.797a8c"\r
1360             ]\r
1361         ]\r
1362     },\r
1363     {\r
1364         "id": "e832df40.3cb4e8",\r
1365         "type": "save",\r
1366         "name": "get p-interface-dst from aai",\r
1367         "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
1368         "comments": "",\r
1369         "outputs": 1,\r
1370         "x": 4873.33332824707,\r
1371         "y": 1908.3333435058594,\r
1372         "z": "1f8b432c.7b707d",\r
1373         "wires": [\r
1374             [\r
1375                 "d0bf9af7.9310c",\r
1376                 "26c8c3e3.b7c694",\r
1377                 "dbc3af7a.2f9fb8"\r
1378             ]\r
1379         ]\r
1380     },\r
1381     {\r
1382         "id": "a33a2969.97acc",\r
1383         "type": "comment",\r
1384         "name": "Question?",\r
1385         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1386         "comments": "",\r
1387         "x": 4834.33332824707,\r
1388         "y": 1852.3333435058594,\r
1389         "z": "1f8b432c.7b707d",\r
1390         "wires": []\r
1391     },\r
1392     {\r
1393         "id": "5b7c0727.9a035",\r
1394         "type": "save",\r
1395         "name": "get allotted-resource relationship from aai",\r
1396         "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
1397         "comments": "",\r
1398         "outputs": 1,\r
1399         "x": 2924.3333282470703,\r
1400         "y": 349.3333435058594,\r
1401         "z": "1f8b432c.7b707d",\r
1402         "wires": [\r
1403             [\r
1404                 "ca1aef51.5c2e6",\r
1405                 "fa2abd46.be79a8",\r
1406                 "6dcd89ce.d8f7b8"\r
1407             ]\r
1408         ]\r
1409     },\r
1410     {\r
1411         "id": "fa2abd46.be79a8",\r
1412         "type": "not-found",\r
1413         "name": "not-found",\r
1414         "xml": "<outcome value='not-found'>\n",\r
1415         "comments": "",\r
1416         "outputs": 1,\r
1417         "x": 3197.8242950439453,\r
1418         "y": 241.90731811523438,\r
1419         "z": "1f8b432c.7b707d",\r
1420         "wires": [\r
1421             [\r
1422                 "3cf8b5c.596c24a"\r
1423             ]\r
1424         ]\r
1425     },\r
1426     {\r
1427         "id": "3cf8b5c.596c24a",\r
1428         "type": "returnFailure",\r
1429         "name": "return failure",\r
1430         "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
1431         "comments": "",\r
1432         "x": 3375.3958282470703,\r
1433         "y": 242.19308471679688,\r
1434         "z": "1f8b432c.7b707d",\r
1435         "wires": []\r
1436     },\r
1437     {\r
1438         "id": "6dcd89ce.d8f7b8",\r
1439         "type": "failure",\r
1440         "name": "failure",\r
1441         "xml": "<outcome value='failure'>\n",\r
1442         "comments": "",\r
1443         "outputs": 1,\r
1444         "x": 3193.3333282470703,\r
1445         "y": 291.3333435058594,\r
1446         "z": "1f8b432c.7b707d",\r
1447         "wires": [\r
1448             [\r
1449                 "143224ce.735913"\r
1450             ]\r
1451         ]\r
1452     },\r
1453     {\r
1454         "id": "143224ce.735913",\r
1455         "type": "returnFailure",\r
1456         "name": "return failure",\r
1457         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1458         "comments": "",\r
1459         "x": 3375.3333282470703,\r
1460         "y": 291.3333435058594,\r
1461         "z": "1f8b432c.7b707d",\r
1462         "wires": []\r
1463     },\r
1464     {\r
1465         "id": "ca1aef51.5c2e6",\r
1466         "type": "success",\r
1467         "name": "success",\r
1468         "xml": "<outcome value='success'>\n",\r
1469         "comments": "",\r
1470         "outputs": 1,\r
1471         "x": 3197.3333282470703,\r
1472         "y": 342.3333435058594,\r
1473         "z": "1f8b432c.7b707d",\r
1474         "wires": [\r
1475             [\r
1476                 "eadcd586.811458"\r
1477             ]\r
1478         ]\r
1479     },\r
1480     {\r
1481         "id": "eadcd586.811458",\r
1482         "type": "block",\r
1483         "name": "block : atomic",\r
1484         "xml": "<block atomic=\"true\">",\r
1485         "atomic": "true",\r
1486         "outputs": 1,\r
1487         "x": 3377.3333282470703,\r
1488         "y": 342.3333435058594,\r
1489         "z": "1f8b432c.7b707d",\r
1490         "wires": [\r
1491             [\r
1492                 "21c0e3fe.82515c"\r
1493             ]\r
1494         ]\r
1495     },\r
1496     {\r
1497         "id": "d8bf1877.11fa58",\r
1498         "type": "for",\r
1499         "name": "for each allotted-resource relationship",\r
1500         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
1501         "comments": "",\r
1502         "outputs": 1,\r
1503         "x": 803.3333282470703,\r
1504         "y": 726.3333435058594,\r
1505         "z": "1f8b432c.7b707d",\r
1506         "wires": [\r
1507             [\r
1508                 "a6f98a69.92187"\r
1509             ]\r
1510         ]\r
1511     },\r
1512     {\r
1513         "id": "a6f98a69.92187",\r
1514         "type": "switchNode",\r
1515         "name": "switch related-to",\r
1516         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
1517         "comments": "",\r
1518         "outputs": 1,\r
1519         "x": 1074.3333282470703,\r
1520         "y": 722.3333435058594,\r
1521         "z": "1f8b432c.7b707d",\r
1522         "wires": [\r
1523             [\r
1524                 "47d4cad8.17d52c"\r
1525             ]\r
1526         ]\r
1527     },\r
1528     {\r
1529         "id": "a15de96b.529998",\r
1530         "type": "outcome",\r
1531         "name": "network-policy",\r
1532         "xml": "<outcome value='network-policy'>\n",\r
1533         "comments": "",\r
1534         "outputs": 1,\r
1535         "x": 3353.3333282470703,\r
1536         "y": 540.3333435058594,\r
1537         "z": "1f8b432c.7b707d",\r
1538         "wires": [\r
1539             [\r
1540                 "d0adfe64.da86a8"\r
1541             ]\r
1542         ]\r
1543     },\r
1544     {\r
1545         "id": "d0adfe64.da86a8",\r
1546         "type": "block",\r
1547         "name": "block : atomic",\r
1548         "xml": "<block atomic=\"true\">",\r
1549         "atomic": "true",\r
1550         "outputs": 1,\r
1551         "x": 3530.333206176758,\r
1552         "y": 533.3332214355469,\r
1553         "z": "1f8b432c.7b707d",\r
1554         "wires": [\r
1555             [\r
1556                 "d9045bb1.a62d4",\r
1557                 "d7d4dfac.f8ef88"\r
1558             ]\r
1559         ]\r
1560     },\r
1561     {\r
1562         "id": "d9045bb1.a62d4",\r
1563         "type": "set",\r
1564         "name": "set the 1st network-policy-id",\r
1565         "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
1566         "comments": "",\r
1567         "x": 3773.333206176758,\r
1568         "y": 490.3332214355469,\r
1569         "z": "1f8b432c.7b707d",\r
1570         "wires": []\r
1571     },\r
1572     {\r
1573         "id": "d7d4dfac.f8ef88",\r
1574         "type": "save",\r
1575         "name": "get network-policy from aai",\r
1576         "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
1577         "comments": "",\r
1578         "outputs": 1,\r
1579         "x": 3762.333206176758,\r
1580         "y": 545.3332214355469,\r
1581         "z": "1f8b432c.7b707d",\r
1582         "wires": [\r
1583             [\r
1584                 "641b6dc1.ae62a4",\r
1585                 "e8473ac4.f5e678",\r
1586                 "d854cd7f.05151"\r
1587             ]\r
1588         ]\r
1589     },\r
1590     {\r
1591         "id": "d854cd7f.05151",\r
1592         "type": "not-found",\r
1593         "name": "not-found",\r
1594         "xml": "<outcome value='not-found'>\n",\r
1595         "comments": "",\r
1596         "outputs": 1,\r
1597         "x": 4015.3333282470703,\r
1598         "y": 431.3333435058594,\r
1599         "z": "1f8b432c.7b707d",\r
1600         "wires": [\r
1601             [\r
1602                 "d89f7cfd.a998c"\r
1603             ]\r
1604         ]\r
1605     },\r
1606     {\r
1607         "id": "d89f7cfd.a998c",\r
1608         "type": "returnFailure",\r
1609         "name": "return failure",\r
1610         "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
1611         "comments": "",\r
1612         "x": 4163.904861450195,\r
1613         "y": 431.6191101074219,\r
1614         "z": "1f8b432c.7b707d",\r
1615         "wires": []\r
1616     },\r
1617     {\r
1618         "id": "40195b62.cb5874",\r
1619         "type": "returnFailure",\r
1620         "name": "return failure",\r
1621         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1622         "comments": "",\r
1623         "x": 4162.842361450195,\r
1624         "y": 475.7593688964844,\r
1625         "z": "1f8b432c.7b707d",\r
1626         "wires": []\r
1627     },\r
1628     {\r
1629         "id": "e8473ac4.f5e678",\r
1630         "type": "failure",\r
1631         "name": "failure",\r
1632         "xml": "<outcome value='failure'>\n",\r
1633         "comments": "",\r
1634         "outputs": 1,\r
1635         "x": 4003.8423614501953,\r
1636         "y": 475.7593688964844,\r
1637         "z": "1f8b432c.7b707d",\r
1638         "wires": [\r
1639             [\r
1640                 "40195b62.cb5874"\r
1641             ]\r
1642         ]\r
1643     },\r
1644     {\r
1645         "id": "641b6dc1.ae62a4",\r
1646         "type": "success",\r
1647         "name": "success",\r
1648         "xml": "<outcome value='success'>\n",\r
1649         "comments": "",\r
1650         "outputs": 1,\r
1651         "x": 4010.8423614501953,\r
1652         "y": 554.7593688964844,\r
1653         "z": "1f8b432c.7b707d",\r
1654         "wires": [\r
1655             [\r
1656                 "cfb2b016.ca50d"\r
1657             ]\r
1658         ]\r
1659     },\r
1660     {\r
1661         "id": "cfb2b016.ca50d",\r
1662         "type": "block",\r
1663         "name": "block",\r
1664         "xml": "<block>\n",\r
1665         "atomic": "false",\r
1666         "comments": "",\r
1667         "outputs": 1,\r
1668         "x": 4149.842361450195,\r
1669         "y": 554.7593688964844,\r
1670         "z": "1f8b432c.7b707d",\r
1671         "wires": [\r
1672             [\r
1673                 "4e1d40ab.8f7c48",\r
1674                 "6ab22d0b.607efc"\r
1675             ]\r
1676         ]\r
1677     },\r
1678     {\r
1679         "id": "4e1d40ab.8f7c48",\r
1680         "type": "set",\r
1681         "name": "set the max bandwidth",\r
1682         "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
1683         "comments": "",\r
1684         "x": 4355.33332824707,\r
1685         "y": 552.3333435058594,\r
1686         "z": "1f8b432c.7b707d",\r
1687         "wires": []\r
1688     },\r
1689     {\r
1690         "id": "77da836c.7c453c",\r
1691         "type": "execute",\r
1692         "name": "execute split tp-id to get pnf-name",\r
1693         "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
1694         "comments": "",\r
1695         "outputs": 1,\r
1696         "x": 4877.33332824707,\r
1697         "y": 734.3333435058594,\r
1698         "z": "1f8b432c.7b707d",\r
1699         "wires": [\r
1700             [\r
1701                 "f644ca88.cc84",\r
1702                 "e4420296.1dde4"\r
1703             ]\r
1704         ]\r
1705     },\r
1706     {\r
1707         "id": "e4420296.1dde4",\r
1708         "type": "failure",\r
1709         "name": "success",\r
1710         "xml": "<outcome value='success'>\n",\r
1711         "comments": "",\r
1712         "outputs": 1,\r
1713         "x": 5100.33332824707,\r
1714         "y": 720.3333435058594,\r
1715         "z": "1f8b432c.7b707d",\r
1716         "wires": [\r
1717             [\r
1718                 "1b75d3d5.946174"\r
1719             ]\r
1720         ]\r
1721     },\r
1722     {\r
1723         "id": "f644ca88.cc84",\r
1724         "type": "failure",\r
1725         "name": "failure",\r
1726         "xml": "<outcome value='failure'>\n",\r
1727         "comments": "",\r
1728         "outputs": 1,\r
1729         "x": 5102.33332824707,\r
1730         "y": 753.3333435058594,\r
1731         "z": "1f8b432c.7b707d",\r
1732         "wires": [\r
1733             [\r
1734                 "ccf559e8.ec486"\r
1735             ]\r
1736         ]\r
1737     },\r
1738     {\r
1739         "id": "ccf559e8.ec486",\r
1740         "type": "returnFailure",\r
1741         "name": "return failure",\r
1742         "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
1743         "comments": "",\r
1744         "x": 5245.33332824707,\r
1745         "y": 750.3333435058594,\r
1746         "z": "1f8b432c.7b707d",\r
1747         "wires": []\r
1748     },\r
1749     {\r
1750         "id": "1b75d3d5.946174",\r
1751         "type": "block",\r
1752         "name": "block : atomic",\r
1753         "xml": "<block atomic=\"true\">",\r
1754         "atomic": "true",\r
1755         "outputs": 1,\r
1756         "x": 5248.33332824707,\r
1757         "y": 713.3333435058594,\r
1758         "z": "1f8b432c.7b707d",\r
1759         "wires": [\r
1760             [\r
1761                 "a48b4f87.115f58",\r
1762                 "eae40c98.29734"\r
1763             ]\r
1764         ]\r
1765     },\r
1766     {\r
1767         "id": "a48b4f87.115f58",\r
1768         "type": "set",\r
1769         "name": "set pnf-name",\r
1770         "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
1771         "comments": "",\r
1772         "x": 5410.33332824707,\r
1773         "y": 708.3333435058594,\r
1774         "z": "1f8b432c.7b707d",\r
1775         "wires": []\r
1776     },\r
1777     {\r
1778         "id": "e46caf0e.563478",\r
1779         "type": "execute",\r
1780         "name": "execute split tp-id to get pnf-name",\r
1781         "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
1782         "comments": "",\r
1783         "outputs": 1,\r
1784         "x": 4891.33332824707,\r
1785         "y": 1571.3332214355469,\r
1786         "z": "1f8b432c.7b707d",\r
1787         "wires": [\r
1788             [\r
1789                 "970472a2.405aa8",\r
1790                 "224c4d4.84eea32"\r
1791             ]\r
1792         ]\r
1793     },\r
1794     {\r
1795         "id": "224c4d4.84eea32",\r
1796         "type": "failure",\r
1797         "name": "success",\r
1798         "xml": "<outcome value='success'>\n",\r
1799         "comments": "",\r
1800         "outputs": 1,\r
1801         "x": 5114.33332824707,\r
1802         "y": 1557.3332214355469,\r
1803         "z": "1f8b432c.7b707d",\r
1804         "wires": [\r
1805             [\r
1806                 "1f5eda96.09790d"\r
1807             ]\r
1808         ]\r
1809     },\r
1810     {\r
1811         "id": "970472a2.405aa8",\r
1812         "type": "failure",\r
1813         "name": "failure",\r
1814         "xml": "<outcome value='failure'>\n",\r
1815         "comments": "",\r
1816         "outputs": 1,\r
1817         "x": 5116.33332824707,\r
1818         "y": 1590.3332214355469,\r
1819         "z": "1f8b432c.7b707d",\r
1820         "wires": [\r
1821             [\r
1822                 "66cb0f3.6d8da7"\r
1823             ]\r
1824         ]\r
1825     },\r
1826     {\r
1827         "id": "66cb0f3.6d8da7",\r
1828         "type": "returnFailure",\r
1829         "name": "return failure",\r
1830         "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
1831         "comments": "",\r
1832         "x": 5259.33332824707,\r
1833         "y": 1587.3332214355469,\r
1834         "z": "1f8b432c.7b707d",\r
1835         "wires": []\r
1836     },\r
1837     {\r
1838         "id": "1f5eda96.09790d",\r
1839         "type": "block",\r
1840         "name": "block : atomic",\r
1841         "xml": "<block atomic=\"true\">",\r
1842         "atomic": "true",\r
1843         "outputs": 1,\r
1844         "x": 5262.33332824707,\r
1845         "y": 1550.3332214355469,\r
1846         "z": "1f8b432c.7b707d",\r
1847         "wires": [\r
1848             [\r
1849                 "a035c695.e5c6c8",\r
1850                 "ce893d50.59c348"\r
1851             ]\r
1852         ]\r
1853     },\r
1854     {\r
1855         "id": "a035c695.e5c6c8",\r
1856         "type": "set",\r
1857         "name": "set pnf-name",\r
1858         "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
1859         "comments": "",\r
1860         "x": 5456.33332824707,\r
1861         "y": 1553.3333435058594,\r
1862         "z": "1f8b432c.7b707d",\r
1863         "wires": []\r
1864     },\r
1865     {\r
1866         "id": "74df18ed.a4e518",\r
1867         "type": "execute",\r
1868         "name": "execute properties",\r
1869         "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
1870         "comments": "",\r
1871         "outputs": 1,\r
1872         "x": 1054.3333282470703,\r
1873         "y": 257.3333435058594,\r
1874         "z": "1f8b432c.7b707d",\r
1875         "wires": [\r
1876             []\r
1877         ]\r
1878     },\r
1879     {\r
1880         "id": "2078a502.9da27a",\r
1881         "type": "for",\r
1882         "name": "for each relationship",\r
1883         "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1884         "comments": "",\r
1885         "outputs": 1,\r
1886         "x": 5524.33332824707,\r
1887         "y": 1304.3333435058594,\r
1888         "z": "1f8b432c.7b707d",\r
1889         "wires": [\r
1890             [\r
1891                 "34f7a0cd.8f1da"\r
1892             ]\r
1893         ]\r
1894     },\r
1895     {\r
1896         "id": "34f7a0cd.8f1da",\r
1897         "type": "switchNode",\r
1898         "name": "switch related-to",\r
1899         "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1900         "comments": "",\r
1901         "outputs": 1,\r
1902         "x": 5730.33332824707,\r
1903         "y": 1304.3333435058594,\r
1904         "z": "1f8b432c.7b707d",\r
1905         "wires": [\r
1906             [\r
1907                 "9675c47c.3f1e28"\r
1908             ]\r
1909         ]\r
1910     },\r
1911     {\r
1912         "id": "9675c47c.3f1e28",\r
1913         "type": "outcome",\r
1914         "name": "tunnel-termination-point",\r
1915         "xml": "<outcome value='tunnel-termination-point'>\n",\r
1916         "comments": "",\r
1917         "outputs": 1,\r
1918         "x": 5945.61897277832,\r
1919         "y": 1304.1551208496094,\r
1920         "z": "1f8b432c.7b707d",\r
1921         "wires": [\r
1922             [\r
1923                 "c3bcfe29.7893b"\r
1924             ]\r
1925         ]\r
1926     },\r
1927     {\r
1928         "id": "c3bcfe29.7893b",\r
1929         "type": "block",\r
1930         "name": "block : atomic",\r
1931         "xml": "<block atomic=\"true\">",\r
1932         "atomic": "true",\r
1933         "outputs": 1,\r
1934         "x": 6152.45051574707,\r
1935         "y": 1304.6736755371094,\r
1936         "z": "1f8b432c.7b707d",\r
1937         "wires": [\r
1938             [\r
1939                 "69e0123c.36df34",\r
1940                 "c9b70802.7fae28",\r
1941                 "bff980ae.51a118"\r
1942             ]\r
1943         ]\r
1944     },\r
1945     {\r
1946         "id": "69e0123c.36df34",\r
1947         "type": "set",\r
1948         "name": "set source ttp-id",\r
1949         "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
1950         "comments": "",\r
1951         "x": 6367.45051574707,\r
1952         "y": 1266.6736755371094,\r
1953         "z": "1f8b432c.7b707d",\r
1954         "wires": []\r
1955     },\r
1956     {\r
1957         "id": "c9b70802.7fae28",\r
1958         "type": "get-resource",\r
1959         "name": "get-resource src TTP",\r
1960         "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
1961         "comments": "",\r
1962         "outputs": 1,\r
1963         "x": 6364.45051574707,\r
1964         "y": 1305.6736755371094,\r
1965         "z": "1f8b432c.7b707d",\r
1966         "wires": [\r
1967             [\r
1968                 "f008b798.fbfc48"\r
1969             ]\r
1970         ]\r
1971     },\r
1972     {\r
1973         "id": "bff980ae.51a118",\r
1974         "type": "break",\r
1975         "name": "break",\r
1976         "xml": "<break>\n",\r
1977         "comments": "",\r
1978         "x": 6319.95051574707,\r
1979         "y": 1347.6736755371094,\r
1980         "z": "1f8b432c.7b707d",\r
1981         "wires": []\r
1982     },\r
1983     {\r
1984         "id": "f008b798.fbfc48",\r
1985         "type": "success",\r
1986         "name": "success",\r
1987         "xml": "<outcome value='success'>\n",\r
1988         "comments": "",\r
1989         "outputs": 1,\r
1990         "x": 6544.95051574707,\r
1991         "y": 1304.6736755371094,\r
1992         "z": "1f8b432c.7b707d",\r
1993         "wires": [\r
1994             [\r
1995                 "d5a58693.57d22"\r
1996             ]\r
1997         ]\r
1998     },\r
1999     {\r
2000         "id": "d5a58693.57d22",\r
2001         "type": "block",\r
2002         "name": "block : atomic",\r
2003         "xml": "<block atomic=\"true\">",\r
2004         "atomic": "true",\r
2005         "outputs": 1,\r
2006         "x": 6702.95051574707,\r
2007         "y": 1304.6736755371094,\r
2008         "z": "1f8b432c.7b707d",\r
2009         "wires": [\r
2010             [\r
2011                 "396517b4.b44f88"\r
2012             ]\r
2013         ]\r
2014     },\r
2015     {\r
2016         "id": "396517b4.b44f88",\r
2017         "type": "set",\r
2018         "name": "set source tunnel tp ip",\r
2019         "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2020         "comments": "",\r
2021         "x": 6909.95051574707,\r
2022         "y": 1304.6736755371094,\r
2023         "z": "1f8b432c.7b707d",\r
2024         "wires": []\r
2025     },\r
2026     {\r
2027         "id": "a9a1085f.9d214",\r
2028         "type": "for",\r
2029         "name": "for each relationship",\r
2030         "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2031         "comments": "",\r
2032         "outputs": 1,\r
2033         "x": 5521.33332824707,\r
2034         "y": 2173.333465576172,\r
2035         "z": "1f8b432c.7b707d",\r
2036         "wires": [\r
2037             [\r
2038                 "a77b3a4c.0b52a"\r
2039             ]\r
2040         ]\r
2041     },\r
2042     {\r
2043         "id": "a77b3a4c.0b52a",\r
2044         "type": "switchNode",\r
2045         "name": "switch related-to",\r
2046         "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2047         "comments": "",\r
2048         "outputs": 1,\r
2049         "x": 5727.33332824707,\r
2050         "y": 2173.333465576172,\r
2051         "z": "1f8b432c.7b707d",\r
2052         "wires": [\r
2053             [\r
2054                 "db3ff85.e969d08"\r
2055             ]\r
2056         ]\r
2057     },\r
2058     {\r
2059         "id": "db3ff85.e969d08",\r
2060         "type": "outcome",\r
2061         "name": "tunnel-termination-point",\r
2062         "xml": "<outcome value='tunnel-termination-point'>\n",\r
2063         "comments": "",\r
2064         "outputs": 1,\r
2065         "x": 5942.61897277832,\r
2066         "y": 2173.155242919922,\r
2067         "z": "1f8b432c.7b707d",\r
2068         "wires": [\r
2069             [\r
2070                 "9bb2d2a8.a44c98"\r
2071             ]\r
2072         ]\r
2073     },\r
2074     {\r
2075         "id": "9bb2d2a8.a44c98",\r
2076         "type": "block",\r
2077         "name": "block : atomic",\r
2078         "xml": "<block atomic=\"true\">",\r
2079         "atomic": "true",\r
2080         "outputs": 1,\r
2081         "x": 6149.45051574707,\r
2082         "y": 2173.673797607422,\r
2083         "z": "1f8b432c.7b707d",\r
2084         "wires": [\r
2085             [\r
2086                 "c3db954c.458008",\r
2087                 "bccacc6d.699c5",\r
2088                 "cc6698ed.a3038"\r
2089             ]\r
2090         ]\r
2091     },\r
2092     {\r
2093         "id": "c3db954c.458008",\r
2094         "type": "set",\r
2095         "name": "set destination ttp-id",\r
2096         "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
2097         "comments": "",\r
2098         "x": 6364.45051574707,\r
2099         "y": 2135.673797607422,\r
2100         "z": "1f8b432c.7b707d",\r
2101         "wires": []\r
2102     },\r
2103     {\r
2104         "id": "bccacc6d.699c5",\r
2105         "type": "get-resource",\r
2106         "name": "get-resource src TTP",\r
2107         "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
2108         "comments": "",\r
2109         "outputs": 1,\r
2110         "x": 6361.45051574707,\r
2111         "y": 2174.673797607422,\r
2112         "z": "1f8b432c.7b707d",\r
2113         "wires": [\r
2114             [\r
2115                 "534b81c9.17a2c"\r
2116             ]\r
2117         ]\r
2118     },\r
2119     {\r
2120         "id": "cc6698ed.a3038",\r
2121         "type": "break",\r
2122         "name": "break",\r
2123         "xml": "<break>\n",\r
2124         "comments": "",\r
2125         "x": 6316.95051574707,\r
2126         "y": 2216.673797607422,\r
2127         "z": "1f8b432c.7b707d",\r
2128         "wires": []\r
2129     },\r
2130     {\r
2131         "id": "534b81c9.17a2c",\r
2132         "type": "success",\r
2133         "name": "success",\r
2134         "xml": "<outcome value='success'>\n",\r
2135         "comments": "",\r
2136         "outputs": 1,\r
2137         "x": 6541.95051574707,\r
2138         "y": 2173.673797607422,\r
2139         "z": "1f8b432c.7b707d",\r
2140         "wires": [\r
2141             [\r
2142                 "faa75b91.1af87"\r
2143             ]\r
2144         ]\r
2145     },\r
2146     {\r
2147         "id": "faa75b91.1af87",\r
2148         "type": "block",\r
2149         "name": "block : atomic",\r
2150         "xml": "<block atomic=\"true\">",\r
2151         "atomic": "true",\r
2152         "outputs": 1,\r
2153         "x": 6699.95051574707,\r
2154         "y": 2173.673797607422,\r
2155         "z": "1f8b432c.7b707d",\r
2156         "wires": [\r
2157             [\r
2158                 "ba3c4c7d.18cfc"\r
2159             ]\r
2160         ]\r
2161     },\r
2162     {\r
2163         "id": "ba3c4c7d.18cfc",\r
2164         "type": "set",\r
2165         "name": "set destination tunnel tp ip",\r
2166         "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2167         "comments": "",\r
2168         "x": 6906.95051574707,\r
2169         "y": 2173.673797607422,\r
2170         "z": "1f8b432c.7b707d",\r
2171         "wires": []\r
2172     },\r
2173     {\r
2174         "id": "eae40c98.29734",\r
2175         "type": "get-resource",\r
2176         "name": "get-resource src pnf",\r
2177         "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
2178         "comments": "",\r
2179         "outputs": 1,\r
2180         "x": 5437.33332824707,\r
2181         "y": 780.3333435058594,\r
2182         "z": "1f8b432c.7b707d",\r
2183         "wires": [\r
2184             [\r
2185                 "6fc687f8.9a3218",\r
2186                 "d8b6607b.4ee438",\r
2187                 "5c6d770a.c0fbc8"\r
2188             ]\r
2189         ]\r
2190     },\r
2191     {\r
2192         "id": "6fc687f8.9a3218",\r
2193         "type": "success",\r
2194         "name": "success",\r
2195         "xml": "<outcome value='success'>\n",\r
2196         "comments": "",\r
2197         "outputs": 1,\r
2198         "x": 5632.833450317383,\r
2199         "y": 732.3333435058594,\r
2200         "z": "1f8b432c.7b707d",\r
2201         "wires": [\r
2202             [\r
2203                 "ee2e2b2e.648d3"\r
2204             ]\r
2205         ]\r
2206     },\r
2207     {\r
2208         "id": "d8b6607b.4ee438",\r
2209         "type": "not-found",\r
2210         "name": "not-found",\r
2211         "xml": "<outcome value='not-found'>\n",\r
2212         "comments": "",\r
2213         "outputs": 1,\r
2214         "x": 5624.833450317383,\r
2215         "y": 787.3333435058594,\r
2216         "z": "1f8b432c.7b707d",\r
2217         "wires": [\r
2218             [\r
2219                 "7003cbf4.1f7a3c"\r
2220             ]\r
2221         ]\r
2222     },\r
2223     {\r
2224         "id": "5c6d770a.c0fbc8",\r
2225         "type": "other",\r
2226         "name": "other",\r
2227         "xml": "<outcome value='Other'>\n",\r
2228         "comments": "",\r
2229         "outputs": 1,\r
2230         "x": 5629.833450317383,\r
2231         "y": 844.3333435058594,\r
2232         "z": "1f8b432c.7b707d",\r
2233         "wires": [\r
2234             [\r
2235                 "4cd59828.2f4188"\r
2236             ]\r
2237         ]\r
2238     },\r
2239     {\r
2240         "id": "4cd59828.2f4188",\r
2241         "type": "returnFailure",\r
2242         "name": "return failure",\r
2243         "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
2244         "comments": "",\r
2245         "x": 5781.833450317383,\r
2246         "y": 845.3333435058594,\r
2247         "z": "1f8b432c.7b707d",\r
2248         "wires": []\r
2249     },\r
2250     {\r
2251         "id": "7003cbf4.1f7a3c",\r
2252         "type": "returnFailure",\r
2253         "name": "return failure",\r
2254         "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
2255         "comments": "",\r
2256         "x": 5792.833450317383,\r
2257         "y": 790.3333435058594,\r
2258         "z": "1f8b432c.7b707d",\r
2259         "wires": []\r
2260     },\r
2261     {\r
2262         "id": "ee2e2b2e.648d3",\r
2263         "type": "block",\r
2264         "name": "block",\r
2265         "xml": "<block>\n",\r
2266         "atomic": "false",\r
2267         "comments": "",\r
2268         "outputs": 1,\r
2269         "x": 5777.215774536133,\r
2270         "y": 729.989013671875,\r
2271         "z": "1f8b432c.7b707d",\r
2272         "wires": [\r
2273             [\r
2274                 "76f14509.f7c67c"\r
2275             ]\r
2276         ]\r
2277     },\r
2278     {\r
2279         "id": "85f22617.8c77a",\r
2280         "type": "outcome",\r
2281         "name": "esr-thirdparty-sdnc",\r
2282         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2283         "comments": "",\r
2284         "outputs": 1,\r
2285         "x": 6359.33332824707,\r
2286         "y": 748.3333435058594,\r
2287         "z": "1f8b432c.7b707d",\r
2288         "wires": [\r
2289             [\r
2290                 "ee84357b.71ae88"\r
2291             ]\r
2292         ]\r
2293     },\r
2294     {\r
2295         "id": "ee84357b.71ae88",\r
2296         "type": "block",\r
2297         "name": "block : atomic",\r
2298         "xml": "<block atomic=\"true\">",\r
2299         "atomic": "true",\r
2300         "outputs": 1,\r
2301         "x": 6536.33332824707,\r
2302         "y": 740.3333435058594,\r
2303         "z": "1f8b432c.7b707d",\r
2304         "wires": [\r
2305             [\r
2306                 "cd9128cb.f1f28",\r
2307                 "e38e7099.4c1268"\r
2308             ]\r
2309         ]\r
2310     },\r
2311     {\r
2312         "id": "76f14509.f7c67c",\r
2313         "type": "for",\r
2314         "name": "for each relationship",\r
2315         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
2316         "comments": "",\r
2317         "outputs": 1,\r
2318         "x": 5961.33332824707,\r
2319         "y": 744.3333435058594,\r
2320         "z": "1f8b432c.7b707d",\r
2321         "wires": [\r
2322             [\r
2323                 "c8a88cd4.d8034"\r
2324             ]\r
2325         ]\r
2326     },\r
2327     {\r
2328         "id": "c8a88cd4.d8034",\r
2329         "type": "switchNode",\r
2330         "name": "switch related-to",\r
2331         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2332         "comments": "",\r
2333         "outputs": 1,\r
2334         "x": 6156.33332824707,\r
2335         "y": 744.3333435058594,\r
2336         "z": "1f8b432c.7b707d",\r
2337         "wires": [\r
2338             [\r
2339                 "85f22617.8c77a",\r
2340                 "bf124b63.5099c"\r
2341             ]\r
2342         ]\r
2343     },\r
2344     {\r
2345         "id": "cd9128cb.f1f28",\r
2346         "type": "set",\r
2347         "name": "set esr-thirdparty-sdnc domainA id",\r
2348         "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
2349         "comments": "",\r
2350         "x": 6774.33332824707,\r
2351         "y": 695.3333435058594,\r
2352         "z": "1f8b432c.7b707d",\r
2353         "wires": []\r
2354     },\r
2355     {\r
2356         "id": "60adc82e.ec907",\r
2357         "type": "success",\r
2358         "name": "success",\r
2359         "xml": "<outcome value='success'>\n",\r
2360         "comments": "",\r
2361         "outputs": 1,\r
2362         "x": 6954.33332824707,\r
2363         "y": 738.3333435058594,\r
2364         "z": "1f8b432c.7b707d",\r
2365         "wires": [\r
2366             [\r
2367                 "dbbdd720.ee73d"\r
2368             ]\r
2369         ]\r
2370     },\r
2371     {\r
2372         "id": "ef6befb7.25ec38",\r
2373         "type": "not-found",\r
2374         "name": "not-found",\r
2375         "xml": "<outcome value='not-found'>\n",\r
2376         "comments": "",\r
2377         "outputs": 1,\r
2378         "x": 6946.33332824707,\r
2379         "y": 793.3333435058594,\r
2380         "z": "1f8b432c.7b707d",\r
2381         "wires": [\r
2382             [\r
2383                 "3ad0c537.936882"\r
2384             ]\r
2385         ]\r
2386     },\r
2387     {\r
2388         "id": "2514309d.ea219",\r
2389         "type": "other",\r
2390         "name": "other",\r
2391         "xml": "<outcome value='Other'>\n",\r
2392         "comments": "",\r
2393         "outputs": 1,\r
2394         "x": 6951.33332824707,\r
2395         "y": 850.3333435058594,\r
2396         "z": "1f8b432c.7b707d",\r
2397         "wires": [\r
2398             [\r
2399                 "2203278b.ee8d48"\r
2400             ]\r
2401         ]\r
2402     },\r
2403     {\r
2404         "id": "2203278b.ee8d48",\r
2405         "type": "returnFailure",\r
2406         "name": "return failure",\r
2407         "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
2408         "comments": "",\r
2409         "x": 7103.33332824707,\r
2410         "y": 851.3333435058594,\r
2411         "z": "1f8b432c.7b707d",\r
2412         "wires": []\r
2413     },\r
2414     {\r
2415         "id": "3ad0c537.936882",\r
2416         "type": "returnFailure",\r
2417         "name": "return failure",\r
2418         "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
2419         "comments": "",\r
2420         "x": 7114.33332824707,\r
2421         "y": 796.3333435058594,\r
2422         "z": "1f8b432c.7b707d",\r
2423         "wires": []\r
2424     },\r
2425     {\r
2426         "id": "dbbdd720.ee73d",\r
2427         "type": "block",\r
2428         "name": "block",\r
2429         "xml": "<block>\n",\r
2430         "atomic": "false",\r
2431         "comments": "",\r
2432         "outputs": 1,\r
2433         "x": 7098.71565246582,\r
2434         "y": 735.989013671875,\r
2435         "z": "1f8b432c.7b707d",\r
2436         "wires": [\r
2437             [\r
2438                 "3a2f5b08.ae9d74"\r
2439             ]\r
2440         ]\r
2441     },\r
2442     {\r
2443         "id": "3a2f5b08.ae9d74",\r
2444         "type": "set",\r
2445         "name": "set controller domainA data",\r
2446         "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
2447         "comments": "",\r
2448         "x": 7313.33332824707,\r
2449         "y": 732.3333435058594,\r
2450         "z": "1f8b432c.7b707d",\r
2451         "wires": []\r
2452     },\r
2453     {\r
2454         "id": "ce893d50.59c348",\r
2455         "type": "get-resource",\r
2456         "name": "get-resource src pnf",\r
2457         "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
2458         "comments": "",\r
2459         "outputs": 1,\r
2460         "x": 5478.33332824707,\r
2461         "y": 1621.3333435058594,\r
2462         "z": "1f8b432c.7b707d",\r
2463         "wires": [\r
2464             [\r
2465                 "11d6f276.27b5f6",\r
2466                 "da24ed5d.ec28b8",\r
2467                 "60f19c6c.a06434"\r
2468             ]\r
2469         ]\r
2470     },\r
2471     {\r
2472         "id": "11d6f276.27b5f6",\r
2473         "type": "success",\r
2474         "name": "success",\r
2475         "xml": "<outcome value='success'>\n",\r
2476         "comments": "",\r
2477         "outputs": 1,\r
2478         "x": 5673.833450317383,\r
2479         "y": 1573.3333435058594,\r
2480         "z": "1f8b432c.7b707d",\r
2481         "wires": [\r
2482             [\r
2483                 "888d9251.ae059"\r
2484             ]\r
2485         ]\r
2486     },\r
2487     {\r
2488         "id": "da24ed5d.ec28b8",\r
2489         "type": "not-found",\r
2490         "name": "not-found",\r
2491         "xml": "<outcome value='not-found'>\n",\r
2492         "comments": "",\r
2493         "outputs": 1,\r
2494         "x": 5665.833450317383,\r
2495         "y": 1628.3333435058594,\r
2496         "z": "1f8b432c.7b707d",\r
2497         "wires": [\r
2498             [\r
2499                 "6f593c1a.aa4654"\r
2500             ]\r
2501         ]\r
2502     },\r
2503     {\r
2504         "id": "60f19c6c.a06434",\r
2505         "type": "other",\r
2506         "name": "other",\r
2507         "xml": "<outcome value='Other'>\n",\r
2508         "comments": "",\r
2509         "outputs": 1,\r
2510         "x": 5670.833450317383,\r
2511         "y": 1685.3333435058594,\r
2512         "z": "1f8b432c.7b707d",\r
2513         "wires": [\r
2514             [\r
2515                 "9d43ea5b.7c699"\r
2516             ]\r
2517         ]\r
2518     },\r
2519     {\r
2520         "id": "9d43ea5b.7c699",\r
2521         "type": "returnFailure",\r
2522         "name": "return failure",\r
2523         "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
2524         "comments": "",\r
2525         "x": 5822.833450317383,\r
2526         "y": 1686.3333435058594,\r
2527         "z": "1f8b432c.7b707d",\r
2528         "wires": []\r
2529     },\r
2530     {\r
2531         "id": "6f593c1a.aa4654",\r
2532         "type": "returnFailure",\r
2533         "name": "return failure",\r
2534         "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
2535         "comments": "",\r
2536         "x": 5833.833450317383,\r
2537         "y": 1631.3333435058594,\r
2538         "z": "1f8b432c.7b707d",\r
2539         "wires": []\r
2540     },\r
2541     {\r
2542         "id": "888d9251.ae059",\r
2543         "type": "block",\r
2544         "name": "block",\r
2545         "xml": "<block>\n",\r
2546         "atomic": "false",\r
2547         "comments": "",\r
2548         "outputs": 1,\r
2549         "x": 5818.215774536133,\r
2550         "y": 1570.989013671875,\r
2551         "z": "1f8b432c.7b707d",\r
2552         "wires": [\r
2553             [\r
2554                 "ca25d5e8.786f18"\r
2555             ]\r
2556         ]\r
2557     },\r
2558     {\r
2559         "id": "ad6fdb4e.87cfb",\r
2560         "type": "outcome",\r
2561         "name": "esr-thirdparty-sdnc",\r
2562         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2563         "comments": "",\r
2564         "outputs": 1,\r
2565         "x": 6400.33332824707,\r
2566         "y": 1589.3333435058594,\r
2567         "z": "1f8b432c.7b707d",\r
2568         "wires": [\r
2569             [\r
2570                 "4ceff195.e94608"\r
2571             ]\r
2572         ]\r
2573     },\r
2574     {\r
2575         "id": "4ceff195.e94608",\r
2576         "type": "block",\r
2577         "name": "block : atomic",\r
2578         "xml": "<block atomic=\"true\">",\r
2579         "atomic": "true",\r
2580         "outputs": 1,\r
2581         "x": 6577.33332824707,\r
2582         "y": 1581.3333435058594,\r
2583         "z": "1f8b432c.7b707d",\r
2584         "wires": [\r
2585             [\r
2586                 "d9a17cf0.5ffca8",\r
2587                 "76506084.c842f8"\r
2588             ]\r
2589         ]\r
2590     },\r
2591     {\r
2592         "id": "ca25d5e8.786f18",\r
2593         "type": "for",\r
2594         "name": "for each relationship",\r
2595         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
2596         "comments": "",\r
2597         "outputs": 1,\r
2598         "x": 6002.33332824707,\r
2599         "y": 1585.3333435058594,\r
2600         "z": "1f8b432c.7b707d",\r
2601         "wires": [\r
2602             [\r
2603                 "52693a86.8017bc"\r
2604             ]\r
2605         ]\r
2606     },\r
2607     {\r
2608         "id": "52693a86.8017bc",\r
2609         "type": "switchNode",\r
2610         "name": "switch related-to",\r
2611         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
2612         "comments": "",\r
2613         "outputs": 1,\r
2614         "x": 6197.33332824707,\r
2615         "y": 1585.3333435058594,\r
2616         "z": "1f8b432c.7b707d",\r
2617         "wires": [\r
2618             [\r
2619                 "ad6fdb4e.87cfb",\r
2620                 "6c3438b4.5be28"\r
2621             ]\r
2622         ]\r
2623     },\r
2624     {\r
2625         "id": "76506084.c842f8",\r
2626         "type": "execute",\r
2627         "name": "get esr-thirdparty-sdnc",\r
2628         "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
2629         "comments": "",\r
2630         "outputs": 1,\r
2631         "x": 6785.33332824707,\r
2632         "y": 1588.3333435058594,\r
2633         "z": "1f8b432c.7b707d",\r
2634         "wires": [\r
2635             [\r
2636                 "aefba90d.b82758",\r
2637                 "3df8e74b.556d28",\r
2638                 "a16ee96.560b218"\r
2639             ]\r
2640         ]\r
2641     },\r
2642     {\r
2643         "id": "d9a17cf0.5ffca8",\r
2644         "type": "set",\r
2645         "name": "set esr-thirdparty-sdnc domainB id",\r
2646         "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
2647         "comments": "",\r
2648         "x": 6815.33332824707,\r
2649         "y": 1536.3333435058594,\r
2650         "z": "1f8b432c.7b707d",\r
2651         "wires": []\r
2652     },\r
2653     {\r
2654         "id": "aefba90d.b82758",\r
2655         "type": "success",\r
2656         "name": "success",\r
2657         "xml": "<outcome value='success'>\n",\r
2658         "comments": "",\r
2659         "outputs": 1,\r
2660         "x": 6995.33332824707,\r
2661         "y": 1579.3333435058594,\r
2662         "z": "1f8b432c.7b707d",\r
2663         "wires": [\r
2664             [\r
2665                 "3639d79a.d4db38"\r
2666             ]\r
2667         ]\r
2668     },\r
2669     {\r
2670         "id": "3df8e74b.556d28",\r
2671         "type": "not-found",\r
2672         "name": "not-found",\r
2673         "xml": "<outcome value='not-found'>\n",\r
2674         "comments": "",\r
2675         "outputs": 1,\r
2676         "x": 6987.33332824707,\r
2677         "y": 1634.3333435058594,\r
2678         "z": "1f8b432c.7b707d",\r
2679         "wires": [\r
2680             [\r
2681                 "185761cf.ebd5ee"\r
2682             ]\r
2683         ]\r
2684     },\r
2685     {\r
2686         "id": "a16ee96.560b218",\r
2687         "type": "other",\r
2688         "name": "other",\r
2689         "xml": "<outcome value='Other'>\n",\r
2690         "comments": "",\r
2691         "outputs": 1,\r
2692         "x": 6992.33332824707,\r
2693         "y": 1691.3333435058594,\r
2694         "z": "1f8b432c.7b707d",\r
2695         "wires": [\r
2696             [\r
2697                 "6f08e25f.8ff0f4"\r
2698             ]\r
2699         ]\r
2700     },\r
2701     {\r
2702         "id": "6f08e25f.8ff0f4",\r
2703         "type": "returnFailure",\r
2704         "name": "return failure",\r
2705         "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
2706         "comments": "",\r
2707         "x": 7144.33332824707,\r
2708         "y": 1692.3333435058594,\r
2709         "z": "1f8b432c.7b707d",\r
2710         "wires": []\r
2711     },\r
2712     {\r
2713         "id": "185761cf.ebd5ee",\r
2714         "type": "returnFailure",\r
2715         "name": "return failure",\r
2716         "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
2717         "comments": "",\r
2718         "x": 7155.33332824707,\r
2719         "y": 1637.3333435058594,\r
2720         "z": "1f8b432c.7b707d",\r
2721         "wires": []\r
2722     },\r
2723     {\r
2724         "id": "3639d79a.d4db38",\r
2725         "type": "block",\r
2726         "name": "block",\r
2727         "xml": "<block>\n",\r
2728         "atomic": "false",\r
2729         "comments": "",\r
2730         "outputs": 1,\r
2731         "x": 7139.71565246582,\r
2732         "y": 1576.989013671875,\r
2733         "z": "1f8b432c.7b707d",\r
2734         "wires": [\r
2735             [\r
2736                 "27770afe.2fe37e"\r
2737             ]\r
2738         ]\r
2739     },\r
2740     {\r
2741         "id": "27770afe.2fe37e",\r
2742         "type": "set",\r
2743         "name": "set controller domainB data",\r
2744         "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
2745         "comments": "",\r
2746         "x": 7354.33332824707,\r
2747         "y": 1573.3333435058594,\r
2748         "z": "1f8b432c.7b707d",\r
2749         "wires": []\r
2750     },\r
2751     {\r
2752         "id": "b6502203.02c108",\r
2753         "type": "block",\r
2754         "name": "block : atomic",\r
2755         "xml": "<block atomic=\"true\">",\r
2756         "atomic": "true",\r
2757         "outputs": 1,\r
2758         "x": 351.3333282470703,\r
2759         "y": 702.3333435058594,\r
2760         "z": "1f8b432c.7b707d",\r
2761         "wires": [\r
2762             [\r
2763                 "ae72f64.7ced288",\r
2764                 "d8bf1877.11fa58"\r
2765             ]\r
2766         ]\r
2767     },\r
2768     {\r
2769         "id": "ae72f64.7ced288",\r
2770         "type": "for",\r
2771         "name": "for each allotted-resource relationship",\r
2772         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
2773         "comments": "",\r
2774         "outputs": 1,\r
2775         "x": 797.3333282470703,\r
2776         "y": 561.3333435058594,\r
2777         "z": "1f8b432c.7b707d",\r
2778         "wires": [\r
2779             [\r
2780                 "56a6a6ce.1c9e38"\r
2781             ]\r
2782         ]\r
2783     },\r
2784     {\r
2785         "id": "56a6a6ce.1c9e38",\r
2786         "type": "switchNode",\r
2787         "name": "switch related-to",\r
2788         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
2789         "comments": "",\r
2790         "outputs": 1,\r
2791         "x": 3162.3333282470703,\r
2792         "y": 543.3333435058594,\r
2793         "z": "1f8b432c.7b707d",\r
2794         "wires": [\r
2795             [\r
2796                 "a15de96b.529998"\r
2797             ]\r
2798         ]\r
2799     },\r
2800     {\r
2801         "id": "bf124b63.5099c",\r
2802         "type": "outcome",\r
2803         "name": "network-resource",\r
2804         "xml": "<outcome value='network-resource'>",\r
2805         "comments": "",\r
2806         "outputs": 1,\r
2807         "x": 6362.33332824707,\r
2808         "y": 822.3333435058594,\r
2809         "z": "1f8b432c.7b707d",\r
2810         "wires": [\r
2811             [\r
2812                 "cf9d9db9.ed34d8"\r
2813             ]\r
2814         ]\r
2815     },\r
2816     {\r
2817         "id": "cf9d9db9.ed34d8",\r
2818         "type": "block",\r
2819         "name": "block : atomic",\r
2820         "xml": "<block atomic=\"true\">",\r
2821         "atomic": "true",\r
2822         "outputs": 1,\r
2823         "x": 6539.33332824707,\r
2824         "y": 814.3333435058594,\r
2825         "z": "1f8b432c.7b707d",\r
2826         "wires": [\r
2827             [\r
2828                 "e093ed3f.1bfe98"\r
2829             ]\r
2830         ]\r
2831     },\r
2832     {\r
2833         "id": "e093ed3f.1bfe98",\r
2834         "type": "set",\r
2835         "name": "set domainA ethernet layer network-id",\r
2836         "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
2837         "comments": "",\r
2838         "x": 6774.33332824707,\r
2839         "y": 938.3333435058594,\r
2840         "z": "1f8b432c.7b707d",\r
2841         "wires": []\r
2842     },\r
2843     {\r
2844         "id": "f8b7be24.4e873",\r
2845         "type": "set",\r
2846         "name": "set domainB ethernet layer network-id",\r
2847         "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
2848         "comments": "",\r
2849         "x": 6814.33332824707,\r
2850         "y": 1778.3333435058594,\r
2851         "z": "1f8b432c.7b707d",\r
2852         "wires": []\r
2853     },\r
2854     {\r
2855         "id": "796da710.8b0ab8",\r
2856         "type": "block",\r
2857         "name": "block : atomic",\r
2858         "xml": "<block atomic=\"true\">",\r
2859         "atomic": "true",\r
2860         "outputs": 1,\r
2861         "x": 6579.33332824707,\r
2862         "y": 1654.3333435058594,\r
2863         "z": "1f8b432c.7b707d",\r
2864         "wires": [\r
2865             [\r
2866                 "f8b7be24.4e873"\r
2867             ]\r
2868         ]\r
2869     },\r
2870     {\r
2871         "id": "6c3438b4.5be28",\r
2872         "type": "outcome",\r
2873         "name": "network-resource",\r
2874         "xml": "<outcome value='network-resource'>",\r
2875         "comments": "",\r
2876         "outputs": 1,\r
2877         "x": 6402.33332824707,\r
2878         "y": 1662.3333435058594,\r
2879         "z": "1f8b432c.7b707d",\r
2880         "wires": [\r
2881             [\r
2882                 "796da710.8b0ab8"\r
2883             ]\r
2884         ]\r
2885     },\r
2886     {\r
2887         "id": "6ab22d0b.607efc",\r
2888         "type": "set",\r
2889         "name": "set the max bandwidth",\r
2890         "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
2891         "comments": "",\r
2892         "x": 4354.33332824707,\r
2893         "y": 598.3333435058594,\r
2894         "z": "1f8b432c.7b707d",\r
2895         "wires": []\r
2896     },\r
2897     {\r
2898         "id": "45cbb167.26c3e8",\r
2899         "type": "execute",\r
2900         "name": "execute UUID generator for ethernet-service-name",\r
2901         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
2902         "comments": "",\r
2903         "outputs": 1,\r
2904         "x": 4376.33332824707,\r
2905         "y": 733.3333435058594,\r
2906         "z": "1f8b432c.7b707d",\r
2907         "wires": [\r
2908             []\r
2909         ]\r
2910     },\r
2911     {\r
2912         "id": "586bfbbd.46cc14",\r
2913         "type": "execute",\r
2914         "name": "execute UUID generator for otn-tunnel-name",\r
2915         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
2916         "comments": "",\r
2917         "outputs": 1,\r
2918         "x": 4357.33332824707,\r
2919         "y": 783.3333435058594,\r
2920         "z": "1f8b432c.7b707d",\r
2921         "wires": [\r
2922             []\r
2923         ]\r
2924     },\r
2925     {\r
2926         "id": "5c997953.c5b528",\r
2927         "type": "for",\r
2928         "name": "for each allotted-resource",\r
2929         "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
2930         "comments": "",\r
2931         "outputs": 1,\r
2932         "x": 1967.3333282470703,\r
2933         "y": 331.3333435058594,\r
2934         "z": "1f8b432c.7b707d",\r
2935         "wires": [\r
2936             [\r
2937                 "e42627f6.b8767",\r
2938                 "b14c900.06de0f"\r
2939             ]\r
2940         ]\r
2941     },\r
2942     {\r
2943         "id": "e42627f6.b8767",\r
2944         "type": "set",\r
2945         "name": "set the current allotted-resource-id",\r
2946         "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
2947         "comments": "",\r
2948         "x": 2232.3333282470703,\r
2949         "y": 254.33334350585938,\r
2950         "z": "1f8b432c.7b707d",\r
2951         "wires": []\r
2952     },\r
2953     {\r
2954         "id": "9446dea5.335408",\r
2955         "type": "set",\r
2956         "name": "set query_param",\r
2957         "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
2958         "comments": "",\r
2959         "x": 4274.33332824707,\r
2960         "y": 2233.3333435058594,\r
2961         "z": "1f8b432c.7b707d",\r
2962         "wires": []\r
2963     },\r
2964     {\r
2965         "id": "adfb9d4f.ef8fd8",\r
2966         "type": "set",\r
2967         "name": "unset parameters",\r
2968         "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
2969         "comments": "",\r
2970         "x": 4257.33332824707,\r
2971         "y": 3991.3333435058594,\r
2972         "z": "1f8b432c.7b707d",\r
2973         "wires": []\r
2974     },\r
2975     {\r
2976         "id": "2a7b5024.c32ac8",\r
2977         "type": "set",\r
2978         "name": "set new ethernet-service-name",\r
2979         "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
2980         "comments": "",\r
2981         "x": 4314.33332824707,\r
2982         "y": 828.3333435058594,\r
2983         "z": "1f8b432c.7b707d",\r
2984         "wires": []\r
2985     },\r
2986     {\r
2987         "id": "e65eb704.1a5ee",\r
2988         "type": "for",\r
2989         "name": "for vidx..tmp.otninfo_length[]",\r
2990         "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",\r
2991         "comments": "",\r
2992         "outputs": 1,\r
2993         "x": 4303.33332824707,\r
2994         "y": 2473.3333435058594,\r
2995         "z": "1f8b432c.7b707d",\r
2996         "wires": [\r
2997             [\r
2998                 "70d68732.b14c"\r
2999             ]\r
3000         ]\r
3001     },\r
3002     {\r
3003         "id": "9fe431f7.1a7068",\r
3004         "type": "save",\r
3005         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
3006         "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\n",\r
3007         "comments": "",\r
3008         "outputs": 1,\r
3009         "x": 5431.33332824707,\r
3010         "y": 2980.3333435058594,\r
3011         "z": "1f8b432c.7b707d",\r
3012         "wires": [\r
3013             [\r
3014                 "9da9527c.fe7dd"\r
3015             ]\r
3016         ]\r
3017     },\r
3018     {\r
3019         "id": "36a781af.2ddb3e",\r
3020         "type": "save",\r
3021         "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
3022         "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
3023         "comments": "",\r
3024         "outputs": 1,\r
3025         "x": 6003.83332824707,\r
3026         "y": 3084.3333435058594,\r
3027         "z": "1f8b432c.7b707d",\r
3028         "wires": [\r
3029             []\r
3030         ]\r
3031     },\r
3032     {\r
3033         "id": "9da9527c.fe7dd",\r
3034         "type": "success",\r
3035         "name": "success",\r
3036         "xml": "<outcome value='success'>\n",\r
3037         "comments": "",\r
3038         "outputs": 1,\r
3039         "x": 5737.33332824707,\r
3040         "y": 2979.3333435058594,\r
3041         "z": "1f8b432c.7b707d",\r
3042         "wires": [\r
3043             [\r
3044                 "3d5ff1a1.a7195e"\r
3045             ]\r
3046         ]\r
3047     },\r
3048     {\r
3049         "id": "3d5ff1a1.a7195e",\r
3050         "type": "block",\r
3051         "name": "block",\r
3052         "xml": "<block>\n",\r
3053         "atomic": "false",\r
3054         "comments": "",\r
3055         "outputs": 1,\r
3056         "x": 5946.83332824707,\r
3057         "y": 2979.5872497558594,\r
3058         "z": "1f8b432c.7b707d",\r
3059         "wires": [\r
3060             []\r
3061         ]\r
3062     },\r
3063     {\r
3064         "id": "dfe4a3e1.5f7a28",\r
3065         "type": "execute",\r
3066         "name": "execute UUID generator for vpn-binding $otnidx",\r
3067         "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
3068         "comments": "",\r
3069         "outputs": 1,\r
3070         "x": 5467.33332824707,\r
3071         "y": 2444.3333435058594,\r
3072         "z": "1f8b432c.7b707d",\r
3073         "wires": [\r
3074             []\r
3075         ]\r
3076     },\r
3077     {\r
3078         "id": "d4a2c427.226738",\r
3079         "type": "switchNode",\r
3080         "name": "switch otnidx == 0",\r
3081         "xml": "<switch test='`$otnidx == 0`'>\n",\r
3082         "comments": "",\r
3083         "outputs": 1,\r
3084         "x": 5340.33332824707,\r
3085         "y": 3097.3333435058594,\r
3086         "z": "1f8b432c.7b707d",\r
3087         "wires": [\r
3088             [\r
3089                 "e5869a7d.a035e8",\r
3090                 "4f7fb15.bbc855"\r
3091             ]\r
3092         ]\r
3093     },\r
3094     {\r
3095         "id": "e5869a7d.a035e8",\r
3096         "type": "outcomeTrue",\r
3097         "name": "true",\r
3098         "xml": "<outcome value='true'>\n",\r
3099         "comments": "",\r
3100         "outputs": 1,\r
3101         "x": 5523.33332824707,\r
3102         "y": 3097.3333435058594,\r
3103         "z": "1f8b432c.7b707d",\r
3104         "wires": [\r
3105             [\r
3106                 "11b27338.362ff5"\r
3107             ]\r
3108         ]\r
3109     },\r
3110     {\r
3111         "id": "4f7fb15.bbc855",\r
3112         "type": "outcomeFalse",\r
3113         "name": "false",\r
3114         "xml": "<outcome value='false'>\n",\r
3115         "comments": "",\r
3116         "outputs": 1,\r
3117         "x": 5348.33332824707,\r
3118         "y": 3244.3333435058594,\r
3119         "z": "1f8b432c.7b707d",\r
3120         "wires": [\r
3121             [\r
3122                 "5e731523.edaba4"\r
3123             ]\r
3124         ]\r
3125     },\r
3126     {\r
3127         "id": "df75995c.9d6d7",\r
3128         "type": "switchNode",\r
3129         "name": "switch otnidx == last",\r
3130         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",\r
3131         "comments": "",\r
3132         "outputs": 1,\r
3133         "x": 5689.33332824707,\r
3134         "y": 3325.3333435058594,\r
3135         "z": "1f8b432c.7b707d",\r
3136         "wires": [\r
3137             [\r
3138                 "8d4f5504.9d4348",\r
3139                 "dc78732e.2c80d8"\r
3140             ]\r
3141         ]\r
3142     },\r
3143     {\r
3144         "id": "8d4f5504.9d4348",\r
3145         "type": "outcomeTrue",\r
3146         "name": "true",\r
3147         "xml": "<outcome value='true'>\n",\r
3148         "comments": "",\r
3149         "outputs": 1,\r
3150         "x": 5874.33332824707,\r
3151         "y": 3326.3333435058594,\r
3152         "z": "1f8b432c.7b707d",\r
3153         "wires": [\r
3154             [\r
3155                 "48ad14bc.45fb34"\r
3156             ]\r
3157         ]\r
3158     },\r
3159     {\r
3160         "id": "dc78732e.2c80d8",\r
3161         "type": "outcomeFalse",\r
3162         "name": "false",\r
3163         "xml": "<outcome value='false'>\n",\r
3164         "comments": "",\r
3165         "outputs": 1,\r
3166         "x": 5893.33332824707,\r
3167         "y": 3592.3333435058594,\r
3168         "z": "1f8b432c.7b707d",\r
3169         "wires": [\r
3170             [\r
3171                 "1d8019eb.b8f316"\r
3172             ]\r
3173         ]\r
3174     },\r
3175     {\r
3176         "id": "c9167223.c48c5",\r
3177         "type": "save",\r
3178         "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
3179         "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
3180         "comments": "",\r
3181         "outputs": 1,\r
3182         "x": 6304.33332824707,\r
3183         "y": 3327.3333435058594,\r
3184         "z": "1f8b432c.7b707d",\r
3185         "wires": [\r
3186             []\r
3187         ]\r
3188     },\r
3189     {\r
3190         "id": "82593f3c.44e9a",\r
3191         "type": "execute",\r
3192         "name": "execute UUID generator for connectivity domain otnidx",\r
3193         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
3194         "comments": "",\r
3195         "outputs": 1,\r
3196         "x": 6378.33332824707,\r
3197         "y": 3625.3333435058594,\r
3198         "z": "1f8b432c.7b707d",\r
3199         "wires": [\r
3200             []\r
3201         ]\r
3202     },\r
3203     {\r
3204         "id": "a5aff8c7.dcc0d",\r
3205         "type": "save",\r
3206         "name": "save connectivity resource in AAI",\r
3207         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3208         "comments": "",\r
3209         "outputs": 1,\r
3210         "x": 6314.33332824707,\r
3211         "y": 3676.3333435058594,\r
3212         "z": "1f8b432c.7b707d",\r
3213         "wires": [\r
3214             []\r
3215         ]\r
3216     },\r
3217     {\r
3218         "id": "48179575.56acdc",\r
3219         "type": "save",\r
3220         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3221         "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
3222         "comments": "",\r
3223         "outputs": 1,\r
3224         "x": 6443.33332824707,\r
3225         "y": 3726.3333435058594,\r
3226         "z": "1f8b432c.7b707d",\r
3227         "wires": [\r
3228             []\r
3229         ]\r
3230     },\r
3231     {\r
3232         "id": "4fc515a8.51d2e4",\r
3233         "type": "comment",\r
3234         "name": "connectivity has not been created for middle domains, so we have to create one",\r
3235         "info": "",\r
3236         "comments": "",\r
3237         "x": 6453.33332824707,\r
3238         "y": 3569.3333435058594,\r
3239         "z": "1f8b432c.7b707d",\r
3240         "wires": []\r
3241     },\r
3242     {\r
3243         "id": "c0955063.7c75f",\r
3244         "type": "save",\r
3245         "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
3246         "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
3247         "comments": "",\r
3248         "outputs": 1,\r
3249         "x": 6411.33332824707,\r
3250         "y": 3785.3333435058594,\r
3251         "z": "1f8b432c.7b707d",\r
3252         "wires": [\r
3253             []\r
3254         ]\r
3255     },\r
3256     {\r
3257         "id": "1d8019eb.b8f316",\r
3258         "type": "block",\r
3259         "name": "block : atomic",\r
3260         "xml": "<block atomic='true'>",\r
3261         "atomic": "true",\r
3262         "comments": "",\r
3263         "outputs": 1,\r
3264         "x": 6050.33332824707,\r
3265         "y": 3593.3333435058594,\r
3266         "z": "1f8b432c.7b707d",\r
3267         "wires": [\r
3268             [\r
3269                 "82593f3c.44e9a",\r
3270                 "a5aff8c7.dcc0d",\r
3271                 "48179575.56acdc",\r
3272                 "c0955063.7c75f",\r
3273                 "ab63214f.ab52e"\r
3274             ]\r
3275         ]\r
3276     },\r
3277     {\r
3278         "id": "70d68732.b14c",\r
3279         "type": "block",\r
3280         "name": "block : atomic",\r
3281         "xml": "<block atomic='true'>",\r
3282         "atomic": "true",\r
3283         "comments": "",\r
3284         "outputs": 1,\r
3285         "x": 4560.33332824707,\r
3286         "y": 2473.3333435058594,\r
3287         "z": "1f8b432c.7b707d",\r
3288         "wires": [\r
3289             [\r
3290                 "dfe4a3e1.5f7a28",\r
3291                 "9fe431f7.1a7068",\r
3292                 "d4a2c427.226738",\r
3293                 "6c1ad513.ca11a4",\r
3294                 "ddb6267f.2382f",\r
3295                 "39bce85.43eb118",\r
3296                 "e250e406.45b0b8"\r
3297             ]\r
3298         ]\r
3299     },\r
3300     {\r
3301         "id": "7dffa406.706e6c",\r
3302         "type": "set",\r
3303         "name": "set attachment_param domain A",\r
3304         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",\r
3305         "comments": "",\r
3306         "x": 5928.33332824707,\r
3307         "y": 3141.3333435058594,\r
3308         "z": "1f8b432c.7b707d",\r
3309         "wires": []\r
3310     },\r
3311     {\r
3312         "id": "7214f15c.14004",\r
3313         "type": "execute",\r
3314         "name": "execute RestApiCallNode domainA UNI Coloring",\r
3315         "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
3316         "comments": "",\r
3317         "outputs": 1,\r
3318         "x": 5981.33332824707,\r
3319         "y": 3185.3333435058594,\r
3320         "z": "1f8b432c.7b707d",\r
3321         "wires": [\r
3322             [\r
3323                 "d7742ed9.525e08",\r
3324                 "f96706f6.1edf38"\r
3325             ]\r
3326         ]\r
3327     },\r
3328     {\r
3329         "id": "f96706f6.1edf38",\r
3330         "type": "failure",\r
3331         "name": "failure",\r
3332         "xml": "<outcome value='failure'>\n",\r
3333         "comments": "",\r
3334         "outputs": 1,\r
3335         "x": 6252.33332824707,\r
3336         "y": 3170.3333435058594,\r
3337         "z": "1f8b432c.7b707d",\r
3338         "wires": [\r
3339             [\r
3340                 "70a27353.90bdbc"\r
3341             ]\r
3342         ]\r
3343     },\r
3344     {\r
3345         "id": "d7742ed9.525e08",\r
3346         "type": "success",\r
3347         "name": "success",\r
3348         "xml": "<outcome value='success'>\n",\r
3349         "comments": "",\r
3350         "outputs": 1,\r
3351         "x": 6250.333541870117,\r
3352         "y": 3228.3332529067993,\r
3353         "z": "1f8b432c.7b707d",\r
3354         "wires": [\r
3355             [\r
3356                 "eb2a823e.260b78"\r
3357             ]\r
3358         ]\r
3359     },\r
3360     {\r
3361         "id": "70a27353.90bdbc",\r
3362         "type": "returnFailure",\r
3363         "name": "return failure",\r
3364         "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
3365         "comments": "",\r
3366         "x": 6392.333576202393,\r
3367         "y": 3170.3333444595337,\r
3368         "z": "1f8b432c.7b707d",\r
3369         "wires": []\r
3370     },\r
3371     {\r
3372         "id": "eb2a823e.260b78",\r
3373         "type": "block",\r
3374         "name": "block",\r
3375         "xml": "<block>\n",\r
3376         "atomic": "false",\r
3377         "comments": "",\r
3378         "outputs": 1,\r
3379         "x": 6398.3605880737305,\r
3380         "y": 3219.0787382125854,\r
3381         "z": "1f8b432c.7b707d",\r
3382         "wires": [\r
3383             []\r
3384         ]\r
3385     },\r
3386     {\r
3387         "id": "11b27338.362ff5",\r
3388         "type": "block",\r
3389         "name": "block",\r
3390         "xml": "<block>\n",\r
3391         "atomic": "false",\r
3392         "comments": "",\r
3393         "outputs": 1,\r
3394         "x": 5664.33332824707,\r
3395         "y": 3087.3333435058594,\r
3396         "z": "1f8b432c.7b707d",\r
3397         "wires": [\r
3398             [\r
3399                 "36a781af.2ddb3e",\r
3400                 "7dffa406.706e6c"\r
3401             ]\r
3402         ]\r
3403     },\r
3404     {\r
3405         "id": "48ad14bc.45fb34",\r
3406         "type": "block",\r
3407         "name": "block",\r
3408         "xml": "<block>\n",\r
3409         "atomic": "false",\r
3410         "comments": "",\r
3411         "outputs": 1,\r
3412         "x": 6008.33332824707,\r
3413         "y": 3327.3333435058594,\r
3414         "z": "1f8b432c.7b707d",\r
3415         "wires": [\r
3416             [\r
3417                 "c9167223.c48c5",\r
3418                 "c8df83a3.bc227"\r
3419             ]\r
3420         ]\r
3421     },\r
3422     {\r
3423         "id": "c8df83a3.bc227",\r
3424         "type": "set",\r
3425         "name": "set attachment_param domain B",\r
3426         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",\r
3427         "comments": "",\r
3428         "x": 6228.33332824707,\r
3429         "y": 3371.3333435058594,\r
3430         "z": "1f8b432c.7b707d",\r
3431         "wires": []\r
3432     },\r
3433     {\r
3434         "id": "d358673f.8a632",\r
3435         "type": "execute",\r
3436         "name": "execute RestApiCallNode domainB UNI Coloring",\r
3437         "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
3438         "comments": "",\r
3439         "outputs": 1,\r
3440         "x": 6279.33332824707,\r
3441         "y": 3415.3333435058594,\r
3442         "z": "1f8b432c.7b707d",\r
3443         "wires": [\r
3444             [\r
3445                 "c74c0688.e153c8",\r
3446                 "bbe92e0a.776158"\r
3447             ]\r
3448         ]\r
3449     },\r
3450     {\r
3451         "id": "bbe92e0a.776158",\r
3452         "type": "failure",\r
3453         "name": "failure",\r
3454         "xml": "<outcome value='failure'>\n",\r
3455         "comments": "",\r
3456         "outputs": 1,\r
3457         "x": 6542.33332824707,\r
3458         "y": 3395.3333435058594,\r
3459         "z": "1f8b432c.7b707d",\r
3460         "wires": [\r
3461             [\r
3462                 "745303bf.c36e14"\r
3463             ]\r
3464         ]\r
3465     },\r
3466     {\r
3467         "id": "c74c0688.e153c8",\r
3468         "type": "success",\r
3469         "name": "success",\r
3470         "xml": "<outcome value='success'>\n",\r
3471         "comments": "",\r
3472         "outputs": 1,\r
3473         "x": 6543.333541870117,\r
3474         "y": 3446.3332529067993,\r
3475         "z": "1f8b432c.7b707d",\r
3476         "wires": [\r
3477             [\r
3478                 "16fe3b7.bef5ac5"\r
3479             ]\r
3480         ]\r
3481     },\r
3482     {\r
3483         "id": "745303bf.c36e14",\r
3484         "type": "returnFailure",\r
3485         "name": "return failure",\r
3486         "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
3487         "comments": "",\r
3488         "x": 6682.333576202393,\r
3489         "y": 3395.3333444595337,\r
3490         "z": "1f8b432c.7b707d",\r
3491         "wires": []\r
3492     },\r
3493     {\r
3494         "id": "16fe3b7.bef5ac5",\r
3495         "type": "block",\r
3496         "name": "block",\r
3497         "xml": "<block>\n",\r
3498         "atomic": "false",\r
3499         "comments": "",\r
3500         "outputs": 1,\r
3501         "x": 6688.3605880737305,\r
3502         "y": 3444.0787382125854,\r
3503         "z": "1f8b432c.7b707d",\r
3504         "wires": [\r
3505             []\r
3506         ]\r
3507     },\r
3508     {\r
3509         "id": "ab63214f.ab52e",\r
3510         "type": "set",\r
3511         "name": "set attachment_param domain otnidx",\r
3512         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
3513         "comments": "",\r
3514         "x": 6325.33332824707,\r
3515         "y": 3845.3333435058594,\r
3516         "z": "1f8b432c.7b707d",\r
3517         "wires": []\r
3518     },\r
3519     {\r
3520         "id": "758165ab.6ede0c",\r
3521         "type": "save",\r
3522         "name": "get all-vpn-bindings from aai",\r
3523         "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
3524         "comments": "",\r
3525         "outputs": 1,\r
3526         "x": 3644.3333282470703,\r
3527         "y": 4192.333343505859,\r
3528         "z": "1f8b432c.7b707d",\r
3529         "wires": [\r
3530             [\r
3531                 "342e9d1a.c50cf2",\r
3532                 "85e441ba.70e1e",\r
3533                 "cd45d3e5.a8a2f"\r
3534             ]\r
3535         ]\r
3536     },\r
3537     {\r
3538         "id": "342e9d1a.c50cf2",\r
3539         "type": "success",\r
3540         "name": "success",\r
3541         "xml": "<outcome value='success'>\n",\r
3542         "comments": "",\r
3543         "outputs": 1,\r
3544         "x": 3832.3333282470703,\r
3545         "y": 4205.333343505859,\r
3546         "z": "1f8b432c.7b707d",\r
3547         "wires": [\r
3548             [\r
3549                 "24a9c2eb.e19b9e"\r
3550             ]\r
3551         ]\r
3552     },\r
3553     {\r
3554         "id": "85e441ba.70e1e",\r
3555         "type": "not-found",\r
3556         "name": "not-found",\r
3557         "xml": "<outcome value='not-found'>\n",\r
3558         "comments": "",\r
3559         "outputs": 1,\r
3560         "x": 3832.8242950439453,\r
3561         "y": 4250.907379150391,\r
3562         "z": "1f8b432c.7b707d",\r
3563         "wires": [\r
3564             [\r
3565                 "abf9be0d.a5d62"\r
3566             ]\r
3567         ]\r
3568     },\r
3569     {\r
3570         "id": "cd45d3e5.a8a2f",\r
3571         "type": "failure",\r
3572         "name": "failure",\r
3573         "xml": "<outcome value='failure'>\n",\r
3574         "comments": "",\r
3575         "outputs": 1,\r
3576         "x": 3830.3333282470703,\r
3577         "y": 4294.333343505859,\r
3578         "z": "1f8b432c.7b707d",\r
3579         "wires": [\r
3580             [\r
3581                 "5bf5c027.26df9"\r
3582             ]\r
3583         ]\r
3584     },\r
3585     {\r
3586         "id": "24a9c2eb.e19b9e",\r
3587         "type": "block",\r
3588         "name": "block : atomic",\r
3589         "xml": "<block atomic=\"true\">",\r
3590         "atomic": "true",\r
3591         "outputs": 1,\r
3592         "x": 4005.3333282470703,\r
3593         "y": 4203.333343505859,\r
3594         "z": "1f8b432c.7b707d",\r
3595         "wires": [\r
3596             [\r
3597                 "5543848d.3b0414"\r
3598             ]\r
3599         ]\r
3600     },\r
3601     {\r
3602         "id": "abf9be0d.a5d62",\r
3603         "type": "returnFailure",\r
3604         "name": "return failure",\r
3605         "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
3606         "comments": "",\r
3607         "x": 3995.395706176758,\r
3608         "y": 4251.193115234375,\r
3609         "z": "1f8b432c.7b707d",\r
3610         "wires": []\r
3611     },\r
3612     {\r
3613         "id": "5bf5c027.26df9",\r
3614         "type": "returnFailure",\r
3615         "name": "return failure",\r
3616         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3617         "comments": "",\r
3618         "x": 3997.3333282470703,\r
3619         "y": 4293.333343505859,\r
3620         "z": "1f8b432c.7b707d",\r
3621         "wires": []\r
3622     },\r
3623     {\r
3624         "id": "b32c7a7e.680c18",\r
3625         "type": "for",\r
3626         "name": "for vidx..tmp.otninfo_length[]",\r
3627         "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",\r
3628         "comments": "",\r
3629         "outputs": 1,\r
3630         "x": 3633.3333282470703,\r
3631         "y": 4383.333343505859,\r
3632         "z": "1f8b432c.7b707d",\r
3633         "wires": [\r
3634             [\r
3635                 "e206a705.651b58"\r
3636             ]\r
3637         ]\r
3638     },\r
3639     {\r
3640         "id": "aad93e89.0d91f",\r
3641         "type": "block",\r
3642         "name": "block : atomic",\r
3643         "xml": "<block atomic='true'>",\r
3644         "atomic": "true",\r
3645         "comments": "",\r
3646         "outputs": 1,\r
3647         "x": 4443.33332824707,\r
3648         "y": 4383.333343505859,\r
3649         "z": "1f8b432c.7b707d",\r
3650         "wires": [\r
3651             [\r
3652                 "aa320024.3f29d"\r
3653             ]\r
3654         ]\r
3655     },\r
3656     {\r
3657         "id": "371672f7.af2966",\r
3658         "type": "for",\r
3659         "name": "for vidx..tmp.otninfo_length[]",\r
3660         "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",\r
3661         "comments": "",\r
3662         "outputs": 1,\r
3663         "x": 4215.33332824707,\r
3664         "y": 4383.333343505859,\r
3665         "z": "1f8b432c.7b707d",\r
3666         "wires": [\r
3667             [\r
3668                 "aad93e89.0d91f"\r
3669             ]\r
3670         ]\r
3671     },\r
3672     {\r
3673         "id": "b7b629ca.699bf",\r
3674         "type": "set",\r
3675         "name": "set providerValue",\r
3676         "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
3677         "comments": "",\r
3678         "x": 5335.33332824707,\r
3679         "y": 4150.333343505859,\r
3680         "z": "1f8b432c.7b707d",\r
3681         "wires": []\r
3682     },\r
3683     {\r
3684         "id": "278fac8.6485754",\r
3685         "type": "set",\r
3686         "name": "set",\r
3687         "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
3688         "comments": "",\r
3689         "x": 5637.33332824707,\r
3690         "y": 3276.3333435058594,\r
3691         "z": "1f8b432c.7b707d",\r
3692         "wires": []\r
3693     },\r
3694     {\r
3695         "id": "5e731523.edaba4",\r
3696         "type": "block",\r
3697         "name": "block",\r
3698         "xml": "<block>\n",\r
3699         "atomic": "false",\r
3700         "comments": "",\r
3701         "outputs": 1,\r
3702         "x": 5472.33332824707,\r
3703         "y": 3251.3333435058594,\r
3704         "z": "1f8b432c.7b707d",\r
3705         "wires": [\r
3706             [\r
3707                 "278fac8.6485754",\r
3708                 "df75995c.9d6d7"\r
3709             ]\r
3710         ]\r
3711     },\r
3712     {\r
3713         "id": "38f52a4e.84a6be",\r
3714         "type": "set",\r
3715         "name": "set tmp.arr",\r
3716         "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n<parameter name='bwModified' value='false' />\n",\r
3717         "comments": "",\r
3718         "x": 1926.3333282470703,\r
3719         "y": 281.3333435058594,\r
3720         "z": "1f8b432c.7b707d",\r
3721         "wires": []\r
3722     },\r
3723     {\r
3724         "id": "5543848d.3b0414",\r
3725         "type": "for",\r
3726         "name": "for vpnidx in all-vpn-bindings",\r
3727         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
3728         "comments": "",\r
3729         "outputs": 1,\r
3730         "x": 4234.33332824707,\r
3731         "y": 4204.333343505859,\r
3732         "z": "1f8b432c.7b707d",\r
3733         "wires": [\r
3734             [\r
3735                 "f4fb2913.3f08e8"\r
3736             ]\r
3737         ]\r
3738     },\r
3739     {\r
3740         "id": "f4fb2913.3f08e8",\r
3741         "type": "block",\r
3742         "name": "block : atomic",\r
3743         "xml": "<block atomic='true'>",\r
3744         "atomic": "true",\r
3745         "comments": "",\r
3746         "outputs": 1,\r
3747         "x": 4449.33332824707,\r
3748         "y": 4205.333343505859,\r
3749         "z": "1f8b432c.7b707d",\r
3750         "wires": [\r
3751             [\r
3752                 "b4dc52fa.e41dc8"\r
3753             ]\r
3754         ]\r
3755     },\r
3756     {\r
3757         "id": "59decc03.5b792c",\r
3758         "type": "for",\r
3759         "name": "for arridx in tmp.arr",\r
3760         "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",\r
3761         "comments": "",\r
3762         "outputs": 1,\r
3763         "x": 5902.33332824707,\r
3764         "y": 4125.333343505859,\r
3765         "z": "1f8b432c.7b707d",\r
3766         "wires": [\r
3767             [\r
3768                 "12c019ee.a843ee"\r
3769             ]\r
3770         ]\r
3771     },\r
3772     {\r
3773         "id": "97c70d48.16fe38",\r
3774         "type": "switchNode",\r
3775         "name": "switch $tmp.arr_length != 0",\r
3776         "xml": "<switch test='`$tmp.arr_length != 0`'>\n",\r
3777         "comments": "",\r
3778         "outputs": 1,\r
3779         "x": 5368.33332824707,\r
3780         "y": 4205.333343505859,\r
3781         "z": "1f8b432c.7b707d",\r
3782         "wires": [\r
3783             [\r
3784                 "6bfc5feb.67a1e",\r
3785                 "f9517302.701ea"\r
3786             ]\r
3787         ]\r
3788     },\r
3789     {\r
3790         "id": "6bfc5feb.67a1e",\r
3791         "type": "outcomeTrue",\r
3792         "name": "true",\r
3793         "xml": "<outcome value='true'>\n",\r
3794         "comments": "",\r
3795         "outputs": 1,\r
3796         "x": 5564.33332824707,\r
3797         "y": 4175.333343505859,\r
3798         "z": "1f8b432c.7b707d",\r
3799         "wires": [\r
3800             [\r
3801                 "8987adcc.4e1008"\r
3802             ]\r
3803         ]\r
3804     },\r
3805     {\r
3806         "id": "f9517302.701ea",\r
3807         "type": "outcomeFalse",\r
3808         "name": "false",\r
3809         "xml": "<outcome value='false'>\n",\r
3810         "comments": "",\r
3811         "outputs": 1,\r
3812         "x": 5565.33332824707,\r
3813         "y": 4246.333343505859,\r
3814         "z": "1f8b432c.7b707d",\r
3815         "wires": [\r
3816             [\r
3817                 "35a88f3a.b6ac08"\r
3818             ]\r
3819         ]\r
3820     },\r
3821     {\r
3822         "id": "8987adcc.4e1008",\r
3823         "type": "block",\r
3824         "name": "block : atomic",\r
3825         "xml": "<block atomic='true'>",\r
3826         "atomic": "true",\r
3827         "comments": "",\r
3828         "outputs": 1,\r
3829         "x": 5715.33332824707,\r
3830         "y": 4173.333343505859,\r
3831         "z": "1f8b432c.7b707d",\r
3832         "wires": [\r
3833             [\r
3834                 "59decc03.5b792c",\r
3835                 "6882fe7c.6197e8"\r
3836             ]\r
3837         ]\r
3838     },\r
3839     {\r
3840         "id": "12c019ee.a843ee",\r
3841         "type": "switchNode",\r
3842         "name": "switch tmp.arr[$arridx] == $providerValue",\r
3843         "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",\r
3844         "comments": "",\r
3845         "outputs": 1,\r
3846         "x": 6193.33332824707,\r
3847         "y": 4125.333343505859,\r
3848         "z": "1f8b432c.7b707d",\r
3849         "wires": [\r
3850             [\r
3851                 "e5c18223.e30628",\r
3852                 "cba25abe.848d6"\r
3853             ]\r
3854         ]\r
3855     },\r
3856     {\r
3857         "id": "e5c18223.e30628",\r
3858         "type": "outcomeTrue",\r
3859         "name": "true",\r
3860         "xml": "<outcome value='true'>\n",\r
3861         "comments": "",\r
3862         "outputs": 1,\r
3863         "x": 6468.33332824707,\r
3864         "y": 4094.3333435058594,\r
3865         "z": "1f8b432c.7b707d",\r
3866         "wires": [\r
3867             [\r
3868                 "4b465147.34a4b"\r
3869             ]\r
3870         ]\r
3871     },\r
3872     {\r
3873         "id": "cba25abe.848d6",\r
3874         "type": "outcomeFalse",\r
3875         "name": "false",\r
3876         "xml": "<outcome value='false'>\n",\r
3877         "comments": "",\r
3878         "outputs": 1,\r
3879         "x": 6469.33332824707,\r
3880         "y": 4165.333343505859,\r
3881         "z": "1f8b432c.7b707d",\r
3882         "wires": [\r
3883             [\r
3884                 "ace0f3a2.ba867"\r
3885             ]\r
3886         ]\r
3887     },\r
3888     {\r
3889         "id": "4b465147.34a4b",\r
3890         "type": "block",\r
3891         "name": "block : atomic",\r
3892         "xml": "<block atomic='true'>",\r
3893         "atomic": "true",\r
3894         "comments": "",\r
3895         "outputs": 1,\r
3896         "x": 6619.33332824707,\r
3897         "y": 4092.3333435058594,\r
3898         "z": "1f8b432c.7b707d",\r
3899         "wires": [\r
3900             [\r
3901                 "2155a1a2.b1abbe",\r
3902                 "f005c04e.d898a8",\r
3903                 "4fb6d7b7.ecc78",\r
3904                 "46824160.b1d988",\r
3905                 "1e06ac9b.2a6bc3"\r
3906             ]\r
3907         ]\r
3908     },\r
3909     {\r
3910         "id": "2155a1a2.b1abbe",\r
3911         "type": "set",\r
3912         "name": "set found to true",\r
3913         "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",\r
3914         "comments": "",\r
3915         "x": 6807.33332824707,\r
3916         "y": 4052.3333435058594,\r
3917         "z": "1f8b432c.7b707d",\r
3918         "wires": []\r
3919     },\r
3920     {\r
3921         "id": "f005c04e.d898a8",\r
3922         "type": "save",\r
3923         "name": "store $arridx somewhere in vpn-binding",\r
3924         "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
3925         "comments": "",\r
3926         "outputs": 1,\r
3927         "x": 6879.33332824707,\r
3928         "y": 4097.333343505859,\r
3929         "z": "1f8b432c.7b707d",\r
3930         "wires": [\r
3931             []\r
3932         ]\r
3933     },\r
3934     {\r
3935         "id": "1e06ac9b.2a6bc3",\r
3936         "type": "set",\r
3937         "name": "set twoD arr",\r
3938         "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
3939         "comments": "",\r
3940         "x": 6794.33332824707,\r
3941         "y": 4224.333343505859,\r
3942         "z": "1f8b432c.7b707d",\r
3943         "wires": []\r
3944     },\r
3945     {\r
3946         "id": "46824160.b1d988",\r
3947         "type": "set",\r
3948         "name": "set sizeOfSliceList",\r
3949         "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",\r
3950         "comments": "",\r
3951         "x": 6815.33332824707,\r
3952         "y": 4160.333343505859,\r
3953         "z": "1f8b432c.7b707d",\r
3954         "wires": []\r
3955     },\r
3956     {\r
3957         "id": "35a88f3a.b6ac08",\r
3958         "type": "block",\r
3959         "name": "block : atomic",\r
3960         "xml": "<block atomic='true'>",\r
3961         "atomic": "true",\r
3962         "comments": "",\r
3963         "outputs": 1,\r
3964         "x": 5717.33332824707,\r
3965         "y": 4246.333343505859,\r
3966         "z": "1f8b432c.7b707d",\r
3967         "wires": [\r
3968             [\r
3969                 "bec1bd98.095008",\r
3970                 "6bef5837.fb58f"\r
3971             ]\r
3972         ]\r
3973     },\r
3974     {\r
3975         "id": "bec1bd98.095008",\r
3976         "type": "save",\r
3977         "name": "store $arridx somewhere in vpn-binding",\r
3978         "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
3979         "comments": "",\r
3980         "outputs": 1,\r
3981         "x": 5972.33332824707,\r
3982         "y": 4239.333343505859,\r
3983         "z": "1f8b432c.7b707d",\r
3984         "wires": [\r
3985             []\r
3986         ]\r
3987     },\r
3988     {\r
3989         "id": "6bef5837.fb58f",\r
3990         "type": "set",\r
3991         "name": "set twoD array",\r
3992         "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
3993         "comments": "",\r
3994         "x": 5900.33332824707,\r
3995         "y": 4286.333343505859,\r
3996         "z": "1f8b432c.7b707d",\r
3997         "wires": []\r
3998     },\r
3999     {\r
4000         "id": "6882fe7c.6197e8",\r
4001         "type": "switchNode",\r
4002         "name": "switch found?",\r
4003         "xml": "<switch test='`$found`'>\n",\r
4004         "comments": "",\r
4005         "outputs": 1,\r
4006         "x": 5893.33332824707,\r
4007         "y": 4170.333343505859,\r
4008         "z": "1f8b432c.7b707d",\r
4009         "wires": [\r
4010             [\r
4011                 "fe294cd.9421bb",\r
4012                 "65b4ebb1.845464"\r
4013             ]\r
4014         ]\r
4015     },\r
4016     {\r
4017         "id": "fe294cd.9421bb",\r
4018         "type": "outcomeTrue",\r
4019         "name": "true",\r
4020         "xml": "<outcome value='true'>\n",\r
4021         "comments": "",\r
4022         "outputs": 1,\r
4023         "x": 6053.33332824707,\r
4024         "y": 4162.333343505859,\r
4025         "z": "1f8b432c.7b707d",\r
4026         "wires": [\r
4027             [\r
4028                 "e093232d.0ab56"\r
4029             ]\r
4030         ]\r
4031     },\r
4032     {\r
4033         "id": "65b4ebb1.845464",\r
4034         "type": "outcomeFalse",\r
4035         "name": "false",\r
4036         "xml": "<outcome value='false'>\n",\r
4037         "comments": "",\r
4038         "outputs": 1,\r
4039         "x": 6051.33332824707,\r
4040         "y": 4199.333343505859,\r
4041         "z": "1f8b432c.7b707d",\r
4042         "wires": [\r
4043             [\r
4044                 "ab13fab7.3aabe"\r
4045             ]\r
4046         ]\r
4047     },\r
4048     {\r
4049         "id": "e093232d.0ab56",\r
4050         "type": "block",\r
4051         "name": "block",\r
4052         "xml": "<block>\n",\r
4053         "atomic": "false",\r
4054         "comments": "",\r
4055         "outputs": 1,\r
4056         "x": 6178.33332824707,\r
4057         "y": 4162.333343505859,\r
4058         "z": "1f8b432c.7b707d",\r
4059         "wires": [\r
4060             []\r
4061         ]\r
4062     },\r
4063     {\r
4064         "id": "62438f19.a66048",\r
4065         "type": "save",\r
4066         "name": "store $arridx+1 somewhere in vpn-binding",\r
4067         "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
4068         "comments": "",\r
4069         "outputs": 1,\r
4070         "x": 6485.33332824707,\r
4071         "y": 4220.333343505859,\r
4072         "z": "1f8b432c.7b707d",\r
4073         "wires": [\r
4074             []\r
4075         ]\r
4076     },\r
4077     {\r
4078         "id": "ab13fab7.3aabe",\r
4079         "type": "block",\r
4080         "name": "block : atomic",\r
4081         "xml": "<block atomic='true'>",\r
4082         "atomic": "true",\r
4083         "comments": "",\r
4084         "outputs": 1,\r
4085         "x": 6211.33332824707,\r
4086         "y": 4207.333343505859,\r
4087         "z": "1f8b432c.7b707d",\r
4088         "wires": [\r
4089             [\r
4090                 "62438f19.a66048",\r
4091                 "f4afeb0e.ae0db"\r
4092             ]\r
4093         ]\r
4094     },\r
4095     {\r
4096         "id": "f4afeb0e.ae0db",\r
4097         "type": "set",\r
4098         "name": "set twoD array",\r
4099         "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
4100         "comments": "",\r
4101         "x": 6402.33332824707,\r
4102         "y": 4266.333343505859,\r
4103         "z": "1f8b432c.7b707d",\r
4104         "wires": []\r
4105     },\r
4106     {\r
4107         "id": "ace0f3a2.ba867",\r
4108         "type": "block",\r
4109         "name": "block",\r
4110         "xml": "<block>\n",\r
4111         "atomic": "false",\r
4112         "comments": "",\r
4113         "outputs": 1,\r
4114         "x": 6602.33332824707,\r
4115         "y": 4164.333343505859,\r
4116         "z": "1f8b432c.7b707d",\r
4117         "wires": [\r
4118             []\r
4119         ]\r
4120     },\r
4121     {\r
4122         "id": "4fb6d7b7.ecc78",\r
4123         "type": "break",\r
4124         "name": "break",\r
4125         "xml": "<break>\n",\r
4126         "comments": "",\r
4127         "x": 6773.33332824707,\r
4128         "y": 4291.333343505859,\r
4129         "z": "1f8b432c.7b707d",\r
4130         "wires": []\r
4131     },\r
4132     {\r
4133         "id": "6c1ad513.ca11a4",\r
4134         "type": "switchNode",\r
4135         "name": "switch dstPort == NULL",\r
4136         "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
4137         "comments": "",\r
4138         "outputs": 1,\r
4139         "x": 5170.33332824707,\r
4140         "y": 2503.3333435058594,\r
4141         "z": "1f8b432c.7b707d",\r
4142         "wires": [\r
4143             [\r
4144                 "e5311d8f.316e3",\r
4145                 "377e7dc.719a502"\r
4146             ]\r
4147         ]\r
4148     },\r
4149     {\r
4150         "id": "e5311d8f.316e3",\r
4151         "type": "outcomeTrue",\r
4152         "name": "true",\r
4153         "xml": "<outcome value='true'>\n",\r
4154         "comments": "",\r
4155         "outputs": 1,\r
4156         "x": 5559.33332824707,\r
4157         "y": 2481.3333435058594,\r
4158         "z": "1f8b432c.7b707d",\r
4159         "wires": [\r
4160             [\r
4161                 "53a0d07b.9ddd2"\r
4162             ]\r
4163         ]\r
4164     },\r
4165     {\r
4166         "id": "377e7dc.719a502",\r
4167         "type": "outcomeFalse",\r
4168         "name": "false",\r
4169         "xml": "<outcome value='false'>\n",\r
4170         "comments": "",\r
4171         "outputs": 1,\r
4172         "x": 5560.33332824707,\r
4173         "y": 2527.3333435058594,\r
4174         "z": "1f8b432c.7b707d",\r
4175         "wires": [\r
4176             [\r
4177                 "bda8eef7.7834b"\r
4178             ]\r
4179         ]\r
4180     },\r
4181     {\r
4182         "id": "53a0d07b.9ddd2",\r
4183         "type": "set",\r
4184         "name": "set access-provider-id and client-id",\r
4185         "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
4186         "comments": "",\r
4187         "x": 5773.33332824707,\r
4188         "y": 2480.3333435058594,\r
4189         "z": "1f8b432c.7b707d",\r
4190         "wires": []\r
4191     },\r
4192     {\r
4193         "id": "bda8eef7.7834b",\r
4194         "type": "set",\r
4195         "name": "set access-provider-id and client-id",\r
4196         "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
4197         "comments": "",\r
4198         "x": 5771.33332824707,\r
4199         "y": 2525.3333435058594,\r
4200         "z": "1f8b432c.7b707d",\r
4201         "wires": []\r
4202     },\r
4203     {\r
4204         "id": "aa320024.3f29d",\r
4205         "type": "set",\r
4206         "name": "set attachment_param sliceG",\r
4207         "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
4208         "comments": "",\r
4209         "x": 4696.33332824707,\r
4210         "y": 4381.333343505859,\r
4211         "z": "1f8b432c.7b707d",\r
4212         "wires": []\r
4213     },\r
4214     {\r
4215         "id": "582f4b19.cbc35c",\r
4216         "type": "execute",\r
4217         "name": "execute RestApiCallNode sliceG creation domainG",\r
4218         "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
4219         "comments": "",\r
4220         "outputs": 1,\r
4221         "x": 4281.33332824707,\r
4222         "y": 4489.333343505859,\r
4223         "z": "1f8b432c.7b707d",\r
4224         "wires": [\r
4225             [\r
4226                 "2ee5af11.6c1e68",\r
4227                 "dcd2689e.43975"\r
4228             ]\r
4229         ]\r
4230     },\r
4231     {\r
4232         "id": "dcd2689e.43975",\r
4233         "type": "failure",\r
4234         "name": "failure",\r
4235         "xml": "<outcome value='failure'>\n",\r
4236         "comments": "",\r
4237         "outputs": 1,\r
4238         "x": 4564.33332824707,\r
4239         "y": 4469.333343505859,\r
4240         "z": "1f8b432c.7b707d",\r
4241         "wires": [\r
4242             [\r
4243                 "226131b5.dcdb56"\r
4244             ]\r
4245         ]\r
4246     },\r
4247     {\r
4248         "id": "2ee5af11.6c1e68",\r
4249         "type": "success",\r
4250         "name": "success",\r
4251         "xml": "<outcome value='success'>\n",\r
4252         "comments": "",\r
4253         "outputs": 1,\r
4254         "x": 4565.333541870117,\r
4255         "y": 4520.333252906799,\r
4256         "z": "1f8b432c.7b707d",\r
4257         "wires": [\r
4258             [\r
4259                 "9a360786.0f7708"\r
4260             ]\r
4261         ]\r
4262     },\r
4263     {\r
4264         "id": "226131b5.dcdb56",\r
4265         "type": "returnFailure",\r
4266         "name": "return failure",\r
4267         "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
4268         "comments": "",\r
4269         "x": 4704.333576202393,\r
4270         "y": 4469.333344459534,\r
4271         "z": "1f8b432c.7b707d",\r
4272         "wires": []\r
4273     },\r
4274     {\r
4275         "id": "9a360786.0f7708",\r
4276         "type": "block",\r
4277         "name": "block",\r
4278         "xml": "<block>\n",\r
4279         "atomic": "false",\r
4280         "comments": "",\r
4281         "outputs": 1,\r
4282         "x": 4710.3605880737305,\r
4283         "y": 4518.078738212585,\r
4284         "z": "1f8b432c.7b707d",\r
4285         "wires": [\r
4286             []\r
4287         ]\r
4288     },\r
4289     {\r
4290         "id": "ddb6267f.2382f",\r
4291         "type": "set",\r
4292         "name": "set srcdstpnf-name",\r
4293         "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
4294         "comments": "",\r
4295         "x": 5354.33332824707,\r
4296         "y": 2623.3333435058594,\r
4297         "z": "1f8b432c.7b707d",\r
4298         "wires": []\r
4299     },\r
4300     {\r
4301         "id": "39bce85.43eb118",\r
4302         "type": "get-resource",\r
4303         "name": "get-resource tmp.srcdstpnf-name",\r
4304         "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
4305         "comments": "",\r
4306         "outputs": 1,\r
4307         "x": 5398.33332824707,\r
4308         "y": 2671.3333435058594,\r
4309         "z": "1f8b432c.7b707d",\r
4310         "wires": [\r
4311             [\r
4312                 "e3200e7d.1b6158",\r
4313                 "a27bf097.a61688",\r
4314                 "aed031.10f8e7d"\r
4315             ]\r
4316         ]\r
4317     },\r
4318     {\r
4319         "id": "e3200e7d.1b6158",\r
4320         "type": "success",\r
4321         "name": "success",\r
4322         "xml": "<outcome value='success'>\n",\r
4323         "comments": "",\r
4324         "outputs": 1,\r
4325         "x": 5610.83332824707,\r
4326         "y": 2618.3333435058594,\r
4327         "z": "1f8b432c.7b707d",\r
4328         "wires": [\r
4329             [\r
4330                 "ec0b5318.bd94a"\r
4331             ]\r
4332         ]\r
4333     },\r
4334     {\r
4335         "id": "a27bf097.a61688",\r
4336         "type": "not-found",\r
4337         "name": "not-found",\r
4338         "xml": "<outcome value='not-found'>\n",\r
4339         "comments": "",\r
4340         "outputs": 1,\r
4341         "x": 5622.83332824707,\r
4342         "y": 2668.3333435058594,\r
4343         "z": "1f8b432c.7b707d",\r
4344         "wires": [\r
4345             [\r
4346                 "194dd3a5.9683ac"\r
4347             ]\r
4348         ]\r
4349     },\r
4350     {\r
4351         "id": "aed031.10f8e7d",\r
4352         "type": "other",\r
4353         "name": "other",\r
4354         "xml": "<outcome value='Other'>\n",\r
4355         "comments": "",\r
4356         "outputs": 1,\r
4357         "x": 5613.83332824707,\r
4358         "y": 2723.3333435058594,\r
4359         "z": "1f8b432c.7b707d",\r
4360         "wires": [\r
4361             [\r
4362                 "121802d5.075bad"\r
4363             ]\r
4364         ]\r
4365     },\r
4366     {\r
4367         "id": "121802d5.075bad",\r
4368         "type": "returnFailure",\r
4369         "name": "return failure",\r
4370         "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
4371         "comments": "",\r
4372         "x": 5758.83332824707,\r
4373         "y": 2722.3333435058594,\r
4374         "z": "1f8b432c.7b707d",\r
4375         "wires": []\r
4376     },\r
4377     {\r
4378         "id": "194dd3a5.9683ac",\r
4379         "type": "returnFailure",\r
4380         "name": "return failure",\r
4381         "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
4382         "comments": "",\r
4383         "x": 5769.83332824707,\r
4384         "y": 2665.3333435058594,\r
4385         "z": "1f8b432c.7b707d",\r
4386         "wires": []\r
4387     },\r
4388     {\r
4389         "id": "ec0b5318.bd94a",\r
4390         "type": "block",\r
4391         "name": "block",\r
4392         "xml": "<block>\n",\r
4393         "atomic": "false",\r
4394         "comments": "",\r
4395         "outputs": 1,\r
4396         "x": 5736.215774536133,\r
4397         "y": 2611.989013671875,\r
4398         "z": "1f8b432c.7b707d",\r
4399         "wires": [\r
4400             [\r
4401                 "6ffb5206.ab40dc"\r
4402             ]\r
4403         ]\r
4404     },\r
4405     {\r
4406         "id": "a75d0b14.3b6cd8",\r
4407         "type": "outcome",\r
4408         "name": "esr-thirdparty-sdnc",\r
4409         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
4410         "comments": "",\r
4411         "outputs": 1,\r
4412         "x": 6295.33332824707,\r
4413         "y": 2630.3333435058594,\r
4414         "z": "1f8b432c.7b707d",\r
4415         "wires": [\r
4416             [\r
4417                 "5ed989fd.7ba3d8"\r
4418             ]\r
4419         ]\r
4420     },\r
4421     {\r
4422         "id": "5ed989fd.7ba3d8",\r
4423         "type": "block",\r
4424         "name": "block : atomic",\r
4425         "xml": "<block atomic=\"true\">",\r
4426         "atomic": "true",\r
4427         "outputs": 1,\r
4428         "x": 6472.33332824707,\r
4429         "y": 2622.3333435058594,\r
4430         "z": "1f8b432c.7b707d",\r
4431         "wires": [\r
4432             [\r
4433                 "4b327d9f.7fa68c",\r
4434                 "a56c9b9d.4b71c"\r
4435             ]\r
4436         ]\r
4437     },\r
4438     {\r
4439         "id": "6ffb5206.ab40dc",\r
4440         "type": "for",\r
4441         "name": "for each relationship",\r
4442         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
4443         "comments": "",\r
4444         "outputs": 1,\r
4445         "x": 5897.33332824707,\r
4446         "y": 2626.3333435058594,\r
4447         "z": "1f8b432c.7b707d",\r
4448         "wires": [\r
4449             [\r
4450                 "157a7f1c.cef0f9"\r
4451             ]\r
4452         ]\r
4453     },\r
4454     {\r
4455         "id": "157a7f1c.cef0f9",\r
4456         "type": "switchNode",\r
4457         "name": "switch related-to",\r
4458         "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
4459         "comments": "",\r
4460         "outputs": 1,\r
4461         "x": 6092.33332824707,\r
4462         "y": 2626.3333435058594,\r
4463         "z": "1f8b432c.7b707d",\r
4464         "wires": [\r
4465             [\r
4466                 "a75d0b14.3b6cd8"\r
4467             ]\r
4468         ]\r
4469     },\r
4470     {\r
4471         "id": "a56c9b9d.4b71c",\r
4472         "type": "execute",\r
4473         "name": "get esr-thirdparty-sdnc",\r
4474         "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
4475         "comments": "",\r
4476         "outputs": 1,\r
4477         "x": 6680.33332824707,\r
4478         "y": 2629.3333435058594,\r
4479         "z": "1f8b432c.7b707d",\r
4480         "wires": [\r
4481             [\r
4482                 "5942c841.aa6ee8",\r
4483                 "9c93c9ac.788a48",\r
4484                 "6429f071.39b59"\r
4485             ]\r
4486         ]\r
4487     },\r
4488     {\r
4489         "id": "4b327d9f.7fa68c",\r
4490         "type": "set",\r
4491         "name": "set esr-thirdparty-sdnc domainG id",\r
4492         "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
4493         "comments": "",\r
4494         "x": 6710.33332824707,\r
4495         "y": 2577.3333435058594,\r
4496         "z": "1f8b432c.7b707d",\r
4497         "wires": []\r
4498     },\r
4499     {\r
4500         "id": "5942c841.aa6ee8",\r
4501         "type": "success",\r
4502         "name": "success",\r
4503         "xml": "<outcome value='success'>\n",\r
4504         "comments": "",\r
4505         "outputs": 1,\r
4506         "x": 6890.33332824707,\r
4507         "y": 2620.3333435058594,\r
4508         "z": "1f8b432c.7b707d",\r
4509         "wires": [\r
4510             [\r
4511                 "f8702def.d95bc8"\r
4512             ]\r
4513         ]\r
4514     },\r
4515     {\r
4516         "id": "9c93c9ac.788a48",\r
4517         "type": "not-found",\r
4518         "name": "not-found",\r
4519         "xml": "<outcome value='not-found'>\n",\r
4520         "comments": "",\r
4521         "outputs": 1,\r
4522         "x": 6882.33332824707,\r
4523         "y": 2675.3333435058594,\r
4524         "z": "1f8b432c.7b707d",\r
4525         "wires": [\r
4526             [\r
4527                 "440237ad.5da15"\r
4528             ]\r
4529         ]\r
4530     },\r
4531     {\r
4532         "id": "6429f071.39b59",\r
4533         "type": "other",\r
4534         "name": "other",\r
4535         "xml": "<outcome value='Other'>\n",\r
4536         "comments": "",\r
4537         "outputs": 1,\r
4538         "x": 6887.33332824707,\r
4539         "y": 2732.3333435058594,\r
4540         "z": "1f8b432c.7b707d",\r
4541         "wires": [\r
4542             [\r
4543                 "2304d14f.3cde06"\r
4544             ]\r
4545         ]\r
4546     },\r
4547     {\r
4548         "id": "2304d14f.3cde06",\r
4549         "type": "returnFailure",\r
4550         "name": "return failure",\r
4551         "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
4552         "comments": "",\r
4553         "x": 7039.33332824707,\r
4554         "y": 2733.3333435058594,\r
4555         "z": "1f8b432c.7b707d",\r
4556         "wires": []\r
4557     },\r
4558     {\r
4559         "id": "440237ad.5da15",\r
4560         "type": "returnFailure",\r
4561         "name": "return failure",\r
4562         "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
4563         "comments": "",\r
4564         "x": 7050.33332824707,\r
4565         "y": 2678.3333435058594,\r
4566         "z": "1f8b432c.7b707d",\r
4567         "wires": []\r
4568     },\r
4569     {\r
4570         "id": "f8702def.d95bc8",\r
4571         "type": "block",\r
4572         "name": "block",\r
4573         "xml": "<block>\n",\r
4574         "atomic": "false",\r
4575         "comments": "",\r
4576         "outputs": 1,\r
4577         "x": 7034.71565246582,\r
4578         "y": 2617.989013671875,\r
4579         "z": "1f8b432c.7b707d",\r
4580         "wires": [\r
4581             [\r
4582                 "f24381a1.f5a1a8"\r
4583             ]\r
4584         ]\r
4585     },\r
4586     {\r
4587         "id": "f24381a1.f5a1a8",\r
4588         "type": "set",\r
4589         "name": "set controller domainA data",\r
4590         "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
4591         "comments": "",\r
4592         "x": 7249.33332824707,\r
4593         "y": 2614.3333435058594,\r
4594         "z": "1f8b432c.7b707d",\r
4595         "wires": []\r
4596     },\r
4597     {\r
4598         "id": "e206a705.651b58",\r
4599         "type": "block",\r
4600         "name": "block : atomic",\r
4601         "xml": "<block atomic='true'>",\r
4602         "atomic": "true",\r
4603         "comments": "",\r
4604         "outputs": 1,\r
4605         "x": 3865.3333282470703,\r
4606         "y": 4381.333343505859,\r
4607         "z": "1f8b432c.7b707d",\r
4608         "wires": [\r
4609             [\r
4610                 "371672f7.af2966",\r
4611                 "582f4b19.cbc35c"\r
4612             ]\r
4613         ]\r
4614     },\r
4615     {\r
4616         "id": "e250e406.45b0b8",\r
4617         "type": "switchNode",\r
4618         "name": "switch dmnsidx == 0 (domainA)",\r
4619         "xml": "<switch test='`$otnidx == 0`'>\n",\r
4620         "comments": "",\r
4621         "outputs": 1,\r
4622         "x": 5368.33332824707,\r
4623         "y": 2840.3333435058594,\r
4624         "z": "1f8b432c.7b707d",\r
4625         "wires": [\r
4626             [\r
4627                 "7ec634eb.fd12e4",\r
4628                 "72b43008.da4948"\r
4629             ]\r
4630         ]\r
4631     },\r
4632     {\r
4633         "id": "7ec634eb.fd12e4",\r
4634         "type": "outcomeTrue",\r
4635         "name": "true",\r
4636         "xml": "<outcome value='true'>\n",\r
4637         "comments": "",\r
4638         "outputs": 1,\r
4639         "x": 5569.33332824707,\r
4640         "y": 2838.3333435058594,\r
4641         "z": "1f8b432c.7b707d",\r
4642         "wires": [\r
4643             [\r
4644                 "9a8afed8.5944c"\r
4645             ]\r
4646         ]\r
4647     },\r
4648     {\r
4649         "id": "9a8afed8.5944c",\r
4650         "type": "set",\r
4651         "name": "set attachment_param domain A",\r
4652         "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
4653         "comments": "",\r
4654         "x": 5783.33332824707,\r
4655         "y": 2840.3333435058594,\r
4656         "z": "1f8b432c.7b707d",\r
4657         "wires": []\r
4658     },\r
4659     {\r
4660         "id": "a2a5b281.9fc21",\r
4661         "type": "switchNode",\r
4662         "name": "switch dmnsidx == last (domainB)",\r
4663         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
4664         "comments": "",\r
4665         "outputs": 1,\r
4666         "x": 5786.33332824707,\r
4667         "y": 2889.3333435058594,\r
4668         "z": "1f8b432c.7b707d",\r
4669         "wires": [\r
4670             [\r
4671                 "51c23d0e.7b05dc",\r
4672                 "905f334d.4416a8"\r
4673             ]\r
4674         ]\r
4675     },\r
4676     {\r
4677         "id": "51c23d0e.7b05dc",\r
4678         "type": "outcomeTrue",\r
4679         "name": "true",\r
4680         "xml": "<outcome value='true'>\n",\r
4681         "comments": "",\r
4682         "outputs": 1,\r
4683         "x": 6016.33332824707,\r
4684         "y": 2885.3333435058594,\r
4685         "z": "1f8b432c.7b707d",\r
4686         "wires": [\r
4687             [\r
4688                 "6e6ce692.530ee8"\r
4689             ]\r
4690         ]\r
4691     },\r
4692     {\r
4693         "id": "6e6ce692.530ee8",\r
4694         "type": "set",\r
4695         "name": "set attachment_param domain B",\r
4696         "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
4697         "comments": "",\r
4698         "x": 6230.33332824707,\r
4699         "y": 2888.3333435058594,\r
4700         "z": "1f8b432c.7b707d",\r
4701         "wires": []\r
4702     },\r
4703     {\r
4704         "id": "72b43008.da4948",\r
4705         "type": "outcomeFalse",\r
4706         "name": "false",\r
4707         "xml": "<outcome value='false'>\n",\r
4708         "comments": "",\r
4709         "outputs": 1,\r
4710         "x": 5569.33332824707,\r
4711         "y": 2887.3333435058594,\r
4712         "z": "1f8b432c.7b707d",\r
4713         "wires": [\r
4714             [\r
4715                 "a2a5b281.9fc21"\r
4716             ]\r
4717         ]\r
4718     },\r
4719     {\r
4720         "id": "905f334d.4416a8",\r
4721         "type": "outcomeFalse",\r
4722         "name": "false",\r
4723         "xml": "<outcome value='false'>\n",\r
4724         "comments": "",\r
4725         "outputs": 1,\r
4726         "x": 6017.33332824707,\r
4727         "y": 2931.3333435058594,\r
4728         "z": "1f8b432c.7b707d",\r
4729         "wires": [\r
4730             [\r
4731                 "17f66f36.7df949"\r
4732             ]\r
4733         ]\r
4734     },\r
4735     {\r
4736         "id": "17f66f36.7df949",\r
4737         "type": "set",\r
4738         "name": "set attachment_param domain G",\r
4739         "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
4740         "comments": "",\r
4741         "x": 6231.33332824707,\r
4742         "y": 2931.3333435058594,\r
4743         "z": "1f8b432c.7b707d",\r
4744         "wires": []\r
4745     },\r
4746     {\r
4747         "id": "31ff32a6.490d6e",\r
4748         "type": "set",\r
4749         "name": "set tmp.slicevpns",\r
4750         "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
4751         "comments": "",\r
4752         "x": 6129.33332824707,\r
4753         "y": 2980.3333435058594,\r
4754         "z": "1f8b432c.7b707d",\r
4755         "wires": []\r
4756     },\r
4757     {\r
4758         "id": "b4dc52fa.e41dc8",\r
4759         "type": "switchNode",\r
4760         "name": "switch vpnuuid is for this slice",\r
4761         "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n    \n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `\">\n",\r
4762         "comments": "",\r
4763         "outputs": 1,\r
4764         "x": 4693.33332824707,\r
4765         "y": 4204.333343505859,\r
4766         "z": "1f8b432c.7b707d",\r
4767         "wires": [\r
4768             [\r
4769                 "ddeec6d8.2b66d",\r
4770                 "ad3e1b09.a7dd3"\r
4771             ]\r
4772         ]\r
4773     },\r
4774     {\r
4775         "id": "ddeec6d8.2b66d",\r
4776         "type": "outcomeTrue",\r
4777         "name": "true",\r
4778         "xml": "<outcome value='true'>\n",\r
4779         "comments": "",\r
4780         "outputs": 1,\r
4781         "x": 4910.33332824707,\r
4782         "y": 4183.333343505859,\r
4783         "z": "1f8b432c.7b707d",\r
4784         "wires": [\r
4785             [\r
4786                 "faf87a35.78eb88"\r
4787             ]\r
4788         ]\r
4789     },\r
4790     {\r
4791         "id": "ad3e1b09.a7dd3",\r
4792         "type": "outcomeFalse",\r
4793         "name": "false",\r
4794         "xml": "<outcome value='false'>\n",\r
4795         "comments": "",\r
4796         "outputs": 1,\r
4797         "x": 4910.33332824707,\r
4798         "y": 4232.333343505859,\r
4799         "z": "1f8b432c.7b707d",\r
4800         "wires": [\r
4801             []\r
4802         ]\r
4803     },\r
4804     {\r
4805         "id": "faf87a35.78eb88",\r
4806         "type": "block",\r
4807         "name": "block : atomic",\r
4808         "xml": "<block atomic='true'>",\r
4809         "atomic": "true",\r
4810         "comments": "",\r
4811         "outputs": 1,\r
4812         "x": 5078.33332824707,\r
4813         "y": 4183.333343505859,\r
4814         "z": "1f8b432c.7b707d",\r
4815         "wires": [\r
4816             [\r
4817                 "b7b629ca.699bf",\r
4818                 "97c70d48.16fe38"\r
4819             ]\r
4820         ]\r
4821     },\r
4822     {\r
4823         "id": "b7e06d6e.f371a",\r
4824         "type": "save",\r
4825         "name": "get logical-link from aai",\r
4826         "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
4827         "comments": "",\r
4828         "outputs": 1,\r
4829         "x": 1418.3333282470703,\r
4830         "y": 814.3333435058594,\r
4831         "z": "1f8b432c.7b707d",\r
4832         "wires": [\r
4833             [\r
4834                 "16c2412b.16deaf",\r
4835                 "ae26bbae.e630b8",\r
4836                 "e8c1e05c.a0ff5"\r
4837             ]\r
4838         ]\r
4839     },\r
4840     {\r
4841         "id": "16c2412b.16deaf",\r
4842         "type": "not-found",\r
4843         "name": "not-found",\r
4844         "xml": "<outcome value='not-found'>\n",\r
4845         "comments": "",\r
4846         "outputs": 1,\r
4847         "x": 1630.8242950439453,\r
4848         "y": 780.9073181152344,\r
4849         "z": "1f8b432c.7b707d",\r
4850         "wires": [\r
4851             [\r
4852                 "28aa8e7b.7b6a9a"\r
4853             ]\r
4854         ]\r
4855     },\r
4856     {\r
4857         "id": "ae26bbae.e630b8",\r
4858         "type": "failure",\r
4859         "name": "failure",\r
4860         "xml": "<outcome value='failure'>\n",\r
4861         "comments": "",\r
4862         "outputs": 1,\r
4863         "x": 1619.3333282470703,\r
4864         "y": 825.3333435058594,\r
4865         "z": "1f8b432c.7b707d",\r
4866         "wires": [\r
4867             [\r
4868                 "d31e63f3.254"\r
4869             ]\r
4870         ]\r
4871     },\r
4872     {\r
4873         "id": "28aa8e7b.7b6a9a",\r
4874         "type": "returnFailure",\r
4875         "name": "return failure",\r
4876         "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
4877         "comments": "",\r
4878         "x": 1779.3958282470703,\r
4879         "y": 781.1930847167969,\r
4880         "z": "1f8b432c.7b707d",\r
4881         "wires": []\r
4882     },\r
4883     {\r
4884         "id": "d31e63f3.254",\r
4885         "type": "returnFailure",\r
4886         "name": "return failure",\r
4887         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
4888         "comments": "",\r
4889         "x": 1778.3333282470703,\r
4890         "y": 825.3333435058594,\r
4891         "z": "1f8b432c.7b707d",\r
4892         "wires": []\r
4893     },\r
4894     {\r
4895         "id": "e8c1e05c.a0ff5",\r
4896         "type": "success",\r
4897         "name": "success",\r
4898         "xml": "<outcome value='success'>\n",\r
4899         "comments": "",\r
4900         "outputs": 1,\r
4901         "x": 1624.3333282470703,\r
4902         "y": 868.3333435058594,\r
4903         "z": "1f8b432c.7b707d",\r
4904         "wires": [\r
4905             [\r
4906                 "c3b9530.73a28b"\r
4907             ]\r
4908         ]\r
4909     },\r
4910     {\r
4911         "id": "c3b9530.73a28b",\r
4912         "type": "block",\r
4913         "name": "block : atomic",\r
4914         "xml": "<block atomic='true'>",\r
4915         "atomic": "true",\r
4916         "comments": "",\r
4917         "outputs": 1,\r
4918         "x": 770.3333282470703,\r
4919         "y": 1207.3333435058594,\r
4920         "z": "1f8b432c.7b707d",\r
4921         "wires": [\r
4922             [\r
4923                 "3e859b6c.a626d4"\r
4924             ]\r
4925         ]\r
4926     },\r
4927     {\r
4928         "id": "3e859b6c.a626d4",\r
4929         "type": "for",\r
4930         "name": "for each svc-instance relationship",\r
4931         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
4932         "comments": "",\r
4933         "outputs": 1,\r
4934         "x": 1044.3333282470703,\r
4935         "y": 1207.3333435058594,\r
4936         "z": "1f8b432c.7b707d",\r
4937         "wires": [\r
4938             [\r
4939                 "9fdac28f.05e248"\r
4940             ]\r
4941         ]\r
4942     },\r
4943     {\r
4944         "id": "9fdac28f.05e248",\r
4945         "type": "switchNode",\r
4946         "name": "switch related-to",\r
4947         "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
4948         "comments": "",\r
4949         "outputs": 1,\r
4950         "x": 1279.6668243408203,\r
4951         "y": 1208.3333435058594,\r
4952         "z": "1f8b432c.7b707d",\r
4953         "wires": [\r
4954             [\r
4955                 "6b8b4db1.78e19c"\r
4956             ]\r
4957         ]\r
4958     },\r
4959     {\r
4960         "id": "6b8b4db1.78e19c",\r
4961         "type": "outcome",\r
4962         "name": "connectivity",\r
4963         "xml": "<outcome value='connectivity'>\n",\r
4964         "comments": "",\r
4965         "outputs": 1,\r
4966         "x": 563.3335723876953,\r
4967         "y": 1361.3333435058594,\r
4968         "z": "1f8b432c.7b707d",\r
4969         "wires": [\r
4970             [\r
4971                 "2aa5f521.f24e92"\r
4972             ]\r
4973         ]\r
4974     },\r
4975     {\r
4976         "id": "83814db5.2acc38",\r
4977         "type": "save",\r
4978         "name": "get connectivity from aai",\r
4979         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
4980         "comments": "",\r
4981         "outputs": 1,\r
4982         "x": 952.3333282470703,\r
4983         "y": 1366.3333435058594,\r
4984         "z": "1f8b432c.7b707d",\r
4985         "wires": [\r
4986             [\r
4987                 "f08fdd90.4c3b48",\r
4988                 "74408ee8.7c8248",\r
4989                 "bddcb73f.c2f73"\r
4990             ]\r
4991         ]\r
4992     },\r
4993     {\r
4994         "id": "f08fdd90.4c3b48",\r
4995         "type": "success",\r
4996         "name": "success",\r
4997         "xml": "<outcome value='success'>\n",\r
4998         "comments": "",\r
4999         "outputs": 1,\r
5000         "x": 1148.3333282470703,\r
5001         "y": 1331.3333435058594,\r
5002         "z": "1f8b432c.7b707d",\r
5003         "wires": [\r
5004             [\r
5005                 "b8ac9b43.4a9818"\r
5006             ]\r
5007         ]\r
5008     },\r
5009     {\r
5010         "id": "74408ee8.7c8248",\r
5011         "type": "not-found",\r
5012         "name": "not-found",\r
5013         "xml": "<outcome value='not-found'>\n",\r
5014         "comments": "",\r
5015         "outputs": 1,\r
5016         "x": 1148.8242950439453,\r
5017         "y": 1376.9073791503906,\r
5018         "z": "1f8b432c.7b707d",\r
5019         "wires": [\r
5020             [\r
5021                 "dda3b631.5e1b9"\r
5022             ]\r
5023         ]\r
5024     },\r
5025     {\r
5026         "id": "bddcb73f.c2f73",\r
5027         "type": "failure",\r
5028         "name": "failure",\r
5029         "xml": "<outcome value='failure'>\n",\r
5030         "comments": "",\r
5031         "outputs": 1,\r
5032         "x": 1113.3333282470703,\r
5033         "y": 1422.3333435058594,\r
5034         "z": "1f8b432c.7b707d",\r
5035         "wires": [\r
5036             [\r
5037                 "c0397cda.3cd818"\r
5038             ]\r
5039         ]\r
5040     },\r
5041     {\r
5042         "id": "dda3b631.5e1b9",\r
5043         "type": "returnFailure",\r
5044         "name": "return failure",\r
5045         "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
5046         "comments": "",\r
5047         "x": 1308.3958282470703,\r
5048         "y": 1374.1930847167969,\r
5049         "z": "1f8b432c.7b707d",\r
5050         "wires": []\r
5051     },\r
5052     {\r
5053         "id": "c0397cda.3cd818",\r
5054         "type": "returnFailure",\r
5055         "name": "return failure",\r
5056         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5057         "comments": "",\r
5058         "x": 1266.3333282470703,\r
5059         "y": 1424.3333435058594,\r
5060         "z": "1f8b432c.7b707d",\r
5061         "wires": []\r
5062     },\r
5063     {\r
5064         "id": "4d852904.6e1e58",\r
5065         "type": "switchNode",\r
5066         "name": "switch loglink-id exists in conn",\r
5067         "xml": "<switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>\n",\r
5068         "comments": "",\r
5069         "outputs": 1,\r
5070         "x": 1541.3333282470703,\r
5071         "y": 1314.3333435058594,\r
5072         "z": "1f8b432c.7b707d",\r
5073         "wires": [\r
5074             [\r
5075                 "28fd1bef.755efc",\r
5076                 "5889d337.e7ce3c"\r
5077             ]\r
5078         ]\r
5079     },\r
5080     {\r
5081         "id": "28fd1bef.755efc",\r
5082         "type": "outcomeTrue",\r
5083         "name": "true",\r
5084         "xml": "<outcome value='true'>\n",\r
5085         "comments": "",\r
5086         "outputs": 1,\r
5087         "x": 1752.3333282470703,\r
5088         "y": 1279.3333435058594,\r
5089         "z": "1f8b432c.7b707d",\r
5090         "wires": [\r
5091             [\r
5092                 "b34d6866.bc5698"\r
5093             ]\r
5094         ]\r
5095     },\r
5096     {\r
5097         "id": "5889d337.e7ce3c",\r
5098         "type": "outcomeFalse",\r
5099         "name": "false",\r
5100         "xml": "<outcome value='false'>\n",\r
5101         "comments": "",\r
5102         "outputs": 1,\r
5103         "x": 1749.3333282470703,\r
5104         "y": 1340.3333435058594,\r
5105         "z": "1f8b432c.7b707d",\r
5106         "wires": [\r
5107             []\r
5108         ]\r
5109     },\r
5110     {\r
5111         "id": "2876f138.d4a73e",\r
5112         "type": "set",\r
5113         "name": "set currLinkIsFound",\r
5114         "xml": "<set>\n<parameter name='currLinkIsFound' value=\"true\" />\n\n\n",\r
5115         "comments": "",\r
5116         "x": 2090.3333282470703,\r
5117         "y": 1252.3333435058594,\r
5118         "z": "1f8b432c.7b707d",\r
5119         "wires": []\r
5120     },\r
5121     {\r
5122         "id": "b34d6866.bc5698",\r
5123         "type": "block",\r
5124         "name": "block : atomic",\r
5125         "xml": "<block atomic=\"true\">",\r
5126         "atomic": "true",\r
5127         "outputs": 1,\r
5128         "x": 1904.3333282470703,\r
5129         "y": 1280.3333435058594,\r
5130         "z": "1f8b432c.7b707d",\r
5131         "wires": [\r
5132             [\r
5133                 "2876f138.d4a73e"\r
5134             ]\r
5135         ]\r
5136     },\r
5137     {\r
5138         "id": "6674b61e.a06d68",\r
5139         "type": "break",\r
5140         "name": "break",\r
5141         "xml": "<break>\n",\r
5142         "comments": "",\r
5143         "x": 2057.3333282470703,\r
5144         "y": 1308.3333435058594,\r
5145         "z": "1f8b432c.7b707d",\r
5146         "wires": []\r
5147     },\r
5148     {\r
5149         "id": "ee2fec7a.bb72",\r
5150         "type": "comment",\r
5151         "name": "currLinkIsFound. Go to the next logical-link",\r
5152         "info": "",\r
5153         "comments": "",\r
5154         "x": 2062.3333282470703,\r
5155         "y": 1202.3333435058594,\r
5156         "z": "1f8b432c.7b707d",\r
5157         "wires": []\r
5158     },\r
5159     {\r
5160         "id": "9653963e.b4d7a8",\r
5161         "type": "switchNode",\r
5162         "name": "switch currLinkIsFound",\r
5163         "xml": "<switch test='`$currLinkIsFound`'>\n",\r
5164         "comments": "",\r
5165         "outputs": 1,\r
5166         "x": 1344.3333282470703,\r
5167         "y": 932.3333435058594,\r
5168         "z": "1f8b432c.7b707d",\r
5169         "wires": [\r
5170             [\r
5171                 "78ad0a60.3340ec",\r
5172                 "c4221fd4.9cf0f8"\r
5173             ]\r
5174         ]\r
5175     },\r
5176     {\r
5177         "id": "78ad0a60.3340ec",\r
5178         "type": "outcomeTrue",\r
5179         "name": "true",\r
5180         "xml": "<outcome value='true'>\n",\r
5181         "comments": "",\r
5182         "outputs": 1,\r
5183         "x": 1530.3333282470703,\r
5184         "y": 911.3333435058594,\r
5185         "z": "1f8b432c.7b707d",\r
5186         "wires": [\r
5187             [\r
5188                 "9a111eaa.a49b48"\r
5189             ]\r
5190         ]\r
5191     },\r
5192     {\r
5193         "id": "c4221fd4.9cf0f8",\r
5194         "type": "outcomeFalse",\r
5195         "name": "false",\r
5196         "xml": "<outcome value='false'>\n",\r
5197         "comments": "",\r
5198         "outputs": 1,\r
5199         "x": 1527.3333282470703,\r
5200         "y": 1047.3333435058594,\r
5201         "z": "1f8b432c.7b707d",\r
5202         "wires": [\r
5203             [\r
5204                 "498e3ba4.cbc914"\r
5205             ]\r
5206         ]\r
5207     },\r
5208     {\r
5209         "id": "9a111eaa.a49b48",\r
5210         "type": "block",\r
5211         "name": "block : atomic",\r
5212         "xml": "<block atomic=\"true\">",\r
5213         "atomic": "true",\r
5214         "outputs": 1,\r
5215         "x": 1772.3333282470703,\r
5216         "y": 906.3333435058594,\r
5217         "z": "1f8b432c.7b707d",\r
5218         "wires": [\r
5219             []\r
5220         ]\r
5221     },\r
5222     {\r
5223         "id": "bd09e3c8.ced5f8",\r
5224         "type": "comment",\r
5225         "name": "A new logical-link has been found: modify process should be triggered",\r
5226         "info": "",\r
5227         "comments": "",\r
5228         "x": 1718.3333282470703,\r
5229         "y": 1010.3333435058594,\r
5230         "z": "1f8b432c.7b707d",\r
5231         "wires": []\r
5232     },\r
5233     {\r
5234         "id": "b8ac9b43.4a9818",\r
5235         "type": "block",\r
5236         "name": "block : atomic",\r
5237         "xml": "<block atomic=\"true\">",\r
5238         "atomic": "true",\r
5239         "outputs": 1,\r
5240         "x": 1312.3333282470703,\r
5241         "y": 1315.3333435058594,\r
5242         "z": "1f8b432c.7b707d",\r
5243         "wires": [\r
5244             [\r
5245                 "4d852904.6e1e58",\r
5246                 "275b774d.5d0718"\r
5247             ]\r
5248         ]\r
5249     },\r
5250     {\r
5251         "id": "275b774d.5d0718",\r
5252         "type": "switchNode",\r
5253         "name": "switch connectivityBW == gfp",\r
5254         "xml": "<switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>\n",\r
5255         "comments": "",\r
5256         "outputs": 1,\r
5257         "x": 1542.3333282470703,\r
5258         "y": 1405.3333435058594,\r
5259         "z": "1f8b432c.7b707d",\r
5260         "wires": [\r
5261             [\r
5262                 "8ffa4f79.ade61",\r
5263                 "c4dfc850.994ac"\r
5264             ]\r
5265         ]\r
5266     },\r
5267     {\r
5268         "id": "8ffa4f79.ade61",\r
5269         "type": "outcomeTrue",\r
5270         "name": "true",\r
5271         "xml": "<outcome value='true'>\n",\r
5272         "comments": "",\r
5273         "outputs": 1,\r
5274         "x": 1747.3333282470703,\r
5275         "y": 1401.3333435058594,\r
5276         "z": "1f8b432c.7b707d",\r
5277         "wires": [\r
5278             []\r
5279         ]\r
5280     },\r
5281     {\r
5282         "id": "c4dfc850.994ac",\r
5283         "type": "outcomeFalse",\r
5284         "name": "false",\r
5285         "xml": "<outcome value='false'>\n",\r
5286         "comments": "",\r
5287         "outputs": 1,\r
5288         "x": 1749.3333282470703,\r
5289         "y": 1451.3333435058594,\r
5290         "z": "1f8b432c.7b707d",\r
5291         "wires": [\r
5292             [\r
5293                 "30c2ae4.1f45052"\r
5294             ]\r
5295         ]\r
5296     },\r
5297     {\r
5298         "id": "30007844.075cd",\r
5299         "type": "set",\r
5300         "name": "set bwModified",\r
5301         "xml": "<set>\n<parameter name='bwModified' value=\"true\" />\n\n\n",\r
5302         "comments": "",\r
5303         "x": 2098.3333282470703,\r
5304         "y": 1429.3333435058594,\r
5305         "z": "1f8b432c.7b707d",\r
5306         "wires": []\r
5307     },\r
5308     {\r
5309         "id": "30c2ae4.1f45052",\r
5310         "type": "block",\r
5311         "name": "block : atomic",\r
5312         "xml": "<block atomic=\"true\">",\r
5313         "atomic": "true",\r
5314         "outputs": 1,\r
5315         "x": 1903.3333282470703,\r
5316         "y": 1450.3333435058594,\r
5317         "z": "1f8b432c.7b707d",\r
5318         "wires": [\r
5319             [\r
5320                 "30007844.075cd",\r
5321                 "b1f43ea6.58c508"\r
5322             ]\r
5323         ]\r
5324     },\r
5325     {\r
5326         "id": "b1f43ea6.58c508",\r
5327         "type": "for",\r
5328         "name": "for each relationship",\r
5329         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
5330         "comments": "",\r
5331         "outputs": 1,\r
5332         "x": 923.3333282470703,\r
5333         "y": 1655.3333435058594,\r
5334         "z": "1f8b432c.7b707d",\r
5335         "wires": [\r
5336             [\r
5337                 "5f59c5b8.8000ec"\r
5338             ]\r
5339         ]\r
5340     },\r
5341     {\r
5342         "id": "5f59c5b8.8000ec",\r
5343         "type": "switchNode",\r
5344         "name": "switch related-to",\r
5345         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
5346         "comments": "",\r
5347         "outputs": 1,\r
5348         "x": 1128.3333282470703,\r
5349         "y": 1655.3333435058594,\r
5350         "z": "1f8b432c.7b707d",\r
5351         "wires": [\r
5352             [\r
5353                 "d7cb533e.bd93a"\r
5354             ]\r
5355         ]\r
5356     },\r
5357     {\r
5358         "id": "d7cb533e.bd93a",\r
5359         "type": "outcome",\r
5360         "name": "vpn-binding",\r
5361         "xml": "<outcome value='vpn-binding'>\n",\r
5362         "comments": "",\r
5363         "outputs": 1,\r
5364         "x": 1294.3333282470703,\r
5365         "y": 1655.3333435058594,\r
5366         "z": "1f8b432c.7b707d",\r
5367         "wires": [\r
5368             [\r
5369                 "5c501362.927b6c"\r
5370             ]\r
5371         ]\r
5372     },\r
5373     {\r
5374         "id": "5c501362.927b6c",\r
5375         "type": "block",\r
5376         "name": "block : atomic",\r
5377         "xml": "<block atomic=\"true\">",\r
5378         "atomic": "true",\r
5379         "outputs": 1,\r
5380         "x": 1457.3333282470703,\r
5381         "y": 1655.3333435058594,\r
5382         "z": "1f8b432c.7b707d",\r
5383         "wires": [\r
5384             [\r
5385                 "53a207fe.affe78",\r
5386                 "2105f763.ee4f68"\r
5387             ]\r
5388         ]\r
5389     },\r
5390     {\r
5391         "id": "2105f763.ee4f68",\r
5392         "type": "set",\r
5393         "name": "unset tmp.aai.vpn-binding",\r
5394         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
5395         "comments": "",\r
5396         "x": 1686.3333282470703,\r
5397         "y": 1595.3333435058594,\r
5398         "z": "1f8b432c.7b707d",\r
5399         "wires": []\r
5400     },\r
5401     {\r
5402         "id": "53a207fe.affe78",\r
5403         "type": "save",\r
5404         "name": "get vpn-binding from aai",\r
5405         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
5406         "comments": "",\r
5407         "outputs": 1,\r
5408         "x": 1195.3333282470703,\r
5409         "y": 1749.3333435058594,\r
5410         "z": "1f8b432c.7b707d",\r
5411         "wires": [\r
5412             [\r
5413                 "96d7c193.8b3058",\r
5414                 "915fad51.2fe24",\r
5415                 "52119562.4019b4"\r
5416             ]\r
5417         ]\r
5418     },\r
5419     {\r
5420         "id": "e9bb6625.bf214",\r
5421         "type": "block",\r
5422         "name": "block : atomic",\r
5423         "xml": "<block atomic=\"true\">",\r
5424         "atomic": "true",\r
5425         "outputs": 1,\r
5426         "x": 1579.3333282470703,\r
5427         "y": 1749.3333435058594,\r
5428         "z": "1f8b432c.7b707d",\r
5429         "wires": [\r
5430             [\r
5431                 "aea8b329.30e9d",\r
5432                 "4aaf718e.250ab8"\r
5433             ]\r
5434         ]\r
5435     },\r
5436     {\r
5437         "id": "96d7c193.8b3058",\r
5438         "type": "success",\r
5439         "name": "success",\r
5440         "xml": "<outcome value='success'>\n",\r
5441         "comments": "",\r
5442         "outputs": 1,\r
5443         "x": 1406.3333282470703,\r
5444         "y": 1751.3333435058594,\r
5445         "z": "1f8b432c.7b707d",\r
5446         "wires": [\r
5447             [\r
5448                 "e9bb6625.bf214"\r
5449             ]\r
5450         ]\r
5451     },\r
5452     {\r
5453         "id": "915fad51.2fe24",\r
5454         "type": "not-found",\r
5455         "name": "not-found",\r
5456         "xml": "<outcome value='not-found'>\n",\r
5457         "comments": "",\r
5458         "outputs": 1,\r
5459         "x": 1406.8242950439453,\r
5460         "y": 1796.9073791503906,\r
5461         "z": "1f8b432c.7b707d",\r
5462         "wires": [\r
5463             [\r
5464                 "9471576f.097388"\r
5465             ]\r
5466         ]\r
5467     },\r
5468     {\r
5469         "id": "52119562.4019b4",\r
5470         "type": "failure",\r
5471         "name": "failure",\r
5472         "xml": "<outcome value='failure'>\n",\r
5473         "comments": "",\r
5474         "outputs": 1,\r
5475         "x": 1404.3333282470703,\r
5476         "y": 1840.3333435058594,\r
5477         "z": "1f8b432c.7b707d",\r
5478         "wires": [\r
5479             [\r
5480                 "18330305.6a2a7d"\r
5481             ]\r
5482         ]\r
5483     },\r
5484     {\r
5485         "id": "18330305.6a2a7d",\r
5486         "type": "returnFailure",\r
5487         "name": "return failure",\r
5488         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5489         "comments": "",\r
5490         "x": 1571.3333282470703,\r
5491         "y": 1857.3333435058594,\r
5492         "z": "1f8b432c.7b707d",\r
5493         "wires": []\r
5494     },\r
5495     {\r
5496         "id": "9471576f.097388",\r
5497         "type": "returnFailure",\r
5498         "name": "return failure",\r
5499         "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
5500         "comments": "",\r
5501         "x": 1569.3957061767578,\r
5502         "y": 1797.193115234375,\r
5503         "z": "1f8b432c.7b707d",\r
5504         "wires": []\r
5505     },\r
5506     {\r
5507         "id": "2aa5f521.f24e92",\r
5508         "type": "block",\r
5509         "name": "block : atomic",\r
5510         "xml": "<block atomic=\"true\">",\r
5511         "atomic": "true",\r
5512         "outputs": 1,\r
5513         "x": 735.3333282470703,\r
5514         "y": 1361.3333435058594,\r
5515         "z": "1f8b432c.7b707d",\r
5516         "wires": [\r
5517             [\r
5518                 "83814db5.2acc38",\r
5519                 "4cdc6ff0.28b37"\r
5520             ]\r
5521         ]\r
5522     },\r
5523     {\r
5524         "id": "4cdc6ff0.28b37",\r
5525         "type": "set",\r
5526         "name": "unset tmp.aai.connectivity",\r
5527         "xml": "<set>\n<parameter name='tmp.aai.connectivity.' value='' />\n",\r
5528         "comments": "",\r
5529         "x": 955.3333282470703,\r
5530         "y": 1309.3333435058594,\r
5531         "z": "1f8b432c.7b707d",\r
5532         "wires": []\r
5533     },\r
5534     {\r
5535         "id": "aea8b329.30e9d",\r
5536         "type": "save",\r
5537         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
5538         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n",\r
5539         "comments": "",\r
5540         "outputs": 1,\r
5541         "x": 1929.8333282470703,\r
5542         "y": 1744.3333435058594,\r
5543         "z": "1f8b432c.7b707d",\r
5544         "wires": [\r
5545             []\r
5546         ]\r
5547     },\r
5548     {\r
5549         "id": "4aaf718e.250ab8",\r
5550         "type": "save",\r
5551         "name": "update connectivity resource in AAI",\r
5552         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n",\r
5553         "comments": "",\r
5554         "outputs": 1,\r
5555         "x": 1856.8333282470703,\r
5556         "y": 1808.3333435058594,\r
5557         "z": "1f8b432c.7b707d",\r
5558         "wires": [\r
5559             []\r
5560         ]\r
5561     },\r
5562     {\r
5563         "id": "301a3cc6.e828c4",\r
5564         "type": "comment",\r
5565         "name": "The following two nodes are for PCE",\r
5566         "info": "",\r
5567         "comments": "",\r
5568         "x": 2001.3333282470703,\r
5569         "y": 136.33334350585938,\r
5570         "z": "1f8b432c.7b707d",\r
5571         "wires": []\r
5572     },\r
5573     {\r
5574         "id": "ba577b94.b0dc8",\r
5575         "type": "get-resource",\r
5576         "name": "get-resource pnfs-list",\r
5577         "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
5578         "comments": "",\r
5579         "outputs": 1,\r
5580         "x": 1961.3333282470703,\r
5581         "y": 180.33334350585938,\r
5582         "z": "1f8b432c.7b707d",\r
5583         "wires": [\r
5584             []\r
5585         ]\r
5586     },\r
5587     {\r
5588         "id": "efd37c2f.4ac7f",\r
5589         "type": "get-resource",\r
5590         "name": "get-resource logical-links",\r
5591         "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
5592         "comments": "",\r
5593         "outputs": 1,\r
5594         "x": 1974.3333282470703,\r
5595         "y": 225.33334350585938,\r
5596         "z": "1f8b432c.7b707d",\r
5597         "wires": [\r
5598             []\r
5599         ]\r
5600     },\r
5601     {\r
5602         "id": "8e0823d9.c3d5f",\r
5603         "type": "execute",\r
5604         "name": "execute printContext",\r
5605         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",\r
5606         "comments": "",\r
5607         "outputs": 1,\r
5608         "x": 4281.33332824707,\r
5609         "y": 2342.3333435058594,\r
5610         "z": "1f8b432c.7b707d",\r
5611         "wires": [\r
5612             []\r
5613         ]\r
5614     },\r
5615     {\r
5616         "id": "8465e4fd.6de0a",\r
5617         "type": "save",\r
5618         "name": "save connectivity resource in AAI",\r
5619         "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
5620         "comments": "",\r
5621         "outputs": 1,\r
5622         "x": 5572.33332824707,\r
5623         "y": 1179.3333435058594,\r
5624         "z": "1f8b432c.7b707d",\r
5625         "wires": [\r
5626             []\r
5627         ]\r
5628     },\r
5629     {\r
5630         "id": "642b12a.3e870ec",\r
5631         "type": "call",\r
5632         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-find-maximum-used-tpn",\r
5633         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
5634         "comments": "",\r
5635         "outputs": 1,\r
5636         "x": 4470.333740234375,\r
5637         "y": 2399.3333740234375,\r
5638         "z": "1f8b432c.7b707d",\r
5639         "wires": [\r
5640             []\r
5641         ]\r
5642     },\r
5643     {\r
5644         "id": "f34b01.8e0f75",\r
5645         "type": "switchNode",\r
5646         "name": "switch src and dst same domain?",\r
5647         "xml": "<switch test=\"`$param-prefix-domainA[$param-prefix-domainA_length -9] == $param-prefix-domainB[$param-prefix-domainB_length -9]`\">\n    \n    `\n\n",\r
5648         "comments": "",\r
5649         "outputs": 1,\r
5650         "x": 2923.666748046875,\r
5651         "y": 2446.33349609375,\r
5652         "z": "1f8b432c.7b707d",\r
5653         "wires": [\r
5654             [\r
5655                 "db4fc7e3.ebc94",\r
5656                 "5ec8edee.aa3afc"\r
5657             ]\r
5658         ]\r
5659     },\r
5660     {\r
5661         "id": "5ec8edee.aa3afc",\r
5662         "type": "outcomeFalse",\r
5663         "name": "false",\r
5664         "xml": "<outcome value='false'>\n",\r
5665         "comments": "",\r
5666         "outputs": 1,\r
5667         "x": 3137.6666870117188,\r
5668         "y": 2459.3333740234375,\r
5669         "z": "1f8b432c.7b707d",\r
5670         "wires": [\r
5671             [\r
5672                 "42219b91.01efdc"\r
5673             ]\r
5674         ]\r
5675     },\r
5676     {\r
5677         "id": "db4fc7e3.ebc94",\r
5678         "type": "outcomeTrue",\r
5679         "name": "true",\r
5680         "xml": "<outcome value='true'>\n",\r
5681         "comments": "",\r
5682         "outputs": 1,\r
5683         "x": 3118.6666259765625,\r
5684         "y": 2560.33349609375,\r
5685         "z": "1f8b432c.7b707d",\r
5686         "wires": [\r
5687             [\r
5688                 "5c61900d.2cdc2"\r
5689             ]\r
5690         ]\r
5691     },\r
5692     {\r
5693         "id": "42219b91.01efdc",\r
5694         "type": "call",\r
5695         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
5696         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
5697         "comments": "",\r
5698         "outputs": 1,\r
5699         "x": 3545.0001831054688,\r
5700         "y": 2465.66650390625,\r
5701         "z": "1f8b432c.7b707d",\r
5702         "wires": [\r
5703             [\r
5704                 "50b64f95.e5fb98"\r
5705             ]\r
5706         ]\r
5707     },\r
5708     {\r
5709         "id": "5c61900d.2cdc2",\r
5710         "type": "block",\r
5711         "name": "block",\r
5712         "xml": "<block>\n",\r
5713         "atomic": "false",\r
5714         "comments": "",\r
5715         "outputs": 1,\r
5716         "x": 3269.0000610351562,\r
5717         "y": 2560.66650390625,\r
5718         "z": "1f8b432c.7b707d",\r
5719         "wires": [\r
5720             [\r
5721                 "f027aef7.634db8",\r
5722                 "7a63eedd.e32c3",\r
5723                 "2b5a38a.97b3448",\r
5724                 "7fefe031.312d88"\r
5725             ]\r
5726         ]\r
5727     },\r
5728     {\r
5729         "id": "50b64f95.e5fb98",\r
5730         "type": "block",\r
5731         "name": "block : atomic",\r
5732         "xml": "<block atomic='true'>",\r
5733         "atomic": "true",\r
5734         "comments": "",\r
5735         "outputs": 1,\r
5736         "x": 3971.3333129882812,\r
5737         "y": 2465.33349609375,\r
5738         "z": "1f8b432c.7b707d",\r
5739         "wires": [\r
5740             [\r
5741                 "e65eb704.1a5ee"\r
5742             ]\r
5743         ]\r
5744     },\r
5745     {\r
5746         "id": "f027aef7.634db8",\r
5747         "type": "execute",\r
5748         "name": "execute UUID generator for vpn-binding $otnidx",\r
5749         "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
5750         "comments": "",\r
5751         "outputs": 1,\r
5752         "x": 3552.9999389648438,\r
5753         "y": 2566.3333740234375,\r
5754         "z": "1f8b432c.7b707d",\r
5755         "wires": [\r
5756             []\r
5757         ]\r
5758     },\r
5759     {\r
5760         "id": "7a63eedd.e32c3",\r
5761         "type": "set",\r
5762         "name": "set attachment_param Same Domain",\r
5763         "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
5764         "comments": "",\r
5765         "x": 3520.9999389648438,\r
5766         "y": 2626.6663818359375,\r
5767         "z": "1f8b432c.7b707d",\r
5768         "wires": []\r
5769     },\r
5770     {\r
5771         "id": "2b5a38a.97b3448",\r
5772         "type": "save",\r
5773         "name": "save vpn-binding same domain resource (aka. OTN) in AAI",\r
5774         "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
5775         "comments": "",\r
5776         "outputs": 1,\r
5777         "x": 3586.3331909179688,\r
5778         "y": 2682.6663818359375,\r
5779         "z": "1f8b432c.7b707d",\r
5780         "wires": [\r
5781             [\r
5782                 "1b626686.9373e9"\r
5783             ]\r
5784         ]\r
5785     },\r
5786     {\r
5787         "id": "1b626686.9373e9",\r
5788         "type": "success",\r
5789         "name": "success",\r
5790         "xml": "<outcome value='success'>\n",\r
5791         "comments": "",\r
5792         "outputs": 1,\r
5793         "x": 3903.3331909179688,\r
5794         "y": 2684.6663818359375,\r
5795         "z": "1f8b432c.7b707d",\r
5796         "wires": [\r
5797             [\r
5798                 "de4818c6.968eb8"\r
5799             ]\r
5800         ]\r
5801     },\r
5802     {\r
5803         "id": "de4818c6.968eb8",\r
5804         "type": "block",\r
5805         "name": "block",\r
5806         "xml": "<block>\n",\r
5807         "atomic": "false",\r
5808         "comments": "",\r
5809         "outputs": 1,\r
5810         "x": 4066.8331909179688,\r
5811         "y": 2683.9202880859375,\r
5812         "z": "1f8b432c.7b707d",\r
5813         "wires": [\r
5814             []\r
5815         ]\r
5816     },\r
5817     {\r
5818         "id": "7fefe031.312d88",\r
5819         "type": "save",\r
5820         "name": "save connectivity-domainA relationship to vpn-binding-sameDomain, in AAI",\r
5821         "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
5822         "comments": "",\r
5823         "outputs": 1,\r
5824         "x": 3634.9995727539062,\r
5825         "y": 2737.3331298828125,\r
5826         "z": "1f8b432c.7b707d",\r
5827         "wires": [\r
5828             []\r
5829         ]\r
5830     }\r
5831 ]