- Removing model-invariant-id, model-customization-id, and model-version-id from
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json
index 967f65e..9904f4d 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "c7ab28db.5fa9f8",\r
+        "id": "6fd18371.ab4fc4",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 108,\r
-        "y": 69,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 138.56666564941406,\r
+        "y": 144.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "b4f2bafa.fe95a"\r
+                "f71dc579.359058"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b4f2bafa.fe95a",\r
+        "id": "f71dc579.359058",\r
         "type": "service-logic",\r
         "name": "GENERIC-RESOURCE-API ${project.version}",\r
         "module": "GENERIC-RESOURCE-API",\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": 392.2856903076172,\r
-        "y": 130.23810863494873,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 422.85235595703125,\r
+        "y": 205.8047742843628,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "5dd33274.e7d4cc"\r
+                "c0146243.1b894"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5dd33274.e7d4cc",\r
+        "id": "c0146243.1b894",\r
         "type": "method",\r
         "name": "method tsli-vnf-topology-operation-trans-slice-allocate",\r
         "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 398.42860412597656,\r
-        "y": 215.00003051757812,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 428.9952697753906,\r
+        "y": 290.5666961669922,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "28d22516.fc87aa"\r
+                "8f2a1d48.4d5c1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "28d22516.fc87aa",\r
+        "id": "8f2a1d48.4d5c1",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 768.238037109375,\r
-        "y": 239.66668701171875,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 798.8047027587891,\r
+        "y": 315.2333526611328,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "7c0b6069.496758",\r
-                "11269eb9.b73d59",\r
-                "b98a68a9.509cb8",\r
-                "18445def.73c80a",\r
-                "703f0f3.2526ff",\r
-                "d4cb43.708284c",\r
-                "9006694b.0db0e8",\r
-                "e3c7ee55.46e6f8",\r
-                "efeb4f56.d9cc7",\r
-                "4948ae3d.2fb728",\r
-                "e0ae06d.cc68bf8",\r
-                "fd6957d.13c0a28",\r
-                "8c69784a.6fe62",\r
-                "e181a758.620248"\r
+                "aba9a33d.b56118",\r
+                "b34cfae3.a993d8",\r
+                "195092e3.943c55"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "11269eb9.b73d59",\r
-        "type": "set",\r
-        "name": "set vnf-level-oper-status to Created",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",\r
-        "comments": "",\r
-        "x": 1190.3848495483398,\r
-        "y": 603.6706197531894,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "7c0b6069.496758",\r
-        "type": "set",\r
-        "name": "copy input data to service data",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",\r
+        "id": "aba9a33d.b56118",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
         "comments": "",\r
-        "x": 1182.238037109375,\r
-        "y": 498.6668718131259,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1100.138198852539,\r
+        "y": 586.1636505126953,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "703f0f3.2526ff",\r
-        "type": "execute",\r
-        "name": "execute generate-vnf-index",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-id\"/>\n",\r
+        "id": "b34cfae3.a993d8",\r
+        "type": "save",\r
+        "name": "get service-instance from aai",\r
+        "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1170.5715408325195,\r
-        "y": 448.3334558280185,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1121.566665649414,\r
+        "y": 288.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "689fbe64.b269",\r
+                "60b4e331.4ab1b4",\r
+                "69c448c.334a3b8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "4948ae3d.2fb728",\r
-        "type": "set",\r
-        "name": "set vnf-index to service data",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-id`' />\n",\r
-        "comments": "",\r
-        "x": 1181.5716171264648,\r
-        "y": 555.3334596427158,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "b98a68a9.509cb8",\r
-        "type": "switchNode",\r
-        "name": "switch service-data.vnfs.vnf_length",\r
-        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "id": "689fbe64.b269",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1197.5713577270508,\r
-        "y": 118.33337858039886,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1346.566665649414,\r
+        "y": 146.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "45cce5a8.451aac",\r
-                "48e9b931.dabab8"\r
+                "fead0819.21d2e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "45cce5a8.451aac",\r
-        "type": "other",\r
-        "name": "NULL",\r
-        "xml": "<outcome value=''>\n",\r
+        "id": "60b4e331.4ab1b4",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1432.285743713379,\r
-        "y": 113.47619893867522,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1342.057632446289,\r
+        "y": 216.1407012939453,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "6299edd9.775e24"\r
+                "ad666133.38332"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6299edd9.775e24",\r
-        "type": "set",\r
-        "name": "set vnf-index=0",\r
-        "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",\r
+        "id": "69c448c.334a3b8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
-        "x": 1592.5714492797852,\r
-        "y": 113.4762904914096,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 1330.566665649414,\r
+        "y": 262.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "be5632ce.888008"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "48e9b931.dabab8",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "fead0819.21d2e8",\r
+        "type": "switchNode",\r
+        "name": "switch allotted-resources_length != 0",\r
+        "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1428.714282989502,\r
-        "y": 146.76203039009124,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1585.566665649414,\r
+        "y": 143.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "777ae1e9.6bbca"\r
+                "79e1f5a9.abc0fc",\r
+                "628b0c00.38066c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6abef48d.2c4e6c",\r
-        "type": "set",\r
-        "name": "set vnf-index = vnf_length",\r
-        "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",\r
+        "id": "ad666133.38332",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 1821.5715255737305,\r
-        "y": 125.04775598365813,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1495.6290435791016,\r
+        "y": 219.4264373779297,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8a52abb7.25d258",\r
-        "type": "for",\r
-        "name": "for each existing VNF",\r
-        "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "id": "be5632ce.888008",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 1810.000144958496,\r
-        "y": 160.0477278502658,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\r
-            [\r
-                "1ea03c6.7395dc4"\r
-            ]\r
-        ]\r
+        "x": 1499.566665649414,\r
+        "y": 263.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "777ae1e9.6bbca",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "79e1f5a9.abc0fc",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1563.428565979004,\r
-        "y": 148.76199987251312,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1798.566665649414,\r
+        "y": 167.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "6abef48d.2c4e6c",\r
-                "8a52abb7.25d258"\r
+                "affa73a3.ee8208"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1ea03c6.7395dc4",\r
-        "type": "switchNode",\r
-        "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",\r
-        "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",\r
+        "id": "628b0c00.38066c",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2203.2858810424805,\r
-        "y": 160.6192119391635,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1800.566665649414,\r
+        "y": 107.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "95d50976.54cf58"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "95d50976.54cf58",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "13f096c3.155339",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1100.566665649414,\r
+        "y": 176.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "affa73a3.ee8208",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2484.5715827941895,\r
-        "y": 159.1906173499301,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1783.566665649414,\r
+        "y": 255.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "19c5d87f.a3e7b"\r
+                "48ff46b8.d3629",\r
+                "782b021e.0fd0fc",\r
+                "bb7c148d.8dd4d8",\r
+                "6e431d76.be632c",\r
+                "29e9cbd2.ce75c4",\r
+                "d12bfd13.8bf75"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "78e378bf.79cf5",\r
-        "type": "comment",\r
-        "name": "make sure this vnf-id doesn't exist already",\r
-        "info": "",\r
-        "comments": "",\r
-        "x": 2172.428497314453,\r
-        "y": 124.19060399848968,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "18445def.73c80a",\r
+        "id": "bc7152e2.d9d418",\r
         "type": "set",\r
-        "name": "set new vnf_length",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",\r
+        "name": "set network-route-A",\r
+        "xml": "<set>\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />-->\n\n\n",\r
         "comments": "",\r
-        "x": 1128.571533203125,\r
-        "y": 396.33343505859375,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2646.566665649414,\r
+        "y": 855.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d4cb43.708284c",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
+        "id": "c38cb4ff.6bd5e",\r
+        "type": "set",\r
+        "name": "set network-route-B",\r
+        "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 1124.571533203125,\r
-        "y": 1344.5969848632812,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2647.566665649414,\r
+        "y": 910.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "efeb4f56.d9cc7",\r
+        "id": "91e3d9ca.33dbb",\r
         "type": "save",\r
-        "name": "save service relationship in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-id`\" />\n\n\n<!--key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--key='service-instance.service-instance-id = $service-data.service-instance-id -->\n",\r
+        "name": "get allotted-resource from aai",\r
+        "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!--         AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1162.2382736206055,\r
-        "y": 815.5968644889072,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2269.566665649414,\r
+        "y": 306.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "5160a5be.66b9fc",\r
+                "bc755c97.0130a8",\r
+                "8c53c9d8.1845d8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "9006694b.0db0e8",\r
-        "type": "set",\r
-        "name": "set vnf-index and vnf-object-path",\r
-        "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-id  + '/vnf-data/'` \" />",\r
+        "id": "5160a5be.66b9fc",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
-        "x": 1183.571533203125,\r
-        "y": 644.5968902381137,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2485.566665649414,\r
+        "y": 373.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "d72f2b29.b29698"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "19c5d87f.a3e7b",\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=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n      + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",\r
+        "id": "bc755c97.0130a8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
-        "x": 2613.142951965332,\r
-        "y": 210.19063165504485,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2486.057632446289,\r
+        "y": 273.14064025878906,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "9c5f6654.ebe11"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "e3c7ee55.46e6f8",\r
-        "type": "save",\r
-        "name": "save AnAI - vnf-instance.orchestration-status",\r
-        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey='generic-vnf.vnf-id = $prop.vnf-id' >\n<parameter name=\"orchestration-status\" value=\"Created\" />\n<parameter name=\"in-maint\" value = \"true\" />\n<parameter name=\"vnf-type\" value='`$prop.vnfName`' />\n<parameter name=\"vnf-name\" value = \"`$prop.vnfName`\"/>\n<parameter name=\"model-invariant-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`\"/>\n<parameter name=\"model-version-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`\"/>\n<parameter name=\"model-customization-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\"/>",\r
+        "id": "8c53c9d8.1845d8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1238.5458374023438,\r
-        "y": 754.2471072943881,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2481.566665649414,\r
+        "y": 322.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "3ae07ef4.fec912"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "8b2c577f.aa706",\r
-        "type": "comment",\r
-        "name": "TODO: change AAI models",\r
-        "info": "",\r
+        "id": "9c5f6654.ebe11",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 1172.1820983886719,\r
-        "y": 713.9743230612949,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2663.629165649414,\r
+        "y": 273.42640686035156,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d58f334a.ba5338",\r
-        "type": "execute",\r
-        "name": "execute split parameterName",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",\r
+        "id": "3ae07ef4.fec912",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 2663.566665649414,\r
+        "y": 322.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cb7d8033.d10ca8",\r
+        "type": "save",\r
+        "name": "get logical-link from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1598.7395858764648,\r
-        "y": 207.75002291519195,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2004.566665649414,\r
+        "y": 795.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "2b85dd7e.f02352",\r
+                "1b3631c4.5fdf36",\r
+                "233346f1.01fed2"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "889ccd2d.4a8fe8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "2b85dd7e.f02352",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1402.483383178711,\r
-        "y": 212.00189593154937,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2296.057632446289,\r
+        "y": 774.1406402587891,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "d58f334a.ba5338",\r
-                "e9083033.2291c8"\r
+                "2de91143.9e84c6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e0ae06d.cc68bf8",\r
-        "type": "for",\r
-        "name": "for loop idx - VNF input parameters",\r
-        "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",\r
+        "id": "1b3631c4.5fdf36",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1187.7050399780273,\r
-        "y": 214.44631197769195,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2284.566665649414,\r
+        "y": 818.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "889ccd2d.4a8fe8"\r
+                "f3744c4d.35627"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fd6957d.13c0a28",\r
-        "type": "set",\r
-        "name": "set vnf-request-input.",\r
-        "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",\r
+        "id": "2de91143.9e84c6",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 1144.7046737670898,\r
-        "y": 284.77101900894195,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2444.629165649414,\r
+        "y": 774.4264068603516,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "e9083033.2291c8",\r
-        "type": "set",\r
-        "name": "set parameterName",\r
-        "xml": "<set>\n<parameter name=\"`vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",\r
+        "id": "f3744c4d.35627",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 1575.7395858764648,\r
-        "y": 253.75002291519195,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2443.566665649414,\r
+        "y": 818.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8c69784a.6fe62",\r
-        "type": "for",\r
-        "name": "for each sdwan-get-request-input-param",\r
-        "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",\r
+        "id": "233346f1.01fed2",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1200.7395858764648,\r
-        "y": 336.75002291519195,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2291.566665649414,\r
+        "y": 897.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "ab7df566.3e05d"\r
+                "14e4e24b.240d3e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ab7df566.3e05d",\r
+        "id": "14e4e24b.240d3e",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1426.9722518920898,\r
-        "y": 335.09377291519195,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2430.566665649414,\r
+        "y": 897.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "352dca87.707f0e"\r
+                "bc7152e2.d9d418",\r
+                "c38cb4ff.6bd5e",\r
+                "6b90e6dc.1a4938",\r
+                "f826c02e.b2d98",\r
+                "d4510409.d18f8",\r
+                "f73397ef.aaf4c",\r
+                "f8f7fd3.b9ae18",\r
+                "eb24a93a.96e538",\r
+                "5ea4cfd5.51261",\r
+                "e11f1e73.f567a8",\r
+                "9c7b5506.97a75",\r
+                "3add3536.bf190a",\r
+                "33633691.1ec92a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "352dca87.707f0e",\r
-        "type": "switchNode",\r
-        "name": "switch vnf name",\r
-        "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",\r
+        "id": "6b90e6dc.1a4938",\r
+        "type": "save",\r
+        "name": "get network-route-A from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-A'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-A\">",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1583.4722518920898,\r
-        "y": 333.0938339503482,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2659.566665649414,\r
+        "y": 978.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "590b3579.cf8c54"\r
+                "1d7d57d5.4b528",\r
+                "d18df8cc.ecc03",\r
+                "cbd2b797.9f07e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "590b3579.cf8c54",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "f826c02e.b2d98",\r
+        "type": "save",\r
+        "name": "get network-route-B from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-B'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-B\">",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1744.4726181030273,\r
-        "y": 333.09389498550445,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2638.566665649414,\r
+        "y": 1580.5665435791016,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "63083064.a23a18"\r
+                "6cc847e1.0c4c8",\r
+                "9bc40e0b.3e66b8",\r
+                "4130e8fa.6dc708"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "63083064.a23a18",\r
-        "type": "set",\r
-        "name": "set vnf name",\r
-        "xml": "<set>\n<parameter name='prop.vnfName' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",\r
+        "id": "1d7d57d5.4b528",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
-        "x": 1902.4727401733398,\r
-        "y": 331.6939316065982,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2860.566665649414,\r
+        "y": 862.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "9adb7053.6193c"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "e181a758.620248",\r
-        "type": "save",\r
-        "name": "get service-instance from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id\n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">",\r
+        "id": "d18df8cc.ecc03",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1155,\r
-        "y": 940,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2856.075698852539,\r
+        "y": 911.9926910400391,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "5d430eb5.2b236",\r
-                "4db06806.f53418",\r
-                "95ae5b5a.c22a4"\r
+                "bc31bdd5.70d25"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5d430eb5.2b236",\r
+        "id": "cbd2b797.9f07e8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1371,\r
-        "y": 905,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2860.075698852539,\r
+        "y": 962.9926910400391,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "53896828.686ee8"\r
+                "fa5d0125.b00d78"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4db06806.f53418",\r
+        "id": "9adb7053.6193c",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3009.138198852539,\r
+        "y": 861.8524322509766,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bc31bdd5.70d25",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 2999.075698852539,\r
+        "y": 911.9926910400391,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6cc847e1.0c4c8",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1380.490966796875,\r
-        "y": 947.5740356445312,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2861.566665649414,\r
+        "y": 1550.5665435791016,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "2be30b71.aee02c"\r
+                "9ebfd12f.98fe08"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "95ae5b5a.c22a4",\r
+        "id": "9bc40e0b.3e66b8",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1369,\r
-        "y": 994,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2857.075698852539,\r
+        "y": 1599.9925689697266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "ecad310e.0677"\r
+                "e2a53907.ab9ce8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "53896828.686ee8",\r
-        "type": "switchNode",\r
-        "name": "switch allotted-resources_length != 0",\r
-        "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources_length != 0`'>\n",\r
+        "id": "4130e8fa.6dc708",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1610,\r
-        "y": 902,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2861.075698852539,\r
+        "y": 1650.9925689697266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "a4b1136f.62ed08",\r
-                "46b85697.e69b9"\r
+                "dd04bd6b.572858"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2be30b71.aee02c",\r
+        "id": "9ebfd12f.98fe08",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 1534.0623779296875,\r
-        "y": 950.8597717285156,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3010.138198852539,\r
+        "y": 1549.852310180664,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ecad310e.0677",\r
+        "id": "e2a53907.ab9ce8",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 1538,\r
-        "y": 995,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3000.075698852539,\r
+        "y": 1599.9925689697266,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a019135.4f8ccf",\r
-        "type": "set",\r
-        "name": "set the 1st allotted-resource-id",\r
-        "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources[0]`\" />\n\n\n",\r
-        "comments": "",\r
-        "x": 2009,\r
-        "y": 969,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "a4b1136f.62ed08",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
-        "comments": "",\r
+        "id": "eabcf699.92546",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1823,\r
-        "y": 926,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3674.233169555664,\r
+        "y": 1006.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "cb1b8f06.47ef2"\r
+                "ff0400bb.e98958",\r
+                "2638e2e.143761e",\r
+                "1c74c2ea.33d395",\r
+                "3078ca2b.4c72c6",\r
+                "81305781.090ed8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "46b85697.e69b9",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "89cd3be0.fed2e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1825,\r
-        "y": 866,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3501.566665649414,\r
+        "y": 1007.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "eabcf699.92546"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "67d7c08a.0b2928",\r
-        "type": "comment",\r
-        "name": "new for TransportSlicing",\r
-        "info": "",\r
-        "comments": "",\r
-        "x": 1144,\r
-        "y": 890,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "457beb03.a98104",\r
-        "type": "switchNode",\r
-        "name": "switch logical-links_length != 0",\r
-        "xml": "<switch test='`$tmp.aai.allotted-resource.logical-links_length != 0`'>\n",\r
+        "id": "6ce22fa5.148738",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1270,\r
-        "y": 1266,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3511.057632446289,\r
+        "y": 1050.1407012939453,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "643d2cea.4605b4",\r
-                "7caeb522.7a961c"\r
+                "6f858024.73295"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "643d2cea.4605b4",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "316c237c.fde964",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1464,\r
-        "y": 1400,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3499.566665649414,\r
+        "y": 1096.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "152d2d7d.5e3893"\r
+                "7e23353f.01fac4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7caeb522.7a961c",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "6f858024.73295",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 1467,\r
-        "y": 1354,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "x": 3664.6290435791016,\r
+        "y": 1053.4264373779297,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "814386d7.12d29",\r
-        "type": "set",\r
-        "name": "set the 1st logical-link-name",\r
-        "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.logical-links[0]`\" />\n\n\n",\r
+        "id": "7e23353f.01fac4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 1804,\r
-        "y": 1372,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3668.566665649414,\r
+        "y": 1097.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "cb1b8f06.47ef2",\r
+        "id": "fa5d0125.b00d78",\r
         "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1808,\r
-        "y": 1014,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3021.566665649414,\r
+        "y": 964.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "a019135.4f8ccf",\r
-                "e575462e.50d5b"\r
+                "670222f1.9217fc",\r
+                "82e83a40.d9e3c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "152d2d7d.5e3893",\r
+        "id": "dd04bd6b.572858",\r
         "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1595,\r
-        "y": 1405,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3011.566665649414,\r
+        "y": 1652.5665435791016,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "814386d7.12d29",\r
-                "fecafec9.0d1c5"\r
+                "b42a18a6.f5c9c",\r
+                "ccfa8314.375c3"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "67195ddd.58b94c",\r
-        "type": "set",\r
-        "name": "set EndpointA",\r
-        "xml": "<set>\n<parameter name='endpointA' value=\"`$tmp.aai.logical-link.name`\" />\n\n\n",\r
-        "comments": "",\r
-        "x": 2350,\r
-        "y": 1468,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "3cb07e0e.1a73c2",\r
-        "type": "set",\r
-        "name": "set EndpointB",\r
-        "xml": "<set>\n<parameter name='endpointB' value=\"`$tmp.aai.logical-link.name2`\" />\n\n\n",\r
-        "comments": "",\r
-        "x": 2351,\r
-        "y": 1515,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "e575462e.50d5b",\r
-        "type": "save",\r
-        "name": "get allotted-resource from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">",\r
-        "comments": "",\r
+        "id": "9231955e.3e12f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2012,\r
-        "y": 1044,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3642.233169555664,\r
+        "y": 1842.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "9038c1c3.67b67",\r
-                "d5fe3cc1.f1ab58",\r
-                "3a3c5476.f230dc"\r
+                "834482bc.da8c9",\r
+                "713b2333.204aec",\r
+                "359ab66.2c0144a",\r
+                "2cc88657.e87afa",\r
+                "5952bd35.50a834"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9038c1c3.67b67",\r
+        "id": "e0e6a71d.ebb61",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2228,\r
-        "y": 1111,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3469.566665649414,\r
+        "y": 1843.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "457beb03.a98104"\r
+                "9231955e.3e12f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d5fe3cc1.f1ab58",\r
+        "id": "20818b75.1274cc",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2228.490966796875,\r
-        "y": 1010.573974609375,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3479.057632446289,\r
+        "y": 1886.1407012939453,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "d1ddfc7b.e8b11"\r
+                "729c480a.b2455"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3a3c5476.f230dc",\r
+        "id": "ef5e9023.0ffb1",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2224,\r
-        "y": 1060,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3467.566665649414,\r
+        "y": 1932.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "5d76fda0.b3386c"\r
+                "76e8a026.d94a18"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d1ddfc7b.e8b11",\r
+        "id": "729c480a.b2455",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 2377.0625,\r
-        "y": 1009.8597412109375,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3632.6290435791016,\r
+        "y": 1889.4264373779297,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5d76fda0.b3386c",\r
+        "id": "76e8a026.d94a18",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 2367,\r
-        "y": 1060,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "9b0fc370.e7b168",\r
-        "type": "comment",\r
-        "name": "Question?",\r
-        "info": "Can we assume ....logical-links[0] would have \nthe whole object or it is only a pointer to \nlogical-link name in AAI?\nIf only name, then we have to retrieve it from \nAAI",\r
-        "comments": "",\r
-        "x": 1837,\r
-        "y": 1325,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3636.566665649414,\r
+        "y": 1933.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "fecafec9.0d1c5",\r
-        "type": "save",\r
-        "name": "get logical-link from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
+        "id": "ff0400bb.e98958",\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.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1791,\r
-        "y": 1444,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3938.566665649414,\r
+        "y": 990.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "c3decf76.de238",\r
-                "cbe9f0d3.03cae",\r
-                "f1d67d6b.7b18f8"\r
+                "1b7a2eba.962ee9",\r
+                "7716f28b.4501a4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cbe9f0d3.03cae",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "7716f28b.4501a4",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2056.490966796875,\r
-        "y": 1366.573974609375,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4161.566665649414,\r
+        "y": 945.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "df9ad0cd.393e9"\r
+                "22cc4911.ba723e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f1d67d6b.7b18f8",\r
+        "id": "1b7a2eba.962ee9",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2045,\r
-        "y": 1411,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4163.566665649414,\r
+        "y": 1009.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "387801a6.c55046"\r
+                "b1d0addd.f89fe8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "df9ad0cd.393e9",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "id": "690a2492.cfb0bc",\r
+        "type": "set",\r
+        "name": "set ltpId",\r
+        "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
         "comments": "",\r
-        "x": 2205.0625,\r
-        "y": 1366.8597412109375,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4496.566665649414,\r
+        "y": 900.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "387801a6.c55046",\r
+        "id": "b1d0addd.f89fe8",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\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": 2204,\r
-        "y": 1411,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4325.566665649414,\r
+        "y": 1005.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c3decf76.de238",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
+        "id": "22cc4911.ba723e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2052,\r
-        "y": 1490,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4326.566665649414,\r
+        "y": 942.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "85643202.66a9f8"\r
+                "86327d08.aa9fb8",\r
+                "690a2492.cfb0bc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "85643202.66a9f8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "86327d08.aa9fb8",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
+        "comments": "",\r
+        "x": 4497.566665649414,\r
+        "y": 1008.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cde2aa0c.c7d71",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
+        "comments": "",\r
+        "x": 4498.566665649414,\r
+        "y": 957.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c74c2ea.33d395",\r
+        "type": "save",\r
+        "name": "save connectivity resource in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2191,\r
-        "y": 1490,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3940.566665649414,\r
+        "y": 1149.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "67195ddd.58b94c",\r
-                "3cb07e0e.1a73c2",\r
-                "e13bd0db.73d81",\r
-                "44095776.64c828",\r
-                "3eb8bee0.c23c0a",\r
-                "e199c2c7.64ce48",\r
-                "4e9e1552.e1012c",\r
-                "879bdb34.60c748",\r
-                "ccc984ea.946438",\r
-                "3824458b.0c70c2"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "e13bd0db.73d81",\r
-        "type": "save",\r
-        "name": "get EndpointA from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"endpoint\"\n\tkey='endpoint.endpoint-id = $endpointA'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.endpointA\">",\r
+        "id": "2638e2e.143761e",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for connectivity domainA",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2399,\r
-        "y": 1573,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3985.566665649414,\r
+        "y": 1059.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "6b7f9293.5e4b3c",\r
-                "271678cd.b7a718",\r
-                "fda0cd5e.c574c8"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "44095776.64c828",\r
-        "type": "save",\r
-        "name": "get EndpointB from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"endpoint\"\n\tkey='endpoint.endpoint-id = $endpointB'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.endpointB\">",\r
+        "id": "5d159096.a0e35",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
+        "comments": "",\r
+        "x": 3874.566665649414,\r
+        "y": 1100.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "834482bc.da8c9",\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.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2413,\r
-        "y": 1845,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3928.566665649414,\r
+        "y": 1846.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "cac7dfa0.02314",\r
-                "cd4a18c4.24c5e8",\r
-                "b2a92c1e.f10cd8"\r
+                "78906c54.263be4",\r
+                "da17cabc.510218"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6b7f9293.5e4b3c",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "da17cabc.510218",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2621,\r
-        "y": 1455,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4151.566665649414,\r
+        "y": 1801.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "6df2f8ce.f4df28"\r
+                "4c8e2849.b6ab18"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "271678cd.b7a718",\r
+        "id": "78906c54.263be4",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2616.509033203125,\r
-        "y": 1504.426025390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4153.566665649414,\r
+        "y": 1865.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "a0e96fb5.85588"\r
+                "dfe47f7c.d37a1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fda0cd5e.c574c8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "7e4bfbaf.bbef8c",\r
+        "type": "set",\r
+        "name": "set ltpId",\r
+        "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
         "comments": "",\r
+        "x": 4486.566665649414,\r
+        "y": 1759.5667877197266,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dfe47f7c.d37a1",\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": 4312.566665649414,\r
+        "y": 1884.5667877197266,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c8e2849.b6ab18",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2620.509033203125,\r
-        "y": 1555.426025390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4316.566665649414,\r
+        "y": 1798.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "57154704.0e805"\r
+                "7e4bfbaf.bbef8c",\r
+                "26579dba.f3fbba"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6df2f8ce.f4df28",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "id": "26579dba.f3fbba",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
         "comments": "",\r
-        "x": 2769.571533203125,\r
-        "y": 1454.2857666015625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4487.566665649414,\r
+        "y": 1864.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a0e96fb5.85588",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "id": "8836114.dcb937",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
         "comments": "",\r
-        "x": 2759.509033203125,\r
-        "y": 1504.426025390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4482.566665649414,\r
+        "y": 1813.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "cac7dfa0.02314",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "359ab66.2c0144a",\r
+        "type": "save",\r
+        "name": "save connectivity resource in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2636,\r
-        "y": 1815,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3930.566665649414,\r
+        "y": 2005.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "857e5bf7.e021b"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "cd4a18c4.24c5e8",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "713b2333.204aec",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for connectivity domainB",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2631.509033203125,\r
-        "y": 1864.426025390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3975.566665649414,\r
+        "y": 1915.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "68a88270.f542bc"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "b2a92c1e.f10cd8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "9f1fac8a.3f574",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
+        "comments": "",\r
+        "x": 3864.566665649414,\r
+        "y": 1953.5667877197266,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d4510409.d18f8",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2635.509033203125,\r
-        "y": 1915.426025390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2860.566665649414,\r
+        "y": 2349.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "4220b72.dbed048"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "857e5bf7.e021b",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "id": "f73397ef.aaf4c",\r
+        "type": "set",\r
+        "name": "set attachment_param",\r
+        "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",\r
         "comments": "",\r
-        "x": 2784.571533203125,\r
-        "y": 1814.2857666015625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2658.566665649414,\r
+        "y": 2228.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "68a88270.f542bc",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "id": "200f044c.0142e4",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",\r
         "comments": "",\r
-        "x": 2774.509033203125,\r
-        "y": 1864.426025390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2624.566665649414,\r
+        "y": 2162.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "404469ae.c8a71",\r
-        "type": "for",\r
-        "name": "for each relationship",\r
-        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.endpointA.relationship-list.relationship_length`' >\n",\r
+        "id": "3078ca2b.4c72c6",\r
+        "type": "save",\r
+        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2993,\r
-        "y": 1556,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4068.566665649414,\r
+        "y": 1197.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "ca5e0e2a.2b9fd8"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "ca5e0e2a.2b9fd8",\r
-        "type": "switchNode",\r
-        "name": "switch related-to",\r
-        "xml": "<switch test='`$tmp.aai.endpointA.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "id": "2cc88657.e87afa",\r
+        "type": "save",\r
+        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3206.3334426879883,\r
-        "y": 1555.9999389648438,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4057.566665649414,\r
+        "y": 2070.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "20488961.beb436"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "20488961.beb436",\r
-        "type": "outcome",\r
-        "name": "p-interface",\r
-        "xml": "<outcome value='p-interface'>\n",\r
+        "id": "117cb756.a2a2d9",\r
+        "type": "execute",\r
+        "name": "get esr-thirdparty-sdnc",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3378.0000801086426,\r
-        "y": 1556.000020980835,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5112.566665649414,\r
+        "y": 717.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "3536184f.ec7b9"\r
+                "3866efd7.2177",\r
+                "72d35790.07a0a8",\r
+                "261ed4c9.21b32c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6bc94704.d03de",\r
+        "id": "d72f2b29.b29698",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 4040.66650390625,\r
-        "y": 1548,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2665.566665649414,\r
+        "y": 373.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "b0648d5.a5c8bf",\r
-                "502adfb6.94aa38",\r
-                "6f6a8b61.fa1ffc",\r
-                "24d9a7fc.8cd3f8"\r
+                "a21b0826.040f68"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3536184f.ec7b9",\r
-        "type": "save",\r
-        "name": "get p-interface-src from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
+        "id": "ba7cd715.7b1848",\r
+        "type": "outcome",\r
+        "name": "logical-link",\r
+        "xml": "<outcome value='logical-link'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3625,\r
-        "y": 1554,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1595.5667877197266,\r
+        "y": 790.5667877197266,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "d439294.8fb6358",\r
-                "5c59ee09.9262d",\r
-                "f82521c.310fee"\r
+                "5a4e861b.fe333"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d439294.8fb6358",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "7935e728.7a6cd8",\r
+        "type": "switchNode",\r
+        "name": "switch allotted-resource.relationship-list not empty",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3868,\r
-        "y": 1549,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2333.566665649414,\r
+        "y": 496.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "6bc94704.d03de"\r
+                "c03e1705.5e117",\r
+                "443647ac.996ce8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f82521c.310fee",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "443647ac.996ce8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3877.490966796875,\r
-        "y": 1591.5740356445312,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2643.566665649414,\r
+        "y": 503.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            [\r
-                "da7fc859.beff18"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "5c59ee09.9262d",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "c03e1705.5e117",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3866,\r
-        "y": 1638,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2642.566665649414,\r
+        "y": 557.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "872414be.4b5f28"\r
+                "f30f322a.ce56f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "da7fc859.beff18",\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.l3vpn.pe1_id`\" />\n\n",\r
-        "comments": "",\r
-        "x": 4031.0623779296875,\r
-        "y": 1594.8597717285156,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "872414be.4b5f28",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "id": "a7413863.fffc18",\r
+        "type": "set",\r
+        "name": "set the current logical-link-name",\r
+        "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 4035,\r
-        "y": 1639,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2015.566665649414,\r
+        "y": 740.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "57154704.0e805",\r
+        "id": "5a4e861b.fe333",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2782,\r
-        "y": 1557,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1772.566665649414,\r
+        "y": 783.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "404469ae.c8a71"\r
+                "a7413863.fffc18",\r
+                "cb7d8033.d10ca8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "85084de0.cfb7d",\r
+        "id": "ef7f5983.624538",\r
         "type": "comment",\r
         "name": "Question?",\r
         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
         "comments": "",\r
-        "x": 3568,\r
-        "y": 1507,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3201.566665649414,\r
+        "y": 969.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "4220b72.dbed048",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 2786,\r
-        "y": 1917,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\r
-            [\r
-                "8dfc41f6.4f4f"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "8dfc41f6.4f4f",\r
-        "type": "for",\r
-        "name": "for each relationship",\r
-        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.endpointB.relationship-list.relationship_length`' >\n",\r
+        "id": "670222f1.9217fc",\r
+        "type": "save",\r
+        "name": "get p-interface-src from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2997,\r
-        "y": 1916,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3244.566665649414,\r
+        "y": 1034.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "5452c2da.11d5dc"\r
+                "89cd3be0.fed2e8",\r
+                "6ce22fa5.148738",\r
+                "316c237c.fde964"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5452c2da.11d5dc",\r
-        "type": "switchNode",\r
-        "name": "switch related-to",\r
-        "xml": "<switch test='`$tmp.aai.endpointB.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "id": "b42a18a6.f5c9c",\r
+        "type": "save",\r
+        "name": "get p-interface-dst from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3210.3334426879883,\r
-        "y": 1915.9999389648438,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3241.566665649414,\r
+        "y": 1878.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "cb7a504b.d626a"\r
+                "e0e6a71d.ebb61",\r
+                "20818b75.1274cc",\r
+                "ef5e9023.0ffb1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cb7a504b.d626a",\r
-        "type": "outcome",\r
-        "name": "p-interface",\r
-        "xml": "<outcome value='p-interface'>\n",\r
+        "id": "c8a39fd5.26e7b",\r
+        "type": "comment",\r
+        "name": "Question?",\r
+        "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
+        "comments": "",\r
+        "x": 3202.566665649414,\r
+        "y": 1822.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a21b0826.040f68",\r
+        "type": "save",\r
+        "name": "get allotted-resource relationship from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3382.0000801086426,\r
-        "y": 1916.000020980835,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2958.566665649414,\r
+        "y": 320.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "8fa1d382.ebbb3"\r
+                "4aea984e.525588",\r
+                "b162701f.2122e",\r
+                "62d5ee30.6cb7d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "825ff590.84496",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "b162701f.2122e",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 4044.66650390625,\r
-        "y": 1908,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3232.057632446289,\r
+        "y": 213.14064025878906,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "674b1eb0.174b2",\r
-                "f4b1b11a.276db8",\r
-                "485a23dc.9461bc",\r
-                "a54100e4.bdfd8"\r
+                "1f5782e1.732415"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8fa1d382.ebbb3",\r
-        "type": "save",\r
-        "name": "get p-interface-dst from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"p-interface.interface-name = $tmp.aai.endpointB.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.endpointB.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointB.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointB.p-interface-dst\" >-->\n",\r
+        "id": "1f5782e1.732415",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3409.629165649414,\r
+        "y": 213.42640686035156,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "62d5ee30.6cb7d8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3629,\r
-        "y": 1914,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3227.566665649414,\r
+        "y": 262.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "e30b52f2.d3bd18",\r
-                "2a8a7b32.c6c034",\r
-                "95395b70.5ce658"\r
+                "95458c8d.84809"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e30b52f2.d3bd18",\r
+        "id": "95458c8d.84809",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 3409.566665649414,\r
+        "y": 262.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4aea984e.525588",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3872,\r
-        "y": 1909,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3231.566665649414,\r
+        "y": 313.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "825ff590.84496"\r
+                "f1c741f5.f9107"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "95395b70.5ce658",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
+        "id": "f1c741f5.f9107",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3881.490966796875,\r
-        "y": 1951.5740356445312,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3411.566665649414,\r
+        "y": 313.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "ec0be134.e7e7f8"\r
+                "7935e728.7a6cd8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2a8a7b32.c6c034",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "c6653aca.b9464",\r
+        "type": "for",\r
+        "name": "for each allotted-resource relationship",\r
+        "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3870,\r
-        "y": 1998,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2902.566665649414,\r
+        "y": 537.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "5f44beb8.f571"\r
+                "f3ed889.142a978"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ec0be134.e7e7f8",\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.l3vpn.pe1_id`\" />\n\n",\r
-        "comments": "",\r
-        "x": 4035.0623779296875,\r
-        "y": 1954.8597717285156,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "5f44beb8.f571",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
-        "comments": "",\r
-        "x": 4039,\r
-        "y": 1999,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "18f16001.6c653",\r
-        "type": "comment",\r
-        "name": "Question?",\r
-        "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
-        "comments": "",\r
-        "x": 3572,\r
-        "y": 1867,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "b0648d5.a5c8bf",\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.endpointA.p-interface-src`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[^-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",\r
+        "id": "f3ed889.142a978",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4301,\r
-        "y": 1546,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3182.566665649414,\r
+        "y": 537.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "6bf39cd9.c078dc",\r
-                "1f241f8d.ded588"\r
+                "ba7cd715.7b1848"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1f241f8d.ded588",\r
-        "type": "failure",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "dba40877.5798e",\r
+        "type": "outcome",\r
+        "name": "network-policy",\r
+        "xml": "<outcome value='network-policy'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4524,\r
-        "y": 1501,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3387.566665649414,\r
+        "y": 511.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "711e2d50.cbfec4"\r
+                "196e356.b3ce64b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6bf39cd9.c078dc",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
+        "id": "196e356.b3ce64b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 4526,\r
-        "y": 1565,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3564.5665435791016,\r
+        "y": 504.56654357910156,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "d87f8a80.c2edb8"\r
+                "e3e6b765.4d9878",\r
+                "b8269eb.7fee5e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8f149145.0a9d38",\r
+        "id": "e3e6b765.4d9878",\r
         "type": "set",\r
-        "name": "set ltpId",\r
-        "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
+        "name": "set the 1st network-policy-id",\r
+        "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 4859,\r
-        "y": 1459,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3807.5665435791016,\r
+        "y": 461.56654357910156,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d87f8a80.c2edb8",\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
+        "id": "b8269eb.7fee5e",\r
+        "type": "save",\r
+        "name": "get network-policy from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",\r
         "comments": "",\r
-        "x": 4685,\r
-        "y": 1584,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 3796.5665435791016,\r
+        "y": 516.5665435791016,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "52707298.644854",\r
+                "73e07a10.53585c",\r
+                "cc16ab53.2ad86"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "711e2d50.cbfec4",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "cc16ab53.2ad86",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 4689,\r
-        "y": 1498,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4049.566665649414,\r
+        "y": 402.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "8f149145.0a9d38",\r
-                "ed673da0.d5043"\r
+                "a488a64d.fae9f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ed673da0.d5043",\r
-        "type": "set",\r
-        "name": "set pnf-name",\r
-        "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
+        "id": "a488a64d.fae9f",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 4860,\r
-        "y": 1564,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4198.138198852539,\r
+        "y": 402.85243225097656,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5bd7fa96.a6e064",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME",\r
-        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
+        "id": "3e172036.3dfe9",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 4859,\r
-        "y": 1525,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4197.075698852539,\r
+        "y": 446.99269104003906,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "6f6a8b61.fa1ffc",\r
-        "type": "save",\r
-        "name": "save connectivity resource in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='' />\n<parameter name='access-client-id' value='' />\n<parameter name='access-topology-id' value='' />\n<parameter name='access-node-id' value='' />\n<parameter name='access-ltp-id' value='' />\n<parameter name='cvlan' value='' />\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
+        "id": "73e07a10.53585c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4303,\r
-        "y": 1705,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4038.075698852539,\r
+        "y": 446.99269104003906,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "3e172036.3dfe9"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "502adfb6.94aa38",\r
-        "type": "execute",\r
-        "name": "execute UUID generator for connectivity domainA",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainA-uuid\"/>\n",\r
+        "id": "52707298.644854",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4348,\r
-        "y": 1615,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4045.075698852539,\r
+        "y": 525.9926910400391,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "f6f5e0ef.37ff18"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "2f48d78c.e343f8",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME",\r
-        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
+        "id": "f6f5e0ef.37ff18",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4184.075698852539,\r
+        "y": 525.9926910400391,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "f1f16ad9.ab6c1",\r
+                "43bfbebe.764f5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1f16ad9.ab6c1",\r
+        "type": "set",\r
+        "name": "set the max bandwidth",\r
+        "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
         "comments": "",\r
-        "x": 4238,\r
-        "y": 1671,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4389.566665649414,\r
+        "y": 523.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "674b1eb0.174b2",\r
+        "id": "82e83a40.d9e3c",\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.endpointB.p-interface-dst`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[^-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4299,\r
-        "y": 1904,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3245.566665649414,\r
+        "y": 704.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "bf4f2038.8bcc6",\r
-                "816a3f3d.c967d"\r
+                "bc26e44c.af9fc",\r
+                "1d377ef3.0119d9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "816a3f3d.c967d",\r
+        "id": "1d377ef3.0119d9",\r
         "type": "failure",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4522,\r
-        "y": 1859,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3468.566665649414,\r
+        "y": 690.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "bbb7eb1.f117918"\r
+                "2e20e3ac.843a84"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bf4f2038.8bcc6",\r
+        "id": "bc26e44c.af9fc",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4524,\r
-        "y": 1923,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3470.566665649414,\r
+        "y": 723.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "3fe77c2.445af04"\r
+                "26e72470.d1e50c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2024c7b6.3996d",\r
-        "type": "set",\r
-        "name": "set ltpId",\r
-        "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
-        "comments": "",\r
-        "x": 4857,\r
-        "y": 1817,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "3fe77c2.445af04",\r
+        "id": "26e72470.d1e50c",\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": 4683,\r
-        "y": 1942,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3613.566665649414,\r
+        "y": 720.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "bbb7eb1.f117918",\r
+        "id": "2e20e3ac.843a84",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 4687,\r
-        "y": 1856,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3616.566665649414,\r
+        "y": 683.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "2024c7b6.3996d",\r
-                "e7f53e76.5ddf"\r
+                "d1ca7e66.d6d25",\r
+                "8b886e18.72a2f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e7f53e76.5ddf",\r
+        "id": "d1ca7e66.d6d25",\r
         "type": "set",\r
         "name": "set pnf-name",\r
-        "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
+        "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $param-prefix-domainA-pnfName[6] + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />\n",\r
         "comments": "",\r
-        "x": 4858,\r
-        "y": 1922,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3778.566665649414,\r
+        "y": 678.5666656494141,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "71ef13be.57065c",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME",\r
-        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
+        "id": "ccfa8314.375c3",\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.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",\r
         "comments": "",\r
-        "x": 4857,\r
-        "y": 1883,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 3259.566665649414,\r
+        "y": 1541.5665435791016,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "fb9d05a4.702cb",\r
+                "2e323a70.856296"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "485a23dc.9461bc",\r
-        "type": "save",\r
-        "name": "save connectivity resource in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='' />\n<parameter name='access-client-id' value='' />\n<parameter name='access-topology-id' value='' />\n<parameter name='access-node-id' value='' />\n<parameter name='access-ltp-id' value='' />\n<parameter name='cvlan' value='' />\n\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
+        "id": "2e323a70.856296",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4301,\r
-        "y": 2063,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3482.566665649414,\r
+        "y": 1527.5665435791016,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "ac71b291.7c3e"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "f4b1b11a.276db8",\r
-        "type": "execute",\r
-        "name": "execute UUID generator for connectivity domainB",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
+        "id": "fb9d05a4.702cb",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4346,\r
-        "y": 1973,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3484.566665649414,\r
+        "y": 1560.5665435791016,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "96d94f89.40a6f8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "985d1e1b.82a998",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME",\r
-        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
+        "id": "96d94f89.40a6f8",\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": 4236,\r
-        "y": 2029,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3627.566665649414,\r
+        "y": 1557.5665435791016,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3eb8bee0.c23c0a",\r
-        "type": "call",\r
-        "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",\r
-        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",\r
-        "comments": "",\r
+        "id": "ac71b291.7c3e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2518,\r
-        "y": 2064,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3630.566665649414,\r
+        "y": 1520.5665435791016,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "eab11739.c2283",\r
+                "dc956cf0.69a068"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "e199c2c7.64ce48",\r
+        "id": "eab11739.c2283",\r
         "type": "set",\r
-        "name": "set attachment_param",\r
-        "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n                                                   $param-prefix-domainB-pnfName[1] + '-' +\n                                                   $param-prefix-domainB-pnfName[2] + '-' +\n                                                   $param-prefix-domainB-pnfName[3] + '-' +\n                                                   $param-prefix-domainB-pnfName[4] + '-' +\n                                                   $param-prefix-domainB-pnfName[5] + '-' +\n                                                   $param-prefix-domainB-pnfName[6] + '-' +\n                                                   $param-prefix-domainB-pnfName[7] + '-' +\n                                                   $param-prefix-domainB-pnfName[8]`\" />\n",\r
         "comments": "",\r
-        "x": 2381,\r
-        "y": 2024,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3824.566665649414,\r
+        "y": 1523.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "50e758b0.2c60a",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME",\r
-        "info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",\r
+        "id": "195092e3.943c55",\r
+        "type": "execute",\r
+        "name": "execute properties",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />",\r
         "comments": "",\r
-        "x": 2353,\r
-        "y": 1988,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 1088.566665649414,\r
+        "y": 228.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
     },\r
     {\r
-        "id": "4e9e1552.e1012c",\r
-        "type": "save",\r
-        "name": "save vpn-binding A resource (aka. OTN domainA) in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",\r
+        "id": "81305781.090ed8",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2483,\r
-        "y": 2168,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3892.566665649414,\r
+        "y": 1274.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "eee018f4.9abed"\r
+                "f76721b5.8461d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "879bdb34.60c748",\r
-        "type": "save",\r
-        "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",\r
+        "id": "f76721b5.8461d",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2481.5,\r
-        "y": 2211,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4098.566665649414,\r
+        "y": 1274.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "b969fa1c.797cc8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "5ac2c26e.60f274",\r
-        "type": "save",\r
-        "name": "save srcLTP relationship in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",\r
+        "id": "b969fa1c.797cc8",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3134.5,\r
-        "y": 2149,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4313.852310180664,\r
+        "y": 1274.388442993164,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "53dab03f.fc20f"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "481b1bdc.29fad4",\r
-        "type": "save",\r
-        "name": "save dstLTP relationship in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",\r
-        "comments": "",\r
+        "id": "53dab03f.fc20f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3136.5,\r
-        "y": 2188,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4520.683853149414,\r
+        "y": 1274.906997680664,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "c8f50b30.1a1a",\r
+                "5524147a.4f670c",\r
+                "e21dfbfb.d70ee"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "24d9a7fc.8cd3f8",\r
-        "type": "save",\r
-        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+        "id": "c8f50b30.1a1a",\r
+        "type": "set",\r
+        "name": "set source ttp-id",\r
+        "xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 4431,\r
-        "y": 1753,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "x": 4735.683853149414,\r
+        "y": 1236.906997680664,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "a54100e4.bdfd8",\r
-        "type": "save",\r
-        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+        "id": "5524147a.4f670c",\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.source.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4428,\r
-        "y": 2128,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4732.683853149414,\r
+        "y": 1275.906997680664,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "468c57ff.e87bd"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "eee018f4.9abed",\r
+        "id": "e21dfbfb.d70ee",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4688.183853149414,\r
+        "y": 1317.906997680664,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "468c57ff.e87bd",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2783,\r
-        "y": 2167,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4913.183853149414,\r
+        "y": 1274.906997680664,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "60c98c50.d9d324"\r
+                "674f9840.48c03"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "60c98c50.d9d324",\r
+        "id": "674f9840.48c03",\r
         "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5071.183853149414,\r
+        "y": 1274.906997680664,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "202acc61.848adc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "202acc61.848adc",\r
+        "type": "set",\r
+        "name": "set source tunnel tp ip",\r
+        "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
+        "comments": "",\r
+        "x": 5278.183853149414,\r
+        "y": 1274.906997680664,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5952bd35.50a834",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3889.566665649414,\r
+        "y": 2143.5667877197266,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "6a89a776.9e1148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a89a776.9e1148",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4095.566665649414,\r
+        "y": 2143.5667877197266,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "c422bc84.9ff58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c422bc84.9ff58",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4310.852310180664,\r
+        "y": 2143.3885650634766,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "35ec76d0.e92ad2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35ec76d0.e92ad2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4517.683853149414,\r
+        "y": 2143.9071197509766,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "2da8c0eb.ef8a5",\r
+                "ed9d3d70.991958",\r
+                "4afbd03e.c78838"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2da8c0eb.ef8a5",\r
+        "type": "set",\r
+        "name": "set destination ttp-id",\r
+        "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 4732.683853149414,\r
+        "y": 2105.9071197509766,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ed9d3d70.991958",\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.destination.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4729.683853149414,\r
+        "y": 2144.9071197509766,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "12a67fc9.3eabd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4afbd03e.c78838",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4685.183853149414,\r
+        "y": 2186.9071197509766,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "12a67fc9.3eabd",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4910.183853149414,\r
+        "y": 2143.9071197509766,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "e5260f19.3624e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5260f19.3624e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5068.183853149414,\r
+        "y": 2143.9071197509766,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "fea1a0aa.e8456"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fea1a0aa.e8456",\r
+        "type": "set",\r
+        "name": "set destination tunnel tp ip",\r
+        "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
+        "comments": "",\r
+        "x": 5275.183853149414,\r
+        "y": 2143.9071197509766,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8b886e18.72a2f",\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.domainA.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3805.566665649414,\r
+        "y": 750.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "230a01ea.26a66e",\r
+                "548c580d.50378",\r
+                "266b6d86.22640a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "230a01ea.26a66e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4001.0667877197266,\r
+        "y": 702.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "8a1e2c2.231ae5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "548c580d.50378",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3993.0667877197266,\r
+        "y": 757.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "f0a74837.6bf648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "266b6d86.22640a",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3998.0667877197266,\r
+        "y": 814.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "c89ea643.5fb658"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c89ea643.5fb658",\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": 4150.066787719727,\r
+        "y": 815.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f0a74837.6bf648",\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": 4161.066787719727,\r
+        "y": 760.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8a1e2c2.231ae5",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4145.449111938477,\r
+        "y": 700.2223358154297,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "5c25cba9.41b2b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1310713.19e1c",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4727.566665649414,\r
+        "y": 718.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "cbcc3226.5de568"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbcc3226.5de568",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4904.566665649414,\r
+        "y": 710.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "9672ea99.0655d",\r
+                "117cb756.a2a2d9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5c25cba9.41b2b4",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4329.566665649414,\r
+        "y": 714.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "c4bf834f.523618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4bf834f.523618",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4524.566665649414,\r
+        "y": 714.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "f1310713.19e1c",\r
+                "88191017.73b938"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9672ea99.0655d",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domainA id",\r
+        "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5142.566665649414,\r
+        "y": 665.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3866efd7.2177",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5322.566665649414,\r
+        "y": 708.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "fe38d110.6015b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72d35790.07a0a8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5314.566665649414,\r
+        "y": 763.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "7783383e.51854"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "261ed4c9.21b32c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5319.566665649414,\r
+        "y": 820.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "fa12b901.242fd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa12b901.242fd8",\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": 5471.566665649414,\r
+        "y": 821.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7783383e.51854",\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": 5482.566665649414,\r
+        "y": 766.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fe38d110.6015b8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5466.948989868164,\r
+        "y": 706.2223358154297,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "60bc3d89.a08324"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60bc3d89.a08324",\r
+        "type": "set",\r
+        "name": "set controller domainA data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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",\r
+        "comments": "",\r
+        "x": 5681.566665649414,\r
+        "y": 702.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dc956cf0.69a068",\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.dst.domainB.pnf-name\"\n        pfx='tmp.aai.destination-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3846.566665649414,\r
+        "y": 1591.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "bf4fb85e.9c3948",\r
+                "6a7367e2.bb2c9",\r
+                "ddd9af1d.15854"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf4fb85e.9c3948",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4042.0667877197266,\r
+        "y": 1543.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "350a8536.22a84a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a7367e2.bb2c9",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4034.0667877197266,\r
+        "y": 1598.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "145991d9.a47ef6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddd9af1d.15854",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4039.0667877197266,\r
+        "y": 1655.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "820f34bd.964968"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "820f34bd.964968",\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": 4191.066787719727,\r
+        "y": 1656.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "145991d9.a47ef6",\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": 4202.066787719727,\r
+        "y": 1601.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "350a8536.22a84a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4186.449111938477,\r
+        "y": 1541.2223358154297,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "6f232f80.17fde"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df02e92.6642a98",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4768.566665649414,\r
+        "y": 1559.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "360786c5.7cab22"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "360786c5.7cab22",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4945.566665649414,\r
+        "y": 1551.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "41cd01ea.c63f78",\r
+                "aaeef3c0.eb5678"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f232f80.17fde",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4370.566665649414,\r
+        "y": 1555.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "d99ab523.6da018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d99ab523.6da018",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4565.566665649414,\r
+        "y": 1555.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "df02e92.6642a98",\r
+                "c50f0505.bf6c28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aaeef3c0.eb5678",\r
+        "type": "execute",\r
+        "name": "get esr-thirdparty-sdnc",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5153.566665649414,\r
+        "y": 1558.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "3618e547.e0a40a",\r
+                "eed6fd7.fbf15",\r
+                "3313cec2.2b8cca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "41cd01ea.c63f78",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domainB id",\r
+        "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5183.566665649414,\r
+        "y": 1506.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3618e547.e0a40a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5363.566665649414,\r
+        "y": 1549.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "b22ebd12.40a81"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eed6fd7.fbf15",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5355.566665649414,\r
+        "y": 1604.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "7d8acc36.091ccc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3313cec2.2b8cca",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5360.566665649414,\r
+        "y": 1661.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "112ac18e.80256e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "112ac18e.80256e",\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": 5512.566665649414,\r
+        "y": 1662.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7d8acc36.091ccc",\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": 5523.566665649414,\r
+        "y": 1607.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b22ebd12.40a81",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5507.948989868164,\r
+        "y": 1547.2223358154297,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "1c9d9642.f84cba"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1c9d9642.f84cba",\r
+        "type": "set",\r
+        "name": "set controller domainB data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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",\r
+        "comments": "",\r
+        "x": 5722.566665649414,\r
+        "y": 1543.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f30f322a.ce56f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2806.566665649414,\r
+        "y": 483.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "c6653aca.b9464",\r
+                "b73a30ff.3793c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b73a30ff.3793c",\r
+        "type": "for",\r
+        "name": "for each allotted-resource relationship",\r
+        "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3087.566665649414,\r
+        "y": 439.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "be2994c5.6111e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be2994c5.6111e8",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3349.566665649414,\r
+        "y": 439.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "dba40877.5798e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "88191017.73b938",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4730.566665649414,\r
+        "y": 792.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "65c2e1c9.1b56d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65c2e1c9.1b56d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4907.566665649414,\r
+        "y": 784.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "e785d4f0.4913e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e785d4f0.4913e8",\r
+        "type": "set",\r
+        "name": "set domainA ethernet layer network-id",\r
+        "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5142.566665649414,\r
+        "y": 908.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5f8b1fbc.6dcf18",\r
+        "type": "set",\r
+        "name": "set domainB ethernet layer network-id",\r
+        "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5182.566665649414,\r
+        "y": 1748.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1932705.17f659",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4947.566665649414,\r
+        "y": 1624.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "5f8b1fbc.6dcf18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c50f0505.bf6c28",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4770.566665649414,\r
+        "y": 1632.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "1932705.17f659"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "43bfbebe.764f5",\r
+        "type": "set",\r
+        "name": "set the max bandwidth",\r
+        "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
+        "comments": "",\r
+        "x": 4388.566665649414,\r
+        "y": 569.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3a026a1.c8b1f96",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for ethernet-service-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2744.566665649414,\r
+        "y": 703.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ea4cfd5.51261",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for otn-tunnel-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2725.566665649414,\r
+        "y": 753.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "48ff46b8.d3629",\r
+        "type": "for",\r
+        "name": "for each allotted-resource",\r
+        "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1986.566665649414,\r
+        "y": 287.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "84ff5346.d202e8",\r
+                "91e3d9ca.33dbb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84ff5346.d202e8",\r
+        "type": "set",\r
+        "name": "set the current allotted-resource-id",\r
+        "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 2266.566665649414,\r
+        "y": 225.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f8f7fd3.b9ae18",\r
+        "type": "set",\r
+        "name": "set query_param",\r
+        "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
+        "comments": "",\r
+        "x": 2639.566665649414,\r
+        "y": 2281.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eb24a93a.96e538",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "x": 2625.566665649414,\r
+        "y": 3961.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e11f1e73.f567a8",\r
+        "type": "set",\r
+        "name": "set new ethernet-service-name",\r
+        "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 2682.566665649414,\r
+        "y": 798.5666656494141,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9c7b5506.97a75",\r
+        "type": "for",\r
+        "name": "for vidx..tmp.otninfo_length[]",\r
+        "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2670.566665649414,\r
+        "y": 2528.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "9ffd0093.8105f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "85036bc9.25f0a",\r
+        "type": "save",\r
+        "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3799.566665649414,\r
+        "y": 2950.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "bd2b4caa.40f07"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d0fe394.a0f5c4",\r
+        "type": "save",\r
+        "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4372.066665649414,\r
+        "y": 3054.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd2b4caa.40f07",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4105.566665649414,\r
+        "y": 2949.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "28d033b7.b1a7b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "28d033b7.b1a7b4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4315.066665649414,\r
+        "y": 2949.820571899414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "da384da9.50fad",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for vpn-binding $otnidx",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3832.566665649414,\r
+        "y": 2429.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "458c9236.fc09c4",\r
+        "type": "switchNode",\r
+        "name": "switch otnidx == 0",\r
+        "xml": "<switch test='`$otnidx == 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3708.566665649414,\r
+        "y": 3067.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "20b3c9fb.2f7a1e",\r
+                "2b2bcdf.9a75432"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20b3c9fb.2f7a1e",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3891.566665649414,\r
+        "y": 3067.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "85853f45.184448"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2b2bcdf.9a75432",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3716.566665649414,\r
+        "y": 3214.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "69e93af2.71c7f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dec16147.315f48",\r
+        "type": "switchNode",\r
+        "name": "switch otnidx == last",\r
+        "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4057.566665649414,\r
+        "y": 3295.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "6e1ea31a.8dc254",\r
+                "3327fa99.59aede"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e1ea31a.8dc254",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4242.566665649414,\r
+        "y": 3296.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "35e519f9.462626"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3327fa99.59aede",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4261.566665649414,\r
+        "y": 3562.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "234eca18.b570de"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a9f4476.809074",\r
+        "type": "save",\r
+        "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4672.566665649414,\r
+        "y": 3297.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4efd8bac.69de6c",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for connectivity domain otnidx",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4746.566665649414,\r
+        "y": 3595.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "401e45e3.6933bc",\r
+        "type": "save",\r
+        "name": "save connectivity resource in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4682.566665649414,\r
+        "y": 3646.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a88afee.ea2358",\r
+        "type": "save",\r
+        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4811.566665649414,\r
+        "y": 3696.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "303e66ea.a0468a",\r
+        "type": "comment",\r
+        "name": "connectivity has not been created for middle domains, so we have to create one",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4821.566665649414,\r
+        "y": 3539.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd97ab87.4b8898",\r
+        "type": "save",\r
+        "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4779.566665649414,\r
+        "y": 3755.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "234eca18.b570de",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4418.566665649414,\r
+        "y": 3563.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "4efd8bac.69de6c",\r
+                "401e45e3.6933bc",\r
+                "9a88afee.ea2358",\r
+                "bd97ab87.4b8898",\r
+                "2cb520a2.c67d5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ffd0093.8105f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2939.566665649414,\r
+        "y": 2528.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "da384da9.50fad",\r
+                "85036bc9.25f0a",\r
+                "458c9236.fc09c4",\r
+                "afb7d963.d1d2e",\r
+                "b5c03e87.4a3d2",\r
+                "5fbd4527.08216c",\r
+                "580438cc.a39858"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7371bc78.68f23c",\r
+        "type": "set",\r
+        "name": "set attachment_param domain A",\r
+        "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",\r
+        "comments": "",\r
+        "x": 4296.566665649414,\r
+        "y": 3111.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9da935b4.011d78",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode domainA UNI Coloring",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\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": 4349.566665649414,\r
+        "y": 3155.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "a38d117f.617d1",\r
+                "64ad5e9f.cde688"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "64ad5e9f.cde688",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4620.566665649414,\r
+        "y": 3140.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "ae1e714f.21e89"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a38d117f.617d1",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4618.566879272461,\r
+        "y": 3198.566575050354,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "cc46ab1d.b8d358"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ae1e714f.21e89",\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 UNI Coloring for domain A\" />\n",\r
+        "comments": "",\r
+        "x": 4760.566913604736,\r
+        "y": 3140.5666666030884,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc46ab1d.b8d358",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4766.593925476074,\r
+        "y": 3189.31206035614,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "85853f45.184448",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4032.566665649414,\r
+        "y": 3057.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "4d0fe394.a0f5c4",\r
+                "9da935b4.011d78",\r
+                "7371bc78.68f23c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35e519f9.462626",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4376.566665649414,\r
+        "y": 3297.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "3a9f4476.809074",\r
+                "6085ae42.a24518",\r
+                "92ddf8d8.c0a7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "92ddf8d8.c0a7e",\r
+        "type": "set",\r
+        "name": "set attachment_param domain B",\r
+        "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",\r
+        "comments": "",\r
+        "x": 4596.566665649414,\r
+        "y": 3341.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6085ae42.a24518",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode domainB UNI Coloring",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\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": 4647.566665649414,\r
+        "y": 3385.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "e3b13fd7.7163e8",\r
+                "22b24822.5449d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "22b24822.5449d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4910.566665649414,\r
+        "y": 3365.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "f1d0e9c2.a4fe58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e3b13fd7.7163e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4911.566879272461,\r
+        "y": 3416.566575050354,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "117ef1f.6c1660e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1d0e9c2.a4fe58",\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 UNI coloring for domain B\" />\n",\r
+        "comments": "",\r
+        "x": 5050.566913604736,\r
+        "y": 3365.5666666030884,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "117ef1f.6c1660e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5056.593925476074,\r
+        "y": 3414.31206035614,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cb520a2.c67d5",\r
+        "type": "set",\r
+        "name": "set attachment_param domain otnidx",\r
+        "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
+        "comments": "",\r
+        "x": 4693.566665649414,\r
+        "y": 3815.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bb7c148d.8dd4d8",\r
+        "type": "save",\r
+        "name": "get all-vpn-bindings from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2012.566665649414,\r
+        "y": 4162.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "bfb40bbb.94779",\r
+                "3cbbde56.b4a31a",\r
+                "1a8f636f.24e13d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfb40bbb.94779",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2200.566665649414,\r
+        "y": 4175.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "eaca1bd7.371c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cbbde56.b4a31a",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2201.057632446289,\r
+        "y": 4221.140701293945,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "38f81285.85b9a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a8f636f.24e13d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2198.566665649414,\r
+        "y": 4264.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "f0bf5dd6.fd17a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eaca1bd7.371c7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2373.566665649414,\r
+        "y": 4173.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "8ebcdd79.0a28b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38f81285.85b9a6",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 2363.6290435791016,\r
+        "y": 4221.42643737793,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f0bf5dd6.fd17a",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 2365.566665649414,\r
+        "y": 4263.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "782b021e.0fd0fc",\r
+        "type": "for",\r
+        "name": "for vidx..tmp.otninfo_length[]",\r
+        "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2001.566665649414,\r
+        "y": 4353.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "80466868.45553"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f32f968.2f76b8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2811.566665649414,\r
+        "y": 4353.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "5534fc3.85d0104"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be092ed.4a93b5",\r
+        "type": "for",\r
+        "name": "for vidx..tmp.otninfo_length[]",\r
+        "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2583.566665649414,\r
+        "y": 4353.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "6f32f968.2f76b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "114fcf9e.f212a8",\r
+        "type": "set",\r
+        "name": "set providerValue",\r
+        "xml": "<set>\n<parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />\n<parameter name='found' value='false' />\n\n\n",\r
+        "comments": "",\r
+        "x": 3703.566665649414,\r
+        "y": 4120.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "aaeb5226.81f7d",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
+        "comments": "",\r
+        "x": 4005.566665649414,\r
+        "y": 3246.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "69e93af2.71c7f4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3840.566665649414,\r
+        "y": 3221.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "aaeb5226.81f7d",\r
+                "dec16147.315f48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d12bfd13.8bf75",\r
+        "type": "set",\r
+        "name": "set tmp.arr",\r
+        "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n\n",\r
+        "comments": "",\r
+        "x": 1960.566665649414,\r
+        "y": 237.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8ebcdd79.0a28b",\r
+        "type": "for",\r
+        "name": "for vpnidx in all-vpn-bindings",\r
+        "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2602.566665649414,\r
+        "y": 4174.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "3567bff3.8ebcd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3567bff3.8ebcd8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2817.566665649414,\r
+        "y": 4175.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "473c1519.d01eb4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "809d3147.ec0f3",\r
+        "type": "for",\r
+        "name": "for arridx in tmp.arr",\r
+        "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4270.566665649414,\r
+        "y": 4095.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "aa9ab401.5fa778"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5596317e.9b3628",\r
+        "type": "switchNode",\r
+        "name": "switch $tmp.arr_length != 0",\r
+        "xml": "<switch test='`$tmp.arr_length != 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3736.566665649414,\r
+        "y": 4175.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "a957484e.5a6ff",\r
+                "94a2b6d3.766e58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a957484e.5a6ff",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3932.566665649414,\r
+        "y": 4145.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "b3c10703.b98f2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "94a2b6d3.766e58",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3933.566665649414,\r
+        "y": 4216.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "60df48e3.d4564"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3c10703.b98f2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4083.566665649414,\r
+        "y": 4143.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "809d3147.ec0f3",\r
+                "5065f5c6.173234"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aa9ab401.5fa778",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.arr[$arridx] == $providerValue",\r
+        "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4561.566665649414,\r
+        "y": 4095.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "6d737171.e1452",\r
+                "b5a839dc.7835"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d737171.e1452",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4836.566665649414,\r
+        "y": 4064.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "397594e.7aa86ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5a839dc.7835",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4837.566665649414,\r
+        "y": 4135.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "49c3abd.61fa054"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "397594e.7aa86ec",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4987.566665649414,\r
+        "y": 4062.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "412bffc9.1c0e28",\r
+                "1704d5ec.8e1b6a",\r
+                "12f4e6d8.82a019",\r
+                "d12115f5.e77c3",\r
+                "eb231f11.de562"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "412bffc9.1c0e28",\r
+        "type": "set",\r
+        "name": "set found to true",\r
+        "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",\r
+        "comments": "",\r
+        "x": 5175.566665649414,\r
+        "y": 4022.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1704d5ec.8e1b6a",\r
+        "type": "save",\r
+        "name": "store $arridx somewhere in vpn-binding",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx`' />\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5247.566665649414,\r
+        "y": 4067.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb231f11.de562",\r
+        "type": "set",\r
+        "name": "set twoD arr",\r
+        "xml": "<set>\n\n<!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->\n<!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->\n<parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />\n\n",\r
+        "comments": "",\r
+        "x": 5162.566665649414,\r
+        "y": 4194.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d12115f5.e77c3",\r
+        "type": "set",\r
+        "name": "set sizeOfSliceList",\r
+        "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",\r
+        "comments": "",\r
+        "x": 5183.566665649414,\r
+        "y": 4130.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "60df48e3.d4564",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4085.566665649414,\r
+        "y": 4216.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "974dbcc3.cf34c8",\r
+                "ca9f0d65.bbf04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "974dbcc3.cf34c8",\r
+        "type": "save",\r
+        "name": "store $arridx somewhere in vpn-binding",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='0' />\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4340.566665649414,\r
+        "y": 4209.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca9f0d65.bbf04",\r
+        "type": "set",\r
+        "name": "set twoD array",\r
+        "xml": "<set>\n<parameter name='tmp.arr[0]' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='1' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='1' />\n<parameter name='otn-tunnel-slice[0].list_length' value='1' />\n\n",\r
+        "comments": "",\r
+        "x": 4268.566665649414,\r
+        "y": 4256.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5065f5c6.173234",\r
+        "type": "switchNode",\r
+        "name": "switch found?",\r
+        "xml": "<switch test='`$found`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4261.566665649414,\r
+        "y": 4140.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "f595c5ce.d138f8",\r
+                "a27215c.554f2e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f595c5ce.d138f8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4421.566665649414,\r
+        "y": 4132.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "3c70617c.e2885e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a27215c.554f2e8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4419.566665649414,\r
+        "y": 4169.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "27b0e714.f2ecf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c70617c.e2885e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4546.566665649414,\r
+        "y": 4132.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a0581441.562ff8",\r
+        "type": "save",\r
+        "name": "store $arridx+1 somewhere in vpn-binding",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx + 1`' />\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4853.566665649414,\r
+        "y": 4190.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "27b0e714.f2ecf8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4579.566665649414,\r
+        "y": 4177.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "a0581441.562ff8",\r
+                "a72a86e5.09979"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a72a86e5.09979",\r
+        "type": "set",\r
+        "name": "set twoD array",\r
+        "xml": "<set>\n<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />\n\n",\r
+        "comments": "",\r
+        "x": 4770.566665649414,\r
+        "y": 4236.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "49c3abd.61fa054",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4970.566665649414,\r
+        "y": 4134.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "12f4e6d8.82a019",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 5141.566665649414,\r
+        "y": 4261.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "afb7d963.d1d2e",\r
+        "type": "switchNode",\r
+        "name": "switch dstPort == NULL",\r
+        "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3546.566665649414,\r
+        "y": 2519.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "2a68f8d8.e1dda",\r
+                "4b46d94e.68d61"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a68f8d8.e1dda",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3912.566665649414,\r
+        "y": 2480.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "9cc98ff4.caf3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b46d94e.68d61",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3913.566665649414,\r
+        "y": 2526.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "a85d4c51.ca6c38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cc98ff4.caf3c",\r
+        "type": "set",\r
+        "name": "set access-provider-id and client-id",\r
+        "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",\r
+        "comments": "",\r
+        "x": 4126.566665649414,\r
+        "y": 2479.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a85d4c51.ca6c38",\r
+        "type": "set",\r
+        "name": "set access-provider-id and client-id",\r
+        "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",\r
+        "comments": "",\r
+        "x": 4124.566665649414,\r
+        "y": 2524.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5534fc3.85d0104",\r
+        "type": "set",\r
+        "name": "set attachment_param sliceG",\r
+        "xml": "<set>\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`\" />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />\n\n\n<parameter name=\"tmp.domainG.restapiUrl\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`\" />\n<parameter name=\"tmp.domainG.restapiUser\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`\" />\n<parameter name=\"tmp.domainG.restapiPassword\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`\" />",\r
+        "comments": "",\r
+        "x": 3064.566665649414,\r
+        "y": 4351.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "42aa6078.f937c",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode sliceG creation domainG",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.domainG.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`tmp.domainG.restapiPassword`\" />\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`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2649.566665649414,\r
+        "y": 4459.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "51d7fa89.689264",\r
+                "5ac90edf.1e939"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ac90edf.1e939",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2932.566665649414,\r
+        "y": 4439.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "86bbe7aa.1bf2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "51d7fa89.689264",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2933.566879272461,\r
+        "y": 4490.566575050354,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "f017812e.0e0548"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86bbe7aa.1bf2",\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 slice creation api for domain A\" />\n",\r
+        "comments": "",\r
+        "x": 3072.5669136047363,\r
+        "y": 4439.566666603088,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f017812e.0e0548",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3078.593925476074,\r
+        "y": 4488.31206035614,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5c03e87.4a3d2",\r
+        "type": "set",\r
+        "name": "set srcdstpnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n                                             $tmp.access-provider-id + '-clientId-' +\n                                             $tmp.access-client-id + '-topologyId-' + \n                                             $tmp.access-topology-id + '-nodeId-' + \n                                             $tmp.srcdstpnf-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3722.566665649414,\r
+        "y": 2593.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5fbd4527.08216c",\r
+        "type": "get-resource",\r
+        "name": "get-resource tmp.srcdstpnf-name",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n        pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3766.566665649414,\r
+        "y": 2641.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "1efdee28.f91a52",\r
+                "64406c95.e8d00c",\r
+                "d9f7dd8f.9ba66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1efdee28.f91a52",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3979.066665649414,\r
+        "y": 2588.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "2ed8b0a7.4efac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "64406c95.e8d00c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3991.066665649414,\r
+        "y": 2638.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "51fd5363.368514"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d9f7dd8f.9ba66",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3982.066665649414,\r
+        "y": 2693.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "e38f0d80.1c1bb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e38f0d80.1c1bb",\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": 4127.066665649414,\r
+        "y": 2692.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "51fd5363.368514",\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": 4138.066665649414,\r
+        "y": 2635.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2ed8b0a7.4efac8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4104.449111938477,\r
+        "y": 2582.2223358154297,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "6b9e1826.ee6da8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "138f1f2d.7207a9",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4663.566665649414,\r
+        "y": 2600.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "d1f83019.79c9b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1f83019.79c9b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2923.500244140625,\r
-        "y": 2168.25390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4840.566665649414,\r
+        "y": 2592.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "7ed11e.38da0ee4",\r
+                "162cc00f.d817a8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "99e923c8.5700b8",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: do we need this relationship?",\r
-        "info": "",\r
+        "id": "6b9e1826.ee6da8",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4265.566665649414,\r
+        "y": 2596.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "86ec64e1.e780c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86ec64e1.e780c",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4460.566665649414,\r
+        "y": 2596.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "138f1f2d.7207a9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "162cc00f.d817a8",\r
+        "type": "execute",\r
+        "name": "get esr-thirdparty-sdnc",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5048.566665649414,\r
+        "y": 2599.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "e0385378.198358",\r
+                "503d9090.68b5e8",\r
+                "17aba33b.4460b5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ed11e.38da0ee4",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domainG id",\r
+        "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
         "comments": "",\r
-        "x": 3171,\r
-        "y": 2108,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5078.566665649414,\r
+        "y": 2547.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "debe7c1a.c25a08",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: put proper values",\r
-        "info": "",\r
+        "id": "e0385378.198358",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5258.566665649414,\r
+        "y": 2590.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "2933c6cc.a68082"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "503d9090.68b5e8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5250.566665649414,\r
+        "y": 2645.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "d5a44647.f1fdd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17aba33b.4460b5",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
-        "x": 2409,\r
-        "y": 2130,\r
-        "z": "5b68e0d.bd97b2",\r
+        "outputs": 1,\r
+        "x": 5255.566665649414,\r
+        "y": 2702.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "8e808d45.23fde8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e808d45.23fde8",\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": 5407.566665649414,\r
+        "y": 2703.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ccc984ea.946438",\r
-        "type": "save",\r
-        "name": "save vpn-binding B resource (aka. OTN domainB) in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",\r
+        "id": "d5a44647.f1fdd8",\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": 5418.566665649414,\r
+        "y": 2648.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2933c6cc.a68082",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2465,\r
-        "y": 2348,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5402.948989868164,\r
+        "y": 2588.2223358154297,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "de2c330e.390d88"\r
+                "ee8d6c6a.1b65b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ff4306de.40969",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: do we need this relationship?",\r
-        "info": "",\r
+        "id": "ee8d6c6a.1b65b8",\r
+        "type": "set",\r
+        "name": "set controller domainA data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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",\r
         "comments": "",\r
-        "x": 3153,\r
-        "y": 2288,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5617.566665649414,\r
+        "y": 2584.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "bddb99db.4eee1",\r
-        "type": "save",\r
-        "name": "save srcLTP relationship in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",\r
+        "id": "80466868.45553",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3116.5,\r
-        "y": 2329,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2233.566665649414,\r
+        "y": 4351.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "be092ed.4a93b5",\r
+                "42aa6078.f937c"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "4e5e60ab.6592a8",\r
-        "type": "save",\r
-        "name": "save dstLTP relationship in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",\r
+        "id": "580438cc.a39858",\r
+        "type": "switchNode",\r
+        "name": "switch dmnsidx == 0 (domainA)",\r
+        "xml": "<switch test='`$otnidx == 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3736.566665649414,\r
+        "y": 2810.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "253b733.7c34c8c",\r
+                "ac577a23.1df5c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "253b733.7c34c8c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3937.566665649414,\r
+        "y": 2808.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "489357ce.d601e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ffee2dc.bf60cc",\r
+        "type": "set",\r
+        "name": "set pce-src-node",\r
+        "xml": "<set>\n<parameter name='tmp.pce-src-node' value='`$tmp.srcdstpnf-name`' />",\r
+        "comments": "",\r
+        "x": 4218.566665649414,\r
+        "y": 2758.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f4366d42.1a2168",\r
+        "type": "switchNode",\r
+        "name": "switch dmnsidx == last (domainB)",\r
+        "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4154.566665649414,\r
+        "y": 2859.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "ed86bff.8de464",\r
+                "8d9d80f9.3a4208"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed86bff.8de464",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4384.566665649414,\r
+        "y": 2855.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "7e911b6f.cd69e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b90e6234.50db9",\r
+        "type": "set",\r
+        "name": "set attachment_param domain B",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",\r
+        "comments": "",\r
+        "x": 4721.566665649414,\r
+        "y": 2799.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ac577a23.1df5c8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3937.566665649414,\r
+        "y": 2857.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "f4366d42.1a2168"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8d9d80f9.3a4208",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4385.566665649414,\r
+        "y": 2901.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "c46aeca7.68602"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c46aeca7.68602",\r
+        "type": "set",\r
+        "name": "set attachment_param domain G",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
+        "comments": "",\r
+        "x": 4599.566665649414,\r
+        "y": 2901.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b5fed2d4.4f9558",\r
+        "type": "set",\r
+        "name": "set tmp.slicevpns",\r
+        "xml": "<set>\n<parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n<parameter name='tmp.slicevpns_length' value=\"`$tmp.slicevpns_length + 1`\" />\n\n<parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4497.566665649414,\r
+        "y": 2950.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "473c1519.d01eb4",\r
+        "type": "switchNode",\r
+        "name": "switch vpnuuid is for this slice",\r
+        "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n\n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3061.566665649414,\r
+        "y": 4174.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "1fb0ccb2.86983b",\r
+                "44883739.f6f7d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1fb0ccb2.86983b",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3278.566665649414,\r
+        "y": 4153.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "7e38fab1.3b9244"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "44883739.f6f7d8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3118.5,\r
-        "y": 2368,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3278.566665649414,\r
+        "y": 4202.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "82297458.0d3c48",\r
+        "id": "7e38fab1.3b9244",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3446.566665649414,\r
+        "y": 4153.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            [\r
+                "114fcf9e.f212a8",\r
+                "5596317e.9b3628"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a0f26d15.101368",\r
+        "type": "set",\r
+        "name": "set attachment_param domain A",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
+        "comments": "",\r
+        "x": 4273.566665649414,\r
+        "y": 2805.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "489357ce.d601e8",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2905.500244140625,\r
-        "y": 2348.25390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4061.566665649414,\r
+        "y": 2799.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
-            []\r
+            [\r
+                "a0f26d15.101368"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "de2c330e.390d88",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "3c67b199.38de76",\r
+        "type": "set",\r
+        "name": "set pce-src-node",\r
+        "xml": "<set>\n<parameter name='tmp.pce-dst-node' value='`$tmp.srcdstpnf-name`' />",\r
+        "comments": "",\r
+        "x": 4673.566665649414,\r
+        "y": 2847.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7e911b6f.cd69e4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2765,\r
-        "y": 2347,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4517.566665649414,\r
+        "y": 2831.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             [\r
-                "82297458.0d3c48"\r
+                "b90e6234.50db9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8b5978da.cf55b8",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: put proper values",\r
-        "info": "",\r
+        "id": "6e431d76.be632c",\r
+        "type": "get-resource",\r
+        "name": "get-resource pnfs-list",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v25/network/pnfs?depth=0' depth = 0\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
         "comments": "",\r
-        "x": 2386,\r
-        "y": 2308,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2003.566665649414,\r
+        "y": 96.56666564941406,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
     },\r
     {\r
-        "id": "3824458b.0c70c2",\r
-        "type": "save",\r
-        "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",\r
+        "id": "29e9cbd2.ce75c4",\r
+        "type": "get-resource",\r
+        "name": "get-resource logical-links",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v25/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2463.5,\r
-        "y": 2388,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2015.566665649414,\r
+        "y": 137.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ed749360.08754",\r
+        "id": "7f3d74ad.534c3c",\r
         "type": "comment",\r
-        "name": "TODO: FIXME:",\r
-        "info": "set attachment param and send request to NCE-T\nfor bandwidth matrix\nmay require a new template for JSON body",\r
+        "name": "The following two nodes are for PCE",\r
+        "info": "",\r
         "comments": "",\r
-        "x": 2337,\r
-        "y": 2471,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2039.566665649414,\r
+        "y": 59.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "97832dc3.63313",\r
+        "id": "6d8a85f2.9b51f4",\r
         "type": "set",\r
-        "name": "set attachment_param",\r
-        "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n",\r
+        "name": "set tmp.arr",\r
+        "xml": "<set>\n<parameter name='tmp.arr.' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='otn-tunnel-slice.' value='' />\n\n\n",\r
         "comments": "",\r
-        "x": 2360,\r
-        "y": 2511,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1960.566665649414,\r
+        "y": 183.56666564941406,\r
+        "z": "9256178d.211a68",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f27e6517.ff7968",\r
+        "id": "3add3536.bf190a",\r
         "type": "execute",\r
-        "name": "get parent-service-data tmp.ar-url-psd",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",\r
+        "name": "execute printContext",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2650.566665649414,\r
+        "y": 2395.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d33e8b85.64336",\r
+        "type": "set",\r
+        "name": "set maxtpn",\r
+        "xml": "<set>\n<parameter name='maxtpn' value='`($maxtpn + $gfp)`' />",\r
+        "comments": "",\r
+        "x": 3677.566665649414,\r
+        "y": 2998.566665649414,\r
+        "z": "9256178d.211a68",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "33633691.1ec92a",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-find-maximum-used-tpn",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 5071,\r
-        "y": 1523,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2843.566665649414,\r
+        "y": 2459.566665649414,\r
+        "z": "9256178d.211a68",\r
         "wires": [\r
             []\r
         ]\r