5256b6c765d279ca4cd0bf32c2ae9fc0768f71ae
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json
1 [\r
2     {\r
3         "id": "abafb433.2b07c",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 149,\r
8         "y": 95,\r
9         "z": "f861838.07df98",\r
10         "wires": [\r
11             [\r
12                 "8a2adf01.004b9"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "8a2adf01.004b9",\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": 274,\r
26         "y": 421.00001525878906,\r
27         "z": "f861838.07df98",\r
28         "wires": [\r
29             [\r
30                 "870eb920.3a709"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "870eb920.3a709",\r
36         "type": "method",\r
37         "name": "tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
38         "xml": "<method rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 338.0001220703125,\r
42         "y": 514,\r
43         "z": "f861838.07df98",\r
44         "wires": [\r
45             [\r
46                 "12c71cb4.bbd213"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "7b12bbea.4b296c",\r
52         "type": "execute",\r
53         "name": "execute RestApiCallNode getPath from OOF",\r
54         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url + '?ethsrvType=' + $prop.ethsrvType`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\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`\" />",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 820.9730834960938,\r
58         "y": 172.99600219726562,\r
59         "z": "f861838.07df98",\r
60         "wires": [\r
61             [\r
62                 "838f6988.2e418",\r
63                 "daadcad7.8d5718"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "838f6988.2e418",\r
69         "type": "success",\r
70         "name": "success",\r
71         "xml": "<outcome value='success'>\n",\r
72         "comments": "",\r
73         "outputs": 1,\r
74         "x": 1060.9732246398926,\r
75         "y": 196.9959716796875,\r
76         "z": "f861838.07df98",\r
77         "wires": [\r
78             [\r
79                 "e2aa0c83.94cd5"\r
80             ]\r
81         ]\r
82     },\r
83     {\r
84         "id": "1cd84c7f.13b994",\r
85         "type": "returnFailure",\r
86         "name": "return failure",\r
87         "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 OOF api\" />\n",\r
88         "comments": "",\r
89         "x": 1199.973258972168,\r
90         "y": 145.99606323242188,\r
91         "z": "f861838.07df98",\r
92         "wires": []\r
93     },\r
94     {\r
95         "id": "daadcad7.8d5718",\r
96         "type": "failure",\r
97         "name": "failure",\r
98         "xml": "<outcome value='failure'>\n",\r
99         "comments": "",\r
100         "outputs": 1,\r
101         "x": 1059.9730110168457,\r
102         "y": 145.99606227874756,\r
103         "z": "f861838.07df98",\r
104         "wires": [\r
105             [\r
106                 "1cd84c7f.13b994"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "fe1658e6.6b98a8",\r
112         "type": "comment",\r
113         "name": "OTN tunnel path computation",\r
114         "info": "TODO: check input parameters -- they should be\nthe source and destination of ETH node+tp.",\r
115         "comments": "",\r
116         "x": 792.4768829345703,\r
117         "y": 129.00000190734863,\r
118         "z": "f861838.07df98",\r
119         "wires": []\r
120     },\r
121     {\r
122         "id": "b6d123ad.aaa61",\r
123         "type": "for",\r
124         "name": "for vidx..otn-oof.solutions_length[]",\r
125         "xml": "<for index='vidx' start='0' end='`$otn-oof.solutions_length`' >",\r
126         "comments": "",\r
127         "outputs": 1,\r
128         "x": 811.972900390625,\r
129         "y": 482.2457275390625,\r
130         "z": "f861838.07df98",\r
131         "wires": [\r
132             [\r
133                 "64a6a0a3.de9e88"\r
134             ]\r
135         ]\r
136     },\r
137     {\r
138         "id": "32873616.6130da",\r
139         "type": "comment",\r
140         "name": "Loop through OTN links",\r
141         "info": "",\r
142         "comments": "",\r
143         "x": 895.4732055664062,\r
144         "y": 561.74609375,\r
145         "z": "f861838.07df98",\r
146         "wires": []\r
147     },\r
148     {\r
149         "id": "64a6a0a3.de9e88",\r
150         "type": "block",\r
151         "name": "block : atomic",\r
152         "xml": "<block atomic=\"true\">",\r
153         "atomic": "true",\r
154         "outputs": 1,\r
155         "x": 916.5001220703125,\r
156         "y": 673.2864990234375,\r
157         "z": "f861838.07df98",\r
158         "wires": [\r
159             [\r
160                 "ebe50f50.427a98",\r
161                 "c378542a.988188",\r
162                 "b9a4e12.dabba2"\r
163             ]\r
164         ]\r
165     },\r
166     {\r
167         "id": "ebe50f50.427a98",\r
168         "type": "get-resource",\r
169         "name": "get-resource cross-link",\r
170         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"logical-link\" \n\t\tkey=\"logical-link.link-name = $otn-oof.link-name\"\n        pfx='tmp.aai.cross-link' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n\n\n",\r
171         "comments": "",\r
172         "outputs": 1,\r
173         "x": 1173.5001220703125,\r
174         "y": 663.2864990234375,\r
175         "z": "f861838.07df98",\r
176         "wires": [\r
177             [\r
178                 "383ad684.d27f02",\r
179                 "92e0b7cd.135e8",\r
180                 "fc9654b0.26f8f8"\r
181             ]\r
182         ]\r
183     },\r
184     {\r
185         "id": "fc9654b0.26f8f8",\r
186         "type": "success",\r
187         "name": "success",\r
188         "xml": "<outcome value='success'>\n",\r
189         "comments": "",\r
190         "outputs": 1,\r
191         "x": 1375.0001220703125,\r
192         "y": 538.2864685058594,\r
193         "z": "f861838.07df98",\r
194         "wires": [\r
195             [\r
196                 "a60f2416.5968c8"\r
197             ]\r
198         ]\r
199     },\r
200     {\r
201         "id": "383ad684.d27f02",\r
202         "type": "not-found",\r
203         "name": "not-found",\r
204         "xml": "<outcome value='not-found'>\n",\r
205         "comments": "",\r
206         "outputs": 1,\r
207         "x": 1411.0001220703125,\r
208         "y": 663.2864990234375,\r
209         "z": "f861838.07df98",\r
210         "wires": [\r
211             [\r
212                 "1ff2406e.1859a"\r
213             ]\r
214         ]\r
215     },\r
216     {\r
217         "id": "92e0b7cd.135e8",\r
218         "type": "other",\r
219         "name": "other",\r
220         "xml": "<outcome value='Other'>\n",\r
221         "comments": "",\r
222         "outputs": 1,\r
223         "x": 1405.0001220703125,\r
224         "y": 713.2864990234375,\r
225         "z": "f861838.07df98",\r
226         "wires": [\r
227             [\r
228                 "a40efbb6.9e2848"\r
229             ]\r
230         ]\r
231     },\r
232     {\r
233         "id": "1ff2406e.1859a",\r
234         "type": "returnFailure",\r
235         "name": "return failure",\r
236         "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
237         "comments": "",\r
238         "x": 1572.0001220703125,\r
239         "y": 652.2864990234375,\r
240         "z": "f861838.07df98",\r
241         "wires": []\r
242     },\r
243     {\r
244         "id": "a40efbb6.9e2848",\r
245         "type": "returnFailure",\r
246         "name": "return failure",\r
247         "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
248         "comments": "",\r
249         "x": 1570.0001220703125,\r
250         "y": 708.2864990234375,\r
251         "z": "f861838.07df98",\r
252         "wires": []\r
253     },\r
254     {\r
255         "id": "4cfcfa39.a67414",\r
256         "type": "comment",\r
257         "name": "get cross-domain-link information",\r
258         "info": "",\r
259         "comments": "",\r
260         "x": 1179.5001220703125,\r
261         "y": 612.2864990234375,\r
262         "z": "f861838.07df98",\r
263         "wires": []\r
264     },\r
265     {\r
266         "id": "c378542a.988188",\r
267         "type": "set",\r
268         "name": "set otn-oof.link-name and etc.",\r
269         "xml": "<set>\n<parameter name='otn-oof.link-name' value='`$otn-oof.solutions[$vidx].link`' />\n<parameter name='otn-oof.start-node' value='`$otn-oof.solutions[$vidx].start_node`' />\n<parameter name='otn-oof.end-node' value='`$otn-oof.solutions[$vidx].end_node`' />",\r
270         "comments": "",\r
271         "x": 1163.0001220703125,\r
272         "y": 566.2864990234375,\r
273         "z": "f861838.07df98",\r
274         "wires": []\r
275     },\r
276     {\r
277         "id": "e2aa0c83.94cd5",\r
278         "type": "block",\r
279         "name": "block",\r
280         "xml": "<block>\n",\r
281         "atomic": "false",\r
282         "comments": "",\r
283         "outputs": 1,\r
284         "x": 1206.0002708435059,\r
285         "y": 194.74145698547363,\r
286         "z": "f861838.07df98",\r
287         "wires": [\r
288             []\r
289         ]\r
290     },\r
291     {\r
292         "id": "12c71cb4.bbd213",\r
293         "type": "block",\r
294         "name": "block : atomic",\r
295         "xml": "<block atomic=\"true\">",\r
296         "atomic": "true",\r
297         "outputs": 1,\r
298         "x": 578.9688835144043,\r
299         "y": 440.74163722991943,\r
300         "z": "f861838.07df98",\r
301         "wires": [\r
302             [\r
303                 "b6d123ad.aaa61",\r
304                 "7b12bbea.4b296c"\r
305             ]\r
306         ]\r
307     },\r
308     {\r
309         "id": "eed9f90d.625c7",\r
310         "type": "switchNode",\r
311         "name": "test cross-domain-link role",\r
312         "xml": "<switch test='`$tmp.aai.cross-link.link-role`'>\n",\r
313         "comments": "",\r
314         "outputs": 1,\r
315         "x": 1690.5001220703125,\r
316         "y": 538,\r
317         "z": "f861838.07df98",\r
318         "wires": [\r
319             [\r
320                 "84eec670.e2767"\r
321             ]\r
322         ]\r
323     },\r
324     {\r
325         "id": "84eec670.e2767",\r
326         "type": "outcome",\r
327         "name": "outcome cross-domain",\r
328         "xml": "<outcome value='cross-domain'>\n",\r
329         "comments": "",\r
330         "outputs": 1,\r
331         "x": 1926.5001220703125,\r
332         "y": 539,\r
333         "z": "f861838.07df98",\r
334         "wires": [\r
335             [\r
336                 "4da26d84.4c4d14"\r
337             ]\r
338         ]\r
339     },\r
340     {\r
341         "id": "1a6d08c1.f63207",\r
342         "type": "break",\r
343         "name": "break",\r
344         "xml": "<break>\n",\r
345         "comments": "",\r
346         "x": 2245.5,\r
347         "y": 1016,\r
348         "z": "f861838.07df98",\r
349         "wires": []\r
350     },\r
351     {\r
352         "id": "4da26d84.4c4d14",\r
353         "type": "block",\r
354         "name": "block : atomic",\r
355         "xml": "<block atomic=\"true\">",\r
356         "atomic": "true",\r
357         "outputs": 1,\r
358         "x": 2129.5001220703125,\r
359         "y": 540,\r
360         "z": "f861838.07df98",\r
361         "wires": [\r
362             [\r
363                 "1a6d08c1.f63207",\r
364                 "1f33bea3.a37e41",\r
365                 "a53fb0ab.3215e8",\r
366                 "1a72a670.f5c5ba"\r
367             ]\r
368         ]\r
369     },\r
370     {\r
371         "id": "d525a55b.c81c5",\r
372         "type": "success",\r
373         "name": "success",\r
374         "xml": "<outcome value='success'>\n",\r
375         "comments": "",\r
376         "outputs": 1,\r
377         "x": 2570,\r
378         "y": 507,\r
379         "z": "f861838.07df98",\r
380         "wires": [\r
381             [\r
382                 "424e6de2.ee50a4"\r
383             ]\r
384         ]\r
385     },\r
386     {\r
387         "id": "48c96b61.49802c",\r
388         "type": "not-found",\r
389         "name": "not-found",\r
390         "xml": "<outcome value='not-found'>\n",\r
391         "comments": "",\r
392         "outputs": 1,\r
393         "x": 2603.0001220703125,\r
394         "y": 565,\r
395         "z": "f861838.07df98",\r
396         "wires": [\r
397             [\r
398                 "90a49841.e9abd"\r
399             ]\r
400         ]\r
401     },\r
402     {\r
403         "id": "27012bae.421594",\r
404         "type": "other",\r
405         "name": "other",\r
406         "xml": "<outcome value='Other'>\n",\r
407         "comments": "",\r
408         "outputs": 1,\r
409         "x": 2606.0001220703125,\r
410         "y": 617,\r
411         "z": "f861838.07df98",\r
412         "wires": [\r
413             [\r
414                 "3218b6b1.58d4da"\r
415             ]\r
416         ]\r
417     },\r
418     {\r
419         "id": "90a49841.e9abd",\r
420         "type": "returnFailure",\r
421         "name": "return failure",\r
422         "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
423         "comments": "",\r
424         "x": 2788.0001220703125,\r
425         "y": 569,\r
426         "z": "f861838.07df98",\r
427         "wires": []\r
428     },\r
429     {\r
430         "id": "3218b6b1.58d4da",\r
431         "type": "returnFailure",\r
432         "name": "return failure",\r
433         "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
434         "comments": "",\r
435         "x": 2776.0001220703125,\r
436         "y": 620,\r
437         "z": "f861838.07df98",\r
438         "wires": []\r
439     },\r
440     {\r
441         "id": "818ff562.39e0e",\r
442         "type": "set",\r
443         "name": "set domain A node ttp-id",\r
444         "xml": "<set>\n<parameter name='tmp.domain-A.ttp-id' value=\"`$tmp.aai.src-tp.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />\n",\r
445         "comments": "",\r
446         "x": 3906.5,\r
447         "y": 422,\r
448         "z": "f861838.07df98",\r
449         "wires": []\r
450     },\r
451     {\r
452         "id": "f9b5c841.bb08a",\r
453         "type": "get-resource",\r
454         "name": "get-resource src TTP",\r
455         "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.domain-A.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.src-ttp' local-only='false' >\n\n\n",\r
456         "comments": "",\r
457         "outputs": 1,\r
458         "x": 3914.5,\r
459         "y": 474,\r
460         "z": "f861838.07df98",\r
461         "wires": [\r
462             [\r
463                 "a8ab9ca9.5f37d"\r
464             ]\r
465         ]\r
466     },\r
467     {\r
468         "id": "a8ab9ca9.5f37d",\r
469         "type": "success",\r
470         "name": "success",\r
471         "xml": "<outcome value='success'>\n",\r
472         "comments": "",\r
473         "outputs": 1,\r
474         "x": 4121,\r
475         "y": 452,\r
476         "z": "f861838.07df98",\r
477         "wires": [\r
478             [\r
479                 "f4704103.56f298"\r
480             ]\r
481         ]\r
482     },\r
483     {\r
484         "id": "d07aee9c.38cf",\r
485         "type": "outcome",\r
486         "name": "tunnel-termination-point",\r
487         "xml": "<outcome value='tunnel-termination-point'>\n",\r
488         "comments": "",\r
489         "outputs": 1,\r
490         "x": 3458.66845703125,\r
491         "y": 500.48150634765625,\r
492         "z": "f861838.07df98",\r
493         "wires": [\r
494             [\r
495                 "f5a5a2ae.b150d8"\r
496             ]\r
497         ]\r
498     },\r
499     {\r
500         "id": "94ee2310.15a178",\r
501         "type": "for",\r
502         "name": "for each relationship",\r
503         "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.src-tp.relationship-list.relationship_length`' >\n",\r
504         "comments": "",\r
505         "outputs": 1,\r
506         "x": 2921.3828125,\r
507         "y": 502.65972900390625,\r
508         "z": "f861838.07df98",\r
509         "wires": [\r
510             [\r
511                 "116f7db2.ea55a2"\r
512             ]\r
513         ]\r
514     },\r
515     {\r
516         "id": "116f7db2.ea55a2",\r
517         "type": "switchNode",\r
518         "name": "switch related-to",\r
519         "xml": "<switch test='`$tmp.aai.src-tp.relationship-list.relationship[$vidx].related-to`'>\n",\r
520         "comments": "",\r
521         "outputs": 1,\r
522         "x": 3173.3828125,\r
523         "y": 499.65972900390625,\r
524         "z": "f861838.07df98",\r
525         "wires": [\r
526             [\r
527                 "d07aee9c.38cf"\r
528             ]\r
529         ]\r
530     },\r
531     {\r
532         "id": "f5a5a2ae.b150d8",\r
533         "type": "block",\r
534         "name": "block : atomic",\r
535         "xml": "<block atomic=\"true\">",\r
536         "atomic": "true",\r
537         "outputs": 1,\r
538         "x": 3685.5,\r
539         "y": 489,\r
540         "z": "f861838.07df98",\r
541         "wires": [\r
542             [\r
543                 "818ff562.39e0e",\r
544                 "f9b5c841.bb08a",\r
545                 "fa235f06.dbc5c8",\r
546                 "825f6c70.9f6d6",\r
547                 "6fa2423a.fd13dc"\r
548             ]\r
549         ]\r
550     },\r
551     {\r
552         "id": "1f33bea3.a37e41",\r
553         "type": "get-resource",\r
554         "name": "get-resource dst tp",\r
555         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"p-interface\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst-pnf-name\n\t\t    AND p-interface.interface-name = $tmp.cross-link.dst-ltpId\"\n        pfx='tmp.aai.dst-tp' local-only='false' >\n    \n        <!--AND depth = '0'\"-->\n\n\n",\r
556         "comments": "",\r
557         "outputs": 1,\r
558         "x": 2326.5001220703125,\r
559         "y": 912,\r
560         "z": "f861838.07df98",\r
561         "wires": [\r
562             [\r
563                 "d37211e1.0a8088",\r
564                 "51af98c.c752568",\r
565                 "3fe7a459.6ee934"\r
566             ]\r
567         ]\r
568     },\r
569     {\r
570         "id": "d37211e1.0a8088",\r
571         "type": "success",\r
572         "name": "success",\r
573         "xml": "<outcome value='success'>\n",\r
574         "comments": "",\r
575         "outputs": 1,\r
576         "x": 2549,\r
577         "y": 1054,\r
578         "z": "f861838.07df98",\r
579         "wires": [\r
580             [\r
581                 "f87a46b2.f2f308"\r
582             ]\r
583         ]\r
584     },\r
585     {\r
586         "id": "51af98c.c752568",\r
587         "type": "not-found",\r
588         "name": "not-found",\r
589         "xml": "<outcome value='not-found'>\n",\r
590         "comments": "",\r
591         "outputs": 1,\r
592         "x": 2533,\r
593         "y": 1105,\r
594         "z": "f861838.07df98",\r
595         "wires": [\r
596             [\r
597                 "87af46d4.1052d"\r
598             ]\r
599         ]\r
600     },\r
601     {\r
602         "id": "3fe7a459.6ee934",\r
603         "type": "other",\r
604         "name": "other",\r
605         "xml": "<outcome value='Other'>\n",\r
606         "comments": "",\r
607         "outputs": 1,\r
608         "x": 2536,\r
609         "y": 1157,\r
610         "z": "f861838.07df98",\r
611         "wires": [\r
612             [\r
613                 "f5945933.94bc1"\r
614             ]\r
615         ]\r
616     },\r
617     {\r
618         "id": "f5945933.94bc1",\r
619         "type": "returnFailure",\r
620         "name": "return failure",\r
621         "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
622         "comments": "",\r
623         "x": 2706,\r
624         "y": 1160,\r
625         "z": "f861838.07df98",\r
626         "wires": []\r
627     },\r
628     {\r
629         "id": "87af46d4.1052d",\r
630         "type": "returnFailure",\r
631         "name": "return failure",\r
632         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
633         "comments": "",\r
634         "x": 2718,\r
635         "y": 1109,\r
636         "z": "f861838.07df98",\r
637         "wires": []\r
638     },\r
639     {\r
640         "id": "ee005d71.029a7",\r
641         "type": "for",\r
642         "name": "for each relationship",\r
643         "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.dst-tp.relationship-list.relationship_length`' >\n",\r
644         "comments": "",\r
645         "outputs": 1,\r
646         "x": 2905.3828125,\r
647         "y": 1064.6597290039062,\r
648         "z": "f861838.07df98",\r
649         "wires": [\r
650             [\r
651                 "d2d24abe.aac6a"\r
652             ]\r
653         ]\r
654     },\r
655     {\r
656         "id": "d2d24abe.aac6a",\r
657         "type": "switchNode",\r
658         "name": "switch related-to",\r
659         "xml": "<switch test='`$tmp.aai.dst-tp.relationship-list.relationship[$vidx].related-to`'>\n",\r
660         "comments": "",\r
661         "outputs": 1,\r
662         "x": 3148.3828125,\r
663         "y": 1063.6597290039062,\r
664         "z": "f861838.07df98",\r
665         "wires": [\r
666             [\r
667                 "328b374b.e6dea8"\r
668             ]\r
669         ]\r
670     },\r
671     {\r
672         "id": "a3d738bb.01d098",\r
673         "type": "block",\r
674         "name": "block : atomic",\r
675         "xml": "<block atomic=\"true\">",\r
676         "atomic": "true",\r
677         "outputs": 1,\r
678         "x": 4914.5,\r
679         "y": 865,\r
680         "z": "f861838.07df98",\r
681         "wires": [\r
682             [\r
683                 "d76ed9f4.607e58",\r
684                 "4049d8d0.576ec8",\r
685                 "6d1ae1e8.8376b8"\r
686             ]\r
687         ]\r
688     },\r
689     {\r
690         "id": "328b374b.e6dea8",\r
691         "type": "outcome",\r
692         "name": "tunnel-termination-point",\r
693         "xml": "<outcome value='tunnel-termination-point'>\n",\r
694         "comments": "",\r
695         "outputs": 1,\r
696         "x": 3404.66845703125,\r
697         "y": 1063.4815063476562,\r
698         "z": "f861838.07df98",\r
699         "wires": [\r
700             [\r
701                 "daeaf8a3.f790f8"\r
702             ]\r
703         ]\r
704     },\r
705     {\r
706         "id": "b11078d7.b3b858",\r
707         "type": "outcome",\r
708         "name": "network-resource",\r
709         "xml": "<outcome value='network-resource'>\n",\r
710         "comments": "",\r
711         "outputs": 1,\r
712         "x": 4701.5,\r
713         "y": 864,\r
714         "z": "f861838.07df98",\r
715         "wires": [\r
716             [\r
717                 "a3d738bb.01d098"\r
718             ]\r
719         ]\r
720     },\r
721     {\r
722         "id": "daeaf8a3.f790f8",\r
723         "type": "block",\r
724         "name": "block : atomic",\r
725         "xml": "<block atomic=\"true\">",\r
726         "atomic": "true",\r
727         "outputs": 1,\r
728         "x": 3704.5,\r
729         "y": 1061,\r
730         "z": "f861838.07df98",\r
731         "wires": [\r
732             [\r
733                 "590b13b.935b9ec",\r
734                 "b7482d1e.97b0b8",\r
735                 "4d91a36f.ea12e4",\r
736                 "32404ee3.71aeda",\r
737                 "88a4d7d3.2c52b"\r
738             ]\r
739         ]\r
740     },\r
741     {\r
742         "id": "590b13b.935b9ec",\r
743         "type": "set",\r
744         "name": "set domain B node ttp-id",\r
745         "xml": "<set>\n<parameter name='tmp.domain-B.ttp-id' value=\"`$tmp.aai.dst-tp.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />\n",\r
746         "comments": "",\r
747         "x": 3946.5,\r
748         "y": 1015,\r
749         "z": "f861838.07df98",\r
750         "wires": []\r
751     },\r
752     {\r
753         "id": "b7482d1e.97b0b8",\r
754         "type": "get-resource",\r
755         "name": "get-resource dst TTP",\r
756         "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.domain-B.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.dst-ttp' local-only='false' >\n\n\n",\r
757         "comments": "",\r
758         "outputs": 1,\r
759         "x": 3936.5,\r
760         "y": 1066,\r
761         "z": "f861838.07df98",\r
762         "wires": [\r
763             [\r
764                 "3475127.fd4c36e"\r
765             ]\r
766         ]\r
767     },\r
768     {\r
769         "id": "3475127.fd4c36e",\r
770         "type": "success",\r
771         "name": "success",\r
772         "xml": "<outcome value='success'>\n",\r
773         "comments": "",\r
774         "outputs": 1,\r
775         "x": 4124,\r
776         "y": 1064,\r
777         "z": "f861838.07df98",\r
778         "wires": [\r
779             [\r
780                 "8e8366a6.32694"\r
781             ]\r
782         ]\r
783     },\r
784     {\r
785         "id": "d76ed9f4.607e58",\r
786         "type": "set",\r
787         "name": "set domain B network-id",\r
788         "xml": "<set>\n<parameter name='tmp.domain-B.network-id' value=\"`$tmp.aai.dst-pnf.relationship-list.relationship[$mvidx].relationship-data[0].relationship-value`\" />\n",\r
789         "comments": "",\r
790         "x": 5184.5,\r
791         "y": 841,\r
792         "z": "f861838.07df98",\r
793         "wires": []\r
794     },\r
795     {\r
796         "id": "4049d8d0.576ec8",\r
797         "type": "get-resource",\r
798         "name": "get-resource dst network-resource",\r
799         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"network-resource.network-id = $tmp.domain-B.network-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.dst-network-resource' local-only='false' >\n\n\n",\r
800         "comments": "",\r
801         "outputs": 1,\r
802         "x": 5194.5,\r
803         "y": 887,\r
804         "z": "f861838.07df98",\r
805         "wires": [\r
806             [\r
807                 "e9f242cc.c24dd8"\r
808             ]\r
809         ]\r
810     },\r
811     {\r
812         "id": "e9f242cc.c24dd8",\r
813         "type": "success",\r
814         "name": "success",\r
815         "xml": "<outcome value='success'>\n",\r
816         "comments": "",\r
817         "outputs": 1,\r
818         "x": 5410,\r
819         "y": 878,\r
820         "z": "f861838.07df98",\r
821         "wires": [\r
822             [\r
823                 "43e26006.8bc19"\r
824             ]\r
825         ]\r
826     },\r
827     {\r
828         "id": "43e26006.8bc19",\r
829         "type": "set",\r
830         "name": "set domain B network-id, topo-id, client-id, etc",\r
831         "xml": "<set>\n<parameter name='domain-B.network-id' value=\"`$tmp.aai.dst-network-resource.network-id`\" />\n<parameter name='domain-B.provider-id' value=\"`$tmp.aai.dst-network-resource.provider-id`\" />\n<parameter name='domain-B.client-id' value=\"`$tmp.aai.dst-network-resource.client-id`\" />\n<parameter name='domain-B.te-topo-id' value=\"`$tmp.aai.dst-network-resource.te-topo-id`\" />\n<parameter name='domain-B.network-type' value=\"`$tmp.aai.dst-network-resource.network-type`\" />\n\n\n",\r
832         "comments": "",\r
833         "x": 5664.5,\r
834         "y": 884,\r
835         "z": "f861838.07df98",\r
836         "wires": []\r
837     },\r
838     {\r
839         "id": "424e6de2.ee50a4",\r
840         "type": "block",\r
841         "name": "block",\r
842         "xml": "<block>\n",\r
843         "atomic": "false",\r
844         "comments": "",\r
845         "outputs": 1,\r
846         "x": 2704,\r
847         "y": 503,\r
848         "z": "f861838.07df98",\r
849         "wires": [\r
850             [\r
851                 "94ee2310.15a178"\r
852             ]\r
853         ]\r
854     },\r
855     {\r
856         "id": "f87a46b2.f2f308",\r
857         "type": "block",\r
858         "name": "block",\r
859         "xml": "<block>\n",\r
860         "atomic": "false",\r
861         "comments": "",\r
862         "outputs": 1,\r
863         "x": 2695,\r
864         "y": 1045,\r
865         "z": "f861838.07df98",\r
866         "wires": [\r
867             [\r
868                 "ee005d71.029a7"\r
869             ]\r
870         ]\r
871     },\r
872     {\r
873         "id": "a60f2416.5968c8",\r
874         "type": "block",\r
875         "name": "block",\r
876         "xml": "<block>\n",\r
877         "atomic": "false",\r
878         "comments": "",\r
879         "outputs": 1,\r
880         "x": 1509,\r
881         "y": 540,\r
882         "z": "f861838.07df98",\r
883         "wires": [\r
884             [\r
885                 "eed9f90d.625c7"\r
886             ]\r
887         ]\r
888     },\r
889     {\r
890         "id": "a53fb0ab.3215e8",\r
891         "type": "for",\r
892         "name": "for each relationship",\r
893         "xml": "<for index='lridx' start='0' end='`$tmp.aai.cross-link.relationship-list.relationship_length`' >\n",\r
894         "comments": "",\r
895         "outputs": 1,\r
896         "x": 2279,\r
897         "y": 324,\r
898         "z": "f861838.07df98",\r
899         "wires": [\r
900             [\r
901                 "128e534.d6bf2ad"\r
902             ]\r
903         ]\r
904     },\r
905     {\r
906         "id": "128e534.d6bf2ad",\r
907         "type": "switchNode",\r
908         "name": "switch related-to",\r
909         "xml": "<switch test='`$tmp.aai.cross-link.relationship-list.relationship[$lridx].related-to`'>\n",\r
910         "comments": "",\r
911         "outputs": 1,\r
912         "x": 2478,\r
913         "y": 321,\r
914         "z": "f861838.07df98",\r
915         "wires": [\r
916             [\r
917                 "11b1dca5.336a6b"\r
918             ]\r
919         ]\r
920     },\r
921     {\r
922         "id": "11b1dca5.336a6b",\r
923         "type": "outcome",\r
924         "name": "p-interface",\r
925         "xml": "<outcome value='p-interface'>\n",\r
926         "comments": "",\r
927         "outputs": 1,\r
928         "x": 2655.117431640625,\r
929         "y": 319.34027099609375,\r
930         "z": "f861838.07df98",\r
931         "wires": [\r
932             [\r
933                 "16999964.0052a7"\r
934             ]\r
935         ]\r
936     },\r
937     {\r
938         "id": "a9fc0be8.cb4e7",\r
939         "type": "set",\r
940         "name": "set src-ltpId",\r
941         "xml": "<set>\n<parameter name='tmp.cross-link.src-ltpId' value=\"`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[1].relationship-value`\" />\n<parameter name='tmp.src-pnf-name' value=\"`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[0].relationship-value`\" />\n\n\n\n\n",\r
942         "comments": "",\r
943         "x": 3507,\r
944         "y": 233,\r
945         "z": "f861838.07df98",\r
946         "wires": []\r
947     },\r
948     {\r
949         "id": "bbad66bd.203d28",\r
950         "type": "break",\r
951         "name": "break",\r
952         "xml": "<break>\n",\r
953         "comments": "",\r
954         "x": 3492,\r
955         "y": 281,\r
956         "z": "f861838.07df98",\r
957         "wires": []\r
958     },\r
959     {\r
960         "id": "16999964.0052a7",\r
961         "type": "block",\r
962         "name": "block",\r
963         "xml": "<block>\n",\r
964         "atomic": "false",\r
965         "comments": "",\r
966         "outputs": 1,\r
967         "x": 2795,\r
968         "y": 304,\r
969         "z": "f861838.07df98",\r
970         "wires": [\r
971             [\r
972                 "c4129dee.e1028",\r
973                 "4b41d356.da9dfc"\r
974             ]\r
975         ]\r
976     },\r
977     {\r
978         "id": "f4704103.56f298",\r
979         "type": "block",\r
980         "name": "block : atomic",\r
981         "xml": "<block atomic=\"true\">",\r
982         "atomic": "true",\r
983         "outputs": 1,\r
984         "x": 4296,\r
985         "y": 448,\r
986         "z": "f861838.07df98",\r
987         "wires": [\r
988             [\r
989                 "9beffd2c.502c6"\r
990             ]\r
991         ]\r
992     },\r
993     {\r
994         "id": "8e8366a6.32694",\r
995         "type": "block",\r
996         "name": "block : atomic",\r
997         "xml": "<block atomic=\"true\">",\r
998         "atomic": "true",\r
999         "outputs": 1,\r
1000         "x": 4313,\r
1001         "y": 1053,\r
1002         "z": "f861838.07df98",\r
1003         "wires": [\r
1004             [\r
1005                 "2782166b.894a72"\r
1006             ]\r
1007         ]\r
1008     },\r
1009     {\r
1010         "id": "1a72a670.f5c5ba",\r
1011         "type": "get-resource",\r
1012         "name": "get-resource src tp",\r
1013         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"p-interface\" \n\t\tkey=\"pnf.pnf-name = $tmp.src-pnf-name\n\t\t    AND p-interface.interface-name = $tmp.cross-link.src-ltpId\"\n        pfx='tmp.aai.src-tp' local-only='false' >\n    \n        <!--AND depth = '0'\"-->\n\n\n",\r
1014         "comments": "",\r
1015         "outputs": 1,\r
1016         "x": 2372.5001220703125,\r
1017         "y": 546,\r
1018         "z": "f861838.07df98",\r
1019         "wires": [\r
1020             [\r
1021                 "d525a55b.c81c5",\r
1022                 "48c96b61.49802c",\r
1023                 "27012bae.421594"\r
1024             ]\r
1025         ]\r
1026     },\r
1027     {\r
1028         "id": "fa235f06.dbc5c8",\r
1029         "type": "get-resource",\r
1030         "name": "get-resource src pnf",\r
1031         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src-pnf-name\"\n        pfx='tmp.aai.src-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
1032         "comments": "",\r
1033         "outputs": 1,\r
1034         "x": 3776,\r
1035         "y": 292,\r
1036         "z": "f861838.07df98",\r
1037         "wires": [\r
1038             [\r
1039                 "97e1c7ea.89c31",\r
1040                 "a32ada2.7e46ba8",\r
1041                 "6c014e40.0055a8"\r
1042             ]\r
1043         ]\r
1044     },\r
1045     {\r
1046         "id": "97e1c7ea.89c31",\r
1047         "type": "success",\r
1048         "name": "success",\r
1049         "xml": "<outcome value='success'>\n",\r
1050         "comments": "",\r
1051         "outputs": 1,\r
1052         "x": 3971.5001220703125,\r
1053         "y": 244,\r
1054         "z": "f861838.07df98",\r
1055         "wires": [\r
1056             [\r
1057                 "76aa8066.8a0a68"\r
1058             ]\r
1059         ]\r
1060     },\r
1061     {\r
1062         "id": "a32ada2.7e46ba8",\r
1063         "type": "not-found",\r
1064         "name": "not-found",\r
1065         "xml": "<outcome value='not-found'>\n",\r
1066         "comments": "",\r
1067         "outputs": 1,\r
1068         "x": 3963.5001220703125,\r
1069         "y": 299,\r
1070         "z": "f861838.07df98",\r
1071         "wires": [\r
1072             [\r
1073                 "e78aff2c.f74de8"\r
1074             ]\r
1075         ]\r
1076     },\r
1077     {\r
1078         "id": "6c014e40.0055a8",\r
1079         "type": "other",\r
1080         "name": "other",\r
1081         "xml": "<outcome value='Other'>\n",\r
1082         "comments": "",\r
1083         "outputs": 1,\r
1084         "x": 3968.5001220703125,\r
1085         "y": 356,\r
1086         "z": "f861838.07df98",\r
1087         "wires": [\r
1088             [\r
1089                 "72ca8bf8.aa197c"\r
1090             ]\r
1091         ]\r
1092     },\r
1093     {\r
1094         "id": "72ca8bf8.aa197c",\r
1095         "type": "returnFailure",\r
1096         "name": "return failure",\r
1097         "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
1098         "comments": "",\r
1099         "x": 4120.5001220703125,\r
1100         "y": 357,\r
1101         "z": "f861838.07df98",\r
1102         "wires": []\r
1103     },\r
1104     {\r
1105         "id": "e78aff2c.f74de8",\r
1106         "type": "returnFailure",\r
1107         "name": "return failure",\r
1108         "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
1109         "comments": "",\r
1110         "x": 4131.5001220703125,\r
1111         "y": 302,\r
1112         "z": "f861838.07df98",\r
1113         "wires": []\r
1114     },\r
1115     {\r
1116         "id": "76aa8066.8a0a68",\r
1117         "type": "block",\r
1118         "name": "block",\r
1119         "xml": "<block>\n",\r
1120         "atomic": "false",\r
1121         "comments": "",\r
1122         "outputs": 1,\r
1123         "x": 4115.8824462890625,\r
1124         "y": 241.65567016601562,\r
1125         "z": "f861838.07df98",\r
1126         "wires": [\r
1127             [\r
1128                 "2bdb018d.2fcdb6",\r
1129                 "d5b2333f.df7ba8"\r
1130             ]\r
1131         ]\r
1132     },\r
1133     {\r
1134         "id": "2bdb018d.2fcdb6",\r
1135         "type": "set",\r
1136         "name": "set domain A node-id and tpn",\r
1137         "xml": "<set>\n<parameter name='domain-A.node-id' value=\"`$tmp.aai.src-pnf.pnf-id`\" />\n<parameter name='domain-A.tpn' value='1' />\n",\r
1138         "comments": "",\r
1139         "x": 4341,\r
1140         "y": 197,\r
1141         "z": "f861838.07df98",\r
1142         "wires": []\r
1143     },\r
1144     {\r
1145         "id": "825f6c70.9f6d6",\r
1146         "type": "break",\r
1147         "name": "break",\r
1148         "xml": "<break>\n",\r
1149         "comments": "",\r
1150         "x": 3863,\r
1151         "y": 539,\r
1152         "z": "f861838.07df98",\r
1153         "wires": []\r
1154     },\r
1155     {\r
1156         "id": "9beffd2c.502c6",\r
1157         "type": "set",\r
1158         "name": "set domain A tunnel tp ip",\r
1159         "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value=\"`$tmp.aai.src-ttp.tunnel-tp-id`\" />\n",\r
1160         "comments": "",\r
1161         "x": 4557,\r
1162         "y": 445,\r
1163         "z": "f861838.07df98",\r
1164         "wires": []\r
1165     },\r
1166     {\r
1167         "id": "32404ee3.71aeda",\r
1168         "type": "get-resource",\r
1169         "name": "get-resource dst pnf",\r
1170         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst-pnf-name\"\n        pfx='tmp.aai.dst-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
1171         "comments": "",\r
1172         "outputs": 1,\r
1173         "x": 3773,\r
1174         "y": 895,\r
1175         "z": "f861838.07df98",\r
1176         "wires": [\r
1177             [\r
1178                 "38443514.32f97a",\r
1179                 "3f48494d.b1e386",\r
1180                 "1d72a1d4.29172e"\r
1181             ]\r
1182         ]\r
1183     },\r
1184     {\r
1185         "id": "1d72a1d4.29172e",\r
1186         "type": "success",\r
1187         "name": "success",\r
1188         "xml": "<outcome value='success'>\n",\r
1189         "comments": "",\r
1190         "outputs": 1,\r
1191         "x": 3968.5001220703125,\r
1192         "y": 847,\r
1193         "z": "f861838.07df98",\r
1194         "wires": [\r
1195             [\r
1196                 "e3710364.81565"\r
1197             ]\r
1198         ]\r
1199     },\r
1200     {\r
1201         "id": "3f48494d.b1e386",\r
1202         "type": "not-found",\r
1203         "name": "not-found",\r
1204         "xml": "<outcome value='not-found'>\n",\r
1205         "comments": "",\r
1206         "outputs": 1,\r
1207         "x": 3960.5001220703125,\r
1208         "y": 902,\r
1209         "z": "f861838.07df98",\r
1210         "wires": [\r
1211             [\r
1212                 "1d46287c.a3abe"\r
1213             ]\r
1214         ]\r
1215     },\r
1216     {\r
1217         "id": "38443514.32f97a",\r
1218         "type": "other",\r
1219         "name": "other",\r
1220         "xml": "<outcome value='Other'>\n",\r
1221         "comments": "",\r
1222         "outputs": 1,\r
1223         "x": 3965.5001220703125,\r
1224         "y": 959,\r
1225         "z": "f861838.07df98",\r
1226         "wires": [\r
1227             [\r
1228                 "cdfeb34e.901888"\r
1229             ]\r
1230         ]\r
1231     },\r
1232     {\r
1233         "id": "e3710364.81565",\r
1234         "type": "block",\r
1235         "name": "block",\r
1236         "xml": "<block>\n",\r
1237         "atomic": "false",\r
1238         "comments": "",\r
1239         "outputs": 1,\r
1240         "x": 4112.8824462890625,\r
1241         "y": 844.6556701660156,\r
1242         "z": "f861838.07df98",\r
1243         "wires": [\r
1244             [\r
1245                 "f36692a0.716e88",\r
1246                 "2c5d340f.626864"\r
1247             ]\r
1248         ]\r
1249     },\r
1250     {\r
1251         "id": "1d46287c.a3abe",\r
1252         "type": "returnFailure",\r
1253         "name": "return failure",\r
1254         "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
1255         "comments": "",\r
1256         "x": 4128.5001220703125,\r
1257         "y": 905,\r
1258         "z": "f861838.07df98",\r
1259         "wires": []\r
1260     },\r
1261     {\r
1262         "id": "cdfeb34e.901888",\r
1263         "type": "returnFailure",\r
1264         "name": "return failure",\r
1265         "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
1266         "comments": "",\r
1267         "x": 4117.5001220703125,\r
1268         "y": 960,\r
1269         "z": "f861838.07df98",\r
1270         "wires": []\r
1271     },\r
1272     {\r
1273         "id": "f36692a0.716e88",\r
1274         "type": "set",\r
1275         "name": "set domain B node-id and tpn",\r
1276         "xml": "<set>\n<parameter name='domain-B.node-id' value=\"`$tmp.aai.dst-pnf.pnf-id`\" />\n<parameter name='domain-B.tpn' value='1' />\n",\r
1277         "comments": "",\r
1278         "x": 4322,\r
1279         "y": 812,\r
1280         "z": "f861838.07df98",\r
1281         "wires": []\r
1282     },\r
1283     {\r
1284         "id": "4d91a36f.ea12e4",\r
1285         "type": "break",\r
1286         "name": "break",\r
1287         "xml": "<break>\n",\r
1288         "comments": "",\r
1289         "x": 3892,\r
1290         "y": 1107,\r
1291         "z": "f861838.07df98",\r
1292         "wires": []\r
1293     },\r
1294     {\r
1295         "id": "2782166b.894a72",\r
1296         "type": "set",\r
1297         "name": "set domain B tunnel tp id",\r
1298         "xml": "<set>\n<parameter name='domain-B.tunnel-tp-id' value=\"`$tmp.aai.dst-ttp.tunnel-tp-id`\" />\n",\r
1299         "comments": "",\r
1300         "x": 4546,\r
1301         "y": 1052,\r
1302         "z": "f861838.07df98",\r
1303         "wires": []\r
1304     },\r
1305     {\r
1306         "id": "93bc95bd.015218",\r
1307         "type": "outcome",\r
1308         "name": "network-resource",\r
1309         "xml": "<outcome value='network-resource'>\n",\r
1310         "comments": "",\r
1311         "outputs": 1,\r
1312         "x": 4698,\r
1313         "y": 260,\r
1314         "z": "f861838.07df98",\r
1315         "wires": [\r
1316             [\r
1317                 "12aa4902.54d527"\r
1318             ]\r
1319         ]\r
1320     },\r
1321     {\r
1322         "id": "12aa4902.54d527",\r
1323         "type": "block",\r
1324         "name": "block : atomic",\r
1325         "xml": "<block atomic=\"true\">",\r
1326         "atomic": "true",\r
1327         "outputs": 1,\r
1328         "x": 4875,\r
1329         "y": 252,\r
1330         "z": "f861838.07df98",\r
1331         "wires": [\r
1332             [\r
1333                 "e133ac15.1cfeb8",\r
1334                 "50016229.5d7aa4",\r
1335                 "9731bbf6.0aee28"\r
1336             ]\r
1337         ]\r
1338     },\r
1339     {\r
1340         "id": "e133ac15.1cfeb8",\r
1341         "type": "set",\r
1342         "name": "set domain A network-id",\r
1343         "xml": "<set>\n<parameter name='tmp.domain-A.network-id' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$pvidx].relationship-data[0].relationship-value`\" />\n",\r
1344         "comments": "",\r
1345         "x": 5090,\r
1346         "y": 233,\r
1347         "z": "f861838.07df98",\r
1348         "wires": []\r
1349     },\r
1350     {\r
1351         "id": "50016229.5d7aa4",\r
1352         "type": "get-resource",\r
1353         "name": "get-resource src network-resource",\r
1354         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"network-resource.network-id = $tmp.domain-A.network-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.src-network-resource' local-only='false' >\n\n\n",\r
1355         "comments": "",\r
1356         "outputs": 1,\r
1357         "x": 5107,\r
1358         "y": 297,\r
1359         "z": "f861838.07df98",\r
1360         "wires": [\r
1361             [\r
1362                 "64fc1e3d.6c54a8"\r
1363             ]\r
1364         ]\r
1365     },\r
1366     {\r
1367         "id": "64fc1e3d.6c54a8",\r
1368         "type": "success",\r
1369         "name": "success",\r
1370         "xml": "<outcome value='success'>\n",\r
1371         "comments": "",\r
1372         "outputs": 1,\r
1373         "x": 5330.5,\r
1374         "y": 298,\r
1375         "z": "f861838.07df98",\r
1376         "wires": [\r
1377             [\r
1378                 "269c6440.2d1124"\r
1379             ]\r
1380         ]\r
1381     },\r
1382     {\r
1383         "id": "269c6440.2d1124",\r
1384         "type": "set",\r
1385         "name": "set domain A network-id, topo-id, client-id, etc",\r
1386         "xml": "<set>\n<parameter name='domain-A.network-id' value=\"`$tmp.aai.src-network-resource.network-id`\" />\n<parameter name='domain-A.provider-id' value=\"`$tmp.aai.src-network-resource.provider-id`\" />\n<parameter name='domain-A.client-id' value=\"`$tmp.aai.src-network-resource.client-id`\" />\n<parameter name='domain-A.te-topo-id' value=\"`$tmp.aai.src-network-resource.te-topo-id`\" />\n<parameter name='domain-A.network-type' value=\"`$tmp.aai.src-network-resource.network-type`\" />\n\n\n",\r
1387         "comments": "",\r
1388         "x": 5595,\r
1389         "y": 287,\r
1390         "z": "f861838.07df98",\r
1391         "wires": []\r
1392     },\r
1393     {\r
1394         "id": "d5b2333f.df7ba8",\r
1395         "type": "for",\r
1396         "name": "for each relationship",\r
1397         "xml": "<for silentFailure='true' index='pvidx' start='0' end='`$tmp.aai.src-pnf.relationship-list.relationship_length`' >\n",\r
1398         "comments": "",\r
1399         "outputs": 1,\r
1400         "x": 4300,\r
1401         "y": 256,\r
1402         "z": "f861838.07df98",\r
1403         "wires": [\r
1404             [\r
1405                 "4f6b55da.d022d4"\r
1406             ]\r
1407         ]\r
1408     },\r
1409     {\r
1410         "id": "4f6b55da.d022d4",\r
1411         "type": "switchNode",\r
1412         "name": "switch related-to",\r
1413         "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$pvidx].related-to`'>\n",\r
1414         "comments": "",\r
1415         "outputs": 1,\r
1416         "x": 4495,\r
1417         "y": 256,\r
1418         "z": "f861838.07df98",\r
1419         "wires": [\r
1420             [\r
1421                 "93bc95bd.015218"\r
1422             ]\r
1423         ]\r
1424     },\r
1425     {\r
1426         "id": "9731bbf6.0aee28",\r
1427         "type": "break",\r
1428         "name": "break",\r
1429         "xml": "<break>\n",\r
1430         "comments": "",\r
1431         "x": 5034,\r
1432         "y": 350,\r
1433         "z": "f861838.07df98",\r
1434         "wires": []\r
1435     },\r
1436     {\r
1437         "id": "2c5d340f.626864",\r
1438         "type": "for",\r
1439         "name": "for each relationship",\r
1440         "xml": "<for silentFailure='true' index='mvidx' start='0' end='`$tmp.aai.dst-pnf.relationship-list.relationship_length`' >\n",\r
1441         "comments": "",\r
1442         "outputs": 1,\r
1443         "x": 4301,\r
1444         "y": 863,\r
1445         "z": "f861838.07df98",\r
1446         "wires": [\r
1447             [\r
1448                 "a0eb4786.ca84c8"\r
1449             ]\r
1450         ]\r
1451     },\r
1452     {\r
1453         "id": "a0eb4786.ca84c8",\r
1454         "type": "switchNode",\r
1455         "name": "switch related-to",\r
1456         "xml": "<switch test='`$tmp.aai.dst-pnf.relationship-list.relationship[$mvidx].related-to`'>\n",\r
1457         "comments": "",\r
1458         "outputs": 1,\r
1459         "x": 4496,\r
1460         "y": 863,\r
1461         "z": "f861838.07df98",\r
1462         "wires": [\r
1463             [\r
1464                 "b11078d7.b3b858"\r
1465             ]\r
1466         ]\r
1467     },\r
1468     {\r
1469         "id": "6d1ae1e8.8376b8",\r
1470         "type": "break",\r
1471         "name": "break",\r
1472         "xml": "<break>\n",\r
1473         "comments": "",\r
1474         "x": 5120,\r
1475         "y": 943,\r
1476         "z": "f861838.07df98",\r
1477         "wires": []\r
1478     },\r
1479     {\r
1480         "id": "6fa2423a.fd13dc",\r
1481         "type": "execute",\r
1482         "name": "execute split tp-id to get pnf-name",\r
1483         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.src-tp`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-src-tp\"/>\n\n",\r
1484         "comments": "",\r
1485         "outputs": 1,\r
1486         "x": 3804,\r
1487         "y": 86,\r
1488         "z": "f861838.07df98",\r
1489         "wires": [\r
1490             [\r
1491                 "c37dc1f9.38a388",\r
1492                 "f701d80.fcde128"\r
1493             ]\r
1494         ]\r
1495     },\r
1496     {\r
1497         "id": "f701d80.fcde128",\r
1498         "type": "failure",\r
1499         "name": "success",\r
1500         "xml": "<outcome value='success'>\n",\r
1501         "comments": "",\r
1502         "outputs": 1,\r
1503         "x": 4025,\r
1504         "y": 54,\r
1505         "z": "f861838.07df98",\r
1506         "wires": [\r
1507             [\r
1508                 "72fa8a9d.201954"\r
1509             ]\r
1510         ]\r
1511     },\r
1512     {\r
1513         "id": "c37dc1f9.38a388",\r
1514         "type": "failure",\r
1515         "name": "failure",\r
1516         "xml": "<outcome value='failure'>\n",\r
1517         "comments": "",\r
1518         "outputs": 1,\r
1519         "x": 4025,\r
1520         "y": 101,\r
1521         "z": "f861838.07df98",\r
1522         "wires": [\r
1523             [\r
1524                 "11d67749.03e0d9"\r
1525             ]\r
1526         ]\r
1527     },\r
1528     {\r
1529         "id": "72fa8a9d.201954",\r
1530         "type": "block",\r
1531         "name": "block : atomic",\r
1532         "xml": "<block atomic=\"true\">",\r
1533         "atomic": "true",\r
1534         "outputs": 1,\r
1535         "x": 4190,\r
1536         "y": 51,\r
1537         "z": "f861838.07df98",\r
1538         "wires": [\r
1539             [\r
1540                 "bbea1bea.ff9688"\r
1541             ]\r
1542         ]\r
1543     },\r
1544     {\r
1545         "id": "bbea1bea.ff9688",\r
1546         "type": "set",\r
1547         "name": "set domain-A.ltpId",\r
1548         "xml": "<set>\n<parameter name='domain-A.ltpId' value='`$param-prefix-src-tp[$param-prefix-src-tp_length -1]`' />\n",\r
1549         "comments": "",\r
1550         "x": 4372,\r
1551         "y": 55,\r
1552         "z": "f861838.07df98",\r
1553         "wires": []\r
1554     },\r
1555     {\r
1556         "id": "11d67749.03e0d9",\r
1557         "type": "returnFailure",\r
1558         "name": "return failure",\r
1559         "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
1560         "comments": "",\r
1561         "x": 4192,\r
1562         "y": 101,\r
1563         "z": "f861838.07df98",\r
1564         "wires": []\r
1565     },\r
1566     {\r
1567         "id": "88a4d7d3.2c52b",\r
1568         "type": "execute",\r
1569         "name": "execute split tp-id to get pnf-name",\r
1570         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.dst-tp`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-dst-tp\"/>\n\n",\r
1571         "comments": "",\r
1572         "outputs": 1,\r
1573         "x": 3812,\r
1574         "y": 710,\r
1575         "z": "f861838.07df98",\r
1576         "wires": [\r
1577             [\r
1578                 "584895a0.b3ab74",\r
1579                 "d8e0f12d.021a28"\r
1580             ]\r
1581         ]\r
1582     },\r
1583     {\r
1584         "id": "d8e0f12d.021a28",\r
1585         "type": "failure",\r
1586         "name": "success",\r
1587         "xml": "<outcome value='success'>\n",\r
1588         "comments": "",\r
1589         "outputs": 1,\r
1590         "x": 4033,\r
1591         "y": 678,\r
1592         "z": "f861838.07df98",\r
1593         "wires": [\r
1594             [\r
1595                 "18ffb32b.dc39ad"\r
1596             ]\r
1597         ]\r
1598     },\r
1599     {\r
1600         "id": "584895a0.b3ab74",\r
1601         "type": "failure",\r
1602         "name": "failure",\r
1603         "xml": "<outcome value='failure'>\n",\r
1604         "comments": "",\r
1605         "outputs": 1,\r
1606         "x": 4033,\r
1607         "y": 725,\r
1608         "z": "f861838.07df98",\r
1609         "wires": [\r
1610             [\r
1611                 "5fcd9d7d.d620cc"\r
1612             ]\r
1613         ]\r
1614     },\r
1615     {\r
1616         "id": "18ffb32b.dc39ad",\r
1617         "type": "block",\r
1618         "name": "block : atomic",\r
1619         "xml": "<block atomic=\"true\">",\r
1620         "atomic": "true",\r
1621         "outputs": 1,\r
1622         "x": 4198,\r
1623         "y": 675,\r
1624         "z": "f861838.07df98",\r
1625         "wires": [\r
1626             [\r
1627                 "ef90ab42.074438"\r
1628             ]\r
1629         ]\r
1630     },\r
1631     {\r
1632         "id": "ef90ab42.074438",\r
1633         "type": "set",\r
1634         "name": "set domain-B.ltpId",\r
1635         "xml": "<set>\n<parameter name='domain-B.ltpId' value='`$param-prefix-dst-tp[$param-prefix-dst-tp_length -1]`' />\n",\r
1636         "comments": "",\r
1637         "x": 4394,\r
1638         "y": 672,\r
1639         "z": "f861838.07df98",\r
1640         "wires": []\r
1641     },\r
1642     {\r
1643         "id": "5fcd9d7d.d620cc",\r
1644         "type": "returnFailure",\r
1645         "name": "return failure",\r
1646         "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
1647         "comments": "",\r
1648         "x": 4200,\r
1649         "y": 725,\r
1650         "z": "f861838.07df98",\r
1651         "wires": []\r
1652     },\r
1653     {\r
1654         "id": "b9a4e12.dabba2",\r
1655         "type": "set",\r
1656         "name": "unset parameters",\r
1657         "xml": "<set>\n<parameter name='otn-oof.link-name' value='' />\n<parameter name='tmp.aai.cross-link' value='' />\n<parameter name='tmp.aai.cross-link.' value='' />\n<parameter name='tmp.aai.cross-link.link-role' value='' />",\r
1658         "comments": "",\r
1659         "x": 1154,\r
1660         "y": 495,\r
1661         "z": "f861838.07df98",\r
1662         "wires": []\r
1663     },\r
1664     {\r
1665         "id": "c4129dee.e1028",\r
1666         "type": "switchNode",\r
1667         "name": "switch value == start-node",\r
1668         "xml": "<switch test='`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[0].relationship-value == $otn-oof.start-node`'>",\r
1669         "comments": "",\r
1670         "outputs": 1,\r
1671         "x": 2990,\r
1672         "y": 265,\r
1673         "z": "f861838.07df98",\r
1674         "wires": [\r
1675             [\r
1676                 "c507ecc7.0f698"\r
1677             ]\r
1678         ]\r
1679     },\r
1680     {\r
1681         "id": "55770297.b0eaec",\r
1682         "type": "outcome",\r
1683         "name": "otn-oof.start-node",\r
1684         "xml": "<outcome value='`$otn-oof.start-node`'>\n",\r
1685         "comments": "",\r
1686         "outputs": 1,\r
1687         "x": 3142,\r
1688         "y": 180,\r
1689         "z": "f861838.07df98",\r
1690         "wires": [\r
1691             []\r
1692         ]\r
1693     },\r
1694     {\r
1695         "id": "e83d3f89.4fb8f",\r
1696         "type": "outcome",\r
1697         "name": "otn-oof.end-node",\r
1698         "xml": "<outcome value='`$otn-oof.end-node`'>\n",\r
1699         "comments": "",\r
1700         "outputs": 1,\r
1701         "x": 3145,\r
1702         "y": 399,\r
1703         "z": "f861838.07df98",\r
1704         "wires": [\r
1705             []\r
1706         ]\r
1707     },\r
1708     {\r
1709         "id": "e09f6c32.6da1e8",\r
1710         "type": "block",\r
1711         "name": "block : atomic",\r
1712         "xml": "<block atomic=\"true\">",\r
1713         "atomic": "true",\r
1714         "outputs": 1,\r
1715         "x": 3320,\r
1716         "y": 249,\r
1717         "z": "f861838.07df98",\r
1718         "wires": [\r
1719             [\r
1720                 "a9fc0be8.cb4e7"\r
1721             ]\r
1722         ]\r
1723     },\r
1724     {\r
1725         "id": "3bd5ba40.547cce",\r
1726         "type": "set",\r
1727         "name": "set dst-ltpId",\r
1728         "xml": "<set>\n<parameter name='tmp.cross-link.dst-ltpId' value=\"`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[1].relationship-value`\" />\n<parameter name='tmp.dst-pnf-name' value=\"`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[0].relationship-value`\" />\n\n\n\n",\r
1729         "comments": "",\r
1730         "x": 3517,\r
1731         "y": 335,\r
1732         "z": "f861838.07df98",\r
1733         "wires": []\r
1734     },\r
1735     {\r
1736         "id": "bf0c687c.786c3",\r
1737         "type": "break",\r
1738         "name": "break",\r
1739         "xml": "<break>\n",\r
1740         "comments": "",\r
1741         "x": 3500,\r
1742         "y": 375,\r
1743         "z": "f861838.07df98",\r
1744         "wires": []\r
1745     },\r
1746     {\r
1747         "id": "e18153ce.f19278",\r
1748         "type": "block",\r
1749         "name": "block : atomic",\r
1750         "xml": "<block atomic=\"true\">",\r
1751         "atomic": "true",\r
1752         "outputs": 1,\r
1753         "x": 3338,\r
1754         "y": 347,\r
1755         "z": "f861838.07df98",\r
1756         "wires": [\r
1757             [\r
1758                 "3bd5ba40.547cce"\r
1759             ]\r
1760         ]\r
1761     },\r
1762     {\r
1763         "id": "c507ecc7.0f698",\r
1764         "type": "outcomeTrue",\r
1765         "name": "true",\r
1766         "xml": "<outcome value='true'>\n",\r
1767         "comments": "",\r
1768         "outputs": 1,\r
1769         "x": 3178,\r
1770         "y": 252,\r
1771         "z": "f861838.07df98",\r
1772         "wires": [\r
1773             [\r
1774                 "e09f6c32.6da1e8"\r
1775             ]\r
1776         ]\r
1777     },\r
1778     {\r
1779         "id": "4b41d356.da9dfc",\r
1780         "type": "switchNode",\r
1781         "name": "switch value == end-node",\r
1782         "xml": "<switch test='`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[0].relationship-value == $otn-oof.end-node`'>",\r
1783         "comments": "",\r
1784         "outputs": 1,\r
1785         "x": 2988,\r
1786         "y": 329,\r
1787         "z": "f861838.07df98",\r
1788         "wires": [\r
1789             [\r
1790                 "2bcfa57c.bd2fea"\r
1791             ]\r
1792         ]\r
1793     },\r
1794     {\r
1795         "id": "2bcfa57c.bd2fea",\r
1796         "type": "outcomeTrue",\r
1797         "name": "true",\r
1798         "xml": "<outcome value='true'>\n",\r
1799         "comments": "",\r
1800         "outputs": 1,\r
1801         "x": 3173,\r
1802         "y": 333,\r
1803         "z": "f861838.07df98",\r
1804         "wires": [\r
1805             [\r
1806                 "e18153ce.f19278"\r
1807             ]\r
1808         ]\r
1809     }\r
1810 ]