Completing the logic and the call flow for Transport Slicing operations:
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json
new file mode 100644 (file)
index 0000000..edc6aad
--- /dev/null
@@ -0,0 +1,1652 @@
+[\r
+    {\r
+        "id": "ffc612a5.7b0918",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 183,\r
+        "y": 130,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "6dda290e.27dad8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6dda290e.27dad8",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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
+        "outputs": 1,\r
+        "x": 308,\r
+        "y": 456.00001525878906,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "3ffa7f3f.e7e27"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ffa7f3f.e7e27",\r
+        "type": "method",\r
+        "name": "tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
+        "xml": "<method rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 372.0001220703125,\r
+        "y": 549,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "9aa7ba3c.52a7f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ab3abe1.e87adc",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode getPath from OOF",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 854.9730834960938,\r
+        "y": 207.99600219726562,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "6b5ff944.5bf648",\r
+                "850f0c15.20d28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b5ff944.5bf648",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1094.9732246398926,\r
+        "y": 231.9959716796875,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "cd276ba.d3fc218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "905d3517.25cab8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 1233.973258972168,\r
+        "y": 180.99606323242188,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "850f0c15.20d28",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1093.9730110168457,\r
+        "y": 180.99606227874756,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "905d3517.25cab8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a5159e4.7418a",\r
+        "type": "comment",\r
+        "name": "OTN tunnel path computation",\r
+        "info": "TODO: check input parameters -- they should be\nthe source and destination of ETH node+tp.",\r
+        "comments": "",\r
+        "x": 826.4768829345703,\r
+        "y": 164.00000190734863,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eda4482b.a18e38",\r
+        "type": "for",\r
+        "name": "for vidx..otn-oof.solutions_length[]",\r
+        "xml": "<for index='vidx' start='0' end='`$otn-oof.solutions_length`' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 845.972900390625,\r
+        "y": 517.2457275390625,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "576c4b0b.248fb4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "735419f0.115878",\r
+        "type": "comment",\r
+        "name": "Loop through OTN links",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 929.4732055664062,\r
+        "y": 596.74609375,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "576c4b0b.248fb4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 950.5001220703125,\r
+        "y": 708.2864990234375,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "da160010.38d94",\r
+                "5b4dabd5.4d7054"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da160010.38d94",\r
+        "type": "get-resource",\r
+        "name": "get-resource cross-link",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1217.5001220703125,\r
+        "y": 628.2864685058594,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "38a6a5c5.3878b2",\r
+                "7911950a.d4f9bc",\r
+                "c37b490.2ec29b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c37b490.2ec29b8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1409.0001220703125,\r
+        "y": 573.2864685058594,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "203a4a36.513986"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38a6a5c5.3878b2",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1445.0001220703125,\r
+        "y": 698.2864990234375,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "21535143.0a939e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7911950a.d4f9bc",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1439.0001220703125,\r
+        "y": 748.2864990234375,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "21f78d15.02bd0a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21535143.0a939e",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 1606.0001220703125,\r
+        "y": 687.2864990234375,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "21f78d15.02bd0a",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 1604.0001220703125,\r
+        "y": 743.2864990234375,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "875b8573.2757",\r
+        "type": "comment",\r
+        "name": "get cross-domain-link information",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1218.5001220703125,\r
+        "y": 589.2864685058594,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5b4dabd5.4d7054",\r
+        "type": "set",\r
+        "name": "set otn-oof.link-name",\r
+        "xml": "<set>\n<parameter name='otn-oof.link-name' value='`$otn-oof.solutions[$vidx].link`' />",\r
+        "comments": "",\r
+        "x": 1200.0001220703125,\r
+        "y": 538.2864685058594,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cd276ba.d3fc218",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1240.0002708435059,\r
+        "y": 229.74145698547363,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9aa7ba3c.52a7f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 612.9688835144043,\r
+        "y": 475.74163722991943,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "eda4482b.a18e38",\r
+                "4ab3abe1.e87adc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "edd38a6c.67c6b8",\r
+        "type": "switchNode",\r
+        "name": "test cross-domain-link role",\r
+        "xml": "<switch test='`$tmp.aai.cross-link.link-role`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1724.5001220703125,\r
+        "y": 573,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "344b3505.db598a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "344b3505.db598a",\r
+        "type": "outcome",\r
+        "name": "outcome cross-domain",\r
+        "xml": "<outcome value='cross-domain'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1960.5001220703125,\r
+        "y": 574,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "bdc2d141.60e88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c9a4f45.2dfb5",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2279.5,\r
+        "y": 1051,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bdc2d141.60e88",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2163.5001220703125,\r
+        "y": 575,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "7c9a4f45.2dfb5",\r
+                "54d54d35.c8ade4",\r
+                "965a7aea.98984",\r
+                "f57884fd.e852f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f48300c.649cc8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2604,\r
+        "y": 542,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "2a6040f8.29261"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cd22818.9c99c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2637.0001220703125,\r
+        "y": 600,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "8222994e.269fa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11e5f855.56b93",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2640.0001220703125,\r
+        "y": 652,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "39b267f5.2906b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8222994e.269fa",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 2822.0001220703125,\r
+        "y": 604,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "39b267f5.2906b8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 2810.0001220703125,\r
+        "y": 655,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6235283.bbe1f58",\r
+        "type": "set",\r
+        "name": "set domain A node ttp-id",\r
+        "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
+        "comments": "",\r
+        "x": 3940.5,\r
+        "y": 457,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4dcc3c3f.b0f8dc",\r
+        "type": "get-resource",\r
+        "name": "get-resource src TTP",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3948.5,\r
+        "y": 509,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "83dfda72.1dad78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83dfda72.1dad78",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4155,\r
+        "y": 487,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "bd70272d.20274"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49b3daba.22ab04",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3492.66845703125,\r
+        "y": 535.4815063476562,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "2abdfdd6.de70da"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db5fdeca.64d9c8",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.src-tp.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2955.3828125,\r
+        "y": 537.6597290039062,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "7fedd7f6.218328"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7fedd7f6.218328",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.src-tp.relationship-list.relationship[$vidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3207.3828125,\r
+        "y": 534.6597290039062,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "49b3daba.22ab04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2abdfdd6.de70da",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3719.5,\r
+        "y": 524,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "6235283.bbe1f58",\r
+                "4dcc3c3f.b0f8dc",\r
+                "3af252ac.f5160e",\r
+                "b3928b44.45b93",\r
+                "6051cb19.bdbedc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54d54d35.c8ade4",\r
+        "type": "get-resource",\r
+        "name": "get-resource dst tp",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2360.5001220703125,\r
+        "y": 947,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "caa1180f.475d",\r
+                "4f60ddcb.06c464",\r
+                "99e66acf.ef78a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "caa1180f.475d",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2583,\r
+        "y": 1089,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "99dd61a2.0612b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f60ddcb.06c464",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2567,\r
+        "y": 1140,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "ecf71935.9fff1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99e66acf.ef78a8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2570,\r
+        "y": 1192,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "b029d176.ebc328"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b029d176.ebc328",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 2740,\r
+        "y": 1195,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ecf71935.9fff1",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 2752,\r
+        "y": 1144,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "446999ee.737b88",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.dst-tp.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2939.3828125,\r
+        "y": 1099.6597290039062,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "733247bb.4951e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "733247bb.4951e8",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.dst-tp.relationship-list.relationship[$vidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3182.3828125,\r
+        "y": 1098.6597290039062,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "551892cc.c334d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1ae1073.116fc8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4948.5,\r
+        "y": 900,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "e4453cc8.2d68",\r
+                "a58a5fab.4b9628",\r
+                "a3e0896b.517c78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "551892cc.c334d4",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3438.66845703125,\r
+        "y": 1098.4815063476562,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "167858f1.4d47ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5e10d55.b93e8",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4735.5,\r
+        "y": 899,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "d1ae1073.116fc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "167858f1.4d47ff",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3738.5,\r
+        "y": 1096,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "b3d72c6d.8cf07",\r
+                "1624e4ba.2068eb",\r
+                "140c24f7.3b14f3",\r
+                "c25cb799.15c3f8",\r
+                "a035bf70.73a55"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3d72c6d.8cf07",\r
+        "type": "set",\r
+        "name": "set domain B node ttp-id",\r
+        "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
+        "comments": "",\r
+        "x": 3980.5,\r
+        "y": 1050,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1624e4ba.2068eb",\r
+        "type": "get-resource",\r
+        "name": "get-resource dst TTP",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3970.5,\r
+        "y": 1101,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "58cdb5cc.380cfc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58cdb5cc.380cfc",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4158,\r
+        "y": 1099,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "355115bb.2168d2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e4453cc8.2d68",\r
+        "type": "set",\r
+        "name": "set domain B network-id",\r
+        "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
+        "comments": "",\r
+        "x": 5218.5,\r
+        "y": 876,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a58a5fab.4b9628",\r
+        "type": "get-resource",\r
+        "name": "get-resource dst network-resource",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5228.5,\r
+        "y": 922,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "a2d84f11.e4cb88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2d84f11.e4cb88",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5444,\r
+        "y": 913,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "33f08d3a.c124c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33f08d3a.c124c2",\r
+        "type": "set",\r
+        "name": "set domain B network-id, topo-id, client-id, etc",\r
+        "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
+        "comments": "",\r
+        "x": 5698.5,\r
+        "y": 919,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2a6040f8.29261",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2738,\r
+        "y": 538,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "db5fdeca.64d9c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99dd61a2.0612b8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2729,\r
+        "y": 1080,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "446999ee.737b88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "203a4a36.513986",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1543,\r
+        "y": 575,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "edd38a6c.67c6b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "965a7aea.98984",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for index='lridx' start='0' end='`$tmp.aai.cross-link.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2313,\r
+        "y": 359,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "3bc95abb.a9239e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3bc95abb.a9239e",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.cross-link.relationship-list.relationship[$lridx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2512,\r
+        "y": 356,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "3cce24fd.740654"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cce24fd.740654",\r
+        "type": "outcome",\r
+        "name": "p-interface",\r
+        "xml": "<outcome value='p-interface'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2689.117431640625,\r
+        "y": 354.34027099609375,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "6ac060c8.1a11e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ef5481b.bf4b48",\r
+        "type": "set",\r
+        "name": "set src-ltpId and dst-ltpId",\r
+        "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
+        "comments": "",\r
+        "x": 3003,\r
+        "y": 298,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ddeb58ef.e40c3",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2964,\r
+        "y": 361,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6ac060c8.1a11e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2829,\r
+        "y": 339,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "9ef5481b.bf4b48",\r
+                "ddeb58ef.e40c3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd70272d.20274",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4330,\r
+        "y": 483,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "b2e7a790.6b1818"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "355115bb.2168d2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4347,\r
+        "y": 1088,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "d4658a57.f78ed8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f57884fd.e852f",\r
+        "type": "get-resource",\r
+        "name": "get-resource src tp",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2406.5001220703125,\r
+        "y": 581,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "7f48300c.649cc8",\r
+                "9cd22818.9c99c",\r
+                "11e5f855.56b93"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3af252ac.f5160e",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3810,\r
+        "y": 327,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "fd4b75db.4422e8",\r
+                "650bdcdc.cfece4",\r
+                "72662c6f.14033c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd4b75db.4422e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4005.5001220703125,\r
+        "y": 279,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "b45c7d99.22c22"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "650bdcdc.cfece4",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3997.5001220703125,\r
+        "y": 334,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "cb3c1121.cbe778"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72662c6f.14033c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4002.5001220703125,\r
+        "y": 391,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "789ed2a8.499b74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "789ed2a8.499b74",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 4154.5001220703125,\r
+        "y": 392,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cb3c1121.cbe778",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 4165.5001220703125,\r
+        "y": 337,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b45c7d99.22c22",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4149.8824462890625,\r
+        "y": 276.6556701660156,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "ba380e73.fe2bc8",\r
+                "65a7e039.6dcda8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba380e73.fe2bc8",\r
+        "type": "set",\r
+        "name": "set domain A node-id and tpn",\r
+        "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
+        "comments": "",\r
+        "x": 4375,\r
+        "y": 232,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b3928b44.45b93",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 3897,\r
+        "y": 574,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2e7a790.6b1818",\r
+        "type": "set",\r
+        "name": "set domain A tunnel tp ip",\r
+        "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value=\"`$tmp.aai.src-ttp.tunnel-tp-id`\" />\n",\r
+        "comments": "",\r
+        "x": 4591,\r
+        "y": 480,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c25cb799.15c3f8",\r
+        "type": "get-resource",\r
+        "name": "get-resource dst pnf",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3807,\r
+        "y": 930,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "c37473f2.19f208",\r
+                "c644027c.70c3f8",\r
+                "98fb79a9.84cdc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98fb79a9.84cdc8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4002.5001220703125,\r
+        "y": 882,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "3c4a5895.c63a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c644027c.70c3f8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3994.5001220703125,\r
+        "y": 937,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "70fd1b7c.8d1aac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c37473f2.19f208",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3999.5001220703125,\r
+        "y": 994,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "cd3e066f.324aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c4a5895.c63a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4146.8824462890625,\r
+        "y": 879.6556701660156,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "a79b012a.c282e",\r
+                "469c63f2.54b414"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70fd1b7c.8d1aac",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 4162.5001220703125,\r
+        "y": 940,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cd3e066f.324aa",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 4151.5001220703125,\r
+        "y": 995,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a79b012a.c282e",\r
+        "type": "set",\r
+        "name": "set domain B node-id and tpn",\r
+        "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
+        "comments": "",\r
+        "x": 4356,\r
+        "y": 847,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "140c24f7.3b14f3",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 3926,\r
+        "y": 1142,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d4658a57.f78ed8",\r
+        "type": "set",\r
+        "name": "set domain B tunnel tp id",\r
+        "xml": "<set>\n<parameter name='domain-B.tunnel-tp-id' value=\"`$tmp.aai.dst-ttp.tunnel-tp-id`\" />\n",\r
+        "comments": "",\r
+        "x": 4580,\r
+        "y": 1087,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4b900139.065478",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4732,\r
+        "y": 295,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "c3283205.62573"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3283205.62573",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4909,\r
+        "y": 287,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "e3322f04.45bf9",\r
+                "201af2cb.ff685e",\r
+                "24c615e9.67af32"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e3322f04.45bf9",\r
+        "type": "set",\r
+        "name": "set domain A network-id",\r
+        "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
+        "comments": "",\r
+        "x": 5124,\r
+        "y": 268,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "201af2cb.ff685e",\r
+        "type": "get-resource",\r
+        "name": "get-resource src network-resource",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5141,\r
+        "y": 332,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "ba151945.9e348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba151945.9e348",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5364.5,\r
+        "y": 333,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "bf5ba977.146f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf5ba977.146f8",\r
+        "type": "set",\r
+        "name": "set domain A network-id, topo-id, client-id, etc",\r
+        "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
+        "comments": "",\r
+        "x": 5629,\r
+        "y": 322,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "65a7e039.6dcda8",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='pvidx' start='0' end='`$tmp.aai.src-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4334,\r
+        "y": 291,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "ebc07ec5.500b48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebc07ec5.500b48",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$pvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4529,\r
+        "y": 291,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "4b900139.065478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "24c615e9.67af32",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 5068,\r
+        "y": 385,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "469c63f2.54b414",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='mvidx' start='0' end='`$tmp.aai.dst-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4335,\r
+        "y": 898,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "a4a499c0.e7f04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4a499c0.e7f04",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.dst-pnf.relationship-list.relationship[$mvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4530,\r
+        "y": 898,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "c5e10d55.b93e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3e0896b.517c78",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 5154,\r
+        "y": 978,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6051cb19.bdbedc",\r
+        "type": "execute",\r
+        "name": "execute split tp-id to get pnf-name",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3838,\r
+        "y": 121,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "474c52a4.93fc74",\r
+                "2bdecc1b.43ff94"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2bdecc1b.43ff94",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4059,\r
+        "y": 89,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "21520c33.eb9b1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "474c52a4.93fc74",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4059,\r
+        "y": 136,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "ff0936f5.25fc9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21520c33.eb9b1c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4224,\r
+        "y": 86,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "47f81613.356b38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47f81613.356b38",\r
+        "type": "set",\r
+        "name": "set domain-A.ltpId",\r
+        "xml": "<set>\n<parameter name='domain-A.ltpId' value='`$param-prefix-src-tp[$param-prefix-src-tp_length -1]`' />\n",\r
+        "comments": "",\r
+        "x": 4406,\r
+        "y": 90,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ff0936f5.25fc9",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 4226,\r
+        "y": 136,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a035bf70.73a55",\r
+        "type": "execute",\r
+        "name": "execute split tp-id to get pnf-name",\r
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3846,\r
+        "y": 745,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "310e01dd.c1a27e",\r
+                "976ae4f1.c35c1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "976ae4f1.c35c1",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4067,\r
+        "y": 713,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "20b670c9.8ae9c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "310e01dd.c1a27e",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4067,\r
+        "y": 760,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "75ef28c6.5e31a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20b670c9.8ae9c8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4232,\r
+        "y": 710,\r
+        "z": "59711e8e.29744",\r
+        "wires": [\r
+            [\r
+                "3c392a8.397b7d6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c392a8.397b7d6",\r
+        "type": "set",\r
+        "name": "set domain-B.ltpId",\r
+        "xml": "<set>\n<parameter name='domain-B.ltpId' value='`$param-prefix-dst-tp[$param-prefix-dst-tp_length -1]`' />\n",\r
+        "comments": "",\r
+        "x": 4428,\r
+        "y": 707,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "75ef28c6.5e31a",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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
+        "comments": "",\r
+        "x": 4234,\r
+        "y": 760,\r
+        "z": "59711e8e.29744",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file