Bug fixing to support more than two domains for Transport Slicing.
[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..158e817 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "c7ab28db.5fa9f8",\r
+        "id": "df3491bc.625428",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 108,\r
-        "y": 69,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 128,\r
+        "y": 113,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "b4f2bafa.fe95a"\r
+                "f93a4fe6.087538"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b4f2bafa.fe95a",\r
+        "id": "f93a4fe6.087538",\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": 412.2856903076172,\r
+        "y": 174.23810863494873,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "5dd33274.e7d4cc"\r
+                "3a78d95d.5e3c5e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5dd33274.e7d4cc",\r
+        "id": "3a78d95d.5e3c5e",\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": 418.42860412597656,\r
+        "y": 259.0000305175781,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "28d22516.fc87aa"\r
+                "35ecb5b7.3f1b02"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "28d22516.fc87aa",\r
+        "id": "35ecb5b7.3f1b02",\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": 788.238037109375,\r
+        "y": 283.66668701171875,\r
+        "z": "b31344e1.6b9228",\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
+                "a99ea7b2.f5e618",\r
+                "183025fe.418fa2",\r
+                "d352d101.d008a8"\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": "a99ea7b2.f5e618",\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": 1089.571533203125,\r
+        "y": 554.5969848632812,\r
+        "z": "b31344e1.6b9228",\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": "183025fe.418fa2",\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": 1111,\r
+        "y": 257,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "47f816cc.c0286",\r
+                "318d2442.efdd34",\r
+                "4265fd48.9eb024"\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": "47f816cc.c0286",\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": 1336,\r
+        "y": 115,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "45cce5a8.451aac",\r
-                "48e9b931.dabab8"\r
+                "6fd78e9c.961b2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "45cce5a8.451aac",\r
-        "type": "other",\r
-        "name": "NULL",\r
-        "xml": "<outcome value=''>\n",\r
+        "id": "318d2442.efdd34",\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": 1331.490966796875,\r
+        "y": 184.57403564453125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "6299edd9.775e24"\r
+                "aa8b68cf.4936c"\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": "4265fd48.9eb024",\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": 1320,\r
+        "y": 231,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "ea9381a6.8a9938"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "48e9b931.dabab8",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "6fd78e9c.961b2",\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": 1575,\r
+        "y": 112,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "777ae1e9.6bbca"\r
+                "a9515923.c68db8",\r
+                "3b6a0136.f8dee6"\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": "aa8b68cf.4936c",\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": 1485.0623779296875,\r
+        "y": 187.85977172851562,\r
+        "z": "b31344e1.6b9228",\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": "ea9381a6.8a9938",\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": 1489,\r
+        "y": 232,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "777ae1e9.6bbca",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "a9515923.c68db8",\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": 1788,\r
+        "y": 136,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "6abef48d.2c4e6c",\r
-                "8a52abb7.25d258"\r
+                "8d77a4c9.47348"\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": "3b6a0136.f8dee6",\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": 1790,\r
+        "y": 76,\r
+        "z": "b31344e1.6b9228",\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": "2b9472b2.e91dbe",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1090,\r
+        "y": 145,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8d77a4c9.47348",\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": 1773,\r
+        "y": 224,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "19c5d87f.a3e7b"\r
+                "2dfd81e1.a251ae",\r
+                "d0adb7e4.435f98",\r
+                "bf30e0be.23b998",\r
+                "bc1d9c19.8a817"\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": "4b515bec.7b07fc",\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": 2636,\r
+        "y": 824,\r
+        "z": "b31344e1.6b9228",\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": "1fb3da4d.f9823e",\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": 2637,\r
+        "y": 879,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "efeb4f56.d9cc7",\r
+        "id": "1fed210d.6adb97",\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": 2259,\r
+        "y": 275,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "1d390c60.f37264",\r
+                "828d1344.2eeb18",\r
+                "35c0fff4.63034"\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": "1d390c60.f37264",\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": 2475,\r
+        "y": 342,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "1dfc0585.305702"\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": "828d1344.2eeb18",\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": 2475.490966796875,\r
+        "y": 241.573974609375,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "899f4256.fc61"\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": "35c0fff4.63034",\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": 2471,\r
+        "y": 291,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "5b10d117.cfe6d8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "8b2c577f.aa706",\r
-        "type": "comment",\r
-        "name": "TODO: change AAI models",\r
-        "info": "",\r
+        "id": "899f4256.fc61",\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": 2653.0625,\r
+        "y": 241.8597412109375,\r
+        "z": "b31344e1.6b9228",\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": "5b10d117.cfe6d8",\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": 2653,\r
+        "y": 291,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e459bf6d.9da9d8",\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": 1994,\r
+        "y": 764,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "f5d3816e.ab2828",\r
+                "4956f23f.0bb47c",\r
+                "fe0f59f6.d97868"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "889ccd2d.4a8fe8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "f5d3816e.ab2828",\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": 2285.490966796875,\r
+        "y": 742.573974609375,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "d58f334a.ba5338",\r
-                "e9083033.2291c8"\r
+                "9822556a.f611a"\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": "4956f23f.0bb47c",\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": 2274,\r
+        "y": 787,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "889ccd2d.4a8fe8"\r
+                "6c100a4d.9d821c"\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": "9822556a.f611a",\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": 2434.0625,\r
+        "y": 742.8597412109375,\r
+        "z": "b31344e1.6b9228",\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": "6c100a4d.9d821c",\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": 2433,\r
+        "y": 787,\r
+        "z": "b31344e1.6b9228",\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": "fe0f59f6.d97868",\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": 2281,\r
+        "y": 866,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "ab7df566.3e05d"\r
+                "6d1afb47.ab3814"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ab7df566.3e05d",\r
+        "id": "6d1afb47.ab3814",\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": 2420,\r
+        "y": 866,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "352dca87.707f0e"\r
+                "4b515bec.7b07fc",\r
+                "1fb3da4d.f9823e",\r
+                "97eccb48.84f6c",\r
+                "c57ab47a.d333d8",\r
+                "10cbf4f3.49fe3b",\r
+                "49d3005f.62282",\r
+                "1f03402a.5db7",\r
+                "56710693.e24068",\r
+                "84b0870f.4db1e",\r
+                "3323f682.f60c3a",\r
+                "13ac3dbd.1f366a"\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": "97eccb48.84f6c",\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": 2649,\r
+        "y": 947,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "590b3579.cf8c54"\r
+                "8c8a4891.ac867",\r
+                "8506ad3d.b7e4c",\r
+                "a3b6635c.c539f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "590b3579.cf8c54",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "c57ab47a.d333d8",\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": 2628,\r
+        "y": 1548.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "63083064.a23a18"\r
+                "506562cd.b8f74c",\r
+                "8d73f82f.8988f8",\r
+                "24728d1d.df92ba"\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": "8c8a4891.ac867",\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": 2850,\r
+        "y": 831,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "40f9d3c1.86e1ec"\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": "8506ad3d.b7e4c",\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": 2845.509033203125,\r
+        "y": 880.426025390625,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "5d430eb5.2b236",\r
-                "4db06806.f53418",\r
-                "95ae5b5a.c22a4"\r
+                "6f975963.47cb7"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5d430eb5.2b236",\r
+        "id": "a3b6635c.c539f8",\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": 2849.509033203125,\r
+        "y": 931.426025390625,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "53896828.686ee8"\r
+                "61bb235e.2775f4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4db06806.f53418",\r
+        "id": "40f9d3c1.86e1ec",\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": 2998.571533203125,\r
+        "y": 830.2857666015625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6f975963.47cb7",\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": 2988.509033203125,\r
+        "y": 880.426025390625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "506562cd.b8f74c",\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": 2851,\r
+        "y": 1518.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "2be30b71.aee02c"\r
+                "7f769faa.864248"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "95ae5b5a.c22a4",\r
+        "id": "8d73f82f.8988f8",\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": 2846.509033203125,\r
+        "y": 1568.4259033203125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "ecad310e.0677"\r
+                "cc9ee8f2.77fda8"\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": "24728d1d.df92ba",\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": 2850.509033203125,\r
+        "y": 1619.4259033203125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "a4b1136f.62ed08",\r
-                "46b85697.e69b9"\r
+                "8a29f509.d58fe8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2be30b71.aee02c",\r
+        "id": "7f769faa.864248",\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": 2999.571533203125,\r
+        "y": 1518.28564453125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ecad310e.0677",\r
+        "id": "cc9ee8f2.77fda8",\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": 2989.509033203125,\r
+        "y": 1568.4259033203125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a4b1136f.62ed08",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
-        "comments": "",\r
+        "id": "b720785b.7c7",\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": 3663.66650390625,\r
+        "y": 975,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "cb1b8f06.47ef2"\r
+                "f3775fbc.163688",\r
+                "77e2870c.e28a38",\r
+                "ac8bf04e.ff247",\r
+                "7c2c78d5.f4945",\r
+                "bb95643a.1dafd8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "46b85697.e69b9",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "669f51ab.4dcf7",\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": 3491,\r
+        "y": 976,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "b720785b.7c7"\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": "bfa60b88.954ac8",\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": 3500.490966796875,\r
+        "y": 1018.5740356445312,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "643d2cea.4605b4",\r
-                "7caeb522.7a961c"\r
+                "f78f70ff.0f2c38"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "643d2cea.4605b4",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "83a912b8.5c33b",\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": 3489,\r
+        "y": 1065,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "152d2d7d.5e3893"\r
+                "d7142401.9476c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7caeb522.7a961c",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1467,\r
-        "y": 1354,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "id": "f78f70ff.0f2c38",\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": 3654.0623779296875,\r
+        "y": 1021.8597717285156,\r
+        "z": "b31344e1.6b9228",\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": "d7142401.9476c",\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": 3658,\r
+        "y": 1066,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "cb1b8f06.47ef2",\r
+        "id": "61bb235e.2775f4",\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": 3011,\r
+        "y": 933,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "a019135.4f8ccf",\r
-                "e575462e.50d5b"\r
+                "4914fb6.031ad84",\r
+                "4835023e.e8e8cc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "152d2d7d.5e3893",\r
+        "id": "8a29f509.d58fe8",\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": 3001,\r
+        "y": 1620.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "814386d7.12d29",\r
-                "fecafec9.0d1c5"\r
+                "33a198b5.ec1ae",\r
+                "684cf1ab.a79f48"\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": "d9ace0a0.b4a76",\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": 3631.66650390625,\r
+        "y": 1811,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "9038c1c3.67b67",\r
-                "d5fe3cc1.f1ab58",\r
-                "3a3c5476.f230dc"\r
+                "a2003991.03fd4",\r
+                "52dfb8b2.652278",\r
+                "22f952b9.882086",\r
+                "eb4dde28.2b2138",\r
+                "60f3b421.08732c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9038c1c3.67b67",\r
+        "id": "cc45c64e.73066",\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": 3459,\r
+        "y": 1812,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "457beb03.a98104"\r
+                "d9ace0a0.b4a76"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d5fe3cc1.f1ab58",\r
+        "id": "33759aa.996c566",\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": 3468.490966796875,\r
+        "y": 1854.5740356445312,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "d1ddfc7b.e8b11"\r
+                "28b2902a.f0c46"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3a3c5476.f230dc",\r
+        "id": "fff61c46.59cf58",\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": 3457,\r
+        "y": 1901,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "5d76fda0.b3386c"\r
+                "c4e6ae73.bdead"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d1ddfc7b.e8b11",\r
+        "id": "28b2902a.f0c46",\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": 3622.0623779296875,\r
+        "y": 1857.8597717285156,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5d76fda0.b3386c",\r
+        "id": "c4e6ae73.bdead",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 2367,\r
-        "y": 1060,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "9b0fc370.e7b168",\r
-        "type": "comment",\r
-        "name": "Question?",\r
-        "info": "Can we assume ....logical-links[0] would have \nthe whole object or it is only a pointer to \nlogical-link name in AAI?\nIf only name, then we have to retrieve it from \nAAI",\r
-        "comments": "",\r
-        "x": 1837,\r
-        "y": 1325,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3626,\r
+        "y": 1902,\r
+        "z": "b31344e1.6b9228",\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": "f3775fbc.163688",\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": 3928,\r
+        "y": 959,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "c3decf76.de238",\r
-                "cbe9f0d3.03cae",\r
-                "f1d67d6b.7b18f8"\r
+                "17df8b10.734cad",\r
+                "e9e72181.7c2d78"\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": "e9e72181.7c2d78",\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": 4151,\r
+        "y": 914,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "df9ad0cd.393e9"\r
+                "c8b8d5f9.b22ca8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f1d67d6b.7b18f8",\r
+        "id": "17df8b10.734cad",\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": 4153,\r
+        "y": 978,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "387801a6.c55046"\r
+                "59177303.95ce1c"\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": "e95ea736.29045",\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": 4486,\r
+        "y": 869,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "387801a6.c55046",\r
+        "id": "59177303.95ce1c",\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": 4315,\r
+        "y": 974,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c3decf76.de238",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
+        "id": "c8b8d5f9.b22ca8",\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": 4316,\r
+        "y": 911,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "85643202.66a9f8"\r
+                "f09148e0.5a878",\r
+                "e95ea736.29045"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "85643202.66a9f8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "f09148e0.5a878",\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": 4487,\r
+        "y": 977,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c408fec.1a81a",\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": 4488,\r
+        "y": 926,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ac8bf04e.ff247",\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='`$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
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2191,\r
-        "y": 1490,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3930,\r
+        "y": 1118,\r
+        "z": "b31344e1.6b9228",\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": "77e2870c.e28a38",\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": 3975,\r
+        "y": 1028,\r
+        "z": "b31344e1.6b9228",\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": "936488c4.d6b8e",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
+        "comments": "",\r
+        "x": 3864,\r
+        "y": 1069,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a2003991.03fd4",\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": 3918,\r
+        "y": 1815.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "cac7dfa0.02314",\r
-                "cd4a18c4.24c5e8",\r
-                "b2a92c1e.f10cd8"\r
+                "f2d8cb03.1eed48",\r
+                "6e32cf18.31944"\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": "6e32cf18.31944",\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": 4141,\r
+        "y": 1770.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "6df2f8ce.f4df28"\r
+                "201ffc86.8db20c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "271678cd.b7a718",\r
+        "id": "f2d8cb03.1eed48",\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": 4143,\r
+        "y": 1834.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "a0e96fb5.85588"\r
+                "b29b2d4c.c3046"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fda0cd5e.c574c8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "2386e717.060b18",\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": 4476,\r
+        "y": 1728.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b29b2d4c.c3046",\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": 4302,\r
+        "y": 1853.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "201ffc86.8db20c",\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": 4306,\r
+        "y": 1767.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "57154704.0e805"\r
+                "2386e717.060b18",\r
+                "c71df80d.cfbb08"\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": "c71df80d.cfbb08",\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": 4477,\r
+        "y": 1833.0001220703125,\r
+        "z": "b31344e1.6b9228",\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": "e385afea.eec45",\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": 4472,\r
+        "y": 1782.0001220703125,\r
+        "z": "b31344e1.6b9228",\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": "22f952b9.882086",\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='`$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
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2636,\r
-        "y": 1815,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3920,\r
+        "y": 1974.0001220703125,\r
+        "z": "b31344e1.6b9228",\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": "52dfb8b2.652278",\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": 3965,\r
+        "y": 1884.0001220703125,\r
+        "z": "b31344e1.6b9228",\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": "4961c905.9d4bb",\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": 3854,\r
+        "y": 1922.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "10cbf4f3.49fe3b",\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": 2848,\r
+        "y": 2278,\r
+        "z": "b31344e1.6b9228",\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": "49d3005f.62282",\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": 2642,\r
+        "y": 2179,\r
+        "z": "b31344e1.6b9228",\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": "9f05df83.0d8378",\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": 2616,\r
+        "y": 2132,\r
+        "z": "b31344e1.6b9228",\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": "7c2c78d5.f4945",\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": 4058,\r
+        "y": 1166,\r
+        "z": "b31344e1.6b9228",\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": "eb4dde28.2b2138",\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": 4047,\r
+        "y": 2039.0001220703125,\r
+        "z": "b31344e1.6b9228",\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": "2d08c6.2cc1e73a",\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": 5102,\r
+        "y": 686,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "3536184f.ec7b9"\r
+                "fe7f5526.b757d",\r
+                "ace94fc7.113e6",\r
+                "42739782.dc6168"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6bc94704.d03de",\r
+        "id": "1dfc0585.305702",\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": 2655,\r
+        "y": 342,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "b0648d5.a5c8bf",\r
-                "502adfb6.94aa38",\r
-                "6f6a8b61.fa1ffc",\r
-                "24d9a7fc.8cd3f8"\r
+                "8622621b.5191"\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": "7de95d04.4c5e84",\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": 1585.0001220703125,\r
+        "y": 759.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "d439294.8fb6358",\r
-                "5c59ee09.9262d",\r
-                "f82521c.310fee"\r
+                "38efe599.5c2462"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d439294.8fb6358",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "a0ff94f7.a05cd8",\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": 2323,\r
+        "y": 465,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "6bc94704.d03de"\r
+                "8055d128.93cf8",\r
+                "a4e55956.340f1"\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": "a4e55956.340f1",\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": 2633,\r
+        "y": 472,\r
+        "z": "b31344e1.6b9228",\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": "8055d128.93cf8",\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": 2632,\r
+        "y": 526,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "872414be.4b5f28"\r
+                "33bd7ebe.34c502"\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": "2ecd1033.1e79d8",\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": 2005,\r
+        "y": 709,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "57154704.0e805",\r
+        "id": "38efe599.5c2462",\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": 1762,\r
+        "y": 752,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "404469ae.c8a71"\r
+                "2ecd1033.1e79d8",\r
+                "e459bf6d.9da9d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "85084de0.cfb7d",\r
+        "id": "f61b9c.2378ec68",\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": 3191,\r
+        "y": 938,\r
+        "z": "b31344e1.6b9228",\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": "4914fb6.031ad84",\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": 3234,\r
+        "y": 1003,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "8dfc41f6.4f4f"\r
+                "669f51ab.4dcf7",\r
+                "bfa60b88.954ac8",\r
+                "83a912b8.5c33b"\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": "33a198b5.ec1ae",\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": 3231,\r
+        "y": 1847,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "5452c2da.11d5dc"\r
+                "cc45c64e.73066",\r
+                "33759aa.996c566",\r
+                "fff61c46.59cf58"\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": "13eb2671.9e12f2",\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": 3192,\r
+        "y": 1791,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8622621b.5191",\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": 3210.3334426879883,\r
-        "y": 1915.9999389648438,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2948,\r
+        "y": 289,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "cb7a504b.d626a"\r
+                "774c27b3.d5b958",\r
+                "314f18ee.d0e28",\r
+                "177a6858.e45f48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cb7a504b.d626a",\r
-        "type": "outcome",\r
-        "name": "p-interface",\r
-        "xml": "<outcome value='p-interface'>\n",\r
+        "id": "314f18ee.d0e28",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3221.490966796875,\r
+        "y": 181.573974609375,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "bf0d979c.0d6a2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf0d979c.0d6a2",\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": 3399.0625,\r
+        "y": 181.8597412109375,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "177a6858.e45f48",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3217,\r
+        "y": 231,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "69e0c103.73f7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "69e0c103.73f7e",\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": 3399,\r
+        "y": 231,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "774c27b3.d5b958",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3382.0000801086426,\r
-        "y": 1916.000020980835,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3221,\r
+        "y": 282,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "8fa1d382.ebbb3"\r
+                "8d4f11e6.7da04"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "825ff590.84496",\r
+        "id": "8d4f11e6.7da04",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 4044.66650390625,\r
-        "y": 1908,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3401,\r
+        "y": 282,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "674b1eb0.174b2",\r
-                "f4b1b11a.276db8",\r
-                "485a23dc.9461bc",\r
-                "a54100e4.bdfd8"\r
+                "a0ff94f7.a05cd8"\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": "fe8ff063.6863b8",\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": 3629,\r
-        "y": 1914,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2892,\r
+        "y": 506,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "e30b52f2.d3bd18",\r
-                "2a8a7b32.c6c034",\r
-                "95395b70.5ce658"\r
+                "7f3884a8.055b2c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e30b52f2.d3bd18",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "7f3884a8.055b2c",\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": 3872,\r
-        "y": 1909,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3172,\r
+        "y": 506,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "825ff590.84496"\r
+                "7de95d04.4c5e84"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "95395b70.5ce658",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "5050eb58.e00ed4",\r
+        "type": "outcome",\r
+        "name": "network-policy",\r
+        "xml": "<outcome value='network-policy'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3881.490966796875,\r
-        "y": 1951.5740356445312,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3377,\r
+        "y": 480,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "ec0be134.e7e7f8"\r
+                "9ce29b77.ad6fe8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2a8a7b32.c6c034",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "9ce29b77.ad6fe8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3553.9998779296875,\r
+        "y": 472.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "e7ee0b09.87c5d8",\r
+                "7fe89152.e612e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7ee0b09.87c5d8",\r
+        "type": "set",\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": 3796.9998779296875,\r
+        "y": 429.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7fe89152.e612e8",\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
+        "outputs": 1,\r
+        "x": 3785.9998779296875,\r
+        "y": 484.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "64fb2208.a0a974",\r
+                "c3b9f4d3.aab1b8",\r
+                "f6aa84f.18621f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f6aa84f.18621f8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3870,\r
-        "y": 1998,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4039,\r
+        "y": 371,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "5f44beb8.f571"\r
+                "c20366f5.78311"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ec0be134.e7e7f8",\r
+        "id": "c20366f5.78311",\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
+        "x": 4187.571533203125,\r
+        "y": 371.2857666015625,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5f44beb8.f571",\r
+        "id": "a9aadb9.f22de28",\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
+        "x": 4186.509033203125,\r
+        "y": 415.426025390625,\r
+        "z": "b31344e1.6b9228",\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
+        "id": "c3b9f4d3.aab1b8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4027.509033203125,\r
+        "y": 415.426025390625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "a9aadb9.f22de28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "64fb2208.a0a974",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4034.509033203125,\r
+        "y": 494.426025390625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "7a83723d.cc96f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a83723d.cc96f4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4173.509033203125,\r
+        "y": 494.426025390625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "1f8d33e3.a771dc",\r
+                "420f3616.2f701"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f8d33e3.a771dc",\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": 3572,\r
-        "y": 1867,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4379,\r
+        "y": 492,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b0648d5.a5c8bf",\r
+        "id": "4835023e.e8e8cc",\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
+        "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": 4301,\r
-        "y": 1546,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3235,\r
+        "y": 673,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "6bf39cd9.c078dc",\r
-                "1f241f8d.ded588"\r
+                "eafc912d.cb0fe",\r
+                "14b2df73.02d4e1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1f241f8d.ded588",\r
+        "id": "14b2df73.02d4e1",\r
         "type": "failure",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4524,\r
-        "y": 1501,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3458,\r
+        "y": 659,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "711e2d50.cbfec4"\r
+                "bb352d17.34137"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6bf39cd9.c078dc",\r
+        "id": "eafc912d.cb0fe",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4526,\r
-        "y": 1565,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3460,\r
+        "y": 692,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "d87f8a80.c2edb8"\r
+                "4040c9e2.8e3008"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8f149145.0a9d38",\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": 4859,\r
-        "y": 1459,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "d87f8a80.c2edb8",\r
+        "id": "4040c9e2.8e3008",\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": 4685,\r
-        "y": 1584,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3603,\r
+        "y": 689,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "711e2d50.cbfec4",\r
+        "id": "bb352d17.34137",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 4689,\r
-        "y": 1498,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3606,\r
+        "y": 652,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "8f149145.0a9d38",\r
-                "ed673da0.d5043"\r
+                "8f0d5ee9.6635d",\r
+                "300f312a.b253d6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ed673da0.d5043",\r
+        "id": "8f0d5ee9.6635d",\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": 4860,\r
-        "y": 1564,\r
-        "z": "5b68e0d.bd97b2",\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
-        "comments": "",\r
-        "x": 4859,\r
-        "y": 1525,\r
-        "z": "5b68e0d.bd97b2",\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
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 4303,\r
-        "y": 1705,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\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
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 4348,\r
-        "y": 1615,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\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
+        "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": 4238,\r
-        "y": 1671,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3768,\r
+        "y": 647,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "674b1eb0.174b2",\r
+        "id": "684cf1ab.a79f48",\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-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
         "outputs": 1,\r
-        "x": 4299,\r
-        "y": 1904,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3249,\r
+        "y": 1509.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "bf4f2038.8bcc6",\r
-                "816a3f3d.c967d"\r
+                "10ff0da4.16d4ea",\r
+                "55c5195b.3875c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "816a3f3d.c967d",\r
+        "id": "55c5195b.3875c8",\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": 3472,\r
+        "y": 1495.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "bbb7eb1.f117918"\r
+                "7202d26b.6dffec"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bf4f2038.8bcc6",\r
+        "id": "10ff0da4.16d4ea",\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": 3474,\r
+        "y": 1528.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "3fe77c2.445af04"\r
+                "30474e74.e5639a"\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": "30474e74.e5639a",\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": 3617,\r
+        "y": 1525.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "bbb7eb1.f117918",\r
+        "id": "7202d26b.6dffec",\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": 3620,\r
+        "y": 1488.9998779296875,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "2024c7b6.3996d",\r
-                "e7f53e76.5ddf"\r
+                "885f2609.7cba58",\r
+                "e1d06713.adb0c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e7f53e76.5ddf",\r
+        "id": "885f2609.7cba58",\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.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": 4858,\r
-        "y": 1922,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3814,\r
+        "y": 1492,\r
+        "z": "b31344e1.6b9228",\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
-        "comments": "",\r
-        "x": 4857,\r
-        "y": 1883,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\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": "d352d101.d008a8",\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
         "outputs": 1,\r
-        "x": 4301,\r
-        "y": 2063,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 1078,\r
+        "y": 197,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\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": "bb95643a.1dafd8",\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": 4346,\r
-        "y": 1973,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3882,\r
+        "y": 1243,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "232e8f32.739b48"\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": "232e8f32.739b48",\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
-        "x": 4236,\r
-        "y": 2029,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 4088,\r
+        "y": 1243,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "8bbe738e.7fafb"\r
+            ]\r
+        ]\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
+        "id": "8bbe738e.7fafb",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2518,\r
-        "y": 2064,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4303.28564453125,\r
+        "y": 1242.82177734375,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "c3ad3464.e3237"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "e199c2c7.64ce48",\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
-        "comments": "",\r
-        "x": 2381,\r
-        "y": 2024,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "id": "c3ad3464.e3237",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4510.1171875,\r
+        "y": 1243.34033203125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "f0158859.e44c4",\r
+                "1be7b379.0a0a35",\r
+                "bee0e07a.660808"\r
+            ]\r
+        ]\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": "f0158859.e44c4",\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
-        "x": 2353,\r
-        "y": 1988,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4725.1171875,\r
+        "y": 1205.34033203125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\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": "1be7b379.0a0a35",\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": 2483,\r
-        "y": 2168,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4722.1171875,\r
+        "y": 1244.34033203125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "eee018f4.9abed"\r
+                "5d7ec3ca.e9fe2c"\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": "bee0e07a.660808",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 2481.5,\r
-        "y": 2211,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "x": 4677.6171875,\r
+        "y": 1286.34033203125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\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": "5d7ec3ca.e9fe2c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3134.5,\r
-        "y": 2149,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4902.6171875,\r
+        "y": 1243.34033203125,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "5c631dd4.8f5fbc"\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": "5c631dd4.8f5fbc",\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": 5060.6171875,\r
+        "y": 1243.34033203125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "d5d5e908.7a8eb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5d5e908.7a8eb8",\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": 5267.6171875,\r
+        "y": 1243.34033203125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "60f3b421.08732c",\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": 3879,\r
+        "y": 2112.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "715a89d.cfea178"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "715a89d.cfea178",\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": 4085,\r
+        "y": 2112.0001220703125,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "977e3712.429b18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "977e3712.429b18",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4300.28564453125,\r
+        "y": 2111.8218994140625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "2113d9ff.cdd31e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2113d9ff.cdd31e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4507.1171875,\r
+        "y": 2112.3404541015625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "3c92c59b.613ca2",\r
+                "193b4238.409d8e",\r
+                "b71c718.f135e1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c92c59b.613ca2",\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": 4722.1171875,\r
+        "y": 2074.3404541015625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "193b4238.409d8e",\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": 4719.1171875,\r
+        "y": 2113.3404541015625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "df85928.81de67"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b71c718.f135e1",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4674.6171875,\r
+        "y": 2155.3404541015625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "df85928.81de67",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4899.6171875,\r
+        "y": 2112.3404541015625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "8b1f9fde.337d98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b1f9fde.337d98",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5057.6171875,\r
+        "y": 2112.3404541015625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "20d9b129.b72206"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20d9b129.b72206",\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": 5264.6171875,\r
+        "y": 2112.3404541015625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "300f312a.b253d6",\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": 3795,\r
+        "y": 719,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "1c354309.a76ffd",\r
+                "950deba8.cc3e4",\r
+                "c2c16051.a906d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1c354309.a76ffd",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3990.5001220703125,\r
+        "y": 671,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "d41af0c3.594838"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "950deba8.cc3e4",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3982.5001220703125,\r
+        "y": 726,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "3d15fff1.053cf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2c16051.a906d8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3987.5001220703125,\r
+        "y": 783,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "d7ef8f23.d036"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7ef8f23.d036",\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": 4139.5001220703125,\r
+        "y": 784,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3d15fff1.053cf",\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": 4150.5001220703125,\r
+        "y": 729,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d41af0c3.594838",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4134.8824462890625,\r
+        "y": 668.6556701660156,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b45d0128.680c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7cb8afd4.8d20b8",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4717,\r
+        "y": 687,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "47edc84c.808f88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47edc84c.808f88",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4894,\r
+        "y": 679,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "266ac25a.ea33a6",\r
+                "2d08c6.2cc1e73a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b45d0128.680c8",\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": 4319,\r
+        "y": 683,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "4f9ef890.59c338"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f9ef890.59c338",\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": 4514,\r
+        "y": 683,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "7cb8afd4.8d20b8",\r
+                "212f425.c6d5fbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "266ac25a.ea33a6",\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": 5132,\r
+        "y": 634,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fe7f5526.b757d",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5312,\r
+        "y": 677,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "c4631195.e5511"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ace94fc7.113e6",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5304,\r
+        "y": 732,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "af8bf071.82c85"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42739782.dc6168",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5309,\r
+        "y": 789,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b1e33e76.6db9b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1e33e76.6db9b",\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": 5461,\r
+        "y": 790,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "af8bf071.82c85",\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": 5472,\r
+        "y": 735,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c4631195.e5511",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5456.38232421875,\r
+        "y": 674.6556701660156,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "4dcc9c46.887914"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4dcc9c46.887914",\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": 5671,\r
+        "y": 671,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e1d06713.adb0c8",\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": 3836,\r
+        "y": 1560,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "34f7d7e6.e7fa8",\r
+                "cb710953.72942",\r
+                "4c788e8d.e93588"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34f7d7e6.e7fa8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4031.5001220703125,\r
+        "y": 1512,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "fd0d1ee5.65b0f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb710953.72942",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4023.5001220703125,\r
+        "y": 1567,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "68639fde.fb4de8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c788e8d.e93588",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4028.5001220703125,\r
+        "y": 1624,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "ed57c904.1da5b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed57c904.1da5b",\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": 4180.5001220703125,\r
+        "y": 1625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "68639fde.fb4de8",\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": 4191.5001220703125,\r
+        "y": 1570,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fd0d1ee5.65b0f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4175.8824462890625,\r
+        "y": 1509.6556701660156,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "2c890085.25e4f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b16b2c11.a7e9e",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4758,\r
+        "y": 1528,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "e2c7b2a2.534808"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2c7b2a2.534808",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4935,\r
+        "y": 1520,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "8256d13e.acb508",\r
+                "e33af2d.2ed629"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c890085.25e4f8",\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": 4360,\r
+        "y": 1524,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "7ad873b6.5b0624"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ad873b6.5b0624",\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": 4555,\r
+        "y": 1524,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b16b2c11.a7e9e",\r
+                "ba30acec.499f9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e33af2d.2ed629",\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": 5143,\r
+        "y": 1527,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "dd2f9c6b.57f548",\r
+                "3b879379.c9bf84",\r
+                "13b1398c.3c465e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8256d13e.acb508",\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": 5173,\r
+        "y": 1475,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dd2f9c6b.57f548",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5353,\r
+        "y": 1518,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "56d2c260.edc91c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b879379.c9bf84",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5345,\r
+        "y": 1573,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "7449bea.eaa7fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13b1398c.3c465e",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5350,\r
+        "y": 1630,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "232c7315.841b1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "232c7315.841b1c",\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": 5502,\r
+        "y": 1631,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7449bea.eaa7fc",\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": 5513,\r
+        "y": 1576,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "56d2c260.edc91c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5497.38232421875,\r
+        "y": 1515.6556701660156,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "49d0cb53.31a39c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49d0cb53.31a39c",\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": 5712,\r
+        "y": 1512,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "33bd7ebe.34c502",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2796,\r
+        "y": 452,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "fe8ff063.6863b8",\r
+                "4e85bccf.c8cf0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e85bccf.c8cf0c",\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": 3077,\r
+        "y": 408,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "badd7dbd.ce16"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "badd7dbd.ce16",\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": 3339,\r
+        "y": 408,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "5050eb58.e00ed4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "212f425.c6d5fbe",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4720,\r
+        "y": 761,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "656d86d7.e1bb3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "656d86d7.e1bb3",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4897,\r
+        "y": 753,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "4f5b4545.d432fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f5b4545.d432fc",\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": 5132,\r
+        "y": 877,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5e5727f6.ce94f",\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": 5172,\r
+        "y": 1717,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "33761656.d7dc5a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4937,\r
+        "y": 1593,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "5e5727f6.ce94f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba30acec.499f9",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4760,\r
+        "y": 1601,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "33761656.d7dc5a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "420f3616.2f701",\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": 4378,\r
+        "y": 538,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b1349530.c53cc",\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": 2734,\r
+        "y": 672,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "84b0870f.4db1e",\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": 2715,\r
+        "y": 722,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2dfd81e1.a251ae",\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": 1972,\r
+        "y": 224,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "3ffb610e.7895d6",\r
+                "1fed210d.6adb97"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ffb610e.7895d6",\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": 2256,\r
+        "y": 194,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1f03402a.5db7",\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": 2631,\r
+        "y": 2231,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "56710693.e24068",\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": 2615,\r
+        "y": 3930,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3323f682.f60c3a",\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\n\n",\r
+        "comments": "",\r
+        "x": 2672,\r
+        "y": 767,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "13ac3dbd.1f366a",\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": 2666,\r
+        "y": 2351,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "f2924301.397558"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "647d2436.140504",\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='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`' />\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",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3789,\r
+        "y": 2919,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "810630b1.0e1b6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fdfa6fb7.1a35f",\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": 4361.5,\r
+        "y": 3023,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "810630b1.0e1b6",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4095,\r
+        "y": 2918,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "a594830d.53acd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a594830d.53acd8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4304.5,\r
+        "y": 2918.25390625,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b41cf773.b97ef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c295920.4b5da",\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": 3825,\r
+        "y": 2383,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "19452741.32e4c1",\r
+        "type": "switchNode",\r
+        "name": "switch otnidx == 0",\r
+        "xml": "<switch test='`$otnidx == 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3698,\r
+        "y": 3036,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "9c40fb98.e1f61",\r
+                "20acba8d.85a5f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c40fb98.e1f61",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3881,\r
+        "y": 3036,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "a42fc89d.d0c4a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20acba8d.85a5f6",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3706,\r
+        "y": 3183,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "332942c6.7f663e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f5749296.6a691",\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": 4047,\r
+        "y": 3264,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "2103be8f.1fc842",\r
+                "1554c822.b8c828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2103be8f.1fc842",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4232,\r
+        "y": 3265,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "a1250da6.1c6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1554c822.b8c828",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4251,\r
+        "y": 3531,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "99adbaff.3e741"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f416ea28.cb6ab",\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": 4662,\r
+        "y": 3266,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6548b2c.2addd8",\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": 4736,\r
+        "y": 3564,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddd52155.f542e8",\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='vpn-type' value='dummy' />\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4672,\r
+        "y": 3615,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a14f6e93.1adaf8",\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": 4801,\r
+        "y": 3665,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "16a831c0.877516",\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": 4811,\r
+        "y": 3508,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e301756.38a228",\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": 4769,\r
+        "y": 3724,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "99adbaff.3e741",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4408,\r
+        "y": 3532,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "e6548b2c.2addd8",\r
+                "ddd52155.f542e8",\r
+                "a14f6e93.1adaf8",\r
+                "2e301756.38a228",\r
+                "ebae712b.9f6bf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2924301.397558",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2918,\r
+        "y": 2412,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "4c295920.4b5da",\r
+                "647d2436.140504",\r
+                "19452741.32e4c1",\r
+                "1d59f70d.1ee6c9",\r
+                "b15a67ed.f1cb18",\r
+                "e4fb52b5.f04798",\r
+                "f5263d8c.0dd66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e1edee2.ee8112",\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": 4286,\r
+        "y": 3080,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ba046748.bfe1b",\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": 4339,\r
+        "y": 3124,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b63ee960.cee2c",\r
+                "1b1f60e5.7a7c9f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b1f60e5.7a7c9f",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4610,\r
+        "y": 3109,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "e9f5d50.e9a0928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b63ee960.cee2c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4608.000213623047,\r
+        "y": 3166.99990940094,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "c9e53751.966bb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e9f5d50.e9a0928",\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": 4750.000247955322,\r
+        "y": 3109.0000009536743,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c9e53751.966bb8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4756.02725982666,\r
+        "y": 3157.745394706726,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a42fc89d.d0c4a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4022,\r
+        "y": 3026,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "fdfa6fb7.1a35f",\r
+                "ba046748.bfe1b",\r
+                "2e1edee2.ee8112"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1250da6.1c6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4366,\r
+        "y": 3266,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "f416ea28.cb6ab",\r
+                "6f1cb48c.6026e4",\r
+                "1cf9708b.795d07"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cf9708b.795d07",\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": 4586,\r
+        "y": 3310,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6f1cb48c.6026e4",\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": 4637,\r
+        "y": 3354,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "6e1323b5.c04ce4",\r
+                "1555b51f.0ca46b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1555b51f.0ca46b",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4900,\r
+        "y": 3334,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "7a3f18c.e7bf268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e1323b5.c04ce4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4901.000213623047,\r
+        "y": 3384.99990940094,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "c1d2c5de.5e2688"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a3f18c.e7bf268",\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": 5040.000247955322,\r
+        "y": 3334.0000009536743,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c1d2c5de.5e2688",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5046.02725982666,\r
+        "y": 3382.745394706726,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebae712b.9f6bf8",\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": 4683,\r
+        "y": 3784,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bc1d9c19.8a817",\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": 2002,\r
+        "y": 4131,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "3b12d36f.6d8234",\r
+                "89a53740.4d3c98",\r
+                "a61d86b5.6c70f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b12d36f.6d8234",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2190,\r
+        "y": 4144,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "3ced61cb.b2d7fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89a53740.4d3c98",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2190.490966796875,\r
+        "y": 4189.574035644531,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "3eafcbaf.f2f56c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a61d86b5.6c70f",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2188,\r
+        "y": 4233,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "170e04a2.1b39fb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ced61cb.b2d7fe",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2363,\r
+        "y": 4142,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "ef9d0591.fefb08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3eafcbaf.f2f56c",\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": 2353.0623779296875,\r
+        "y": 4189.859771728516,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "170e04a2.1b39fb",\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": 2355,\r
+        "y": 4232,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bf30e0be.23b998",\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": 1991,\r
+        "y": 4322,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "557999e1.77dcb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d613988a.0c40c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2801,\r
+        "y": 4322,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "e4afc290.74f038"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7f46916.4f1ee",\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": 2573,\r
+        "y": 4322,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "d613988a.0c40c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ce29a297.cf1cb8",\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": 3693,\r
+        "y": 4089,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "90828ea.8f9357",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
+        "comments": "",\r
+        "x": 3995,\r
+        "y": 3215,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "332942c6.7f663e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3830,\r
+        "y": 3190,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "90828ea.8f9357",\r
+                "f5749296.6a691"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0adb7e4.435f98",\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": 1954,\r
+        "y": 170,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ef9d0591.fefb08",\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": 2592,\r
+        "y": 4143,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "2fbee9b.ff76316"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fbee9b.ff76316",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2807,\r
+        "y": 4144,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "9baaaca4.d54a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49f4d5cd.eba3ac",\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": 4260,\r
+        "y": 4064,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "a296aaec.6a9f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72392f69.a40338",\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": 3726,\r
+        "y": 4144,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "1e30cbc6.5b29c4",\r
+                "73a572c0.fcdcfc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e30cbc6.5b29c4",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3922,\r
+        "y": 4114,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "79192fda.22a8a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "73a572c0.fcdcfc",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3923,\r
+        "y": 4185,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "e5b5d449.e95738"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79192fda.22a8a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4073,\r
+        "y": 4112,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "49f4d5cd.eba3ac",\r
+                "ee34549a.68661"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a296aaec.6a9f7",\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": 4551,\r
+        "y": 4064,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "f6a570fa.8c3e18",\r
+                "f096fdfa.51af18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f6a570fa.8c3e18",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4826,\r
+        "y": 4033,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "7e64bb9a.5c5954"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f096fdfa.51af18",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4827,\r
+        "y": 4104,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "2ae9b410.b8e274"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e64bb9a.5c5954",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4977,\r
+        "y": 4031,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "883ad39b.46747",\r
+                "3d5cad7b.78211a",\r
+                "ac8bc417.7b82a",\r
+                "6ea95490.220544",\r
+                "6a39b9a6.2592"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "883ad39b.46747",\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": 5165,\r
+        "y": 3991,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3d5cad7b.78211a",\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": 5237,\r
+        "y": 4036,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a39b9a6.2592",\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": 5152,\r
+        "y": 4163,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6ea95490.220544",\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": 5173,\r
+        "y": 4099,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e5b5d449.e95738",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4075,\r
+        "y": 4185,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b867d047.fac",\r
+                "3788e630.590d72"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b867d047.fac",\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": 4330,\r
+        "y": 4178,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3788e630.590d72",\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": 4258,\r
+        "y": 4225,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ee34549a.68661",\r
+        "type": "switchNode",\r
+        "name": "switch found?",\r
+        "xml": "<switch test='`$found`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4251,\r
+        "y": 4109,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "d1f76975.e11b9",\r
+                "3421ae07.ec9d62"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1f76975.e11b9",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4411,\r
+        "y": 4101,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "2d9d0080.4d96d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3421ae07.ec9d62",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4409,\r
+        "y": 4138,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "91314308.ab84d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d9d0080.4d96d",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4536,\r
+        "y": 4101,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd3f24a6.bbbfb8",\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": 4843,\r
+        "y": 4159,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "91314308.ab84d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4569,\r
+        "y": 4146,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "fd3f24a6.bbbfb8",\r
+                "3fbaf181.1ff88e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3fbaf181.1ff88e",\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": 4760,\r
+        "y": 4205,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2ae9b410.b8e274",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4960,\r
+        "y": 4103,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\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": "ac8bc417.7b82a",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 5131,\r
+        "y": 4230,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1d59f70d.1ee6c9",\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": 3528,\r
+        "y": 2442,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "13d01e4b.11cf72",\r
+                "f41dda2a.86b79"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13d01e4b.11cf72",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3917,\r
+        "y": 2420,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "a63400f9.70b798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f41dda2a.86b79",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3918,\r
+        "y": 2466,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "201cd4b0.391f6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a63400f9.70b798",\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": 4131,\r
+        "y": 2419,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "201cd4b0.391f6c",\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": 4129,\r
+        "y": 2464,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e4afc290.74f038",\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": 3054,\r
+        "y": 4320,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5a129ea2.020ec",\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": 2639,\r
+        "y": 4428,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "235df5b8.967b5a",\r
+                "2fcb7bfa.e794ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fcb7bfa.e794ec",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2922,\r
+        "y": 4408,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "ec27b172.f3b03"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "235df5b8.967b5a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2923.000213623047,\r
+        "y": 4458.99990940094,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "afac7d54.5ea3c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec27b172.f3b03",\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": 3062.0002479553223,\r
+        "y": 4408.000000953674,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "afac7d54.5ea3c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4431,\r
-        "y": 1753,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3068.02725982666,\r
+        "y": 4456.745394706726,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             []\r
         ]\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": "b15a67ed.f1cb18",\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": 3712,\r
+        "y": 2562,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e4fb52b5.f04798",\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": 4428,\r
-        "y": 2128,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3756,\r
+        "y": 2610,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "38280842.8f481",\r
+                "762394a6.8c9edc",\r
+                "bf6967d.9863518"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "eee018f4.9abed",\r
+        "id": "38280842.8f481",\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": 3968.5,\r
+        "y": 2557,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "7c3bab6c.40727c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "762394a6.8c9edc",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3980.5,\r
+        "y": 2607,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "9fa14d44.80429"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf6967d.9863518",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3971.5,\r
+        "y": 2662,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "60c98c50.d9d324"\r
+                "e6f16a7e.5e034"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "60c98c50.d9d324",\r
+        "id": "e6f16a7e.5e034",\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": 4116.5,\r
+        "y": 2661,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9fa14d44.80429",\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": 4127.5,\r
+        "y": 2604,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c3bab6c.40727c",\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": 4093.8824462890625,\r
+        "y": 2550.6556701660156,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "3ada39cb.077d7e"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "99e923c8.5700b8",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: do we need this relationship?",\r
-        "info": "",\r
+        "id": "79f49c03.b31834",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
         "comments": "",\r
-        "x": 3171,\r
-        "y": 2108,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 4653,\r
+        "y": 2569,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b38ec96c.50bcb"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "debe7c1a.c25a08",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: put proper values",\r
-        "info": "",\r
+        "id": "b38ec96c.50bcb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4830,\r
+        "y": 2561,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b25407c2.fe4e9",\r
+                "76abd2d6.8cf2bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ada39cb.077d7e",\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
-        "x": 2409,\r
-        "y": 2130,\r
-        "z": "5b68e0d.bd97b2",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 4255,\r
+        "y": 2565,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "631c6ac2.9b4684"\r
+            ]\r
+        ]\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": "631c6ac2.9b4684",\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": 2465,\r
-        "y": 2348,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4450,\r
+        "y": 2565,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "de2c330e.390d88"\r
+                "79f49c03.b31834"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ff4306de.40969",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: do we need this relationship?",\r
-        "info": "",\r
+        "id": "76abd2d6.8cf2bc",\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": 5038,\r
+        "y": 2568,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "b500a3b6.711188",\r
+                "e4ff3e60.96d148",\r
+                "ef9c5a3.20232a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b25407c2.fe4e9",\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": 3153,\r
-        "y": 2288,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5068,\r
+        "y": 2516,\r
+        "z": "b31344e1.6b9228",\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": "b500a3b6.711188",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3116.5,\r
-        "y": 2329,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5248,\r
+        "y": 2559,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "8c9a0f1.a2e9b7"\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": "e4ff3e60.96d148",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3118.5,\r
-        "y": 2368,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 5240,\r
+        "y": 2614,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "7d5ba752.0bac28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef9c5a3.20232a8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5245,\r
+        "y": 2671,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "5979580a.e6b1f8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "82297458.0d3c48",\r
+        "id": "5979580a.e6b1f8",\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": 5397,\r
+        "y": 2672,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7d5ba752.0bac28",\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": 5408,\r
+        "y": 2617,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8c9a0f1.a2e9b7",\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": 5392.38232421875,\r
+        "y": 2556.6556701660156,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "b4fe40f1.fee308"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "de2c330e.390d88",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "b4fe40f1.fee308",\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": 5607,\r
+        "y": 2553,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "557999e1.77dcb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2765,\r
-        "y": 2347,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 2223,\r
+        "y": 4320,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             [\r
-                "82297458.0d3c48"\r
+                "f7f46916.4f1ee",\r
+                "5a129ea2.020ec"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8b5978da.cf55b8",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME: put proper values",\r
-        "info": "",\r
+        "id": "f5263d8c.0dd66",\r
+        "type": "switchNode",\r
+        "name": "switch dmnsidx == 0 (domainA)",\r
+        "xml": "<switch test='`$otnidx == 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3726,\r
+        "y": 2779,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "cb45f40e.c4e9f",\r
+                "686c2e71.b364f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb45f40e.c4e9f",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3927,\r
+        "y": 2777,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "906b7761.ec3cf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "906b7761.ec3cf",\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": 2386,\r
-        "y": 2308,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4141,\r
+        "y": 2779,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\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": "bb50949c.2c4e68",\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": 2463.5,\r
-        "y": 2388,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4144,\r
+        "y": 2828,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
-            []\r
+            [\r
+                "f9f184f6.8f0c58",\r
+                "b1eb5cf.84b33a"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "ed749360.08754",\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
+        "id": "f9f184f6.8f0c58",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4374,\r
+        "y": 2824,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "ea46128e.0ba028"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea46128e.0ba028",\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": 4588,\r
+        "y": 2827,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "686c2e71.b364f8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3927,\r
+        "y": 2826,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "bb50949c.2c4e68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1eb5cf.84b33a",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4375,\r
+        "y": 2870,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "591dd2d5.72937c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "591dd2d5.72937c",\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": 2337,\r
-        "y": 2471,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4589,\r
+        "y": 2870,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "97832dc3.63313",\r
+        "id": "b41cf773.b97ef",\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.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": 2360,\r
-        "y": 2511,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 4487,\r
+        "y": 2919,\r
+        "z": "b31344e1.6b9228",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f27e6517.ff7968",\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
+        "id": "9baaaca4.d54a4",\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",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3051,\r
+        "y": 4143,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "cb64ffb8.43ead",\r
+                "d4b6930e.5ef778"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb64ffb8.43ead",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3268,\r
+        "y": 4122,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "2504214d.099dbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d4b6930e.5ef778",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 5071,\r
-        "y": 1523,\r
-        "z": "5b68e0d.bd97b2",\r
+        "x": 3268,\r
+        "y": 4171,\r
+        "z": "b31344e1.6b9228",\r
         "wires": [\r
             []\r
         ]\r
+    },\r
+    {\r
+        "id": "2504214d.099dbe",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3436,\r
+        "y": 4122,\r
+        "z": "b31344e1.6b9228",\r
+        "wires": [\r
+            [\r
+                "ce29a297.cf1cb8",\r
+                "72392f69.a40338"\r
+            ]\r
+        ]\r
     }\r
 ]
\ No newline at end of file