Bug fixing required for integration testing with PCE.
[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..47e80d2 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "c7ab28db.5fa9f8",\r
+        "id": "b3b9455c.251fb8",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 108,\r
-        "y": 69,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 107,\r
+        "y": 110,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "b4f2bafa.fe95a"\r
+                "5661f4c7.6e8104"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b4f2bafa.fe95a",\r
+        "id": "5661f4c7.6e8104",\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": 391.2856903076172,\r
+        "y": 171.23810863494873,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "5dd33274.e7d4cc"\r
+                "47f23ec8.713ca"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5dd33274.e7d4cc",\r
+        "id": "47f23ec8.713ca",\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": 397.42860412597656,\r
+        "y": 256.0000305175781,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "28d22516.fc87aa"\r
+                "909d5d01.2efc9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "28d22516.fc87aa",\r
+        "id": "909d5d01.2efc9",\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": 767.238037109375,\r
+        "y": 280.66668701171875,\r
+        "z": "cd8c161.e76ffe8",\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
+                "c5df95a2.6c697",\r
+                "a851f151.681188",\r
+                "4430b278.87d9ac"\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": "c5df95a2.6c697",\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": 1068.571533203125,\r
+        "y": 551.5969848632812,\r
+        "z": "cd8c161.e76ffe8",\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": "a851f151.681188",\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": 1090,\r
+        "y": 254,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "bee2d1fb.fc819",\r
+                "706fc8bb.926d88",\r
+                "b5dbfca1.6b8958"\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": "bee2d1fb.fc819",\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": 1315,\r
+        "y": 112,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "45cce5a8.451aac",\r
-                "48e9b931.dabab8"\r
+                "e14cb882.1a5158"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "45cce5a8.451aac",\r
-        "type": "other",\r
-        "name": "NULL",\r
-        "xml": "<outcome value=''>\n",\r
+        "id": "706fc8bb.926d88",\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": 1310.490966796875,\r
+        "y": 181.57403564453125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "6299edd9.775e24"\r
+                "5cbb540f.81c364"\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": "b5dbfca1.6b8958",\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": 1299,\r
+        "y": 228,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "bd99daf8.5c5508"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "48e9b931.dabab8",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "e14cb882.1a5158",\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": 1554,\r
+        "y": 109,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "777ae1e9.6bbca"\r
+                "6386b942.401658",\r
+                "736cbc7f.84dcc4"\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": "5cbb540f.81c364",\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": 1464.0623779296875,\r
+        "y": 184.85977172851562,\r
+        "z": "cd8c161.e76ffe8",\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": "bd99daf8.5c5508",\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": 1468,\r
+        "y": 229,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "777ae1e9.6bbca",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "6386b942.401658",\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": 1767,\r
+        "y": 133,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "6abef48d.2c4e6c",\r
-                "8a52abb7.25d258"\r
+                "bdbad755.d12dc8"\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": "736cbc7f.84dcc4",\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": 1769,\r
+        "y": 73,\r
+        "z": "cd8c161.e76ffe8",\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": "73516434.8b694c",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1069,\r
+        "y": 142,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bdbad755.d12dc8",\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": 1752,\r
+        "y": 221,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "19c5d87f.a3e7b"\r
+                "3b75dc28.79bec4",\r
+                "5d2f9da2.d38694",\r
+                "48979781.1681f8",\r
+                "93c183ce.0a9ed8",\r
+                "5d8a5506.b8ac8c",\r
+                "a26db7da.175a4"\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": "31cf85b5.906fca",\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": 2615,\r
+        "y": 821,\r
+        "z": "cd8c161.e76ffe8",\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": "db907b5a.2ae538",\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": 2616,\r
+        "y": 876,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "efeb4f56.d9cc7",\r
+        "id": "fea2a65.c94cf58",\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": 2238,\r
+        "y": 272,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "87df4589.584858",\r
+                "635af784.3cb32",\r
+                "22a4a39b.dd73ec"\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": "87df4589.584858",\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": 2454,\r
+        "y": 339,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "8e0be879.699538"\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": "635af784.3cb32",\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": 2454.490966796875,\r
+        "y": 238.573974609375,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "84ac682e.b78a08"\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": "22a4a39b.dd73ec",\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": 2450,\r
+        "y": 288,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "b2061dbc.0548c8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "8b2c577f.aa706",\r
-        "type": "comment",\r
-        "name": "TODO: change AAI models",\r
-        "info": "",\r
+        "id": "84ac682e.b78a08",\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": 2632.0625,\r
+        "y": 238.8597412109375,\r
+        "z": "cd8c161.e76ffe8",\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": "b2061dbc.0548c8",\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": 2632,\r
+        "y": 288,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "358e179e.99b9f",\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": 1973,\r
+        "y": 761,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "e260aa07.d4c01",\r
+                "9ec9d813.5ed0f",\r
+                "46b462c7.130bb4"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "889ccd2d.4a8fe8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "e260aa07.d4c01",\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": 2264.490966796875,\r
+        "y": 739.573974609375,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "d58f334a.ba5338",\r
-                "e9083033.2291c8"\r
+                "c2b6bbd8.3d5eb8"\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": "9ec9d813.5ed0f",\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": 2253,\r
+        "y": 784,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "889ccd2d.4a8fe8"\r
+                "1e57c51f.2af7db"\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": "c2b6bbd8.3d5eb8",\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": 2413.0625,\r
+        "y": 739.8597412109375,\r
+        "z": "cd8c161.e76ffe8",\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": "1e57c51f.2af7db",\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": 2412,\r
+        "y": 784,\r
+        "z": "cd8c161.e76ffe8",\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": "46b462c7.130bb4",\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": 2260,\r
+        "y": 863,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "ab7df566.3e05d"\r
+                "9b6c334b.ffcfb8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ab7df566.3e05d",\r
+        "id": "9b6c334b.ffcfb8",\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": 2399,\r
+        "y": 863,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "352dca87.707f0e"\r
+                "31cf85b5.906fca",\r
+                "db907b5a.2ae538",\r
+                "b99c062f.cc8e2",\r
+                "f8919e28.817698",\r
+                "63c0978f.6d4218",\r
+                "256b3f1a.6b05f8",\r
+                "72dba682.c63c9",\r
+                "1b6d1c66.bc0bb4",\r
+                "d6aa9ec.33fa46",\r
+                "6c32ab13.072304",\r
+                "35f98555.2ceed2",\r
+                "63cf541.20dacac"\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": "b99c062f.cc8e2",\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": 2628,\r
+        "y": 944,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "590b3579.cf8c54"\r
+                "177d33ef.653acc",\r
+                "b808d106.b2a7e8",\r
+                "99bf3e88.29ecb8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "590b3579.cf8c54",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "f8919e28.817698",\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": 2607,\r
+        "y": 1545.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "63083064.a23a18"\r
+                "e551771e.c49a78",\r
+                "c096bcbd.1a977",\r
+                "cd719142.8f5fd8"\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": "177d33ef.653acc",\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": 2829,\r
+        "y": 828,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "60c8d868.cb0f38"\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": "b808d106.b2a7e8",\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": 2824.509033203125,\r
+        "y": 877.426025390625,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "5d430eb5.2b236",\r
-                "4db06806.f53418",\r
-                "95ae5b5a.c22a4"\r
+                "8912eaa6.91a52"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5d430eb5.2b236",\r
+        "id": "99bf3e88.29ecb8",\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": 2828.509033203125,\r
+        "y": 928.426025390625,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "53896828.686ee8"\r
+                "f8cee9a2.f0a618"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4db06806.f53418",\r
+        "id": "60c8d868.cb0f38",\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": 2977.571533203125,\r
+        "y": 827.2857666015625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8912eaa6.91a52",\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": 2967.509033203125,\r
+        "y": 877.426025390625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e551771e.c49a78",\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": 2830,\r
+        "y": 1515.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "2be30b71.aee02c"\r
+                "ae022a7b.5f0fc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "95ae5b5a.c22a4",\r
+        "id": "c096bcbd.1a977",\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": 2825.509033203125,\r
+        "y": 1565.4259033203125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "ecad310e.0677"\r
+                "2c76b27.1b72ace"\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": "cd719142.8f5fd8",\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": 2829.509033203125,\r
+        "y": 1616.4259033203125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "a4b1136f.62ed08",\r
-                "46b85697.e69b9"\r
+                "e3f74bb4.409b5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2be30b71.aee02c",\r
+        "id": "ae022a7b.5f0fc",\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": 2978.571533203125,\r
+        "y": 1515.28564453125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ecad310e.0677",\r
+        "id": "2c76b27.1b72ace",\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
-        "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
+        "x": 2968.509033203125,\r
+        "y": 1565.4259033203125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a4b1136f.62ed08",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
-        "comments": "",\r
+        "id": "194cc348.04e4bd",\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": 3642.66650390625,\r
+        "y": 972,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "cb1b8f06.47ef2"\r
+                "e0f54a30.b97458",\r
+                "6e8fe0e8.771d7",\r
+                "2d7aee5e.4b3492",\r
+                "d2697672.e5142",\r
+                "c6965465.aeb14"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "46b85697.e69b9",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "c1db8d6e.967fa8",\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": 3470,\r
+        "y": 973,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "194cc348.04e4bd"\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": "ea169f9.1e78f6",\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": 3479.490966796875,\r
+        "y": 1015.5740356445312,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "643d2cea.4605b4",\r
-                "7caeb522.7a961c"\r
+                "9dbcf7c3.d03228"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "643d2cea.4605b4",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "b37256ee.6a59a",\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": 3468,\r
+        "y": 1062,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "152d2d7d.5e3893"\r
+                "78909f5b.c256b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7caeb522.7a961c",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "9dbcf7c3.d03228",\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": 3633.0623779296875,\r
+        "y": 1018.8597717285156,\r
+        "z": "cd8c161.e76ffe8",\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": "78909f5b.c256b8",\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": 3637,\r
+        "y": 1063,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "cb1b8f06.47ef2",\r
+        "id": "f8cee9a2.f0a618",\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": 2990,\r
+        "y": 930,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "a019135.4f8ccf",\r
-                "e575462e.50d5b"\r
+                "bd63f21f.6d97a",\r
+                "bcdc8dc3.72d61"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "152d2d7d.5e3893",\r
+        "id": "e3f74bb4.409b5",\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": 2980,\r
+        "y": 1617.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "814386d7.12d29",\r
-                "fecafec9.0d1c5"\r
+                "d9529ce2.4ca64",\r
+                "68b3ff1a.0849f"\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": "1bc4a1b0.e8f4e6",\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": 3610.66650390625,\r
+        "y": 1808,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "9038c1c3.67b67",\r
-                "d5fe3cc1.f1ab58",\r
-                "3a3c5476.f230dc"\r
+                "6b02eeb7.bc53e8",\r
+                "aa3dffa0.a80a58",\r
+                "ce63ac06.8bd44",\r
+                "c950727d.3e1368",\r
+                "83539382.7676b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9038c1c3.67b67",\r
+        "id": "206889a2.ad62d6",\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": 3438,\r
+        "y": 1809,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "457beb03.a98104"\r
+                "1bc4a1b0.e8f4e6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d5fe3cc1.f1ab58",\r
+        "id": "eceddf53.8343c8",\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": 3447.490966796875,\r
+        "y": 1851.5740356445312,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "d1ddfc7b.e8b11"\r
+                "89316d2b.d76a7"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3a3c5476.f230dc",\r
+        "id": "9f6e2dae.f13bd8",\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": 3436,\r
+        "y": 1898,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "5d76fda0.b3386c"\r
+                "ff7b6926.fc1f5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d1ddfc7b.e8b11",\r
+        "id": "89316d2b.d76a7",\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": 3601.0623779296875,\r
+        "y": 1854.8597717285156,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5d76fda0.b3386c",\r
+        "id": "ff7b6926.fc1f5",\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
+        "x": 3605,\r
+        "y": 1899,\r
+        "z": "cd8c161.e76ffe8",\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
-        "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": "e0f54a30.b97458",\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": 3907,\r
+        "y": 956,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "c3decf76.de238",\r
-                "cbe9f0d3.03cae",\r
-                "f1d67d6b.7b18f8"\r
+                "8a48ffc4.99708",\r
+                "9768c48e.e91b5"\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": "9768c48e.e91b5",\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": 4130,\r
+        "y": 911,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "df9ad0cd.393e9"\r
+                "704965d2.1b9644"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f1d67d6b.7b18f8",\r
+        "id": "8a48ffc4.99708",\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": 4132,\r
+        "y": 975,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "387801a6.c55046"\r
+                "5140e6b9.7a9158"\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": "b8a9d793.4e0ca",\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": 4465,\r
+        "y": 866,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "387801a6.c55046",\r
+        "id": "5140e6b9.7a9158",\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": 4294,\r
+        "y": 971,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c3decf76.de238",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
+        "id": "704965d2.1b9644",\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": 4295,\r
+        "y": 908,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "85643202.66a9f8"\r
+                "c30e1911.559b98",\r
+                "b8a9d793.4e0ca"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "85643202.66a9f8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "c30e1911.559b98",\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": 4466,\r
+        "y": 974,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6b71df66.ebc0e",\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": 4467,\r
+        "y": 923,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2d7aee5e.4b3492",\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": 3909,\r
+        "y": 1115,\r
+        "z": "cd8c161.e76ffe8",\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": "6e8fe0e8.771d7",\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": 3954,\r
+        "y": 1025,\r
+        "z": "cd8c161.e76ffe8",\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": "703a6ba5.55da1c",\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": 3843,\r
+        "y": 1066,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6b02eeb7.bc53e8",\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": 3897,\r
+        "y": 1812.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "cac7dfa0.02314",\r
-                "cd4a18c4.24c5e8",\r
-                "b2a92c1e.f10cd8"\r
+                "866b6a8.23d5e98",\r
+                "cb5f1ada.6b67f"\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": "cb5f1ada.6b67f",\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": 4120,\r
+        "y": 1767.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "6df2f8ce.f4df28"\r
+                "e1a14a86.388a08"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "271678cd.b7a718",\r
+        "id": "866b6a8.23d5e98",\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": 4122,\r
+        "y": 1831.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "a0e96fb5.85588"\r
+                "e3367ed2.f52b78"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fda0cd5e.c574c8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "c05c0482.6a0aa8",\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": 4455,\r
+        "y": 1725.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e3367ed2.f52b78",\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": 4281,\r
+        "y": 1850.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e1a14a86.388a08",\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": 4285,\r
+        "y": 1764.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "57154704.0e805"\r
+                "c05c0482.6a0aa8",\r
+                "6625860d.59cf58"\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": "6625860d.59cf58",\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": 4456,\r
+        "y": 1830.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\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": "3d78f64a.35443a",\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": 4451,\r
+        "y": 1779.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\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": "ce63ac06.8bd44",\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": 3899,\r
+        "y": 1971.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\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": "aa3dffa0.a80a58",\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": 3944,\r
+        "y": 1881.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\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": "de57e045.5d324",\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": 3833,\r
+        "y": 1919.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "63c0978f.6d4218",\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": 2825,\r
+        "y": 2386,\r
+        "z": "cd8c161.e76ffe8",\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": "256b3f1a.6b05f8",\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": 2623,\r
+        "y": 2265,\r
+        "z": "cd8c161.e76ffe8",\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": "8870d8f4.24b26",\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": 2589,\r
+        "y": 2199,\r
+        "z": "cd8c161.e76ffe8",\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": "d2697672.e5142",\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": 4037,\r
+        "y": 1163,\r
+        "z": "cd8c161.e76ffe8",\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": "c950727d.3e1368",\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": 4026,\r
+        "y": 2036.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\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": "2cb22463.a9a10c",\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": 5081,\r
+        "y": 683,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "3536184f.ec7b9"\r
+                "4afa0297.0e92ec",\r
+                "f0a2c2cf.76f7c",\r
+                "78f72703.090dd8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6bc94704.d03de",\r
+        "id": "8e0be879.699538",\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": 2634,\r
+        "y": 339,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "b0648d5.a5c8bf",\r
-                "502adfb6.94aa38",\r
-                "6f6a8b61.fa1ffc",\r
-                "24d9a7fc.8cd3f8"\r
+                "c6b29f32.96c43"\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": "926dbaa7.515a7",\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": 1564.0001220703125,\r
+        "y": 756.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "d439294.8fb6358",\r
-                "5c59ee09.9262d",\r
-                "f82521c.310fee"\r
+                "aa0dd611.39e8d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d439294.8fb6358",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "3fd9bf5c.04e708",\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": 2302,\r
+        "y": 462,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "6bc94704.d03de"\r
+                "2b043a11.143596",\r
+                "d91f0f1e.b29778"\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": "d91f0f1e.b29778",\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": 2612,\r
+        "y": 469,\r
+        "z": "cd8c161.e76ffe8",\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": "2b043a11.143596",\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": 2611,\r
+        "y": 523,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "872414be.4b5f28"\r
+                "53404fc0.a38be"\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": "dd4dd108.7ed66",\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": 1984,\r
+        "y": 706,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "57154704.0e805",\r
+        "id": "aa0dd611.39e8d8",\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": 1741,\r
+        "y": 749,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "404469ae.c8a71"\r
+                "dd4dd108.7ed66",\r
+                "358e179e.99b9f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "85084de0.cfb7d",\r
+        "id": "50481ed8.b97c38",\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": 3170,\r
+        "y": 935,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "4220b72.dbed048",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "bd63f21f.6d97a",\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": 2786,\r
-        "y": 1917,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3213,\r
+        "y": 1000,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "8dfc41f6.4f4f"\r
+                "c1db8d6e.967fa8",\r
+                "ea169f9.1e78f6",\r
+                "b37256ee.6a59a"\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": "d9529ce2.4ca64",\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": 2997,\r
-        "y": 1916,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3210,\r
+        "y": 1844,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "5452c2da.11d5dc"\r
+                "206889a2.ad62d6",\r
+                "eceddf53.8343c8",\r
+                "9f6e2dae.f13bd8"\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": "2cacaea3.bdcdca",\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
-        "outputs": 1,\r
-        "x": 3210.3334426879883,\r
-        "y": 1915.9999389648438,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\r
-            [\r
-                "cb7a504b.d626a"\r
-            ]\r
-        ]\r
+        "x": 3171,\r
+        "y": 1788,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "cb7a504b.d626a",\r
-        "type": "outcome",\r
-        "name": "p-interface",\r
-        "xml": "<outcome value='p-interface'>\n",\r
+        "id": "c6b29f32.96c43",\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": 2927,\r
+        "y": 286,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "8fa1d382.ebbb3"\r
+                "9de6915b.b19d38",\r
+                "e8ebc1b6.d4d34",\r
+                "e6a28fa6.880708"\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": "e8ebc1b6.d4d34",\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": 3200.490966796875,\r
+        "y": 178.573974609375,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "674b1eb0.174b2",\r
-                "f4b1b11a.276db8",\r
-                "485a23dc.9461bc",\r
-                "a54100e4.bdfd8"\r
+                "b49d6ada.3dcaf8"\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": "b49d6ada.3dcaf8",\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": 3378.0625,\r
+        "y": 178.8597412109375,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e6a28fa6.880708",\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": 3196,\r
+        "y": 228,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "e30b52f2.d3bd18",\r
-                "2a8a7b32.c6c034",\r
-                "95395b70.5ce658"\r
+                "d8c17b5e.5b6d48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e30b52f2.d3bd18",\r
+        "id": "d8c17b5e.5b6d48",\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": 3378,\r
+        "y": 228,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9de6915b.b19d38",\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": 3200,\r
+        "y": 279,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "825ff590.84496"\r
+                "54518182.0b0878"\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": "54518182.0b0878",\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": 3380,\r
+        "y": 279,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "ec0be134.e7e7f8"\r
+                "3fd9bf5c.04e708"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2a8a7b32.c6c034",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "62e6aba8.2c101c",\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": 2871,\r
+        "y": 503,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "5f44beb8.f571"\r
+                "ce3eb436.d43a6"\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": "ce3eb436.d43a6",\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": 3151,\r
+        "y": 503,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "6bf39cd9.c078dc",\r
-                "1f241f8d.ded588"\r
+                "926dbaa7.515a7"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1f241f8d.ded588",\r
-        "type": "failure",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "7737916f.9448f",\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": 3356,\r
+        "y": 477,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "711e2d50.cbfec4"\r
+                "9c3216ab.adc2a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6bf39cd9.c078dc",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
+        "id": "9c3216ab.adc2a8",\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": 3532.9998779296875,\r
+        "y": 469.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "d87f8a80.c2edb8"\r
+                "6ca4307d.28f77",\r
+                "15dd1089.866707"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8f149145.0a9d38",\r
+        "id": "6ca4307d.28f77",\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": 3775.9998779296875,\r
+        "y": 426.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\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": "15dd1089.866707",\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": 3764.9998779296875,\r
+        "y": 481.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "af36166d.ada238",\r
+                "d07a4cd5.ac3678",\r
+                "65922e69.a77b18"\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": "65922e69.a77b18",\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": 4018,\r
+        "y": 368,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "8f149145.0a9d38",\r
-                "ed673da0.d5043"\r
+                "1424d407.3a5b34"\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": "1424d407.3a5b34",\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": 4166.571533203125,\r
+        "y": 368.2857666015625,\r
+        "z": "cd8c161.e76ffe8",\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": "e640c3b9.1f16d",\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": 4165.509033203125,\r
+        "y": 412.426025390625,\r
+        "z": "cd8c161.e76ffe8",\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": "d07a4cd5.ac3678",\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": 4006.509033203125,\r
+        "y": 412.426025390625,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "e640c3b9.1f16d"\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": "af36166d.ada238",\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": 4013.509033203125,\r
+        "y": 491.426025390625,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "3b605de0.ec3a52"\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": "3b605de0.ec3a52",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4152.509033203125,\r
+        "y": 491.426025390625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "e719047d.96b1f",\r
+                "36ea936c.0d2d9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e719047d.96b1f",\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": 4358,\r
+        "y": 489,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "674b1eb0.174b2",\r
+        "id": "bcdc8dc3.72d61",\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": 3214,\r
+        "y": 670,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "bf4f2038.8bcc6",\r
-                "816a3f3d.c967d"\r
+                "88359d7a.204d2",\r
+                "184f5811.e1748"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "816a3f3d.c967d",\r
+        "id": "184f5811.e1748",\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": 3437,\r
+        "y": 656,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "bbb7eb1.f117918"\r
+                "65b8cca9.2ac444"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bf4f2038.8bcc6",\r
+        "id": "88359d7a.204d2",\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": 3439,\r
+        "y": 689,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "3fe77c2.445af04"\r
+                "776eb0a5.2fd87"\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": "776eb0a5.2fd87",\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": 3582,\r
+        "y": 686,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "bbb7eb1.f117918",\r
+        "id": "65b8cca9.2ac444",\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": 3585,\r
+        "y": 649,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "2024c7b6.3996d",\r
-                "e7f53e76.5ddf"\r
+                "2397aa3a.45e876",\r
+                "c5b3bcfd.d10508"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e7f53e76.5ddf",\r
+        "id": "2397aa3a.45e876",\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": 3747,\r
+        "y": 644,\r
+        "z": "cd8c161.e76ffe8",\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": "68b3ff1a.0849f",\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": 3228,\r
+        "y": 1506.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "6fc92ae0.49bd04",\r
+                "59f072e2.0b71ec"\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": "59f072e2.0b71ec",\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": 3451,\r
+        "y": 1492.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "a6cfeb0c.ecbd1"\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": "6fc92ae0.49bd04",\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": 3453,\r
+        "y": 1525.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "862c14a1.8553d8"\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": "862c14a1.8553d8",\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": 3596,\r
+        "y": 1522.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\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": "a6cfeb0c.ecbd1",\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": 3599,\r
+        "y": 1485.9998779296875,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "9265a5e9.075d5",\r
+                "3387bb2a.b4fa7c"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "e199c2c7.64ce48",\r
+        "id": "9265a5e9.075d5",\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": 3793,\r
+        "y": 1489,\r
+        "z": "cd8c161.e76ffe8",\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": "4430b278.87d9ac",\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": 1057,\r
+        "y": 194,\r
+        "z": "cd8c161.e76ffe8",\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": "c6965465.aeb14",\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": 3861,\r
+        "y": 1240,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "eee018f4.9abed"\r
+                "d7da00cb.9e6198"\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": "d7da00cb.9e6198",\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": 4067,\r
+        "y": 1240,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "3e41f9e9.7f65b6"\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": "3e41f9e9.7f65b6",\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": 4282.28564453125,\r
+        "y": 1239.82177734375,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "8a860c24.fed68"\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": "8a860c24.fed68",\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": 4489.1171875,\r
+        "y": 1240.34033203125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "377e7af0.ac592e",\r
+                "9af75c5e.34aa1",\r
+                "ad2bdd99.5817d"\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": "377e7af0.ac592e",\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": 4704.1171875,\r
+        "y": 1202.34033203125,\r
+        "z": "cd8c161.e76ffe8",\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": "9af75c5e.34aa1",\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": 4701.1171875,\r
+        "y": 1241.34033203125,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "817cb438.99e4a8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "eee018f4.9abed",\r
-        "type": "success",\r
+        "id": "ad2bdd99.5817d",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4656.6171875,\r
+        "y": 1283.34033203125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "817cb438.99e4a8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4881.6171875,\r
+        "y": 1240.34033203125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "4eac437.160bcbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4eac437.160bcbc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5039.6171875,\r
+        "y": 1240.34033203125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "602a09ac.ab98b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "602a09ac.ab98b8",\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": 5246.6171875,\r
+        "y": 1240.34033203125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "83539382.7676b8",\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": 3858,\r
+        "y": 2109.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "5579dfc7.be27d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5579dfc7.be27d",\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": 4064,\r
+        "y": 2109.0001220703125,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "901fbdc2.3ee4d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "901fbdc2.3ee4d",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4279.28564453125,\r
+        "y": 2108.8218994140625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "2e4b86b2.9caae2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e4b86b2.9caae2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4486.1171875,\r
+        "y": 2109.3404541015625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "bc60382f.b0361",\r
+                "b3a5cd52.d83f2",\r
+                "ee9aa3b3.89ca4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bc60382f.b0361",\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": 4701.1171875,\r
+        "y": 2071.3404541015625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b3a5cd52.d83f2",\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": 4698.1171875,\r
+        "y": 2110.3404541015625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "93e41626.124d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee9aa3b3.89ca4",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4653.6171875,\r
+        "y": 2152.3404541015625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "93e41626.124d78",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4878.6171875,\r
+        "y": 2109.3404541015625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "6ea99290.2aa4d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ea99290.2aa4d4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5036.6171875,\r
+        "y": 2109.3404541015625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "a95428e7.14cad"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a95428e7.14cad",\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": 5243.6171875,\r
+        "y": 2109.3404541015625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c5b3bcfd.d10508",\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": 3774,\r
+        "y": 716,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "8e60f4cf.82fba",\r
+                "2cad2896.c9df4",\r
+                "335dceb2.9bab72"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e60f4cf.82fba",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3969.5001220703125,\r
+        "y": 668,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "7a06334d.9731e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cad2896.c9df4",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3961.5001220703125,\r
+        "y": 723,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "17051d0f.c52e53"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "335dceb2.9bab72",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3966.5001220703125,\r
+        "y": 780,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "328eeb2e.ff715c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "328eeb2e.ff715c",\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": 4118.5001220703125,\r
+        "y": 781,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "17051d0f.c52e53",\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": 4129.5001220703125,\r
+        "y": 726,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7a06334d.9731e4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4113.8824462890625,\r
+        "y": 665.6556701660156,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "89e57d02.e9996"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c9d4f321.66364",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4696,\r
+        "y": 684,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "f8e16adc.55ac68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f8e16adc.55ac68",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4873,\r
+        "y": 676,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "f8c4bbbd.612dc",\r
+                "2cb22463.a9a10c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89e57d02.e9996",\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": 4298,\r
+        "y": 680,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "ffc907a3.634c3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffc907a3.634c3",\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": 4493,\r
+        "y": 680,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "c9d4f321.66364",\r
+                "d8e84e3d.259878"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f8c4bbbd.612dc",\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": 5111,\r
+        "y": 631,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4afa0297.0e92ec",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5291,\r
+        "y": 674,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "ba53a591.c08868"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0a2c2cf.76f7c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5283,\r
+        "y": 729,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "3a442fd2.17b8b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78f72703.090dd8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5288,\r
+        "y": 786,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "3131a765.52f598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3131a765.52f598",\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": 5440,\r
+        "y": 787,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3a442fd2.17b8b8",\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": 5451,\r
+        "y": 732,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ba53a591.c08868",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5435.38232421875,\r
+        "y": 671.6556701660156,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "280c0a87.0e105e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "280c0a87.0e105e",\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": 5650,\r
+        "y": 668,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3387bb2a.b4fa7c",\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": 3815,\r
+        "y": 1557,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "4d61cd16.0abdfc",\r
+                "83252466.aa101",\r
+                "a13a024e.f66fb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d61cd16.0abdfc",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4010.5001220703125,\r
+        "y": 1509,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "45754d39.0b500c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83252466.aa101",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4002.5001220703125,\r
+        "y": 1564,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "7042d1e3.edb1d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a13a024e.f66fb",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4007.5001220703125,\r
+        "y": 1621,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "67ddb18b.39ea7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "67ddb18b.39ea7",\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": 4159.5001220703125,\r
+        "y": 1622,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7042d1e3.edb1d",\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": 4170.5001220703125,\r
+        "y": 1567,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "45754d39.0b500c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4154.8824462890625,\r
+        "y": 1506.6556701660156,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "f1a969ab.50fa7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2a984cd.aa357",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4737,\r
+        "y": 1525,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "3a9f2f8b.e28ed"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a9f2f8b.e28ed",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4914,\r
+        "y": 1517,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "53b7b7ea.79ccb8",\r
+                "abc0256.22d4b58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1a969ab.50fa7",\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": 4339,\r
+        "y": 1521,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "f0d37653.530e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0d37653.530e5",\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": 4534,\r
+        "y": 1521,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "e2a984cd.aa357",\r
+                "19b04051.d11648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abc0256.22d4b58",\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": 5122,\r
+        "y": 1524,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "ee461c39.fc6a98",\r
+                "85f503dc.f3ae58",\r
+                "2cdb4338.f53074"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "53b7b7ea.79ccb8",\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": 5152,\r
+        "y": 1472,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ee461c39.fc6a98",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5332,\r
+        "y": 1515,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "bc865963.b711a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "85f503dc.f3ae58",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5324,\r
+        "y": 1570,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "f79338ab.92167"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cdb4338.f53074",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5329,\r
+        "y": 1627,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "bfc5b714.cbe288"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfc5b714.cbe288",\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": 5481,\r
+        "y": 1628,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f79338ab.92167",\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": 5492,\r
+        "y": 1573,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bc865963.b711a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5476.38232421875,\r
+        "y": 1512.6556701660156,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "6cd4d323.819c7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6cd4d323.819c7c",\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": 5691,\r
+        "y": 1509,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "53404fc0.a38be",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2775,\r
+        "y": 449,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "62e6aba8.2c101c",\r
+                "9754a6dd.67f03"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9754a6dd.67f03",\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": 3056,\r
+        "y": 405,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "a377e213.201cf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a377e213.201cf8",\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": 3318,\r
+        "y": 405,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "7737916f.9448f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8e84e3d.259878",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4699,\r
+        "y": 758,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "3db61f55.c940b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3db61f55.c940b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4876,\r
+        "y": 750,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "c68e6afb.37cad8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c68e6afb.37cad8",\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": 5111,\r
+        "y": 874,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "70ffeb00.3c6c1c",\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": 5151,\r
+        "y": 1714,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ce30230.018a56",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4916,\r
+        "y": 1590,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "70ffeb00.3c6c1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19b04051.d11648",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4739,\r
+        "y": 1598,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "ce30230.018a56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "36ea936c.0d2d9c",\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": 4357,\r
+        "y": 535,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "39c2d67.9f1a22a",\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": 2713,\r
+        "y": 669,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6aa9ec.33fa46",\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": 2694,\r
+        "y": 719,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b75dc28.79bec4",\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": 1955,\r
+        "y": 253,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "42ce53ea.f9d9f4",\r
+                "fea2a65.c94cf58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42ce53ea.f9d9f4",\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": 2235,\r
+        "y": 191,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72dba682.c63c9",\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": 2604,\r
+        "y": 2318,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1b6d1c66.bc0bb4",\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": 2594,\r
+        "y": 3927,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6c32ab13.072304",\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": 2651,\r
+        "y": 764,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "35f98555.2ceed2",\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": 2639,\r
+        "y": 2494,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "5f7bc0b4.b38de8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3340e53d.b2b492",\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='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": 3768,\r
+        "y": 2916,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "b711db38.ba184"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4bdc0f0f.14fc9",\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": 4340.5,\r
+        "y": 3020,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b711db38.ba184",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4074,\r
+        "y": 2915,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "b22521de.818118"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b22521de.818118",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4283.5,\r
+        "y": 2915.25390625,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "585cd143.7d2b8",\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": 3801,\r
+        "y": 2395,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f49c0fd7.2e7c08",\r
+        "type": "switchNode",\r
+        "name": "switch otnidx == 0",\r
+        "xml": "<switch test='`$otnidx == 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3677,\r
+        "y": 3033,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "fed6bc26.f071a8",\r
+                "1d37d7ca.3763f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fed6bc26.f071a8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3860,\r
+        "y": 3033,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "73494a81.45e24c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d37d7ca.3763f",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3685,\r
+        "y": 3180,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "d3242d0f.9401e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e99682a.c4f64",\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": 4026,\r
+        "y": 3261,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "eb362179.9d3068",\r
+                "72ad90f5.140788"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb362179.9d3068",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4211,\r
+        "y": 3262,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "9791b470.15bff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72ad90f5.140788",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4230,\r
+        "y": 3528,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "aff1f53d.8faa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c78f87c4.9bed48",\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": 4641,\r
+        "y": 3263,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7d2c7f0.8e25f8",\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": 4715,\r
+        "y": 3561,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d6b059f.4c3bfa",\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": 4651,\r
+        "y": 3612,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d6ca865.871a5",\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": 4780,\r
+        "y": 3662,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd227f8a.a8638",\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": 4790,\r
+        "y": 3505,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bfa230df.6f6f98",\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": 4748,\r
+        "y": 3721,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "aff1f53d.8faa",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4387,\r
+        "y": 3529,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "d7d2c7f0.8e25f8",\r
+                "1d6b059f.4c3bfa",\r
+                "3d6ca865.871a5",\r
+                "bfa230df.6f6f98",\r
+                "12522f2b.6fc8b1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f7bc0b4.b38de8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2908,\r
+        "y": 2494,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "585cd143.7d2b8",\r
+                "3340e53d.b2b492",\r
+                "f49c0fd7.2e7c08",\r
+                "f42a2589.31a0b",\r
+                "cc8174a8.50b7f",\r
+                "90db4521.56089",\r
+                "7bd1d477.e03354"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e1b8da0.7824b4",\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": 4265,\r
+        "y": 3077,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5449eb52.31f6ec",\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": 4318,\r
+        "y": 3121,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "1830f22c.565b16",\r
+                "d371e563.9b53a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d371e563.9b53a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4589,\r
+        "y": 3106,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "e029f2f6.ad875"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1830f22c.565b16",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4587.000213623047,\r
+        "y": 3163.99990940094,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "adfa6667.8c9cb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e029f2f6.ad875",\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": 4729.000247955322,\r
+        "y": 3106.0000009536743,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "adfa6667.8c9cb",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4735.02725982666,\r
+        "y": 3154.745394706726,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "73494a81.45e24c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4001,\r
+        "y": 3023,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "4bdc0f0f.14fc9",\r
+                "5449eb52.31f6ec",\r
+                "4e1b8da0.7824b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9791b470.15bff8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4345,\r
+        "y": 3263,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "c78f87c4.9bed48",\r
+                "96e361f0.0cb568",\r
+                "e43c5196.95971"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e43c5196.95971",\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": 4565,\r
+        "y": 3307,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "96e361f0.0cb568",\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": 4616,\r
+        "y": 3351,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "d02e29cf.263e8",\r
+                "ecba049c.afd758"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ecba049c.afd758",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4879,\r
+        "y": 3331,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "335f23f9.119f0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d02e29cf.263e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4880.000213623047,\r
+        "y": 3381.99990940094,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "49ab66fd.a6d9f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "335f23f9.119f0c",\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": 5019.000247955322,\r
+        "y": 3331.0000009536743,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "49ab66fd.a6d9f8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5025.02725982666,\r
+        "y": 3379.745394706726,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "12522f2b.6fc8b1",\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": 4662,\r
+        "y": 3781,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "48979781.1681f8",\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": 1981,\r
+        "y": 4128,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "c2f0d7a5.dddd68",\r
+                "39032723.2690f8",\r
+                "52e0bd76.c6817c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2f0d7a5.dddd68",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2169,\r
+        "y": 4141,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "ab5cddb1.22da4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39032723.2690f8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2169.490966796875,\r
+        "y": 4186.574035644531,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "14fe4895.b40197"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "52e0bd76.c6817c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2167,\r
+        "y": 4230,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "b5248481.e522a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab5cddb1.22da4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2342,\r
+        "y": 4139,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "4470cae1.fbd614"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14fe4895.b40197",\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": 2332.0623779296875,\r
+        "y": 4186.859771728516,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b5248481.e522a",\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": 2334,\r
+        "y": 4229,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5d2f9da2.d38694",\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": 1970,\r
+        "y": 4319,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "8dfa636a.7429d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e79af240.ca6e5",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2780,\r
+        "y": 4319,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "6c6212ef.f90554"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da3d1785.252e3",\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": 2552,\r
+        "y": 4319,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "e79af240.ca6e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14ccf193.a7ba36",\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": 3672,\r
+        "y": 4086,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3ba4980a.a7808",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
+        "comments": "",\r
+        "x": 3974,\r
+        "y": 3212,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d3242d0f.9401e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3809,\r
+        "y": 3187,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "3ba4980a.a7808",\r
+                "e99682a.c4f64"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a26db7da.175a4",\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": 1929,\r
+        "y": 203,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4470cae1.fbd614",\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": 2571,\r
+        "y": 4140,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "af51805a.3f6e48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af51805a.3f6e48",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2786,\r
+        "y": 4141,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "b29ba493.8896c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de53bb83.199eb",\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": 4239,\r
+        "y": 4061,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "204c9a7d.7d28b6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4aa9ee27.313a08",\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": 3705,\r
+        "y": 4141,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "2d961aee.1b3a76",\r
+                "3325a435.f57dbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d961aee.1b3a76",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3901,\r
+        "y": 4111,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "78c69440.64f1a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3325a435.f57dbc",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3902,\r
+        "y": 4182,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "fefe3e36.023678"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78c69440.64f1a4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4052,\r
+        "y": 4109,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "de53bb83.199eb",\r
+                "8df94468.3b3aa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "204c9a7d.7d28b6",\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": 4530,\r
+        "y": 4061,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "c41481ab.88bea8",\r
+                "e1b07d6e.872148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c41481ab.88bea8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4805,\r
+        "y": 4030,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "f1ff9d18.303e98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e1b07d6e.872148",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4806,\r
+        "y": 4101,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "14131c89.49f9f3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1ff9d18.303e98",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4956,\r
+        "y": 4028,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "40d1e81e.6cc88",\r
+                "dbbf7f90.5aa4c8",\r
+                "83374978.c1c35",\r
+                "d7033d3e.83e278",\r
+                "8b158b61.9a9f58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40d1e81e.6cc88",\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": 5144,\r
+        "y": 3988,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dbbf7f90.5aa4c8",\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": 5216,\r
+        "y": 4033,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b158b61.9a9f58",\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": 5131,\r
+        "y": 4160,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d7033d3e.83e278",\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": 5152,\r
+        "y": 4096,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fefe3e36.023678",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4054,\r
+        "y": 4182,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "8b5a5937.7b14e8",\r
+                "738e0247.d8b784"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b5a5937.7b14e8",\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": 4309,\r
+        "y": 4175,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "738e0247.d8b784",\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": 4237,\r
+        "y": 4222,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8df94468.3b3aa8",\r
+        "type": "switchNode",\r
+        "name": "switch found?",\r
+        "xml": "<switch test='`$found`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4230,\r
+        "y": 4106,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "df11cc3e.1263f",\r
+                "1fe91094.d80647"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df11cc3e.1263f",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4390,\r
+        "y": 4098,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "6014caa7.dd1974"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1fe91094.d80647",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4388,\r
+        "y": 4135,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "4b7b9538.9e1144"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6014caa7.dd1974",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4515,\r
+        "y": 4098,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4cf80fc.6110b8",\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": 4822,\r
+        "y": 4156,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b7b9538.9e1144",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4548,\r
+        "y": 4143,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "f4cf80fc.6110b8",\r
+                "cb01b96d.902da8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb01b96d.902da8",\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": 4739,\r
+        "y": 4202,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "14131c89.49f9f3",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4939,\r
+        "y": 4100,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "83374978.c1c35",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 5110,\r
+        "y": 4227,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f42a2589.31a0b",\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": 3515,\r
+        "y": 2485,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "ac6a7600.1391a8",\r
+                "6c99c1a3.b2c848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac6a7600.1391a8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3881,\r
+        "y": 2446,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "c094d1a4.3a348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c99c1a3.b2c848",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3882,\r
+        "y": 2492,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "11e69cf.d047563"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c094d1a4.3a348",\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": 4095,\r
+        "y": 2445,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "11e69cf.d047563",\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": 4093,\r
+        "y": 2490,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6c6212ef.f90554",\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": 3033,\r
+        "y": 4317,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a54ce659.29b108",\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": 2618,\r
+        "y": 4425,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "3fa26ce7.7e0224",\r
+                "b2b0e72c.a11478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2b0e72c.a11478",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2901,\r
+        "y": 4405,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "fa1f56ce.f832c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3fa26ce7.7e0224",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2902.000213623047,\r
+        "y": 4455.99990940094,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "50896aad.7e40ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa1f56ce.f832c8",\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": 3041.0002479553223,\r
+        "y": 4405.000000953674,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "50896aad.7e40ec",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3047.02725982666,\r
+        "y": 4453.745394706726,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc8174a8.50b7f",\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": 3691,\r
+        "y": 2559,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "90db4521.56089",\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": 3735,\r
+        "y": 2607,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "3240cb0e.b7a8d4",\r
+                "f04379f7.8df68",\r
+                "3ab1dbdc.5ba7f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3240cb0e.b7a8d4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3947.5,\r
+        "y": 2554,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "e8a8f72b.6c9a08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f04379f7.8df68",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3959.5,\r
+        "y": 2604,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "b12e923.fc82e7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ab1dbdc.5ba7f4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3950.5,\r
+        "y": 2659,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "582f59ae.92f2a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "582f59ae.92f2a8",\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": 4095.5,\r
+        "y": 2658,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b12e923.fc82e7",\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": 4106.5,\r
+        "y": 2601,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e8a8f72b.6c9a08",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4072.8824462890625,\r
+        "y": 2547.6556701660156,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "212a31bf.dceac6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "935dfeb6.9be7f8",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4632,\r
+        "y": 2566,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "1328892f.88f617"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1328892f.88f617",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4809,\r
+        "y": 2558,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "6a8226d0.94ebf",\r
+                "3a8b4f5e.be2aa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "212a31bf.dceac6",\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": 4234,\r
+        "y": 2562,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "384efd0c.a6d9aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "384efd0c.a6d9aa",\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": 4429,\r
+        "y": 2562,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "935dfeb6.9be7f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a8b4f5e.be2aa8",\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": 5017,\r
+        "y": 2565,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "a2f18412.fa34",\r
+                "938b13a9.db22e",\r
+                "e46fd8a5.7a34e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a8226d0.94ebf",\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": 5047,\r
+        "y": 2513,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a2f18412.fa34",\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": 5227,\r
+        "y": 2556,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "dfc55645.4078e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "938b13a9.db22e",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5219,\r
+        "y": 2611,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "ad8534e.8f07fc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e46fd8a5.7a34e8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5224,\r
+        "y": 2668,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "60c98c50.d9d324"\r
+                "292bb9fe.d0f886"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "60c98c50.d9d324",\r
+        "id": "292bb9fe.d0f886",\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": 5376,\r
+        "y": 2669,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ad8534e.8f07fc8",\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": 5387,\r
+        "y": 2614,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dfc55645.4078e",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2923.500244140625,\r
-        "y": 2168.25390625,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5371.38232421875,\r
+        "y": 2553.6556701660156,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "295d998d.b4f986"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "99e923c8.5700b8",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: do we need this relationship?",\r
-        "info": "",\r
+        "id": "295d998d.b4f986",\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": 3171,\r
-        "y": 2108,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5586,\r
+        "y": 2550,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "debe7c1a.c25a08",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: put proper values",\r
-        "info": "",\r
+        "id": "8dfa636a.7429d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2202,\r
+        "y": 4317,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "da3d1785.252e3",\r
+                "a54ce659.29b108"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7bd1d477.e03354",\r
+        "type": "switchNode",\r
+        "name": "switch dmnsidx == 0 (domainA)",\r
+        "xml": "<switch test='`$otnidx == 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3705,\r
+        "y": 2776,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "3ed7d0cf.bd363",\r
+                "60e3c11b.60b2b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ed7d0cf.bd363",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3906,\r
+        "y": 2774,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "c5282b2e.c25f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7fc9a02.f9a08e",\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": 2409,\r
-        "y": 2130,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4187,\r
+        "y": 2724,\r
+        "z": "cd8c161.e76ffe8",\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": "6fcb3e30.7095c8",\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": 2465,\r
-        "y": 2348,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4123,\r
+        "y": 2825,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "de2c330e.390d88"\r
+                "65a08e4c.a1dc",\r
+                "640adf38.eff8b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ff4306de.40969",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: do we need this relationship?",\r
-        "info": "",\r
+        "id": "65a08e4c.a1dc",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4353,\r
+        "y": 2821,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "4413ca18.7ca70c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8da31065.a87e4",\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": 3153,\r
-        "y": 2288,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4690,\r
+        "y": 2765,\r
+        "z": "cd8c161.e76ffe8",\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": "60e3c11b.60b2b8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3116.5,\r
-        "y": 2329,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3906,\r
+        "y": 2823,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "6fcb3e30.7095c8"\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": "640adf38.eff8b",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4354,\r
+        "y": 2867,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "7faf9acd.559b34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7faf9acd.559b34",\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": 4568,\r
+        "y": 2867,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9723f206.45f868",\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": 4466,\r
+        "y": 2916,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b29ba493.8896c8",\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": 3118.5,\r
-        "y": 2368,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3030,\r
+        "y": 4140,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "174edd69.713c5b",\r
+                "af581154.4e753"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "174edd69.713c5b",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3247,\r
+        "y": 4119,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "53925b1.87893a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af581154.4e753",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3247,\r
+        "y": 4168,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "82297458.0d3c48",\r
+        "id": "53925b1.87893a4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3415,\r
+        "y": 4119,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": [\r
+            [\r
+                "14ccf193.a7ba36",\r
+                "4aa9ee27.313a08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f0ddb5a.e806c4",\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": 4242,\r
+        "y": 2771,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c5282b2e.c25f08",\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": 4030,\r
+        "y": 2765,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
-            []\r
+            [\r
+                "2f0ddb5a.e806c4"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "de2c330e.390d88",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "60f94c1c.9e2504",\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": 4642,\r
+        "y": 2813,\r
+        "z": "cd8c161.e76ffe8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4413ca18.7ca70c",\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": 4486,\r
+        "y": 2797,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             [\r
-                "82297458.0d3c48"\r
+                "8da31065.a87e4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8b5978da.cf55b8",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: put proper values",\r
-        "info": "",\r
+        "id": "93c183ce.0a9ed8",\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/v21/network/pnfs?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": 1972,\r
+        "y": 62,\r
+        "z": "cd8c161.e76ffe8",\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": "5d8a5506.b8ac8c",\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/v21/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": 1984,\r
+        "y": 103,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ed749360.08754",\r
+        "id": "307d8c13.43fe3c",\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": 2008,\r
+        "y": 25,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "97832dc3.63313",\r
+        "id": "86333e24.199f7",\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": 1929,\r
+        "y": 149,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f27e6517.ff7968",\r
+        "id": "63cf541.20dacac",\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": 5071,\r
-        "y": 1523,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2615,\r
+        "y": 2432,\r
+        "z": "cd8c161.e76ffe8",\r
         "wires": [\r
             []\r
         ]\r