104637117dc0a48af7d6504dc1fd3038f883f6ae
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn_nni / GENERIC-RESOURCE-API_sotn-get-otn-tunnel-path-from-oof.json
1 [
2   {
3     "id": "ca266b03.5b0c68",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 91.4998779296875,
8     "y": 34,
9     "z": "cb55ab48.d781c8",
10     "wires": [
11       [
12         "9db70ac2.5a0448"
13       ]
14     ]
15   },
16   {
17     "id": "9db70ac2.5a0448",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
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}'>",
24     "outputs": 1,
25     "x": 216.4998779296875,
26     "y": 360.00001525878906,
27     "z": "cb55ab48.d781c8",
28     "wires": [
29       [
30         "f6e8674b.eb6ef8"
31       ]
32     ]
33   },
34   {
35     "id": "f6e8674b.eb6ef8",
36     "type": "method",
37     "name": "sotn-get-otn-tunnel-path-from-oof",
38     "xml": "<method rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 280.5,
42     "y": 453,
43     "z": "cb55ab48.d781c8",
44     "wires": [
45       [
46         "d8a649df.dd5438"
47       ]
48     ]
49   },
50   {
51     "id": "4cb8a9dc.c82628",
52     "type": "execute",
53     "name": "execute RestApiCallNode getPath from OOF",
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`\" />",
55     "comments": "",
56     "outputs": 1,
57     "x": 763.4729614257812,
58     "y": 111.99600219726562,
59     "z": "cb55ab48.d781c8",
60     "wires": [
61       [
62         "c9ad9647.3c4fa8",
63         "65b028f1.fd8198"
64       ]
65     ]
66   },
67   {
68     "id": "c9ad9647.3c4fa8",
69     "type": "success",
70     "name": "success",
71     "xml": "<outcome value='success'>\n",
72     "comments": "",
73     "outputs": 1,
74     "x": 1003.4731025695801,
75     "y": 135.9959716796875,
76     "z": "cb55ab48.d781c8",
77     "wires": [
78       [
79         "43f1fecc.bf7f"
80       ]
81     ]
82   },
83   {
84     "id": "b1305a70.64e458",
85     "type": "returnFailure",
86     "name": "return failure",
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",
88     "comments": "",
89     "x": 1142.4731369018555,
90     "y": 84.99606323242188,
91     "z": "cb55ab48.d781c8",
92     "wires": []
93   },
94   {
95     "id": "65b028f1.fd8198",
96     "type": "failure",
97     "name": "failure",
98     "xml": "<outcome value='failure'>\n",
99     "comments": "",
100     "outputs": 1,
101     "x": 1002.4728889465332,
102     "y": 84.99606227874756,
103     "z": "cb55ab48.d781c8",
104     "wires": [
105       [
106         "b1305a70.64e458"
107       ]
108     ]
109   },
110   {
111     "id": "13911536.3440bb",
112     "type": "comment",
113     "name": "OTN tunnel path computation",
114     "info": "TODO: check input parameters -- they should be\nthe source and destination of ETH node+tp.",
115     "comments": "",
116     "x": 734.9767608642578,
117     "y": 68.00000190734863,
118     "z": "cb55ab48.d781c8",
119     "wires": []
120   },
121   {
122     "id": "7480efc5.dbe2e",
123     "type": "for",
124     "name": "for vidx..otn-oof.otn-links_length[]",
125     "xml": "<for index='vidx' start='0' end='`$otn-oof.otn-links_length`' >",
126     "comments": "",
127     "outputs": 1,
128     "x": 754.4727783203125,
129     "y": 421.2457275390625,
130     "z": "cb55ab48.d781c8",
131     "wires": [
132       [
133         "b98c91e0.3766f"
134       ]
135     ]
136   },
137   {
138     "id": "689331c8.a7329",
139     "type": "comment",
140     "name": "Loop through OTN links",
141     "info": "",
142     "comments": "",
143     "x": 837.9730834960938,
144     "y": 500.74609375,
145     "z": "cb55ab48.d781c8",
146     "wires": []
147   },
148   {
149     "id": "b98c91e0.3766f",
150     "type": "block",
151     "name": "block : atomic",
152     "xml": "<block atomic=\"true\">",
153     "atomic": "true",
154     "outputs": 1,
155     "x": 859,
156     "y": 612.2864990234375,
157     "z": "cb55ab48.d781c8",
158     "wires": [
159       [
160         "3a76e5ee.5f99aa",
161         "a8939d2.521b76"
162       ]
163     ]
164   },
165   {
166     "id": "3a76e5ee.5f99aa",
167     "type": "get-resource",
168     "name": "get-resource cross-link",
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\t\tAND depth = '0'\"\n        pfx='tmp.aai.cross-link' local-only='false' >\n\n\n",
170     "comments": "",
171     "outputs": 1,
172     "x": 1126,
173     "y": 532.2864685058594,
174     "z": "cb55ab48.d781c8",
175     "wires": [
176       [
177         "74ae6f25.c8093",
178         "d101f4ee.f9f8d8",
179         "7558125c.21685c"
180       ]
181     ]
182   },
183   {
184     "id": "74ae6f25.c8093",
185     "type": "success",
186     "name": "success",
187     "xml": "<outcome value='success'>\n",
188     "comments": "",
189     "outputs": 1,
190     "x": 1356.5,
191     "y": 477.2864685058594,
192     "z": "cb55ab48.d781c8",
193     "wires": [
194       [
195         "a0d35b9e.4c4448"
196       ]
197     ]
198   },
199   {
200     "id": "d101f4ee.f9f8d8",
201     "type": "not-found",
202     "name": "not-found",
203     "xml": "<outcome value='not-found'>\n",
204     "comments": "",
205     "outputs": 1,
206     "x": 1367.5,
207     "y": 534.2864685058594,
208     "z": "cb55ab48.d781c8",
209     "wires": [
210       [
211         "aab3f9be.7515c8"
212       ]
213     ]
214   },
215   {
216     "id": "7558125c.21685c",
217     "type": "other",
218     "name": "other",
219     "xml": "<outcome value='Other'>\n",
220     "comments": "",
221     "outputs": 1,
222     "x": 1361.5,
223     "y": 584.2864685058594,
224     "z": "cb55ab48.d781c8",
225     "wires": [
226       [
227         "c5929dad.e1e45"
228       ]
229     ]
230   },
231   {
232     "id": "aab3f9be.7515c8",
233     "type": "returnFailure",
234     "name": "return failure",
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",
236     "comments": "",
237     "x": 1528.5,
238     "y": 523.2864685058594,
239     "z": "cb55ab48.d781c8",
240     "wires": []
241   },
242   {
243     "id": "c5929dad.e1e45",
244     "type": "returnFailure",
245     "name": "return failure",
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",
247     "comments": "",
248     "x": 1526.5,
249     "y": 579.2864685058594,
250     "z": "cb55ab48.d781c8",
251     "wires": []
252   },
253   {
254     "id": "51d46963.f916e8",
255     "type": "set",
256     "name": "set src-ltpId and dst-ltpId",
257     "xml": "<set>\n<parameter name='tmp.cross-link.src-ltpId' value=\"`$tmp.aai.cross-link.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n<parameter name='tmp.cross-link.dst-ltpId' value=\"`$tmp.aai.cross-link.relationship-list.relationship[1].relationship-data[0].relationship-value`\" />\n",
258     "comments": "",
259     "x": 2318,
260     "y": 396.2864685058594,
261     "z": "cb55ab48.d781c8",
262     "wires": []
263   },
264   {
265     "id": "c5a99f90.0d85b",
266     "type": "comment",
267     "name": "get cross-domain-link information",
268     "info": "",
269     "comments": "",
270     "x": 1127,
271     "y": 493.2864685058594,
272     "z": "cb55ab48.d781c8",
273     "wires": []
274   },
275   {
276     "id": "a8939d2.521b76",
277     "type": "set",
278     "name": "set otn-oof.link-name",
279     "xml": "<set>\n<parameter name='otn-oof.link-name' value='`$otn-oof.solutions[$vidx].`' />",
280     "comments": "",
281     "x": 1108.5,
282     "y": 442.2864685058594,
283     "z": "cb55ab48.d781c8",
284     "wires": []
285   },
286   {
287     "id": "43f1fecc.bf7f",
288     "type": "block",
289     "name": "block",
290     "xml": "<block>\n",
291     "atomic": "false",
292     "comments": "",
293     "outputs": 1,
294     "x": 1148.5001487731934,
295     "y": 133.74145698547363,
296     "z": "cb55ab48.d781c8",
297     "wires": [
298       []
299     ]
300   },
301   {
302     "id": "d8a649df.dd5438",
303     "type": "block",
304     "name": "block : atomic",
305     "xml": "<block atomic=\"true\">",
306     "atomic": "true",
307     "outputs": 1,
308     "x": 521.4687614440918,
309     "y": 379.74163722991943,
310     "z": "cb55ab48.d781c8",
311     "wires": [
312       [
313         "4cb8a9dc.c82628",
314         "7480efc5.dbe2e"
315       ]
316     ]
317   },
318   {
319     "id": "a0d35b9e.4c4448",
320     "type": "switchNode",
321     "name": "test cross-domain-link",
322     "xml": "<switch test='`$tmp.aai.cross-link.link-role`'>\n",
323     "comments": "",
324     "outputs": 1,
325     "x": 1562,
326     "y": 476,
327     "z": "cb55ab48.d781c8",
328     "wires": [
329       [
330         "9c05dfa6.ba207"
331       ]
332     ]
333   },
334   {
335     "id": "9c05dfa6.ba207",
336     "type": "outcome",
337     "name": "outcome cross-domain-link",
338     "xml": "<outcome value='cross-domain-link'>\n",
339     "comments": "",
340     "outputs": 1,
341     "x": 1809,
342     "y": 477,
343     "z": "cb55ab48.d781c8",
344     "wires": [
345       [
346         "ff68def.188c12"
347       ]
348     ]
349   },
350   {
351     "id": "1ed1e43f.527cac",
352     "type": "break",
353     "name": "break",
354     "xml": "<break>\n",
355     "comments": "",
356     "x": 2154,
357     "y": 955,
358     "z": "cb55ab48.d781c8",
359     "wires": []
360   },
361   {
362     "id": "ff68def.188c12",
363     "type": "block",
364     "name": "block : atomic",
365     "xml": "<block atomic=\"true\">",
366     "atomic": "true",
367     "outputs": 1,
368     "x": 2028,
369     "y": 479,
370     "z": "cb55ab48.d781c8",
371     "wires": [
372       [
373         "1ed1e43f.527cac",
374         "51d46963.f916e8",
375         "44b19c4e.886594",
376         "5702d427.f65a4c"
377       ]
378     ]
379   },
380   {
381     "id": "2017012b.18bf6e",
382     "type": "comment",
383     "name": "setup variables",
384     "info": "",
385     "comments": "",
386     "x": 2286,
387     "y": 335,
388     "z": "cb55ab48.d781c8",
389     "wires": []
390   },
391   {
392     "id": "44b19c4e.886594",
393     "type": "get-resource",
394     "name": "get-resource src tp",
395     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"p-interface\" \n\t\tkey=\"p-interface.interface-name = $tmp.src-ltpId \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.src-tp' local-only='false' >\n\n\n",
396     "comments": "",
397     "outputs": 1,
398     "x": 2315,
399     "y": 485,
400     "z": "cb55ab48.d781c8",
401     "wires": [
402       [
403         "675b31ba.fc29c",
404         "e7ba827c.7802e",
405         "3d3ce0b1.c355d"
406       ]
407     ]
408   },
409   {
410     "id": "675b31ba.fc29c",
411     "type": "success",
412     "name": "success",
413     "xml": "<outcome value='success'>\n",
414     "comments": "",
415     "outputs": 1,
416     "x": 2548.5,
417     "y": 446,
418     "z": "cb55ab48.d781c8",
419     "wires": [
420       [
421         "8f945f43.0f6a1",
422         "35d184a7.0348bc"
423       ]
424     ]
425   },
426   {
427     "id": "e7ba827c.7802e",
428     "type": "not-found",
429     "name": "not-found",
430     "xml": "<outcome value='not-found'>\n",
431     "comments": "",
432     "outputs": 1,
433     "x": 2545.5,
434     "y": 504,
435     "z": "cb55ab48.d781c8",
436     "wires": [
437       [
438         "9bcbfa8e.5a3ae8"
439       ]
440     ]
441   },
442   {
443     "id": "3d3ce0b1.c355d",
444     "type": "other",
445     "name": "other",
446     "xml": "<outcome value='Other'>\n",
447     "comments": "",
448     "outputs": 1,
449     "x": 2548.5,
450     "y": 556,
451     "z": "cb55ab48.d781c8",
452     "wires": [
453       [
454         "c82ee5b.1546f18"
455       ]
456     ]
457   },
458   {
459     "id": "9bcbfa8e.5a3ae8",
460     "type": "returnFailure",
461     "name": "return failure",
462     "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",
463     "comments": "",
464     "x": 2730.5,
465     "y": 508,
466     "z": "cb55ab48.d781c8",
467     "wires": []
468   },
469   {
470     "id": "c82ee5b.1546f18",
471     "type": "returnFailure",
472     "name": "return failure",
473     "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",
474     "comments": "",
475     "x": 2718.5,
476     "y": 559,
477     "z": "cb55ab48.d781c8",
478     "wires": []
479   },
480   {
481     "id": "8f945f43.0f6a1",
482     "type": "set",
483     "name": "set tmp.src-pnf-name",
484     "xml": "<set>\n<parameter name='tmp.src-pnf-name' value=\"`$tmp.aai.src-tp.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
485     "comments": "",
486     "x": 2749,
487     "y": 393,
488     "z": "cb55ab48.d781c8",
489     "wires": []
490   },
491   {
492     "id": "35d184a7.0348bc",
493     "type": "get-resource",
494     "name": "get-resource src pnf",
495     "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\t\tAND depth = '0'\"\n        pfx='tmp.aai.src-pnf' local-only='false' >\n\n\n",
496     "comments": "",
497     "outputs": 1,
498     "x": 2739,
499     "y": 448,
500     "z": "cb55ab48.d781c8",
501     "wires": [
502       [
503         "9ea9cbf0.fa9328",
504         "aa8e1680.d1d798",
505         "dd38a5b5.866808"
506       ]
507     ]
508   },
509   {
510     "id": "9ea9cbf0.fa9328",
511     "type": "success",
512     "name": "success",
513     "xml": "<outcome value='success'>\n",
514     "comments": "",
515     "outputs": 1,
516     "x": 3022.5,
517     "y": 401,
518     "z": "cb55ab48.d781c8",
519     "wires": [
520       [
521         "899a7ec6.41ab2"
522       ]
523     ]
524   },
525   {
526     "id": "aa8e1680.d1d798",
527     "type": "not-found",
528     "name": "not-found",
529     "xml": "<outcome value='not-found'>\n",
530     "comments": "",
531     "outputs": 1,
532     "x": 3014.5,
533     "y": 456,
534     "z": "cb55ab48.d781c8",
535     "wires": [
536       [
537         "56667146.5a8cd"
538       ]
539     ]
540   },
541   {
542     "id": "dd38a5b5.866808",
543     "type": "other",
544     "name": "other",
545     "xml": "<outcome value='Other'>\n",
546     "comments": "",
547     "outputs": 1,
548     "x": 3019.5,
549     "y": 513,
550     "z": "cb55ab48.d781c8",
551     "wires": [
552       [
553         "49c4c4a9.a9af7c"
554       ]
555     ]
556   },
557   {
558     "id": "56667146.5a8cd",
559     "type": "returnFailure",
560     "name": "return failure",
561     "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",
562     "comments": "",
563     "x": 3182.5,
564     "y": 459,
565     "z": "cb55ab48.d781c8",
566     "wires": []
567   },
568   {
569     "id": "49c4c4a9.a9af7c",
570     "type": "returnFailure",
571     "name": "return failure",
572     "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",
573     "comments": "",
574     "x": 3171.5,
575     "y": 514,
576     "z": "cb55ab48.d781c8",
577     "wires": []
578   },
579   {
580     "id": "3a58b291.1cf89e",
581     "type": "set",
582     "name": "set domain A node ttp-id",
583     "xml": "<set>\n<parameter name='tmp.src-ttp-id' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />\n",
584     "comments": "",
585     "x": 4234,
586     "y": 262,
587     "z": "cb55ab48.d781c8",
588     "wires": []
589   },
590   {
591     "id": "6baf1c09.23f524",
592     "type": "get-resource",
593     "name": "get-resource src TTP",
594     "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.src-ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.src-ttp' local-only='false' >\n\n\n",
595     "comments": "",
596     "outputs": 1,
597     "x": 4223,
598     "y": 333,
599     "z": "cb55ab48.d781c8",
600     "wires": [
601       [
602         "e53fa55a.80c878"
603       ]
604     ]
605   },
606   {
607     "id": "e53fa55a.80c878",
608     "type": "success",
609     "name": "success",
610     "xml": "<outcome value='success'>\n",
611     "comments": "",
612     "outputs": 1,
613     "x": 4414.5,
614     "y": 330,
615     "z": "cb55ab48.d781c8",
616     "wires": [
617       [
618         "fb4eb6f8.67d008"
619       ]
620     ]
621   },
622   {
623     "id": "fb4eb6f8.67d008",
624     "type": "set",
625     "name": "set domain A node ttp-id",
626     "xml": "<set>\n<parameter name='domain-A.ttp-id' value=\"`$tmp.aai.src-ttp.ttp-id`\" />\n",
627     "comments": "",
628     "x": 4627,
629     "y": 329,
630     "z": "cb55ab48.d781c8",
631     "wires": []
632   },
633   {
634     "id": "151d93fd.7167ec",
635     "type": "block",
636     "name": "block : atomic",
637     "xml": "<block atomic=\"true\">",
638     "atomic": "true",
639     "outputs": 1,
640     "x": 4019,
641     "y": 512,
642     "z": "cb55ab48.d781c8",
643     "wires": [
644       [
645         "fb4c025e.b4687",
646         "2b826247.b8392e"
647       ]
648     ]
649   },
650   {
651     "id": "a6f18660.f8abe8",
652     "type": "outcome",
653     "name": "tunnel-termination-point",
654     "xml": "<outcome value='tunnel-termination-point'>\n",
655     "comments": "",
656     "outputs": 1,
657     "x": 3815.16845703125,
658     "y": 325.48150634765625,
659     "z": "cb55ab48.d781c8",
660     "wires": [
661       [
662         "45ebcf03.0e118"
663       ]
664     ]
665   },
666   {
667     "id": "1ff26720.4f6889",
668     "type": "for",
669     "name": "for each relationship",
670     "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.src-pnf.relationship-list.relationship_length`' >\n",
671     "comments": "",
672     "outputs": 1,
673     "x": 3381.882568359375,
674     "y": 398.65972900390625,
675     "z": "cb55ab48.d781c8",
676     "wires": [
677       [
678         "89b5166.0c594e8"
679       ]
680     ]
681   },
682   {
683     "id": "89b5166.0c594e8",
684     "type": "switchNode",
685     "name": "switch related-to",
686     "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",
687     "comments": "",
688     "outputs": 1,
689     "x": 3607.882568359375,
690     "y": 398.65972900390625,
691     "z": "cb55ab48.d781c8",
692     "wires": [
693       [
694         "a6f18660.f8abe8",
695         "376f0574.e1601a"
696       ]
697     ]
698   },
699   {
700     "id": "899a7ec6.41ab2",
701     "type": "block",
702     "name": "block",
703     "xml": "<block>\n",
704     "atomic": "false",
705     "comments": "",
706     "outputs": 1,
707     "x": 3166.88232421875,
708     "y": 398.6556701660156,
709     "z": "cb55ab48.d781c8",
710     "wires": [
711       [
712         "1ff26720.4f6889",
713         "29ff2ed5.ef4af2"
714       ]
715     ]
716   },
717   {
718     "id": "29ff2ed5.ef4af2",
719     "type": "set",
720     "name": "set domain A node-id and tpn",
721     "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",
722     "comments": "",
723     "x": 3426,
724     "y": 309,
725     "z": "cb55ab48.d781c8",
726     "wires": []
727   },
728   {
729     "id": "376f0574.e1601a",
730     "type": "outcome",
731     "name": "network-resource",
732     "xml": "<outcome value='network-resource'>\n",
733     "comments": "",
734     "outputs": 1,
735     "x": 3806,
736     "y": 511,
737     "z": "cb55ab48.d781c8",
738     "wires": [
739       [
740         "151d93fd.7167ec"
741       ]
742     ]
743   },
744   {
745     "id": "fb4c025e.b4687",
746     "type": "set",
747     "name": "set domain A network-id",
748     "xml": "<set>\n<parameter name='tmp.domain-A.network-id' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />\n",
749     "comments": "",
750     "x": 4254,
751     "y": 442,
752     "z": "cb55ab48.d781c8",
753     "wires": []
754   },
755   {
756     "id": "45ebcf03.0e118",
757     "type": "block",
758     "name": "block : atomic",
759     "xml": "<block atomic=\"true\">",
760     "atomic": "true",
761     "outputs": 1,
762     "x": 4017,
763     "y": 321,
764     "z": "cb55ab48.d781c8",
765     "wires": [
766       [
767         "3a58b291.1cf89e",
768         "6baf1c09.23f524"
769       ]
770     ]
771   },
772   {
773     "id": "2b826247.b8392e",
774     "type": "get-resource",
775     "name": "get-resource src network-resource",
776     "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",
777     "comments": "",
778     "outputs": 1,
779     "x": 4262,
780     "y": 523,
781     "z": "cb55ab48.d781c8",
782     "wires": [
783       [
784         "f37dd233.a3308"
785       ]
786     ]
787   },
788   {
789     "id": "f37dd233.a3308",
790     "type": "success",
791     "name": "success",
792     "xml": "<outcome value='success'>\n",
793     "comments": "",
794     "outputs": 1,
795     "x": 4494.5,
796     "y": 519,
797     "z": "cb55ab48.d781c8",
798     "wires": [
799       [
800         "5f1b14c5.d2a03c"
801       ]
802     ]
803   },
804   {
805     "id": "5f1b14c5.d2a03c",
806     "type": "set",
807     "name": "set domain A network-id, topo-id, client-id, etc",
808     "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",
809     "comments": "",
810     "x": 4736,
811     "y": 513,
812     "z": "cb55ab48.d781c8",
813     "wires": []
814   },
815   {
816     "id": "5702d427.f65a4c",
817     "type": "get-resource",
818     "name": "get-resource dst tp",
819     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"p-interface\" \n\t\tkey=\"p-interface.interface-name = $tmp.dst-ltpId \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.dst-tp' local-only='false' >\n\n\n",
820     "comments": "",
821     "outputs": 1,
822     "x": 2269,
823     "y": 851,
824     "z": "cb55ab48.d781c8",
825     "wires": [
826       [
827         "a50293a4.5e79e",
828         "b4058651.f77518",
829         "b61d9ed.988616"
830       ]
831     ]
832   },
833   {
834     "id": "a50293a4.5e79e",
835     "type": "success",
836     "name": "success",
837     "xml": "<outcome value='success'>\n",
838     "comments": "",
839     "outputs": 1,
840     "x": 2502.5,
841     "y": 812,
842     "z": "cb55ab48.d781c8",
843     "wires": [
844       [
845         "46502cec.4be0b4",
846         "a897aaea.70dd38"
847       ]
848     ]
849   },
850   {
851     "id": "b4058651.f77518",
852     "type": "not-found",
853     "name": "not-found",
854     "xml": "<outcome value='not-found'>\n",
855     "comments": "",
856     "outputs": 1,
857     "x": 2499.5,
858     "y": 870,
859     "z": "cb55ab48.d781c8",
860     "wires": [
861       [
862         "da3111af.853e5"
863       ]
864     ]
865   },
866   {
867     "id": "b61d9ed.988616",
868     "type": "other",
869     "name": "other",
870     "xml": "<outcome value='Other'>\n",
871     "comments": "",
872     "outputs": 1,
873     "x": 2502.5,
874     "y": 922,
875     "z": "cb55ab48.d781c8",
876     "wires": [
877       [
878         "c09ee4e6.15ed68"
879       ]
880     ]
881   },
882   {
883     "id": "c09ee4e6.15ed68",
884     "type": "returnFailure",
885     "name": "return failure",
886     "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",
887     "comments": "",
888     "x": 2672.5,
889     "y": 925,
890     "z": "cb55ab48.d781c8",
891     "wires": []
892   },
893   {
894     "id": "da3111af.853e5",
895     "type": "returnFailure",
896     "name": "return failure",
897     "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",
898     "comments": "",
899     "x": 2684.5,
900     "y": 874,
901     "z": "cb55ab48.d781c8",
902     "wires": []
903   },
904   {
905     "id": "a897aaea.70dd38",
906     "type": "get-resource",
907     "name": "get-resource dst pnf",
908     "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\t\tAND depth = '0'\"\n        pfx='tmp.aai.dst-pnf' local-only='false' >\n\n\n",
909     "comments": "",
910     "outputs": 1,
911     "x": 2693,
912     "y": 814,
913     "z": "cb55ab48.d781c8",
914     "wires": [
915       [
916         "b6f4d1fe.0b8da",
917         "46d13a0d.575974",
918         "94eeb806.b26748"
919       ]
920     ]
921   },
922   {
923     "id": "46502cec.4be0b4",
924     "type": "set",
925     "name": "set tmp.dst-pnf-name",
926     "xml": "<set>\n<parameter name='tmp.dst-pnf-name' value=\"`$tmp.aai.dst-tp.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
927     "comments": "",
928     "x": 2703,
929     "y": 759,
930     "z": "cb55ab48.d781c8",
931     "wires": []
932   },
933   {
934     "id": "94eeb806.b26748",
935     "type": "other",
936     "name": "other",
937     "xml": "<outcome value='Other'>\n",
938     "comments": "",
939     "outputs": 1,
940     "x": 2973.5,
941     "y": 879,
942     "z": "cb55ab48.d781c8",
943     "wires": [
944       [
945         "efc946ae.7bf158"
946       ]
947     ]
948   },
949   {
950     "id": "46d13a0d.575974",
951     "type": "not-found",
952     "name": "not-found",
953     "xml": "<outcome value='not-found'>\n",
954     "comments": "",
955     "outputs": 1,
956     "x": 2968.5,
957     "y": 822,
958     "z": "cb55ab48.d781c8",
959     "wires": [
960       [
961         "feb7d1d7.3486e"
962       ]
963     ]
964   },
965   {
966     "id": "b6f4d1fe.0b8da",
967     "type": "success",
968     "name": "success",
969     "xml": "<outcome value='success'>\n",
970     "comments": "",
971     "outputs": 1,
972     "x": 2976.5,
973     "y": 767,
974     "z": "cb55ab48.d781c8",
975     "wires": [
976       [
977         "100cc1d.c89dc3e"
978       ]
979     ]
980   },
981   {
982     "id": "feb7d1d7.3486e",
983     "type": "returnFailure",
984     "name": "return failure",
985     "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",
986     "comments": "",
987     "x": 3136.5,
988     "y": 825,
989     "z": "cb55ab48.d781c8",
990     "wires": []
991   },
992   {
993     "id": "efc946ae.7bf158",
994     "type": "returnFailure",
995     "name": "return failure",
996     "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",
997     "comments": "",
998     "x": 3125.5,
999     "y": 880,
1000     "z": "cb55ab48.d781c8",
1001     "wires": []
1002   },
1003   {
1004     "id": "100cc1d.c89dc3e",
1005     "type": "block",
1006     "name": "block",
1007     "xml": "<block>\n",
1008     "atomic": "false",
1009     "comments": "",
1010     "outputs": 1,
1011     "x": 3120.88232421875,
1012     "y": 764.6556701660156,
1013     "z": "cb55ab48.d781c8",
1014     "wires": [
1015       [
1016         "3e2a3b9f.7272c4",
1017         "b6c39e63.6b538"
1018       ]
1019     ]
1020   },
1021   {
1022     "id": "3e2a3b9f.7272c4",
1023     "type": "for",
1024     "name": "for each relationship",
1025     "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.dst-pnf.relationship-list.relationship_length`' >\n",
1026     "comments": "",
1027     "outputs": 1,
1028     "x": 3335.882568359375,
1029     "y": 764.6597290039062,
1030     "z": "cb55ab48.d781c8",
1031     "wires": [
1032       [
1033         "c77ddef5.18c3e"
1034       ]
1035     ]
1036   },
1037   {
1038     "id": "c77ddef5.18c3e",
1039     "type": "switchNode",
1040     "name": "switch related-to",
1041     "xml": "<switch test='`$tmp.aai.dst-pnf.relationship-list.relationship[$vidx].related-to`'>\n",
1042     "comments": "",
1043     "outputs": 1,
1044     "x": 3561.882568359375,
1045     "y": 764.6597290039062,
1046     "z": "cb55ab48.d781c8",
1047     "wires": [
1048       [
1049         "3576c9a1.155776",
1050         "131550c4.86635f"
1051       ]
1052     ]
1053   },
1054   {
1055     "id": "b6c39e63.6b538",
1056     "type": "set",
1057     "name": "set domain B node-id and tpn",
1058     "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",
1059     "comments": "",
1060     "x": 3380,
1061     "y": 675,
1062     "z": "cb55ab48.d781c8",
1063     "wires": []
1064   },
1065   {
1066     "id": "3f07ba63.1a2cc6",
1067     "type": "block",
1068     "name": "block : atomic",
1069     "xml": "<block atomic=\"true\">",
1070     "atomic": "true",
1071     "outputs": 1,
1072     "x": 3973,
1073     "y": 878,
1074     "z": "cb55ab48.d781c8",
1075     "wires": [
1076       [
1077         "68ee333a.5e149c",
1078         "57b260c0.16164"
1079       ]
1080     ]
1081   },
1082   {
1083     "id": "3576c9a1.155776",
1084     "type": "outcome",
1085     "name": "tunnel-termination-point",
1086     "xml": "<outcome value='tunnel-termination-point'>\n",
1087     "comments": "",
1088     "outputs": 1,
1089     "x": 3769.16845703125,
1090     "y": 691.4815063476562,
1091     "z": "cb55ab48.d781c8",
1092     "wires": [
1093       [
1094         "63e95b18.c47c14"
1095       ]
1096     ]
1097   },
1098   {
1099     "id": "131550c4.86635f",
1100     "type": "outcome",
1101     "name": "network-resource",
1102     "xml": "<outcome value='network-resource'>\n",
1103     "comments": "",
1104     "outputs": 1,
1105     "x": 3760,
1106     "y": 877,
1107     "z": "cb55ab48.d781c8",
1108     "wires": [
1109       [
1110         "3f07ba63.1a2cc6"
1111       ]
1112     ]
1113   },
1114   {
1115     "id": "63e95b18.c47c14",
1116     "type": "block",
1117     "name": "block : atomic",
1118     "xml": "<block atomic=\"true\">",
1119     "atomic": "true",
1120     "outputs": 1,
1121     "x": 3971,
1122     "y": 687,
1123     "z": "cb55ab48.d781c8",
1124     "wires": [
1125       [
1126         "e883466f.992618",
1127         "f5edbf24.92d52"
1128       ]
1129     ]
1130   },
1131   {
1132     "id": "e883466f.992618",
1133     "type": "set",
1134     "name": "set domain B node ttp-id",
1135     "xml": "<set>\n<parameter name='tmp.dst-ttp-id' value=\"`$tmp.aai.dst-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />\n",
1136     "comments": "",
1137     "x": 4188,
1138     "y": 628,
1139     "z": "cb55ab48.d781c8",
1140     "wires": []
1141   },
1142   {
1143     "id": "f5edbf24.92d52",
1144     "type": "get-resource",
1145     "name": "get-resource dst TTP",
1146     "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.dst-ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.dst-ttp' local-only='false' >\n\n\n",
1147     "comments": "",
1148     "outputs": 1,
1149     "x": 4177,
1150     "y": 699,
1151     "z": "cb55ab48.d781c8",
1152     "wires": [
1153       [
1154         "70320551.17869c"
1155       ]
1156     ]
1157   },
1158   {
1159     "id": "70320551.17869c",
1160     "type": "success",
1161     "name": "success",
1162     "xml": "<outcome value='success'>\n",
1163     "comments": "",
1164     "outputs": 1,
1165     "x": 4368.5,
1166     "y": 696,
1167     "z": "cb55ab48.d781c8",
1168     "wires": [
1169       [
1170         "78931a0a.3bac14"
1171       ]
1172     ]
1173   },
1174   {
1175     "id": "78931a0a.3bac14",
1176     "type": "set",
1177     "name": "set domain B node ttp-id",
1178     "xml": "<set>\n<parameter name='domain-B.ttp-id' value=\"`$tmp.aai.dst-ttp.ttp-id`\" />\n",
1179     "comments": "",
1180     "x": 4581,
1181     "y": 695,
1182     "z": "cb55ab48.d781c8",
1183     "wires": []
1184   },
1185   {
1186     "id": "68ee333a.5e149c",
1187     "type": "set",
1188     "name": "set domain B network-id",
1189     "xml": "<set>\n<parameter name='tmp.domain-B.network-id' value=\"`$tmp.aai.dst-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />\n",
1190     "comments": "",
1191     "x": 4208,
1192     "y": 808,
1193     "z": "cb55ab48.d781c8",
1194     "wires": []
1195   },
1196   {
1197     "id": "57b260c0.16164",
1198     "type": "get-resource",
1199     "name": "get-resource dst network-resource",
1200     "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",
1201     "comments": "",
1202     "outputs": 1,
1203     "x": 4216,
1204     "y": 889,
1205     "z": "cb55ab48.d781c8",
1206     "wires": [
1207       [
1208         "acb8778c.80c2b8"
1209       ]
1210     ]
1211   },
1212   {
1213     "id": "acb8778c.80c2b8",
1214     "type": "success",
1215     "name": "success",
1216     "xml": "<outcome value='success'>\n",
1217     "comments": "",
1218     "outputs": 1,
1219     "x": 4448.5,
1220     "y": 885,
1221     "z": "cb55ab48.d781c8",
1222     "wires": [
1223       [
1224         "24fd155e.59dcba"
1225       ]
1226     ]
1227   },
1228   {
1229     "id": "24fd155e.59dcba",
1230     "type": "set",
1231     "name": "set domain B network-id, topo-id, client-id, etc",
1232     "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",
1233     "comments": "",
1234     "x": 4690,
1235     "y": 879,
1236     "z": "cb55ab48.d781c8",
1237     "wires": []
1238   }
1239 ]