Completing the logic and the call flow for Transport Slicing operations:
[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": "ffc612a5.7b0918",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 183,\r
8         "y": 130,\r
9         "z": "59711e8e.29744",\r
10         "wires": [\r
11             [\r
12                 "6dda290e.27dad8"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "6dda290e.27dad8",\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": 308,\r
26         "y": 456.00001525878906,\r
27         "z": "59711e8e.29744",\r
28         "wires": [\r
29             [\r
30                 "3ffa7f3f.e7e27"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "3ffa7f3f.e7e27",\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": 372.0001220703125,\r
42         "y": 549,\r
43         "z": "59711e8e.29744",\r
44         "wires": [\r
45             [\r
46                 "9aa7ba3c.52a7f"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "4ab3abe1.e87adc",\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`\" />\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": 854.9730834960938,\r
58         "y": 207.99600219726562,\r
59         "z": "59711e8e.29744",\r
60         "wires": [\r
61             [\r
62                 "6b5ff944.5bf648",\r
63                 "850f0c15.20d28"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "6b5ff944.5bf648",\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": 1094.9732246398926,\r
75         "y": 231.9959716796875,\r
76         "z": "59711e8e.29744",\r
77         "wires": [\r
78             [\r
79                 "cd276ba.d3fc218"\r
80             ]\r
81         ]\r
82     },\r
83     {\r
84         "id": "905d3517.25cab8",\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": 1233.973258972168,\r
90         "y": 180.99606323242188,\r
91         "z": "59711e8e.29744",\r
92         "wires": []\r
93     },\r
94     {\r
95         "id": "850f0c15.20d28",\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": 1093.9730110168457,\r
102         "y": 180.99606227874756,\r
103         "z": "59711e8e.29744",\r
104         "wires": [\r
105             [\r
106                 "905d3517.25cab8"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "6a5159e4.7418a",\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": 826.4768829345703,\r
117         "y": 164.00000190734863,\r
118         "z": "59711e8e.29744",\r
119         "wires": []\r
120     },\r
121     {\r
122         "id": "eda4482b.a18e38",\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": 845.972900390625,\r
129         "y": 517.2457275390625,\r
130         "z": "59711e8e.29744",\r
131         "wires": [\r
132             [\r
133                 "576c4b0b.248fb4"\r
134             ]\r
135         ]\r
136     },\r
137     {\r
138         "id": "735419f0.115878",\r
139         "type": "comment",\r
140         "name": "Loop through OTN links",\r
141         "info": "",\r
142         "comments": "",\r
143         "x": 929.4732055664062,\r
144         "y": 596.74609375,\r
145         "z": "59711e8e.29744",\r
146         "wires": []\r
147     },\r
148     {\r
149         "id": "576c4b0b.248fb4",\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": 950.5001220703125,\r
156         "y": 708.2864990234375,\r
157         "z": "59711e8e.29744",\r
158         "wires": [\r
159             [\r
160                 "da160010.38d94",\r
161                 "5b4dabd5.4d7054"\r
162             ]\r
163         ]\r
164     },\r
165     {\r
166         "id": "da160010.38d94",\r
167         "type": "get-resource",\r
168         "name": "get-resource cross-link",\r
169         "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
170         "comments": "",\r
171         "outputs": 1,\r
172         "x": 1217.5001220703125,\r
173         "y": 628.2864685058594,\r
174         "z": "59711e8e.29744",\r
175         "wires": [\r
176             [\r
177                 "38a6a5c5.3878b2",\r
178                 "7911950a.d4f9bc",\r
179                 "c37b490.2ec29b8"\r
180             ]\r
181         ]\r
182     },\r
183     {\r
184         "id": "c37b490.2ec29b8",\r
185         "type": "success",\r
186         "name": "success",\r
187         "xml": "<outcome value='success'>\n",\r
188         "comments": "",\r
189         "outputs": 1,\r
190         "x": 1409.0001220703125,\r
191         "y": 573.2864685058594,\r
192         "z": "59711e8e.29744",\r
193         "wires": [\r
194             [\r
195                 "203a4a36.513986"\r
196             ]\r
197         ]\r
198     },\r
199     {\r
200         "id": "38a6a5c5.3878b2",\r
201         "type": "not-found",\r
202         "name": "not-found",\r
203         "xml": "<outcome value='not-found'>\n",\r
204         "comments": "",\r
205         "outputs": 1,\r
206         "x": 1445.0001220703125,\r
207         "y": 698.2864990234375,\r
208         "z": "59711e8e.29744",\r
209         "wires": [\r
210             [\r
211                 "21535143.0a939e"\r
212             ]\r
213         ]\r
214     },\r
215     {\r
216         "id": "7911950a.d4f9bc",\r
217         "type": "other",\r
218         "name": "other",\r
219         "xml": "<outcome value='Other'>\n",\r
220         "comments": "",\r
221         "outputs": 1,\r
222         "x": 1439.0001220703125,\r
223         "y": 748.2864990234375,\r
224         "z": "59711e8e.29744",\r
225         "wires": [\r
226             [\r
227                 "21f78d15.02bd0a"\r
228             ]\r
229         ]\r
230     },\r
231     {\r
232         "id": "21535143.0a939e",\r
233         "type": "returnFailure",\r
234         "name": "return failure",\r
235         "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
236         "comments": "",\r
237         "x": 1606.0001220703125,\r
238         "y": 687.2864990234375,\r
239         "z": "59711e8e.29744",\r
240         "wires": []\r
241     },\r
242     {\r
243         "id": "21f78d15.02bd0a",\r
244         "type": "returnFailure",\r
245         "name": "return failure",\r
246         "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
247         "comments": "",\r
248         "x": 1604.0001220703125,\r
249         "y": 743.2864990234375,\r
250         "z": "59711e8e.29744",\r
251         "wires": []\r
252     },\r
253     {\r
254         "id": "875b8573.2757",\r
255         "type": "comment",\r
256         "name": "get cross-domain-link information",\r
257         "info": "",\r
258         "comments": "",\r
259         "x": 1218.5001220703125,\r
260         "y": 589.2864685058594,\r
261         "z": "59711e8e.29744",\r
262         "wires": []\r
263     },\r
264     {\r
265         "id": "5b4dabd5.4d7054",\r
266         "type": "set",\r
267         "name": "set otn-oof.link-name",\r
268         "xml": "<set>\n<parameter name='otn-oof.link-name' value='`$otn-oof.solutions[$vidx].link`' />",\r
269         "comments": "",\r
270         "x": 1200.0001220703125,\r
271         "y": 538.2864685058594,\r
272         "z": "59711e8e.29744",\r
273         "wires": []\r
274     },\r
275     {\r
276         "id": "cd276ba.d3fc218",\r
277         "type": "block",\r
278         "name": "block",\r
279         "xml": "<block>\n",\r
280         "atomic": "false",\r
281         "comments": "",\r
282         "outputs": 1,\r
283         "x": 1240.0002708435059,\r
284         "y": 229.74145698547363,\r
285         "z": "59711e8e.29744",\r
286         "wires": [\r
287             []\r
288         ]\r
289     },\r
290     {\r
291         "id": "9aa7ba3c.52a7f",\r
292         "type": "block",\r
293         "name": "block : atomic",\r
294         "xml": "<block atomic=\"true\">",\r
295         "atomic": "true",\r
296         "outputs": 1,\r
297         "x": 612.9688835144043,\r
298         "y": 475.74163722991943,\r
299         "z": "59711e8e.29744",\r
300         "wires": [\r
301             [\r
302                 "eda4482b.a18e38",\r
303                 "4ab3abe1.e87adc"\r
304             ]\r
305         ]\r
306     },\r
307     {\r
308         "id": "edd38a6c.67c6b8",\r
309         "type": "switchNode",\r
310         "name": "test cross-domain-link role",\r
311         "xml": "<switch test='`$tmp.aai.cross-link.link-role`'>\n",\r
312         "comments": "",\r
313         "outputs": 1,\r
314         "x": 1724.5001220703125,\r
315         "y": 573,\r
316         "z": "59711e8e.29744",\r
317         "wires": [\r
318             [\r
319                 "344b3505.db598a"\r
320             ]\r
321         ]\r
322     },\r
323     {\r
324         "id": "344b3505.db598a",\r
325         "type": "outcome",\r
326         "name": "outcome cross-domain",\r
327         "xml": "<outcome value='cross-domain'>\n",\r
328         "comments": "",\r
329         "outputs": 1,\r
330         "x": 1960.5001220703125,\r
331         "y": 574,\r
332         "z": "59711e8e.29744",\r
333         "wires": [\r
334             [\r
335                 "bdc2d141.60e88"\r
336             ]\r
337         ]\r
338     },\r
339     {\r
340         "id": "7c9a4f45.2dfb5",\r
341         "type": "break",\r
342         "name": "break",\r
343         "xml": "<break>\n",\r
344         "comments": "",\r
345         "x": 2279.5,\r
346         "y": 1051,\r
347         "z": "59711e8e.29744",\r
348         "wires": []\r
349     },\r
350     {\r
351         "id": "bdc2d141.60e88",\r
352         "type": "block",\r
353         "name": "block : atomic",\r
354         "xml": "<block atomic=\"true\">",\r
355         "atomic": "true",\r
356         "outputs": 1,\r
357         "x": 2163.5001220703125,\r
358         "y": 575,\r
359         "z": "59711e8e.29744",\r
360         "wires": [\r
361             [\r
362                 "7c9a4f45.2dfb5",\r
363                 "54d54d35.c8ade4",\r
364                 "965a7aea.98984",\r
365                 "f57884fd.e852f"\r
366             ]\r
367         ]\r
368     },\r
369     {\r
370         "id": "7f48300c.649cc8",\r
371         "type": "success",\r
372         "name": "success",\r
373         "xml": "<outcome value='success'>\n",\r
374         "comments": "",\r
375         "outputs": 1,\r
376         "x": 2604,\r
377         "y": 542,\r
378         "z": "59711e8e.29744",\r
379         "wires": [\r
380             [\r
381                 "2a6040f8.29261"\r
382             ]\r
383         ]\r
384     },\r
385     {\r
386         "id": "9cd22818.9c99c",\r
387         "type": "not-found",\r
388         "name": "not-found",\r
389         "xml": "<outcome value='not-found'>\n",\r
390         "comments": "",\r
391         "outputs": 1,\r
392         "x": 2637.0001220703125,\r
393         "y": 600,\r
394         "z": "59711e8e.29744",\r
395         "wires": [\r
396             [\r
397                 "8222994e.269fa"\r
398             ]\r
399         ]\r
400     },\r
401     {\r
402         "id": "11e5f855.56b93",\r
403         "type": "other",\r
404         "name": "other",\r
405         "xml": "<outcome value='Other'>\n",\r
406         "comments": "",\r
407         "outputs": 1,\r
408         "x": 2640.0001220703125,\r
409         "y": 652,\r
410         "z": "59711e8e.29744",\r
411         "wires": [\r
412             [\r
413                 "39b267f5.2906b8"\r
414             ]\r
415         ]\r
416     },\r
417     {\r
418         "id": "8222994e.269fa",\r
419         "type": "returnFailure",\r
420         "name": "return failure",\r
421         "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
422         "comments": "",\r
423         "x": 2822.0001220703125,\r
424         "y": 604,\r
425         "z": "59711e8e.29744",\r
426         "wires": []\r
427     },\r
428     {\r
429         "id": "39b267f5.2906b8",\r
430         "type": "returnFailure",\r
431         "name": "return failure",\r
432         "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
433         "comments": "",\r
434         "x": 2810.0001220703125,\r
435         "y": 655,\r
436         "z": "59711e8e.29744",\r
437         "wires": []\r
438     },\r
439     {\r
440         "id": "6235283.bbe1f58",\r
441         "type": "set",\r
442         "name": "set domain A node ttp-id",\r
443         "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
444         "comments": "",\r
445         "x": 3940.5,\r
446         "y": 457,\r
447         "z": "59711e8e.29744",\r
448         "wires": []\r
449     },\r
450     {\r
451         "id": "4dcc3c3f.b0f8dc",\r
452         "type": "get-resource",\r
453         "name": "get-resource src TTP",\r
454         "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
455         "comments": "",\r
456         "outputs": 1,\r
457         "x": 3948.5,\r
458         "y": 509,\r
459         "z": "59711e8e.29744",\r
460         "wires": [\r
461             [\r
462                 "83dfda72.1dad78"\r
463             ]\r
464         ]\r
465     },\r
466     {\r
467         "id": "83dfda72.1dad78",\r
468         "type": "success",\r
469         "name": "success",\r
470         "xml": "<outcome value='success'>\n",\r
471         "comments": "",\r
472         "outputs": 1,\r
473         "x": 4155,\r
474         "y": 487,\r
475         "z": "59711e8e.29744",\r
476         "wires": [\r
477             [\r
478                 "bd70272d.20274"\r
479             ]\r
480         ]\r
481     },\r
482     {\r
483         "id": "49b3daba.22ab04",\r
484         "type": "outcome",\r
485         "name": "tunnel-termination-point",\r
486         "xml": "<outcome value='tunnel-termination-point'>\n",\r
487         "comments": "",\r
488         "outputs": 1,\r
489         "x": 3492.66845703125,\r
490         "y": 535.4815063476562,\r
491         "z": "59711e8e.29744",\r
492         "wires": [\r
493             [\r
494                 "2abdfdd6.de70da"\r
495             ]\r
496         ]\r
497     },\r
498     {\r
499         "id": "db5fdeca.64d9c8",\r
500         "type": "for",\r
501         "name": "for each relationship",\r
502         "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.src-tp.relationship-list.relationship_length`' >\n",\r
503         "comments": "",\r
504         "outputs": 1,\r
505         "x": 2955.3828125,\r
506         "y": 537.6597290039062,\r
507         "z": "59711e8e.29744",\r
508         "wires": [\r
509             [\r
510                 "7fedd7f6.218328"\r
511             ]\r
512         ]\r
513     },\r
514     {\r
515         "id": "7fedd7f6.218328",\r
516         "type": "switchNode",\r
517         "name": "switch related-to",\r
518         "xml": "<switch test='`$tmp.aai.src-tp.relationship-list.relationship[$vidx].related-to`'>\n",\r
519         "comments": "",\r
520         "outputs": 1,\r
521         "x": 3207.3828125,\r
522         "y": 534.6597290039062,\r
523         "z": "59711e8e.29744",\r
524         "wires": [\r
525             [\r
526                 "49b3daba.22ab04"\r
527             ]\r
528         ]\r
529     },\r
530     {\r
531         "id": "2abdfdd6.de70da",\r
532         "type": "block",\r
533         "name": "block : atomic",\r
534         "xml": "<block atomic=\"true\">",\r
535         "atomic": "true",\r
536         "outputs": 1,\r
537         "x": 3719.5,\r
538         "y": 524,\r
539         "z": "59711e8e.29744",\r
540         "wires": [\r
541             [\r
542                 "6235283.bbe1f58",\r
543                 "4dcc3c3f.b0f8dc",\r
544                 "3af252ac.f5160e",\r
545                 "b3928b44.45b93",\r
546                 "6051cb19.bdbedc"\r
547             ]\r
548         ]\r
549     },\r
550     {\r
551         "id": "54d54d35.c8ade4",\r
552         "type": "get-resource",\r
553         "name": "get-resource dst tp",\r
554         "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
555         "comments": "",\r
556         "outputs": 1,\r
557         "x": 2360.5001220703125,\r
558         "y": 947,\r
559         "z": "59711e8e.29744",\r
560         "wires": [\r
561             [\r
562                 "caa1180f.475d",\r
563                 "4f60ddcb.06c464",\r
564                 "99e66acf.ef78a8"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "caa1180f.475d",\r
570         "type": "success",\r
571         "name": "success",\r
572         "xml": "<outcome value='success'>\n",\r
573         "comments": "",\r
574         "outputs": 1,\r
575         "x": 2583,\r
576         "y": 1089,\r
577         "z": "59711e8e.29744",\r
578         "wires": [\r
579             [\r
580                 "99dd61a2.0612b8"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "4f60ddcb.06c464",\r
586         "type": "not-found",\r
587         "name": "not-found",\r
588         "xml": "<outcome value='not-found'>\n",\r
589         "comments": "",\r
590         "outputs": 1,\r
591         "x": 2567,\r
592         "y": 1140,\r
593         "z": "59711e8e.29744",\r
594         "wires": [\r
595             [\r
596                 "ecf71935.9fff1"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "99e66acf.ef78a8",\r
602         "type": "other",\r
603         "name": "other",\r
604         "xml": "<outcome value='Other'>\n",\r
605         "comments": "",\r
606         "outputs": 1,\r
607         "x": 2570,\r
608         "y": 1192,\r
609         "z": "59711e8e.29744",\r
610         "wires": [\r
611             [\r
612                 "b029d176.ebc328"\r
613             ]\r
614         ]\r
615     },\r
616     {\r
617         "id": "b029d176.ebc328",\r
618         "type": "returnFailure",\r
619         "name": "return failure",\r
620         "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
621         "comments": "",\r
622         "x": 2740,\r
623         "y": 1195,\r
624         "z": "59711e8e.29744",\r
625         "wires": []\r
626     },\r
627     {\r
628         "id": "ecf71935.9fff1",\r
629         "type": "returnFailure",\r
630         "name": "return failure",\r
631         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
632         "comments": "",\r
633         "x": 2752,\r
634         "y": 1144,\r
635         "z": "59711e8e.29744",\r
636         "wires": []\r
637     },\r
638     {\r
639         "id": "446999ee.737b88",\r
640         "type": "for",\r
641         "name": "for each relationship",\r
642         "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.dst-tp.relationship-list.relationship_length`' >\n",\r
643         "comments": "",\r
644         "outputs": 1,\r
645         "x": 2939.3828125,\r
646         "y": 1099.6597290039062,\r
647         "z": "59711e8e.29744",\r
648         "wires": [\r
649             [\r
650                 "733247bb.4951e8"\r
651             ]\r
652         ]\r
653     },\r
654     {\r
655         "id": "733247bb.4951e8",\r
656         "type": "switchNode",\r
657         "name": "switch related-to",\r
658         "xml": "<switch test='`$tmp.aai.dst-tp.relationship-list.relationship[$vidx].related-to`'>\n",\r
659         "comments": "",\r
660         "outputs": 1,\r
661         "x": 3182.3828125,\r
662         "y": 1098.6597290039062,\r
663         "z": "59711e8e.29744",\r
664         "wires": [\r
665             [\r
666                 "551892cc.c334d4"\r
667             ]\r
668         ]\r
669     },\r
670     {\r
671         "id": "d1ae1073.116fc8",\r
672         "type": "block",\r
673         "name": "block : atomic",\r
674         "xml": "<block atomic=\"true\">",\r
675         "atomic": "true",\r
676         "outputs": 1,\r
677         "x": 4948.5,\r
678         "y": 900,\r
679         "z": "59711e8e.29744",\r
680         "wires": [\r
681             [\r
682                 "e4453cc8.2d68",\r
683                 "a58a5fab.4b9628",\r
684                 "a3e0896b.517c78"\r
685             ]\r
686         ]\r
687     },\r
688     {\r
689         "id": "551892cc.c334d4",\r
690         "type": "outcome",\r
691         "name": "tunnel-termination-point",\r
692         "xml": "<outcome value='tunnel-termination-point'>\n",\r
693         "comments": "",\r
694         "outputs": 1,\r
695         "x": 3438.66845703125,\r
696         "y": 1098.4815063476562,\r
697         "z": "59711e8e.29744",\r
698         "wires": [\r
699             [\r
700                 "167858f1.4d47ff"\r
701             ]\r
702         ]\r
703     },\r
704     {\r
705         "id": "c5e10d55.b93e8",\r
706         "type": "outcome",\r
707         "name": "network-resource",\r
708         "xml": "<outcome value='network-resource'>\n",\r
709         "comments": "",\r
710         "outputs": 1,\r
711         "x": 4735.5,\r
712         "y": 899,\r
713         "z": "59711e8e.29744",\r
714         "wires": [\r
715             [\r
716                 "d1ae1073.116fc8"\r
717             ]\r
718         ]\r
719     },\r
720     {\r
721         "id": "167858f1.4d47ff",\r
722         "type": "block",\r
723         "name": "block : atomic",\r
724         "xml": "<block atomic=\"true\">",\r
725         "atomic": "true",\r
726         "outputs": 1,\r
727         "x": 3738.5,\r
728         "y": 1096,\r
729         "z": "59711e8e.29744",\r
730         "wires": [\r
731             [\r
732                 "b3d72c6d.8cf07",\r
733                 "1624e4ba.2068eb",\r
734                 "140c24f7.3b14f3",\r
735                 "c25cb799.15c3f8",\r
736                 "a035bf70.73a55"\r
737             ]\r
738         ]\r
739     },\r
740     {\r
741         "id": "b3d72c6d.8cf07",\r
742         "type": "set",\r
743         "name": "set domain B node ttp-id",\r
744         "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
745         "comments": "",\r
746         "x": 3980.5,\r
747         "y": 1050,\r
748         "z": "59711e8e.29744",\r
749         "wires": []\r
750     },\r
751     {\r
752         "id": "1624e4ba.2068eb",\r
753         "type": "get-resource",\r
754         "name": "get-resource dst TTP",\r
755         "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
756         "comments": "",\r
757         "outputs": 1,\r
758         "x": 3970.5,\r
759         "y": 1101,\r
760         "z": "59711e8e.29744",\r
761         "wires": [\r
762             [\r
763                 "58cdb5cc.380cfc"\r
764             ]\r
765         ]\r
766     },\r
767     {\r
768         "id": "58cdb5cc.380cfc",\r
769         "type": "success",\r
770         "name": "success",\r
771         "xml": "<outcome value='success'>\n",\r
772         "comments": "",\r
773         "outputs": 1,\r
774         "x": 4158,\r
775         "y": 1099,\r
776         "z": "59711e8e.29744",\r
777         "wires": [\r
778             [\r
779                 "355115bb.2168d2"\r
780             ]\r
781         ]\r
782     },\r
783     {\r
784         "id": "e4453cc8.2d68",\r
785         "type": "set",\r
786         "name": "set domain B network-id",\r
787         "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
788         "comments": "",\r
789         "x": 5218.5,\r
790         "y": 876,\r
791         "z": "59711e8e.29744",\r
792         "wires": []\r
793     },\r
794     {\r
795         "id": "a58a5fab.4b9628",\r
796         "type": "get-resource",\r
797         "name": "get-resource dst network-resource",\r
798         "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
799         "comments": "",\r
800         "outputs": 1,\r
801         "x": 5228.5,\r
802         "y": 922,\r
803         "z": "59711e8e.29744",\r
804         "wires": [\r
805             [\r
806                 "a2d84f11.e4cb88"\r
807             ]\r
808         ]\r
809     },\r
810     {\r
811         "id": "a2d84f11.e4cb88",\r
812         "type": "success",\r
813         "name": "success",\r
814         "xml": "<outcome value='success'>\n",\r
815         "comments": "",\r
816         "outputs": 1,\r
817         "x": 5444,\r
818         "y": 913,\r
819         "z": "59711e8e.29744",\r
820         "wires": [\r
821             [\r
822                 "33f08d3a.c124c2"\r
823             ]\r
824         ]\r
825     },\r
826     {\r
827         "id": "33f08d3a.c124c2",\r
828         "type": "set",\r
829         "name": "set domain B network-id, topo-id, client-id, etc",\r
830         "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
831         "comments": "",\r
832         "x": 5698.5,\r
833         "y": 919,\r
834         "z": "59711e8e.29744",\r
835         "wires": []\r
836     },\r
837     {\r
838         "id": "2a6040f8.29261",\r
839         "type": "block",\r
840         "name": "block",\r
841         "xml": "<block>\n",\r
842         "atomic": "false",\r
843         "comments": "",\r
844         "outputs": 1,\r
845         "x": 2738,\r
846         "y": 538,\r
847         "z": "59711e8e.29744",\r
848         "wires": [\r
849             [\r
850                 "db5fdeca.64d9c8"\r
851             ]\r
852         ]\r
853     },\r
854     {\r
855         "id": "99dd61a2.0612b8",\r
856         "type": "block",\r
857         "name": "block",\r
858         "xml": "<block>\n",\r
859         "atomic": "false",\r
860         "comments": "",\r
861         "outputs": 1,\r
862         "x": 2729,\r
863         "y": 1080,\r
864         "z": "59711e8e.29744",\r
865         "wires": [\r
866             [\r
867                 "446999ee.737b88"\r
868             ]\r
869         ]\r
870     },\r
871     {\r
872         "id": "203a4a36.513986",\r
873         "type": "block",\r
874         "name": "block",\r
875         "xml": "<block>\n",\r
876         "atomic": "false",\r
877         "comments": "",\r
878         "outputs": 1,\r
879         "x": 1543,\r
880         "y": 575,\r
881         "z": "59711e8e.29744",\r
882         "wires": [\r
883             [\r
884                 "edd38a6c.67c6b8"\r
885             ]\r
886         ]\r
887     },\r
888     {\r
889         "id": "965a7aea.98984",\r
890         "type": "for",\r
891         "name": "for each relationship",\r
892         "xml": "<for index='lridx' start='0' end='`$tmp.aai.cross-link.relationship-list.relationship_length`' >\n",\r
893         "comments": "",\r
894         "outputs": 1,\r
895         "x": 2313,\r
896         "y": 359,\r
897         "z": "59711e8e.29744",\r
898         "wires": [\r
899             [\r
900                 "3bc95abb.a9239e"\r
901             ]\r
902         ]\r
903     },\r
904     {\r
905         "id": "3bc95abb.a9239e",\r
906         "type": "switchNode",\r
907         "name": "switch related-to",\r
908         "xml": "<switch test='`$tmp.aai.cross-link.relationship-list.relationship[$lridx].related-to`'>\n",\r
909         "comments": "",\r
910         "outputs": 1,\r
911         "x": 2512,\r
912         "y": 356,\r
913         "z": "59711e8e.29744",\r
914         "wires": [\r
915             [\r
916                 "3cce24fd.740654"\r
917             ]\r
918         ]\r
919     },\r
920     {\r
921         "id": "3cce24fd.740654",\r
922         "type": "outcome",\r
923         "name": "p-interface",\r
924         "xml": "<outcome value='p-interface'>\n",\r
925         "comments": "",\r
926         "outputs": 1,\r
927         "x": 2689.117431640625,\r
928         "y": 354.34027099609375,\r
929         "z": "59711e8e.29744",\r
930         "wires": [\r
931             [\r
932                 "6ac060c8.1a11e8"\r
933             ]\r
934         ]\r
935     },\r
936     {\r
937         "id": "9ef5481b.bf4b48",\r
938         "type": "set",\r
939         "name": "set src-ltpId and dst-ltpId",\r
940         "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.cross-link.dst-ltpId' value=\"`$tmp.aai.cross-link.relationship-list.relationship[$lridx + 1].relationship-data[1].relationship-value`\" />\n\n<parameter name='tmp.src-pnf-name' value=\"`$tmp.aai.cross-link.relationship-list.relationship[$lridx].relationship-data[0].relationship-value`\" />\n<parameter name='tmp.dst-pnf-name' value=\"`$tmp.aai.cross-link.relationship-list.relationship[$lridx + 1].relationship-data[0].relationship-value`\" />\n\n\n",\r
941         "comments": "",\r
942         "x": 3003,\r
943         "y": 298,\r
944         "z": "59711e8e.29744",\r
945         "wires": []\r
946     },\r
947     {\r
948         "id": "ddeb58ef.e40c3",\r
949         "type": "break",\r
950         "name": "break",\r
951         "xml": "<break>\n",\r
952         "comments": "",\r
953         "x": 2964,\r
954         "y": 361,\r
955         "z": "59711e8e.29744",\r
956         "wires": []\r
957     },\r
958     {\r
959         "id": "6ac060c8.1a11e8",\r
960         "type": "block",\r
961         "name": "block",\r
962         "xml": "<block>\n",\r
963         "atomic": "false",\r
964         "comments": "",\r
965         "outputs": 1,\r
966         "x": 2829,\r
967         "y": 339,\r
968         "z": "59711e8e.29744",\r
969         "wires": [\r
970             [\r
971                 "9ef5481b.bf4b48",\r
972                 "ddeb58ef.e40c3"\r
973             ]\r
974         ]\r
975     },\r
976     {\r
977         "id": "bd70272d.20274",\r
978         "type": "block",\r
979         "name": "block : atomic",\r
980         "xml": "<block atomic=\"true\">",\r
981         "atomic": "true",\r
982         "outputs": 1,\r
983         "x": 4330,\r
984         "y": 483,\r
985         "z": "59711e8e.29744",\r
986         "wires": [\r
987             [\r
988                 "b2e7a790.6b1818"\r
989             ]\r
990         ]\r
991     },\r
992     {\r
993         "id": "355115bb.2168d2",\r
994         "type": "block",\r
995         "name": "block : atomic",\r
996         "xml": "<block atomic=\"true\">",\r
997         "atomic": "true",\r
998         "outputs": 1,\r
999         "x": 4347,\r
1000         "y": 1088,\r
1001         "z": "59711e8e.29744",\r
1002         "wires": [\r
1003             [\r
1004                 "d4658a57.f78ed8"\r
1005             ]\r
1006         ]\r
1007     },\r
1008     {\r
1009         "id": "f57884fd.e852f",\r
1010         "type": "get-resource",\r
1011         "name": "get-resource src tp",\r
1012         "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
1013         "comments": "",\r
1014         "outputs": 1,\r
1015         "x": 2406.5001220703125,\r
1016         "y": 581,\r
1017         "z": "59711e8e.29744",\r
1018         "wires": [\r
1019             [\r
1020                 "7f48300c.649cc8",\r
1021                 "9cd22818.9c99c",\r
1022                 "11e5f855.56b93"\r
1023             ]\r
1024         ]\r
1025     },\r
1026     {\r
1027         "id": "3af252ac.f5160e",\r
1028         "type": "get-resource",\r
1029         "name": "get-resource src pnf",\r
1030         "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
1031         "comments": "",\r
1032         "outputs": 1,\r
1033         "x": 3810,\r
1034         "y": 327,\r
1035         "z": "59711e8e.29744",\r
1036         "wires": [\r
1037             [\r
1038                 "fd4b75db.4422e8",\r
1039                 "650bdcdc.cfece4",\r
1040                 "72662c6f.14033c"\r
1041             ]\r
1042         ]\r
1043     },\r
1044     {\r
1045         "id": "fd4b75db.4422e8",\r
1046         "type": "success",\r
1047         "name": "success",\r
1048         "xml": "<outcome value='success'>\n",\r
1049         "comments": "",\r
1050         "outputs": 1,\r
1051         "x": 4005.5001220703125,\r
1052         "y": 279,\r
1053         "z": "59711e8e.29744",\r
1054         "wires": [\r
1055             [\r
1056                 "b45c7d99.22c22"\r
1057             ]\r
1058         ]\r
1059     },\r
1060     {\r
1061         "id": "650bdcdc.cfece4",\r
1062         "type": "not-found",\r
1063         "name": "not-found",\r
1064         "xml": "<outcome value='not-found'>\n",\r
1065         "comments": "",\r
1066         "outputs": 1,\r
1067         "x": 3997.5001220703125,\r
1068         "y": 334,\r
1069         "z": "59711e8e.29744",\r
1070         "wires": [\r
1071             [\r
1072                 "cb3c1121.cbe778"\r
1073             ]\r
1074         ]\r
1075     },\r
1076     {\r
1077         "id": "72662c6f.14033c",\r
1078         "type": "other",\r
1079         "name": "other",\r
1080         "xml": "<outcome value='Other'>\n",\r
1081         "comments": "",\r
1082         "outputs": 1,\r
1083         "x": 4002.5001220703125,\r
1084         "y": 391,\r
1085         "z": "59711e8e.29744",\r
1086         "wires": [\r
1087             [\r
1088                 "789ed2a8.499b74"\r
1089             ]\r
1090         ]\r
1091     },\r
1092     {\r
1093         "id": "789ed2a8.499b74",\r
1094         "type": "returnFailure",\r
1095         "name": "return failure",\r
1096         "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
1097         "comments": "",\r
1098         "x": 4154.5001220703125,\r
1099         "y": 392,\r
1100         "z": "59711e8e.29744",\r
1101         "wires": []\r
1102     },\r
1103     {\r
1104         "id": "cb3c1121.cbe778",\r
1105         "type": "returnFailure",\r
1106         "name": "return failure",\r
1107         "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
1108         "comments": "",\r
1109         "x": 4165.5001220703125,\r
1110         "y": 337,\r
1111         "z": "59711e8e.29744",\r
1112         "wires": []\r
1113     },\r
1114     {\r
1115         "id": "b45c7d99.22c22",\r
1116         "type": "block",\r
1117         "name": "block",\r
1118         "xml": "<block>\n",\r
1119         "atomic": "false",\r
1120         "comments": "",\r
1121         "outputs": 1,\r
1122         "x": 4149.8824462890625,\r
1123         "y": 276.6556701660156,\r
1124         "z": "59711e8e.29744",\r
1125         "wires": [\r
1126             [\r
1127                 "ba380e73.fe2bc8",\r
1128                 "65a7e039.6dcda8"\r
1129             ]\r
1130         ]\r
1131     },\r
1132     {\r
1133         "id": "ba380e73.fe2bc8",\r
1134         "type": "set",\r
1135         "name": "set domain A node-id and tpn",\r
1136         "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
1137         "comments": "",\r
1138         "x": 4375,\r
1139         "y": 232,\r
1140         "z": "59711e8e.29744",\r
1141         "wires": []\r
1142     },\r
1143     {\r
1144         "id": "b3928b44.45b93",\r
1145         "type": "break",\r
1146         "name": "break",\r
1147         "xml": "<break>\n",\r
1148         "comments": "",\r
1149         "x": 3897,\r
1150         "y": 574,\r
1151         "z": "59711e8e.29744",\r
1152         "wires": []\r
1153     },\r
1154     {\r
1155         "id": "b2e7a790.6b1818",\r
1156         "type": "set",\r
1157         "name": "set domain A tunnel tp ip",\r
1158         "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value=\"`$tmp.aai.src-ttp.tunnel-tp-id`\" />\n",\r
1159         "comments": "",\r
1160         "x": 4591,\r
1161         "y": 480,\r
1162         "z": "59711e8e.29744",\r
1163         "wires": []\r
1164     },\r
1165     {\r
1166         "id": "c25cb799.15c3f8",\r
1167         "type": "get-resource",\r
1168         "name": "get-resource dst pnf",\r
1169         "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
1170         "comments": "",\r
1171         "outputs": 1,\r
1172         "x": 3807,\r
1173         "y": 930,\r
1174         "z": "59711e8e.29744",\r
1175         "wires": [\r
1176             [\r
1177                 "c37473f2.19f208",\r
1178                 "c644027c.70c3f8",\r
1179                 "98fb79a9.84cdc8"\r
1180             ]\r
1181         ]\r
1182     },\r
1183     {\r
1184         "id": "98fb79a9.84cdc8",\r
1185         "type": "success",\r
1186         "name": "success",\r
1187         "xml": "<outcome value='success'>\n",\r
1188         "comments": "",\r
1189         "outputs": 1,\r
1190         "x": 4002.5001220703125,\r
1191         "y": 882,\r
1192         "z": "59711e8e.29744",\r
1193         "wires": [\r
1194             [\r
1195                 "3c4a5895.c63a"\r
1196             ]\r
1197         ]\r
1198     },\r
1199     {\r
1200         "id": "c644027c.70c3f8",\r
1201         "type": "not-found",\r
1202         "name": "not-found",\r
1203         "xml": "<outcome value='not-found'>\n",\r
1204         "comments": "",\r
1205         "outputs": 1,\r
1206         "x": 3994.5001220703125,\r
1207         "y": 937,\r
1208         "z": "59711e8e.29744",\r
1209         "wires": [\r
1210             [\r
1211                 "70fd1b7c.8d1aac"\r
1212             ]\r
1213         ]\r
1214     },\r
1215     {\r
1216         "id": "c37473f2.19f208",\r
1217         "type": "other",\r
1218         "name": "other",\r
1219         "xml": "<outcome value='Other'>\n",\r
1220         "comments": "",\r
1221         "outputs": 1,\r
1222         "x": 3999.5001220703125,\r
1223         "y": 994,\r
1224         "z": "59711e8e.29744",\r
1225         "wires": [\r
1226             [\r
1227                 "cd3e066f.324aa"\r
1228             ]\r
1229         ]\r
1230     },\r
1231     {\r
1232         "id": "3c4a5895.c63a",\r
1233         "type": "block",\r
1234         "name": "block",\r
1235         "xml": "<block>\n",\r
1236         "atomic": "false",\r
1237         "comments": "",\r
1238         "outputs": 1,\r
1239         "x": 4146.8824462890625,\r
1240         "y": 879.6556701660156,\r
1241         "z": "59711e8e.29744",\r
1242         "wires": [\r
1243             [\r
1244                 "a79b012a.c282e",\r
1245                 "469c63f2.54b414"\r
1246             ]\r
1247         ]\r
1248     },\r
1249     {\r
1250         "id": "70fd1b7c.8d1aac",\r
1251         "type": "returnFailure",\r
1252         "name": "return failure",\r
1253         "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
1254         "comments": "",\r
1255         "x": 4162.5001220703125,\r
1256         "y": 940,\r
1257         "z": "59711e8e.29744",\r
1258         "wires": []\r
1259     },\r
1260     {\r
1261         "id": "cd3e066f.324aa",\r
1262         "type": "returnFailure",\r
1263         "name": "return failure",\r
1264         "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
1265         "comments": "",\r
1266         "x": 4151.5001220703125,\r
1267         "y": 995,\r
1268         "z": "59711e8e.29744",\r
1269         "wires": []\r
1270     },\r
1271     {\r
1272         "id": "a79b012a.c282e",\r
1273         "type": "set",\r
1274         "name": "set domain B node-id and tpn",\r
1275         "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
1276         "comments": "",\r
1277         "x": 4356,\r
1278         "y": 847,\r
1279         "z": "59711e8e.29744",\r
1280         "wires": []\r
1281     },\r
1282     {\r
1283         "id": "140c24f7.3b14f3",\r
1284         "type": "break",\r
1285         "name": "break",\r
1286         "xml": "<break>\n",\r
1287         "comments": "",\r
1288         "x": 3926,\r
1289         "y": 1142,\r
1290         "z": "59711e8e.29744",\r
1291         "wires": []\r
1292     },\r
1293     {\r
1294         "id": "d4658a57.f78ed8",\r
1295         "type": "set",\r
1296         "name": "set domain B tunnel tp id",\r
1297         "xml": "<set>\n<parameter name='domain-B.tunnel-tp-id' value=\"`$tmp.aai.dst-ttp.tunnel-tp-id`\" />\n",\r
1298         "comments": "",\r
1299         "x": 4580,\r
1300         "y": 1087,\r
1301         "z": "59711e8e.29744",\r
1302         "wires": []\r
1303     },\r
1304     {\r
1305         "id": "4b900139.065478",\r
1306         "type": "outcome",\r
1307         "name": "network-resource",\r
1308         "xml": "<outcome value='network-resource'>\n",\r
1309         "comments": "",\r
1310         "outputs": 1,\r
1311         "x": 4732,\r
1312         "y": 295,\r
1313         "z": "59711e8e.29744",\r
1314         "wires": [\r
1315             [\r
1316                 "c3283205.62573"\r
1317             ]\r
1318         ]\r
1319     },\r
1320     {\r
1321         "id": "c3283205.62573",\r
1322         "type": "block",\r
1323         "name": "block : atomic",\r
1324         "xml": "<block atomic=\"true\">",\r
1325         "atomic": "true",\r
1326         "outputs": 1,\r
1327         "x": 4909,\r
1328         "y": 287,\r
1329         "z": "59711e8e.29744",\r
1330         "wires": [\r
1331             [\r
1332                 "e3322f04.45bf9",\r
1333                 "201af2cb.ff685e",\r
1334                 "24c615e9.67af32"\r
1335             ]\r
1336         ]\r
1337     },\r
1338     {\r
1339         "id": "e3322f04.45bf9",\r
1340         "type": "set",\r
1341         "name": "set domain A network-id",\r
1342         "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
1343         "comments": "",\r
1344         "x": 5124,\r
1345         "y": 268,\r
1346         "z": "59711e8e.29744",\r
1347         "wires": []\r
1348     },\r
1349     {\r
1350         "id": "201af2cb.ff685e",\r
1351         "type": "get-resource",\r
1352         "name": "get-resource src network-resource",\r
1353         "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
1354         "comments": "",\r
1355         "outputs": 1,\r
1356         "x": 5141,\r
1357         "y": 332,\r
1358         "z": "59711e8e.29744",\r
1359         "wires": [\r
1360             [\r
1361                 "ba151945.9e348"\r
1362             ]\r
1363         ]\r
1364     },\r
1365     {\r
1366         "id": "ba151945.9e348",\r
1367         "type": "success",\r
1368         "name": "success",\r
1369         "xml": "<outcome value='success'>\n",\r
1370         "comments": "",\r
1371         "outputs": 1,\r
1372         "x": 5364.5,\r
1373         "y": 333,\r
1374         "z": "59711e8e.29744",\r
1375         "wires": [\r
1376             [\r
1377                 "bf5ba977.146f8"\r
1378             ]\r
1379         ]\r
1380     },\r
1381     {\r
1382         "id": "bf5ba977.146f8",\r
1383         "type": "set",\r
1384         "name": "set domain A network-id, topo-id, client-id, etc",\r
1385         "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
1386         "comments": "",\r
1387         "x": 5629,\r
1388         "y": 322,\r
1389         "z": "59711e8e.29744",\r
1390         "wires": []\r
1391     },\r
1392     {\r
1393         "id": "65a7e039.6dcda8",\r
1394         "type": "for",\r
1395         "name": "for each relationship",\r
1396         "xml": "<for silentFailure='true' index='pvidx' start='0' end='`$tmp.aai.src-pnf.relationship-list.relationship_length`' >\n",\r
1397         "comments": "",\r
1398         "outputs": 1,\r
1399         "x": 4334,\r
1400         "y": 291,\r
1401         "z": "59711e8e.29744",\r
1402         "wires": [\r
1403             [\r
1404                 "ebc07ec5.500b48"\r
1405             ]\r
1406         ]\r
1407     },\r
1408     {\r
1409         "id": "ebc07ec5.500b48",\r
1410         "type": "switchNode",\r
1411         "name": "switch related-to",\r
1412         "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$pvidx].related-to`'>\n",\r
1413         "comments": "",\r
1414         "outputs": 1,\r
1415         "x": 4529,\r
1416         "y": 291,\r
1417         "z": "59711e8e.29744",\r
1418         "wires": [\r
1419             [\r
1420                 "4b900139.065478"\r
1421             ]\r
1422         ]\r
1423     },\r
1424     {\r
1425         "id": "24c615e9.67af32",\r
1426         "type": "break",\r
1427         "name": "break",\r
1428         "xml": "<break>\n",\r
1429         "comments": "",\r
1430         "x": 5068,\r
1431         "y": 385,\r
1432         "z": "59711e8e.29744",\r
1433         "wires": []\r
1434     },\r
1435     {\r
1436         "id": "469c63f2.54b414",\r
1437         "type": "for",\r
1438         "name": "for each relationship",\r
1439         "xml": "<for silentFailure='true' index='mvidx' start='0' end='`$tmp.aai.dst-pnf.relationship-list.relationship_length`' >\n",\r
1440         "comments": "",\r
1441         "outputs": 1,\r
1442         "x": 4335,\r
1443         "y": 898,\r
1444         "z": "59711e8e.29744",\r
1445         "wires": [\r
1446             [\r
1447                 "a4a499c0.e7f04"\r
1448             ]\r
1449         ]\r
1450     },\r
1451     {\r
1452         "id": "a4a499c0.e7f04",\r
1453         "type": "switchNode",\r
1454         "name": "switch related-to",\r
1455         "xml": "<switch test='`$tmp.aai.dst-pnf.relationship-list.relationship[$mvidx].related-to`'>\n",\r
1456         "comments": "",\r
1457         "outputs": 1,\r
1458         "x": 4530,\r
1459         "y": 898,\r
1460         "z": "59711e8e.29744",\r
1461         "wires": [\r
1462             [\r
1463                 "c5e10d55.b93e8"\r
1464             ]\r
1465         ]\r
1466     },\r
1467     {\r
1468         "id": "a3e0896b.517c78",\r
1469         "type": "break",\r
1470         "name": "break",\r
1471         "xml": "<break>\n",\r
1472         "comments": "",\r
1473         "x": 5154,\r
1474         "y": 978,\r
1475         "z": "59711e8e.29744",\r
1476         "wires": []\r
1477     },\r
1478     {\r
1479         "id": "6051cb19.bdbedc",\r
1480         "type": "execute",\r
1481         "name": "execute split tp-id to get pnf-name",\r
1482         "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
1483         "comments": "",\r
1484         "outputs": 1,\r
1485         "x": 3838,\r
1486         "y": 121,\r
1487         "z": "59711e8e.29744",\r
1488         "wires": [\r
1489             [\r
1490                 "474c52a4.93fc74",\r
1491                 "2bdecc1b.43ff94"\r
1492             ]\r
1493         ]\r
1494     },\r
1495     {\r
1496         "id": "2bdecc1b.43ff94",\r
1497         "type": "failure",\r
1498         "name": "success",\r
1499         "xml": "<outcome value='success'>\n",\r
1500         "comments": "",\r
1501         "outputs": 1,\r
1502         "x": 4059,\r
1503         "y": 89,\r
1504         "z": "59711e8e.29744",\r
1505         "wires": [\r
1506             [\r
1507                 "21520c33.eb9b1c"\r
1508             ]\r
1509         ]\r
1510     },\r
1511     {\r
1512         "id": "474c52a4.93fc74",\r
1513         "type": "failure",\r
1514         "name": "failure",\r
1515         "xml": "<outcome value='failure'>\n",\r
1516         "comments": "",\r
1517         "outputs": 1,\r
1518         "x": 4059,\r
1519         "y": 136,\r
1520         "z": "59711e8e.29744",\r
1521         "wires": [\r
1522             [\r
1523                 "ff0936f5.25fc9"\r
1524             ]\r
1525         ]\r
1526     },\r
1527     {\r
1528         "id": "21520c33.eb9b1c",\r
1529         "type": "block",\r
1530         "name": "block : atomic",\r
1531         "xml": "<block atomic=\"true\">",\r
1532         "atomic": "true",\r
1533         "outputs": 1,\r
1534         "x": 4224,\r
1535         "y": 86,\r
1536         "z": "59711e8e.29744",\r
1537         "wires": [\r
1538             [\r
1539                 "47f81613.356b38"\r
1540             ]\r
1541         ]\r
1542     },\r
1543     {\r
1544         "id": "47f81613.356b38",\r
1545         "type": "set",\r
1546         "name": "set domain-A.ltpId",\r
1547         "xml": "<set>\n<parameter name='domain-A.ltpId' value='`$param-prefix-src-tp[$param-prefix-src-tp_length -1]`' />\n",\r
1548         "comments": "",\r
1549         "x": 4406,\r
1550         "y": 90,\r
1551         "z": "59711e8e.29744",\r
1552         "wires": []\r
1553     },\r
1554     {\r
1555         "id": "ff0936f5.25fc9",\r
1556         "type": "returnFailure",\r
1557         "name": "return failure",\r
1558         "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
1559         "comments": "",\r
1560         "x": 4226,\r
1561         "y": 136,\r
1562         "z": "59711e8e.29744",\r
1563         "wires": []\r
1564     },\r
1565     {\r
1566         "id": "a035bf70.73a55",\r
1567         "type": "execute",\r
1568         "name": "execute split tp-id to get pnf-name",\r
1569         "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
1570         "comments": "",\r
1571         "outputs": 1,\r
1572         "x": 3846,\r
1573         "y": 745,\r
1574         "z": "59711e8e.29744",\r
1575         "wires": [\r
1576             [\r
1577                 "310e01dd.c1a27e",\r
1578                 "976ae4f1.c35c1"\r
1579             ]\r
1580         ]\r
1581     },\r
1582     {\r
1583         "id": "976ae4f1.c35c1",\r
1584         "type": "failure",\r
1585         "name": "success",\r
1586         "xml": "<outcome value='success'>\n",\r
1587         "comments": "",\r
1588         "outputs": 1,\r
1589         "x": 4067,\r
1590         "y": 713,\r
1591         "z": "59711e8e.29744",\r
1592         "wires": [\r
1593             [\r
1594                 "20b670c9.8ae9c8"\r
1595             ]\r
1596         ]\r
1597     },\r
1598     {\r
1599         "id": "310e01dd.c1a27e",\r
1600         "type": "failure",\r
1601         "name": "failure",\r
1602         "xml": "<outcome value='failure'>\n",\r
1603         "comments": "",\r
1604         "outputs": 1,\r
1605         "x": 4067,\r
1606         "y": 760,\r
1607         "z": "59711e8e.29744",\r
1608         "wires": [\r
1609             [\r
1610                 "75ef28c6.5e31a"\r
1611             ]\r
1612         ]\r
1613     },\r
1614     {\r
1615         "id": "20b670c9.8ae9c8",\r
1616         "type": "block",\r
1617         "name": "block : atomic",\r
1618         "xml": "<block atomic=\"true\">",\r
1619         "atomic": "true",\r
1620         "outputs": 1,\r
1621         "x": 4232,\r
1622         "y": 710,\r
1623         "z": "59711e8e.29744",\r
1624         "wires": [\r
1625             [\r
1626                 "3c392a8.397b7d6"\r
1627             ]\r
1628         ]\r
1629     },\r
1630     {\r
1631         "id": "3c392a8.397b7d6",\r
1632         "type": "set",\r
1633         "name": "set domain-B.ltpId",\r
1634         "xml": "<set>\n<parameter name='domain-B.ltpId' value='`$param-prefix-dst-tp[$param-prefix-dst-tp_length -1]`' />\n",\r
1635         "comments": "",\r
1636         "x": 4428,\r
1637         "y": 707,\r
1638         "z": "59711e8e.29744",\r
1639         "wires": []\r
1640     },\r
1641     {\r
1642         "id": "75ef28c6.5e31a",\r
1643         "type": "returnFailure",\r
1644         "name": "return failure",\r
1645         "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
1646         "comments": "",\r
1647         "x": 4234,\r
1648         "y": 760,\r
1649         "z": "59711e8e.29744",\r
1650         "wires": []\r
1651     }\r
1652 ]