- Changing POST operation to PATCH for OTN Tunnel creation.
[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": "785080f2.6936b8",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 183,\r
8         "y": 123,\r
9         "z": "f861838.07df98",\r
10         "wires": [\r
11             [\r
12                 "4da9bc1a.de21c4"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "4da9bc1a.de21c4",\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": 449.00001525878906,\r
27         "z": "f861838.07df98",\r
28         "wires": [\r
29             [\r
30                 "4d41d418.8146fc"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "4d41d418.8146fc",\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": 542,\r
43         "z": "f861838.07df98",\r
44         "wires": [\r
45             [\r
46                 "e5176e39.ab5f58"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "8caf5150.39185",\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": 200.99600219726562,\r
59         "z": "f861838.07df98",\r
60         "wires": [\r
61             [\r
62                 "4d2dbd72.56d1c4",\r
63                 "d1c68f83.41e85"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "4d2dbd72.56d1c4",\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": 224.9959716796875,\r
76         "z": "f861838.07df98",\r
77         "wires": [\r
78             [\r
79                 "f83b56b9.c9b638"\r
80             ]\r
81         ]\r
82     },\r
83     {\r
84         "id": "e8159436.f6c238",\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": 173.99606323242188,\r
91         "z": "f861838.07df98",\r
92         "wires": []\r
93     },\r
94     {\r
95         "id": "d1c68f83.41e85",\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": 173.99606227874756,\r
103         "z": "f861838.07df98",\r
104         "wires": [\r
105             [\r
106                 "e8159436.f6c238"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "820d1c3.af11fe",\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": 157.00000190734863,\r
118         "z": "f861838.07df98",\r
119         "wires": []\r
120     },\r
121     {\r
122         "id": "74bde20c.a7fc74",\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": 510.2457275390625,\r
130         "z": "f861838.07df98",\r
131         "wires": [\r
132             [\r
133                 "4106c3e4.394aa4"\r
134             ]\r
135         ]\r
136     },\r
137     {\r
138         "id": "cd87cc44.8c15b8",\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": 589.74609375,\r
145         "z": "f861838.07df98",\r
146         "wires": []\r
147     },\r
148     {\r
149         "id": "4106c3e4.394aa4",\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": 701.2864990234375,\r
157         "z": "f861838.07df98",\r
158         "wires": [\r
159             [\r
160                 "ce760c47.cc25c",\r
161                 "881e4d7c.ab39a8"\r
162             ]\r
163         ]\r
164     },\r
165     {\r
166         "id": "ce760c47.cc25c",\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": 621.2864685058594,\r
174         "z": "f861838.07df98",\r
175         "wires": [\r
176             [\r
177                 "ad346b3e.ce4fa8",\r
178                 "fc5baf89.e9e038",\r
179                 "996489b0.d36438"\r
180             ]\r
181         ]\r
182     },\r
183     {\r
184         "id": "996489b0.d36438",\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": 566.2864685058594,\r
192         "z": "f861838.07df98",\r
193         "wires": [\r
194             [\r
195                 "3ceef7ce.6836e"\r
196             ]\r
197         ]\r
198     },\r
199     {\r
200         "id": "ad346b3e.ce4fa8",\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": 691.2864990234375,\r
208         "z": "f861838.07df98",\r
209         "wires": [\r
210             [\r
211                 "ac6169c7.f0845"\r
212             ]\r
213         ]\r
214     },\r
215     {\r
216         "id": "fc5baf89.e9e038",\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": 741.2864990234375,\r
224         "z": "f861838.07df98",\r
225         "wires": [\r
226             [\r
227                 "63822e63.363e4"\r
228             ]\r
229         ]\r
230     },\r
231     {\r
232         "id": "ac6169c7.f0845",\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": 680.2864990234375,\r
239         "z": "f861838.07df98",\r
240         "wires": []\r
241     },\r
242     {\r
243         "id": "63822e63.363e4",\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": 736.2864990234375,\r
250         "z": "f861838.07df98",\r
251         "wires": []\r
252     },\r
253     {\r
254         "id": "dd34e96e.f687",\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": 582.2864685058594,\r
261         "z": "f861838.07df98",\r
262         "wires": []\r
263     },\r
264     {\r
265         "id": "881e4d7c.ab39a8",\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": 531.2864685058594,\r
272         "z": "f861838.07df98",\r
273         "wires": []\r
274     },\r
275     {\r
276         "id": "f83b56b9.c9b638",\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": 222.74145698547363,\r
285         "z": "f861838.07df98",\r
286         "wires": [\r
287             []\r
288         ]\r
289     },\r
290     {\r
291         "id": "e5176e39.ab5f58",\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": 468.74163722991943,\r
299         "z": "f861838.07df98",\r
300         "wires": [\r
301             [\r
302                 "74bde20c.a7fc74",\r
303                 "8caf5150.39185"\r
304             ]\r
305         ]\r
306     },\r
307     {\r
308         "id": "26918861.79c318",\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": 566,\r
316         "z": "f861838.07df98",\r
317         "wires": [\r
318             [\r
319                 "3531deb1.d8e4aa"\r
320             ]\r
321         ]\r
322     },\r
323     {\r
324         "id": "3531deb1.d8e4aa",\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": 567,\r
332         "z": "f861838.07df98",\r
333         "wires": [\r
334             [\r
335                 "eebcac2b.5130c8"\r
336             ]\r
337         ]\r
338     },\r
339     {\r
340         "id": "7e986d4a.8efc2c",\r
341         "type": "break",\r
342         "name": "break",\r
343         "xml": "<break>\n",\r
344         "comments": "",\r
345         "x": 2279.5,\r
346         "y": 1044,\r
347         "z": "f861838.07df98",\r
348         "wires": []\r
349     },\r
350     {\r
351         "id": "eebcac2b.5130c8",\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": 568,\r
359         "z": "f861838.07df98",\r
360         "wires": [\r
361             [\r
362                 "7e986d4a.8efc2c",\r
363                 "ea827dd1.08ec5",\r
364                 "baf2958a.4c4df8",\r
365                 "fb366a0b.531b8"\r
366             ]\r
367         ]\r
368     },\r
369     {\r
370         "id": "a6afce7.6f2473",\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": 535,\r
378         "z": "f861838.07df98",\r
379         "wires": [\r
380             [\r
381                 "f8be66de.741848"\r
382             ]\r
383         ]\r
384     },\r
385     {\r
386         "id": "2f1a9902.061d36",\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": 593,\r
394         "z": "f861838.07df98",\r
395         "wires": [\r
396             [\r
397                 "dbfe4fc5.e26958"\r
398             ]\r
399         ]\r
400     },\r
401     {\r
402         "id": "9127ce8b.3def68",\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": 645,\r
410         "z": "f861838.07df98",\r
411         "wires": [\r
412             [\r
413                 "c41edc57.5a3f3"\r
414             ]\r
415         ]\r
416     },\r
417     {\r
418         "id": "dbfe4fc5.e26958",\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": 597,\r
425         "z": "f861838.07df98",\r
426         "wires": []\r
427     },\r
428     {\r
429         "id": "c41edc57.5a3f3",\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": 648,\r
436         "z": "f861838.07df98",\r
437         "wires": []\r
438     },\r
439     {\r
440         "id": "ecb2deab.b51cf",\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": 450,\r
447         "z": "f861838.07df98",\r
448         "wires": []\r
449     },\r
450     {\r
451         "id": "d1cdcf8f.8a3938",\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": 502,\r
459         "z": "f861838.07df98",\r
460         "wires": [\r
461             [\r
462                 "5ec14125.845248"\r
463             ]\r
464         ]\r
465     },\r
466     {\r
467         "id": "5ec14125.845248",\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": 480,\r
475         "z": "f861838.07df98",\r
476         "wires": [\r
477             [\r
478                 "ca7d08dc.2600e"\r
479             ]\r
480         ]\r
481     },\r
482     {\r
483         "id": "c49d7c6a.28c258",\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": 528.4815063476562,\r
491         "z": "f861838.07df98",\r
492         "wires": [\r
493             [\r
494                 "dd92713b.0e1d48"\r
495             ]\r
496         ]\r
497     },\r
498     {\r
499         "id": "d42ddf1f.aa33b8",\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": 530.6597290039062,\r
507         "z": "f861838.07df98",\r
508         "wires": [\r
509             [\r
510                 "422b69de.73fa7"\r
511             ]\r
512         ]\r
513     },\r
514     {\r
515         "id": "422b69de.73fa7",\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": 527.6597290039062,\r
523         "z": "f861838.07df98",\r
524         "wires": [\r
525             [\r
526                 "c49d7c6a.28c258"\r
527             ]\r
528         ]\r
529     },\r
530     {\r
531         "id": "dd92713b.0e1d48",\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": 517,\r
539         "z": "f861838.07df98",\r
540         "wires": [\r
541             [\r
542                 "ecb2deab.b51cf",\r
543                 "d1cdcf8f.8a3938",\r
544                 "971f1502.6917e",\r
545                 "c7ca7420.72c18",\r
546                 "8d70c942.44a4b"\r
547             ]\r
548         ]\r
549     },\r
550     {\r
551         "id": "ea827dd1.08ec5",\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": 940,\r
559         "z": "f861838.07df98",\r
560         "wires": [\r
561             [\r
562                 "6be782aa.b86974",\r
563                 "6d662459.228964",\r
564                 "898db702.b7dc98"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "6be782aa.b86974",\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": 1082,\r
577         "z": "f861838.07df98",\r
578         "wires": [\r
579             [\r
580                 "65a0fa24.29df6c"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "6d662459.228964",\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": 1133,\r
593         "z": "f861838.07df98",\r
594         "wires": [\r
595             [\r
596                 "b65b40fe.974c6"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "898db702.b7dc98",\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": 1185,\r
609         "z": "f861838.07df98",\r
610         "wires": [\r
611             [\r
612                 "bfee6332.37f66"\r
613             ]\r
614         ]\r
615     },\r
616     {\r
617         "id": "bfee6332.37f66",\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": 1188,\r
624         "z": "f861838.07df98",\r
625         "wires": []\r
626     },\r
627     {\r
628         "id": "b65b40fe.974c6",\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": 1137,\r
635         "z": "f861838.07df98",\r
636         "wires": []\r
637     },\r
638     {\r
639         "id": "8d7d4d68.6b1788",\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": 1092.6597290039062,\r
647         "z": "f861838.07df98",\r
648         "wires": [\r
649             [\r
650                 "575ceb9c.cab194"\r
651             ]\r
652         ]\r
653     },\r
654     {\r
655         "id": "575ceb9c.cab194",\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": 1091.6597290039062,\r
663         "z": "f861838.07df98",\r
664         "wires": [\r
665             [\r
666                 "b72d167f.fee4e"\r
667             ]\r
668         ]\r
669     },\r
670     {\r
671         "id": "a539cf03.6d6808",\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": 893,\r
679         "z": "f861838.07df98",\r
680         "wires": [\r
681             [\r
682                 "d5068892.e23ae8",\r
683                 "81d0dbc4.fd6ab8",\r
684                 "7f9bc054.18256"\r
685             ]\r
686         ]\r
687     },\r
688     {\r
689         "id": "b72d167f.fee4e",\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": 1091.4815063476562,\r
697         "z": "f861838.07df98",\r
698         "wires": [\r
699             [\r
700                 "9c7f096e.2675b8"\r
701             ]\r
702         ]\r
703     },\r
704     {\r
705         "id": "9378bfdf.c4bd08",\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": 892,\r
713         "z": "f861838.07df98",\r
714         "wires": [\r
715             [\r
716                 "a539cf03.6d6808"\r
717             ]\r
718         ]\r
719     },\r
720     {\r
721         "id": "9c7f096e.2675b8",\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": 1089,\r
729         "z": "f861838.07df98",\r
730         "wires": [\r
731             [\r
732                 "176fbec8.809f09",\r
733                 "4808dba3.0d097c",\r
734                 "a9a61e4c.61cea8",\r
735                 "967b7a6e.29dcc",\r
736                 "eb2816b.38b8868"\r
737             ]\r
738         ]\r
739     },\r
740     {\r
741         "id": "176fbec8.809f09",\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": 1043,\r
748         "z": "f861838.07df98",\r
749         "wires": []\r
750     },\r
751     {\r
752         "id": "4808dba3.0d097c",\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": 1094,\r
760         "z": "f861838.07df98",\r
761         "wires": [\r
762             [\r
763                 "4a5731eb.8e0df8"\r
764             ]\r
765         ]\r
766     },\r
767     {\r
768         "id": "4a5731eb.8e0df8",\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": 1092,\r
776         "z": "f861838.07df98",\r
777         "wires": [\r
778             [\r
779                 "53c0541b.770fcc"\r
780             ]\r
781         ]\r
782     },\r
783     {\r
784         "id": "d5068892.e23ae8",\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": 869,\r
791         "z": "f861838.07df98",\r
792         "wires": []\r
793     },\r
794     {\r
795         "id": "81d0dbc4.fd6ab8",\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": 915,\r
803         "z": "f861838.07df98",\r
804         "wires": [\r
805             [\r
806                 "584862de.86be1c"\r
807             ]\r
808         ]\r
809     },\r
810     {\r
811         "id": "584862de.86be1c",\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": 906,\r
819         "z": "f861838.07df98",\r
820         "wires": [\r
821             [\r
822                 "419ec6e9.6efd2"\r
823             ]\r
824         ]\r
825     },\r
826     {\r
827         "id": "419ec6e9.6efd2",\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": 912,\r
834         "z": "f861838.07df98",\r
835         "wires": []\r
836     },\r
837     {\r
838         "id": "f8be66de.741848",\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": 531,\r
847         "z": "f861838.07df98",\r
848         "wires": [\r
849             [\r
850                 "d42ddf1f.aa33b8"\r
851             ]\r
852         ]\r
853     },\r
854     {\r
855         "id": "65a0fa24.29df6c",\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": 1073,\r
864         "z": "f861838.07df98",\r
865         "wires": [\r
866             [\r
867                 "8d7d4d68.6b1788"\r
868             ]\r
869         ]\r
870     },\r
871     {\r
872         "id": "3ceef7ce.6836e",\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": 568,\r
881         "z": "f861838.07df98",\r
882         "wires": [\r
883             [\r
884                 "26918861.79c318"\r
885             ]\r
886         ]\r
887     },\r
888     {\r
889         "id": "baf2958a.4c4df8",\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": 352,\r
897         "z": "f861838.07df98",\r
898         "wires": [\r
899             [\r
900                 "98d39228.4f43c"\r
901             ]\r
902         ]\r
903     },\r
904     {\r
905         "id": "98d39228.4f43c",\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": 349,\r
913         "z": "f861838.07df98",\r
914         "wires": [\r
915             [\r
916                 "1abf5c4f.924da4"\r
917             ]\r
918         ]\r
919     },\r
920     {\r
921         "id": "1abf5c4f.924da4",\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": 347.34027099609375,\r
929         "z": "f861838.07df98",\r
930         "wires": [\r
931             [\r
932                 "d47f9442.a83a08"\r
933             ]\r
934         ]\r
935     },\r
936     {\r
937         "id": "8b0d1bcd.9b2bf8",\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": 291,\r
944         "z": "f861838.07df98",\r
945         "wires": []\r
946     },\r
947     {\r
948         "id": "69b5dc47.c8bab4",\r
949         "type": "break",\r
950         "name": "break",\r
951         "xml": "<break>\n",\r
952         "comments": "",\r
953         "x": 2964,\r
954         "y": 354,\r
955         "z": "f861838.07df98",\r
956         "wires": []\r
957     },\r
958     {\r
959         "id": "d47f9442.a83a08",\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": 332,\r
968         "z": "f861838.07df98",\r
969         "wires": [\r
970             [\r
971                 "8b0d1bcd.9b2bf8",\r
972                 "69b5dc47.c8bab4"\r
973             ]\r
974         ]\r
975     },\r
976     {\r
977         "id": "ca7d08dc.2600e",\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": 476,\r
985         "z": "f861838.07df98",\r
986         "wires": [\r
987             [\r
988                 "4e511808.615928"\r
989             ]\r
990         ]\r
991     },\r
992     {\r
993         "id": "53c0541b.770fcc",\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": 1081,\r
1001         "z": "f861838.07df98",\r
1002         "wires": [\r
1003             [\r
1004                 "1d3fc9e2.e7e6d6"\r
1005             ]\r
1006         ]\r
1007     },\r
1008     {\r
1009         "id": "fb366a0b.531b8",\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": 574,\r
1017         "z": "f861838.07df98",\r
1018         "wires": [\r
1019             [\r
1020                 "a6afce7.6f2473",\r
1021                 "2f1a9902.061d36",\r
1022                 "9127ce8b.3def68"\r
1023             ]\r
1024         ]\r
1025     },\r
1026     {\r
1027         "id": "971f1502.6917e",\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": 320,\r
1035         "z": "f861838.07df98",\r
1036         "wires": [\r
1037             [\r
1038                 "806ba724.7c9cb",\r
1039                 "6ff47511.68ce04",\r
1040                 "3a2344e6.758334"\r
1041             ]\r
1042         ]\r
1043     },\r
1044     {\r
1045         "id": "806ba724.7c9cb",\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": 272,\r
1053         "z": "f861838.07df98",\r
1054         "wires": [\r
1055             [\r
1056                 "198edc3a.f7e7a4"\r
1057             ]\r
1058         ]\r
1059     },\r
1060     {\r
1061         "id": "6ff47511.68ce04",\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": 327,\r
1069         "z": "f861838.07df98",\r
1070         "wires": [\r
1071             [\r
1072                 "658b18f7.6c229"\r
1073             ]\r
1074         ]\r
1075     },\r
1076     {\r
1077         "id": "3a2344e6.758334",\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": 384,\r
1085         "z": "f861838.07df98",\r
1086         "wires": [\r
1087             [\r
1088                 "10fe2a63.edb7de"\r
1089             ]\r
1090         ]\r
1091     },\r
1092     {\r
1093         "id": "10fe2a63.edb7de",\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": 385,\r
1100         "z": "f861838.07df98",\r
1101         "wires": []\r
1102     },\r
1103     {\r
1104         "id": "658b18f7.6c229",\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": 330,\r
1111         "z": "f861838.07df98",\r
1112         "wires": []\r
1113     },\r
1114     {\r
1115         "id": "198edc3a.f7e7a4",\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": 269.6556701660156,\r
1124         "z": "f861838.07df98",\r
1125         "wires": [\r
1126             [\r
1127                 "3a3ab784.901e48",\r
1128                 "a97b2a05.9f73a"\r
1129             ]\r
1130         ]\r
1131     },\r
1132     {\r
1133         "id": "3a3ab784.901e48",\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": 225,\r
1140         "z": "f861838.07df98",\r
1141         "wires": []\r
1142     },\r
1143     {\r
1144         "id": "c7ca7420.72c18",\r
1145         "type": "break",\r
1146         "name": "break",\r
1147         "xml": "<break>\n",\r
1148         "comments": "",\r
1149         "x": 3897,\r
1150         "y": 567,\r
1151         "z": "f861838.07df98",\r
1152         "wires": []\r
1153     },\r
1154     {\r
1155         "id": "4e511808.615928",\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": 473,\r
1162         "z": "f861838.07df98",\r
1163         "wires": []\r
1164     },\r
1165     {\r
1166         "id": "967b7a6e.29dcc",\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": 923,\r
1174         "z": "f861838.07df98",\r
1175         "wires": [\r
1176             [\r
1177                 "e327bfa4.a9a3a8",\r
1178                 "d6f6e8cf.638658",\r
1179                 "370c2654.35ab6a"\r
1180             ]\r
1181         ]\r
1182     },\r
1183     {\r
1184         "id": "370c2654.35ab6a",\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": 875,\r
1192         "z": "f861838.07df98",\r
1193         "wires": [\r
1194             [\r
1195                 "750d9871.e65c38"\r
1196             ]\r
1197         ]\r
1198     },\r
1199     {\r
1200         "id": "d6f6e8cf.638658",\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": 930,\r
1208         "z": "f861838.07df98",\r
1209         "wires": [\r
1210             [\r
1211                 "a22c9c14.dad95"\r
1212             ]\r
1213         ]\r
1214     },\r
1215     {\r
1216         "id": "e327bfa4.a9a3a8",\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": 987,\r
1224         "z": "f861838.07df98",\r
1225         "wires": [\r
1226             [\r
1227                 "68964b02.e7fefc"\r
1228             ]\r
1229         ]\r
1230     },\r
1231     {\r
1232         "id": "750d9871.e65c38",\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": 872.6556701660156,\r
1241         "z": "f861838.07df98",\r
1242         "wires": [\r
1243             [\r
1244                 "93208213.553588",\r
1245                 "71258e68.5cbd58"\r
1246             ]\r
1247         ]\r
1248     },\r
1249     {\r
1250         "id": "a22c9c14.dad95",\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": 933,\r
1257         "z": "f861838.07df98",\r
1258         "wires": []\r
1259     },\r
1260     {\r
1261         "id": "68964b02.e7fefc",\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": 988,\r
1268         "z": "f861838.07df98",\r
1269         "wires": []\r
1270     },\r
1271     {\r
1272         "id": "93208213.553588",\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": 840,\r
1279         "z": "f861838.07df98",\r
1280         "wires": []\r
1281     },\r
1282     {\r
1283         "id": "a9a61e4c.61cea8",\r
1284         "type": "break",\r
1285         "name": "break",\r
1286         "xml": "<break>\n",\r
1287         "comments": "",\r
1288         "x": 3926,\r
1289         "y": 1135,\r
1290         "z": "f861838.07df98",\r
1291         "wires": []\r
1292     },\r
1293     {\r
1294         "id": "1d3fc9e2.e7e6d6",\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": 1080,\r
1301         "z": "f861838.07df98",\r
1302         "wires": []\r
1303     },\r
1304     {\r
1305         "id": "57d0de73.a03a68",\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": 288,\r
1313         "z": "f861838.07df98",\r
1314         "wires": [\r
1315             [\r
1316                 "ed098b6a.2cacf8"\r
1317             ]\r
1318         ]\r
1319     },\r
1320     {\r
1321         "id": "ed098b6a.2cacf8",\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": 280,\r
1329         "z": "f861838.07df98",\r
1330         "wires": [\r
1331             [\r
1332                 "61d12009.69ae18",\r
1333                 "bb57da49.8f1178",\r
1334                 "85c9485f.31b9d8"\r
1335             ]\r
1336         ]\r
1337     },\r
1338     {\r
1339         "id": "61d12009.69ae18",\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": 261,\r
1346         "z": "f861838.07df98",\r
1347         "wires": []\r
1348     },\r
1349     {\r
1350         "id": "bb57da49.8f1178",\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": 325,\r
1358         "z": "f861838.07df98",\r
1359         "wires": [\r
1360             [\r
1361                 "603dc665.e100a"\r
1362             ]\r
1363         ]\r
1364     },\r
1365     {\r
1366         "id": "603dc665.e100a",\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": 326,\r
1374         "z": "f861838.07df98",\r
1375         "wires": [\r
1376             [\r
1377                 "bfe1407d.be933"\r
1378             ]\r
1379         ]\r
1380     },\r
1381     {\r
1382         "id": "bfe1407d.be933",\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": 315,\r
1389         "z": "f861838.07df98",\r
1390         "wires": []\r
1391     },\r
1392     {\r
1393         "id": "a97b2a05.9f73a",\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": 284,\r
1401         "z": "f861838.07df98",\r
1402         "wires": [\r
1403             [\r
1404                 "2c83d3d0.5ba494"\r
1405             ]\r
1406         ]\r
1407     },\r
1408     {\r
1409         "id": "2c83d3d0.5ba494",\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": 284,\r
1417         "z": "f861838.07df98",\r
1418         "wires": [\r
1419             [\r
1420                 "57d0de73.a03a68"\r
1421             ]\r
1422         ]\r
1423     },\r
1424     {\r
1425         "id": "85c9485f.31b9d8",\r
1426         "type": "break",\r
1427         "name": "break",\r
1428         "xml": "<break>\n",\r
1429         "comments": "",\r
1430         "x": 5068,\r
1431         "y": 378,\r
1432         "z": "f861838.07df98",\r
1433         "wires": []\r
1434     },\r
1435     {\r
1436         "id": "71258e68.5cbd58",\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": 891,\r
1444         "z": "f861838.07df98",\r
1445         "wires": [\r
1446             [\r
1447                 "1cdec3b0.3edecc"\r
1448             ]\r
1449         ]\r
1450     },\r
1451     {\r
1452         "id": "1cdec3b0.3edecc",\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": 891,\r
1460         "z": "f861838.07df98",\r
1461         "wires": [\r
1462             [\r
1463                 "9378bfdf.c4bd08"\r
1464             ]\r
1465         ]\r
1466     },\r
1467     {\r
1468         "id": "7f9bc054.18256",\r
1469         "type": "break",\r
1470         "name": "break",\r
1471         "xml": "<break>\n",\r
1472         "comments": "",\r
1473         "x": 5154,\r
1474         "y": 971,\r
1475         "z": "f861838.07df98",\r
1476         "wires": []\r
1477     },\r
1478     {\r
1479         "id": "8d70c942.44a4b",\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": 114,\r
1487         "z": "f861838.07df98",\r
1488         "wires": [\r
1489             [\r
1490                 "f6a321aa.4933d",\r
1491                 "d873be99.cdd6b8"\r
1492             ]\r
1493         ]\r
1494     },\r
1495     {\r
1496         "id": "d873be99.cdd6b8",\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": 82,\r
1504         "z": "f861838.07df98",\r
1505         "wires": [\r
1506             [\r
1507                 "aee73e2c.22e008"\r
1508             ]\r
1509         ]\r
1510     },\r
1511     {\r
1512         "id": "f6a321aa.4933d",\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": 129,\r
1520         "z": "f861838.07df98",\r
1521         "wires": [\r
1522             [\r
1523                 "58dfd18f.2c2408"\r
1524             ]\r
1525         ]\r
1526     },\r
1527     {\r
1528         "id": "aee73e2c.22e008",\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": 79,\r
1536         "z": "f861838.07df98",\r
1537         "wires": [\r
1538             [\r
1539                 "e00cc6b0.3f2b6"\r
1540             ]\r
1541         ]\r
1542     },\r
1543     {\r
1544         "id": "e00cc6b0.3f2b6",\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": 83,\r
1551         "z": "f861838.07df98",\r
1552         "wires": []\r
1553     },\r
1554     {\r
1555         "id": "58dfd18f.2c2408",\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": 129,\r
1562         "z": "f861838.07df98",\r
1563         "wires": []\r
1564     },\r
1565     {\r
1566         "id": "eb2816b.38b8868",\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": 738,\r
1574         "z": "f861838.07df98",\r
1575         "wires": [\r
1576             [\r
1577                 "4540307f.4c5428",\r
1578                 "da15be4.fdd654"\r
1579             ]\r
1580         ]\r
1581     },\r
1582     {\r
1583         "id": "da15be4.fdd654",\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": 706,\r
1591         "z": "f861838.07df98",\r
1592         "wires": [\r
1593             [\r
1594                 "344ce354.79f65c"\r
1595             ]\r
1596         ]\r
1597     },\r
1598     {\r
1599         "id": "4540307f.4c5428",\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": 753,\r
1607         "z": "f861838.07df98",\r
1608         "wires": [\r
1609             [\r
1610                 "e36b8ad2.500998"\r
1611             ]\r
1612         ]\r
1613     },\r
1614     {\r
1615         "id": "344ce354.79f65c",\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": 703,\r
1623         "z": "f861838.07df98",\r
1624         "wires": [\r
1625             [\r
1626                 "2f5cfc52.4cced4"\r
1627             ]\r
1628         ]\r
1629     },\r
1630     {\r
1631         "id": "2f5cfc52.4cced4",\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": 700,\r
1638         "z": "f861838.07df98",\r
1639         "wires": []\r
1640     },\r
1641     {\r
1642         "id": "e36b8ad2.500998",\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": 753,\r
1649         "z": "f861838.07df98",\r
1650         "wires": []\r
1651     }\r
1652 ]