Adding DGs to support Transport Slicing operations. 09/112109/1
authorHesam Rahimi <hesam.rahimi@huawei.com>
Thu, 3 Sep 2020 13:57:26 +0000 (13:57 +0000)
committerHesam Rahimi <hesam.rahimi@huawei.com>
Thu, 3 Sep 2020 13:58:52 +0000 (13:58 +0000)
 - Allocate a Transport Slice
 - Activate a Transport Slice
 - DeActivate a Transport Slice
 - Delete a Transport Slice
The logic and the required call-flow inside the DGs are not yet completed and are still work-in-progress.

Issue-ID: SDNC-1202
Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com>
Change-Id: I0c9246063861ac43b645ad198d02ad35bada8e96
Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com>
Former-commit-id: a6df651138e1da2668515ee6d23e89670f376186

12 files changed:
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml
platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.xml [new file with mode: 0644]

index e10de62..a1327b1 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "6970cbfb.c1907c",\r
+        "id": "65a7b5bd.b33c0c",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 122.75,\r
-        "y": 181.98507690429688,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 155,\r
+        "y": 176.98507690429688,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "99e58991.186a5"\r
+                "437f21d0.c52c4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "99e58991.186a5",\r
+        "id": "437f21d0.c52c4",\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": 206.03570556640625,\r
-        "y": 243.22317504882812,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 238.28570556640625,\r
+        "y": 238.22317504882812,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2fd42108.8384a6"\r
+                "7a4849d4.72ee48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2fd42108.8384a6",\r
+        "id": "7a4849d4.72ee48",\r
         "type": "method",\r
         "name": "method vnf-topology-operation",\r
         "xml": "<method rpc='vnf-topology-operation' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 198.17862701416016,\r
-        "y": 305.985071182251,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 230.42862701416016,\r
+        "y": 300.985071182251,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "c0fe93ff.46afe8"\r
+                "45b98d95.e70a04"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6dce1d8e.e0f0dc",\r
+        "id": "4ded41b7.94d268",\r
         "type": "comment",\r
         "name": "vnf-topology-operation",\r
         "info": "",\r
         "comments": "",\r
-        "x": 522.6662979125977,\r
-        "y": 25,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 554.9162979125977,\r
+        "y": 20,\r
+        "z": "2eb85326.b33f34",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c0fe93ff.46afe8",\r
+        "id": "45b98d95.e70a04",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 221.91676330566406,\r
-        "y": 635.6785974502563,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 254.16676330566406,\r
+        "y": 630.6785974502563,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "10cbb1dc.2702c6",\r
-                "54fd59c9.529288",\r
-                "5d438b9c.3a31f4"\r
+                "8c37381a.3831a",\r
+                "608a5f48.b70468",\r
+                "eb593071.413eb"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "10cbb1dc.2702c6",\r
+        "id": "8c37381a.3831a",\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": 514.4167175292969,\r
-        "y": 790.8426303863525,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 546.6667175292969,\r
+        "y": 785.8426303863525,\r
+        "z": "2eb85326.b33f34",\r
         "wires": []\r
     },\r
     {\r
-        "id": "54fd59c9.529288",\r
+        "id": "608a5f48.b70468",\r
         "type": "switchNode",\r
         "name": "switch svc-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 517.3214340209961,\r
-        "y": 633.8898410797119,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 549.5714340209961,\r
+        "y": 628.8898410797119,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "306534c7.4b7964",\r
-                "fac214a0.d9f068",\r
-                "8af1e144.1ebf78",\r
-                "75b6f00a.5c8fd",\r
-                "4c5cf395.49e5f4",\r
-                "755c8b59.1d2dc4",\r
-                "71f10773.d1b468",\r
-                "ed83e2f.1faa02"\r
+                "81a7942.76def68",\r
+                "57464d7.1c2e1b4",\r
+                "2f654dff.7677ba",\r
+                "622a548f.1d64c4",\r
+                "584643fb.d9510c",\r
+                "c1172b79.788dd",\r
+                "6c127345.ce1dd4",\r
+                "5ce4691c.c29e48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "306534c7.4b7964",\r
+        "id": "81a7942.76def68",\r
         "type": "outcome",\r
         "name": "assign",\r
         "xml": "<outcome value='assign'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 852.1309814453125,\r
-        "y": 461.5089511871338,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 884.3809814453125,\r
+        "y": 456.5089511871338,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "8097b3a1.623438"\r
+                "4fafd3d6.e9c86c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fac214a0.d9f068",\r
+        "id": "57464d7.1c2e1b4",\r
         "type": "outcome",\r
         "name": "unassign",\r
         "xml": "<outcome value='unassign'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 928.1787996292114,\r
-        "y": 1230.6997060775757,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 946.4287996292114,\r
+        "y": 1428.6997060775757,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "ebbf23ca.a1c418"\r
+                "2fde344e.576464"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "75b6f00a.5c8fd",\r
+        "id": "622a548f.1d64c4",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 892.89306640625,\r
-        "y": 2323.889892578125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 925.14306640625,\r
+        "y": 2671.889892578125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "cd64d64b.85d62"\r
+                "f361b2ad.38da28"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cd64d64b.85d62",\r
+        "id": "f361b2ad.38da28",\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-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",\r
         "comments": "",\r
-        "x": 1116.08349609375,\r
-        "y": 2322.889892578125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1148.33349609375,\r
+        "y": 2670.889892578125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5d438b9c.3a31f4",\r
+        "id": "eb593071.413eb",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:validate-vnf-input",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 623.1666870117188,\r
-        "y": 386.3661289215088,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 655.4166870117188,\r
+        "y": 381.3661289215088,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "b63e8b29.e7f0a8",\r
+        "id": "4fee4a66.da80ec",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1747.9405822753906,\r
-        "y": 1207.747085571289,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1750.1906127929688,\r
+        "y": 1360.7470703125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ebbf23ca.a1c418",\r
+        "id": "2fde344e.576464",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-unassign",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-unassign' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1293.9405822753906,\r
-        "y": 1252.0805206298828,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1312.1905822753906,\r
+        "y": 1450.0805206298828,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8af1e144.1ebf78",\r
+        "id": "2f654dff.7677ba",\r
         "type": "outcome",\r
         "name": "deactivate",\r
         "xml": "<outcome value='deactivate'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 897.2738800048828,\r
-        "y": 970.080415725708,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 929.5238800048828,\r
+        "y": 965.080415725708,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "ec8e6332.b6c05"\r
+                "8da629b7.7785d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7890bbbe.2a813c",\r
+        "id": "87adbe9c.842b5",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1699.7501525878906,\r
-        "y": 868.9850616455078,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1732.0001525878906,\r
+        "y": 863.9850616455078,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "4c5cf395.49e5f4",\r
+        "id": "584643fb.d9510c",\r
         "type": "outcome",\r
         "name": "activate",\r
         "xml": "<outcome value='activate'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 860.0833129882812,\r
-        "y": 631.6517143249512,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 892.3333129882812,\r
+        "y": 626.6517143249512,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "3e54bc75.144ee4"\r
+                "bb5ac7de.cbb54"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "755c8b59.1d2dc4",\r
+        "id": "c1172b79.788dd",\r
         "type": "outcome",\r
         "name": "create",\r
         "xml": "<outcome value='create'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 929.7502298355103,\r
-        "y": 1363.0713729858398,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 948.0002298355103,\r
+        "y": 1561.0713729858398,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "8f08f8ba.193ed8"\r
+                "225b7efc.8fa52a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "71f10773.d1b468",\r
+        "id": "6c127345.ce1dd4",\r
         "type": "outcome",\r
         "name": "delete",\r
         "xml": "<outcome value='delete'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 919.750244140625,\r
-        "y": 1796.0714111328125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 952.000244140625,\r
+        "y": 1791.0714111328125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "9c586f2f.e33028"\r
+                "81ec64a2.44c6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "303d5d1e.01d29a",\r
+        "id": "6b0b37a0.9ca588",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1101.7500839233398,\r
-        "y": 687.0713911056519,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1134.0000839233398,\r
+        "y": 682.0713911056519,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "c4010eac.92b6d",\r
-                "8097bbf5.dccfc8",\r
-                "6b700dfa.5b7894",\r
-                "4877cf68.9cf618",\r
-                "d97c0f9f.42635",\r
-                "2be7f987.98f3ce",\r
-                "85c7833e.301688"\r
+                "7fca8158.91f35",\r
+                "9b59d855.a7acc8",\r
+                "4755a794.0050b8",\r
+                "2e56d91.79e7326",\r
+                "d6b29a0.e7b84e8",\r
+                "dd14e3b6.ed5b08",\r
+                "1335f1cb.2420be",\r
+                "396cf4fc.519af4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8097bbf5.dccfc8",\r
+        "id": "9b59d855.a7acc8",\r
         "type": "outcome",\r
         "name": "ActivateSiteInstance",\r
         "xml": "<outcome value='ActivateSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1362.2263259887695,\r
-        "y": 609.5506420135498,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1394.4763259887695,\r
+        "y": 503.5506420135498,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2090147c.7f3ebc"\r
+                "7c431af.c7b6a64"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c4010eac.92b6d",\r
+        "id": "7fca8158.91f35",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1331.7976989746094,\r
-        "y": 871.5953521728516,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1364.0476989746094,\r
+        "y": 866.5953521728516,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "7890bbbe.2a813c"\r
+                "87adbe9c.842b5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3e54bc75.144ee4",\r
+        "id": "bb5ac7de.cbb54",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1040.7500839233398,\r
-        "y": 632.0713911056519,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1073.0000839233398,\r
+        "y": 627.0713911056519,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "303d5d1e.01d29a"\r
+                "6b0b37a0.9ca588"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2090147c.7f3ebc",\r
+        "id": "7c431af.c7b6a64",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1728.750129699707,\r
-        "y": 612.0714244842529,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1761.000129699707,\r
+        "y": 506.07142448425293,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "a872eb97.73437",\r
+        "id": "3aedfea2.380c82",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1159.7501983642578,\r
-        "y": 1003.071382522583,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1192.0001983642578,\r
+        "y": 998.071382522583,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "d3169c17.8c1318",\r
-                "495a662d.78b068",\r
-                "6dfb7278.159c44",\r
-                "25872c81.98ab74",\r
-                "897395af.927c48",\r
-                "ebf879bd.b608f8"\r
+                "4e5c2734.b4b4d8",\r
+                "dc0e0143.6bd3c8",\r
+                "a6a10b16.9db1a8",\r
+                "4dadb200.cffd6c",\r
+                "83a2f891.8b61e8",\r
+                "7a11315c.08885",\r
+                "d9d8a57.b489358",\r
+                "4fb9c783.53cbd8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "495a662d.78b068",\r
+        "id": "dc0e0143.6bd3c8",\r
         "type": "outcome",\r
         "name": "DeactivateSiteInstance",\r
         "xml": "<outcome value='DeactivateSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1403.2263946533203,\r
-        "y": 954.5506310462952,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1435.4763946533203,\r
+        "y": 949.5506310462952,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2f898baf.553cbc"\r
+                "c4e83aa9.f0ea5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d3169c17.8c1318",\r
+        "id": "4e5c2734.b4b4d8",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1384.7976989746094,\r
-        "y": 1206.5953521728516,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1387.0477294921875,\r
+        "y": 1359.5953369140625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "b63e8b29.e7f0a8"\r
+                "4fee4a66.da80ec"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ec8e6332.b6c05",\r
+        "id": "8da629b7.7785d",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1098.7501983642578,\r
-        "y": 948.071382522583,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1131.0001983642578,\r
+        "y": 943.071382522583,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "a872eb97.73437"\r
+                "3aedfea2.380c82"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2f898baf.553cbc",\r
+        "id": "c4e83aa9.f0ea5",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1772.7501983642578,\r
-        "y": 952.0714135169983,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1805.0001983642578,\r
+        "y": 947.0714135169983,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "e542c925.100cb",\r
+        "id": "12bd2849.859b18",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1128.083625793457,\r
-        "y": 1449.6576824188232,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1146.333625793457,\r
+        "y": 1647.6576824188232,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "4cf2e62b.d1fd08",\r
-                "9b7a0b77.8dcfd",\r
-                "bc0dfdf.db024",\r
-                "822ca78e.7c6b1",\r
-                "bc324ef7.aba63",\r
-                "594d2772.c82a7",\r
-                "2476b7aa.1b79f8",\r
-                "84311768.7532f",\r
-                "3fe1f22d.2ed6be"\r
+                "a5546947.872828",\r
+                "98d1ee64.a859d8",\r
+                "b4652d97.1f82a",\r
+                "d84e3d35.1b6498",\r
+                "3c335fd3.49242",\r
+                "f28f5d04.bb2268",\r
+                "ab85e0c9.740d",\r
+                "e984aa3b.a932c",\r
+                "dded3789.e6b0f",\r
+                "42d2af76.1ab5f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9b7a0b77.8dcfd",\r
+        "id": "98d1ee64.a859d8",\r
         "type": "outcome",\r
         "name": "CreateSiteInstance",\r
         "xml": "<outcome value='CreateSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1389.56005859375,\r
-        "y": 1366.136962890625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1407.81005859375,\r
+        "y": 1564.136962890625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "3600755e.c820da"\r
+                "19f9c8ad.fe3f3f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4cf2e62b.d1fd08",\r
+        "id": "a5546947.872828",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1363.1310834884644,\r
-        "y": 1634.181514263153,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1381.381103515625,\r
+        "y": 1917.1815185546875,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "d3577745.7a3668"\r
+                "8e9dbba2.9704c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8f08f8ba.193ed8",\r
+        "id": "225b7efc.8fa52a",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1112.0837144851685,\r
-        "y": 1360.6577405929565,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1130.3337144851685,\r
+        "y": 1558.6577405929565,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "e542c925.100cb"\r
+                "12bd2849.859b18"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3600755e.c820da",\r
+        "id": "19f9c8ad.fe3f3f",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1766.0837631225586,\r
-        "y": 1364.6577215194702,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1784.3337631225586,\r
+        "y": 1562.6577215194702,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "d3577745.7a3668",\r
+        "id": "8e9dbba2.9704c8",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1503.4166593551636,\r
-        "y": 1635.237937450409,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1521.6666793823242,\r
+        "y": 1918.2379417419434,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "cf368a61.e211c8",\r
+        "id": "96d2109.f63b17",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1165.750244140625,\r
-        "y": 1848.5714111328125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1187.000244140625,\r
+        "y": 2199.5714111328125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "579fcf13.f7d6f8",\r
-                "192b14c7.a9450b",\r
-                "7268797a.eb65d",\r
-                "9e7e4bfc.278db8",\r
-                "1b2e943b.d70b5c",\r
-                "c0d1dfda.9d8bf8",\r
-                "61af328b.a8ad5c",\r
-                "2446e491.707454",\r
-                "b0d73803.27cd6"\r
+                "26331c8c.278694",\r
+                "abddd00e.2e5d78",\r
+                "1199f718.5ce6e9",\r
+                "b17cca78.ca71f8",\r
+                "d90d8ec6.0e4c9",\r
+                "2f773619.4af1ca",\r
+                "58d57172.fc9ab",\r
+                "58a075cd.2a28cc",\r
+                "1ce03296.eacf2d",\r
+                "f605d964.bf649"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "192b14c7.a9450b",\r
+        "id": "abddd00e.2e5d78",\r
         "type": "outcome",\r
         "name": "DeleteSiteInstance",\r
         "xml": "<outcome value='DeleteSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1406.226463317871,\r
-        "y": 1794.050654888153,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1427.476463317871,\r
+        "y": 2145.050654888153,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "c183a045.30b8"\r
+                "22011e48.f6c9ca"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "579fcf13.f7d6f8",\r
+        "id": "26331c8c.278694",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1376.131332397461,\r
-        "y": 2071.095685482025,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1388.38134765625,\r
+        "y": 2521.095703125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "8b1483fa.aa37f8"\r
+                "4db86e7c.83c3b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9c586f2f.e33028",\r
+        "id": "81ec64a2.44c6",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1104.750244140625,\r
-        "y": 1793.5714111328125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1126.000244140625,\r
+        "y": 2144.5714111328125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "cf368a61.e211c8"\r
+                "96d2109.f63b17"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c183a045.30b8",\r
+        "id": "22011e48.f6c9ca",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1778.7502670288086,\r
-        "y": 1791.571406841278,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1800.0002670288086,\r
+        "y": 2142.571406841278,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8b1483fa.aa37f8",\r
+        "id": "4db86e7c.83c3b8",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1511.4168548583984,\r
-        "y": 2063.8187079429626,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1527.6668701171875,\r
+        "y": 2514.818603515625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "6b700dfa.5b7894",\r
+        "id": "4755a794.0050b8",\r
         "type": "outcome",\r
         "name": "ActivateSDWANDeviceInstance",\r
         "xml": "<outcome value='ActivateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1393.4167556762695,\r
-        "y": 660.571455001831,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1425.6667556762695,\r
+        "y": 554.571455001831,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "dde383e2.14d1b"\r
+                "398a4a69.0e148e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "dde383e2.14d1b",\r
+        "id": "398a4a69.0e148e",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1832.9404373168945,\r
-        "y": 659.092206954956,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1865.1904373168945,\r
+        "y": 553.092206954956,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "6dfb7278.159c44",\r
+        "id": "a6a10b16.9db1a8",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANDeviceInstance",\r
         "xml": "<outcome value='DeactivateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1444.416633605957,\r
-        "y": 1002.571409702301,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1476.666633605957,\r
+        "y": 997.571409702301,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "818a25dd.c0d2d8"\r
+                "70544464.2f4a84"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "818a25dd.c0d2d8",\r
+        "id": "70544464.2f4a84",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1900.940330505371,\r
-        "y": 1002.0922451019287,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1933.190330505371,\r
+        "y": 997.0922451019287,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "d78c63b7.25544",\r
+        "id": "4240f71c.947248",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1830.416633605957,\r
-        "y": 699.5713939666748,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1862.666633605957,\r
+        "y": 593.5713939666748,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "4877cf68.9cf618",\r
+        "id": "2e56d91.79e7326",\r
         "type": "outcome",\r
         "name": "ActivateSDWANPortInstance",\r
         "xml": "<outcome value='ActivateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1386.892951965332,\r
-        "y": 707.0506114959717,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1419.142951965332,\r
+        "y": 601.0506114959717,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "d78c63b7.25544"\r
+                "4240f71c.947248"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "25872c81.98ab74",\r
+        "id": "4dadb200.cffd6c",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANPortInstance",\r
         "xml": "<outcome value='DeactivateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1436.4166793823242,\r
-        "y": 1040.904725074768,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1468.6666793823242,\r
+        "y": 1035.904725074768,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "70d01de8.15b83c"\r
+                "2225b71.ac2f148"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "70d01de8.15b83c",\r
+        "id": "2225b71.ac2f148",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1910.940330505371,\r
-        "y": 1057.4255270957947,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1943.190330505371,\r
+        "y": 1052.4255270957947,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "bc0dfdf.db024",\r
+        "id": "b4652d97.1f82a",\r
         "type": "outcome",\r
         "name": "CreateSDWANPortInstance",\r
         "xml": "<outcome value='CreateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1439.4169540405273,\r
-        "y": 1454.9047973155975,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1457.6669540405273,\r
+        "y": 1652.9047973155975,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "8c93f3dc.323148"\r
+                "7ae0670d.5e8368"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8c93f3dc.323148",\r
+        "id": "7ae0670d.5e8368",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1895.940574645996,\r
-        "y": 1459.4255766868591,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1914.190574645996,\r
+        "y": 1657.4255766868591,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "7268797a.eb65d",\r
+        "id": "1199f718.5ce6e9",\r
         "type": "outcome",\r
         "name": "DeleteSDWANPortInstance",\r
         "xml": "<outcome value='DeleteSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1442.083480834961,\r
-        "y": 1904.9047994613647,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1463.333480834961,\r
+        "y": 2255.9047994613647,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "d08fa2da.56d74"\r
+                "30358e96.23d39a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d08fa2da.56d74",\r
+        "id": "30358e96.23d39a",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1868.6072006225586,\r
-        "y": 1904.425654888153,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1889.8572006225586,\r
+        "y": 2255.425654888153,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "9e7e4bfc.278db8",\r
+        "id": "b17cca78.ca71f8",\r
         "type": "outcome",\r
         "name": "DeleteSDWANDeviceInstance",\r
         "xml": "<outcome value='DeleteSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1450.7816314697266,\r
-        "y": 1845.1027059555054,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1472.0316314697266,\r
+        "y": 2196.1027059555054,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "23bb007c.f32be8"\r
+                "35efb4d9.5a00f4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "23bb007c.f32be8",\r
+        "id": "35efb4d9.5a00f4",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1883.3052368164062,\r
-        "y": 1844.6234192848206,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1904.5552368164062,\r
+        "y": 2195.6234192848206,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "822ca78e.7c6b1",\r
+        "id": "d84e3d35.1b6498",\r
         "type": "outcome",\r
         "name": "CreateSDWANDeviceInstance",\r
         "xml": "<outcome value='CreateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1454.7813034057617,\r
-        "y": 1411.1027607917786,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1473.0313034057617,\r
+        "y": 1609.1027607917786,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2136a8d7.1d7db8"\r
+                "7d9159a3.db89c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2136a8d7.1d7db8",\r
+        "id": "7d9159a3.db89c8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1911.3049697875977,\r
-        "y": 1409.6235747337341,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1929.5549697875977,\r
+        "y": 1607.6235747337341,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "d97c0f9f.42635",\r
+        "id": "d6b29a0.e7b84e8",\r
         "type": "outcome",\r
         "name": "ActivateSDWANVpnInstance",\r
         "xml": "<outcome value='ActivateSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1396.0461730957031,\r
-        "y": 747.8151397705078,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1428.2961730957031,\r
+        "y": 641.8151397705078,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "820fc280.2984a8"\r
+                "80e5bb2b.aa015"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2be7f987.98f3ce",\r
+        "id": "dd14e3b6.ed5b08",\r
         "type": "outcome",\r
         "name": "ActivateSDWANSiteInstance",\r
         "xml": "<outcome value='ActivateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1400.0461730957031,\r
-        "y": 790.4815826416016,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1432.2961730957031,\r
+        "y": 684.4815826416016,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "820fc280.2984a8"\r
+                "80e5bb2b.aa015"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "820fc280.2984a8",\r
+        "id": "80e5bb2b.aa015",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1671.0461654663086,\r
-        "y": 768.4816343784332,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1703.2961654663086,\r
+        "y": 662.4816343784332,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "9ce0f57b.73394"\r
+                "c89bb7c5.4c4e5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9ce0f57b.73394",\r
+        "id": "c89bb7c5.4c4e5",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2049.046012878418,\r
-        "y": 765.8152935504913,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2081.296012878418,\r
+        "y": 659.8152935504913,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "5aa2ff69.f1c198",\r
+        "id": "235e503e.fa02e8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2097.0832138061523,\r
-        "y": 1112.9380941390991,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2129.3332138061523,\r
+        "y": 1107.9380941390991,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "fe515738.186868",\r
+        "id": "3e48634b.4b27b4",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1700.0833053588867,\r
-        "y": 1114.6044387817383,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1732.3333053588867,\r
+        "y": 1109.6044387817383,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "5aa2ff69.f1c198"\r
+                "235e503e.fa02e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ebf879bd.b608f8",\r
+        "id": "7a11315c.08885",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANSiteInstance",\r
         "xml": "<outcome value='DeactivateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1442.0832901000977,\r
-        "y": 1136.6044034957886,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1474.3332901000977,\r
+        "y": 1131.6044034957886,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "fe515738.186868"\r
+                "3e48634b.4b27b4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "897395af.927c48",\r
+        "id": "83a2f891.8b61e8",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANVpnInstance",\r
         "xml": "<outcome value='DeactivateSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1436.0832595825195,\r
-        "y": 1093.9379558563232,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1468.3332595825195,\r
+        "y": 1088.9379558563232,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "fe515738.186868"\r
+                "3e48634b.4b27b4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bc324ef7.aba63",\r
+        "id": "3c335fd3.49242",\r
         "type": "outcome",\r
         "name": "CreateSDWANVpnInstance",\r
         "xml": "<outcome value='CreateSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1435.6016340255737,\r
-        "y": 1509.5928702354431,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1453.8516340255737,\r
+        "y": 1707.5928702354431,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2ea0216b.051dee"\r
+                "d4c5177.5196768"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "594d2772.c82a7",\r
+        "id": "f28f5d04.bb2268",\r
         "type": "outcome",\r
         "name": "CreateSDWANSiteInstance",\r
         "xml": "<outcome value='CreateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1427.6016111373901,\r
-        "y": 1551.2592587471008,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1445.8516111373901,\r
+        "y": 1749.2592587471008,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2ea0216b.051dee"\r
+                "d4c5177.5196768"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2ea0216b.051dee",\r
+        "id": "d4c5177.5196768",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1685.6016263961792,\r
-        "y": 1529.2592940330505,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1703.8516263961792,\r
+        "y": 1727.2592940330505,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "fe1aa149.c654b"\r
+                "a05703f3.26b69"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fe1aa149.c654b",\r
+        "id": "a05703f3.26b69",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2063.6014738082886,\r
-        "y": 1526.5929532051086,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2081.8514738082886,\r
+        "y": 1724.5929532051086,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "1b2e943b.d70b5c",\r
+        "id": "d90d8ec6.0e4c9",\r
         "type": "outcome",\r
         "name": "DeleteSDWANVpnInstance",\r
         "xml": "<outcome value='DeleteSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1433.083396911621,\r
-        "y": 1951.938106060028,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1454.333396911621,\r
+        "y": 2302.938106060028,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "8ae554b4.b818a"\r
+                "f656e1fc.4af1b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c0d1dfda.9d8bf8",\r
+        "id": "2f773619.4af1ca",\r
         "type": "outcome",\r
         "name": "DeleteSDWANSiteInstance",\r
         "xml": "<outcome value='DeleteSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1433.083396911621,\r
-        "y": 1992.6046710014343,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1454.333396911621,\r
+        "y": 2343.6046710014343,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "8ae554b4.b818a"\r
+                "f656e1fc.4af1b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8ae554b4.b818a",\r
+        "id": "f656e1fc.4af1b8",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1683.0833892822266,\r
-        "y": 1971.6045298576355,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1704.3333892822266,\r
+        "y": 2322.6045298576355,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "de065509.487fa8"\r
+                "ba7745e3.6b0038"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "de065509.487fa8",\r
+        "id": "ba7745e3.6b0038",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2061.083236694336,\r
-        "y": 1968.9381890296936,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2082.333236694336,\r
+        "y": 2319.9381890296936,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "f1013e22.c6f5a8",\r
+        "id": "c4652243.2cd31",\r
         "type": "set",\r
         "name": "set skip-mdsal-update to Y",\r
         "xml": "<set>\n<parameter name='skip-mdsal-update' value='Y' />\n",\r
         "comments": "",\r
-        "x": 2212.7818908691406,\r
-        "y": 352.4920959472656,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2245.0318908691406,\r
+        "y": 347.4920959472656,\r
+        "z": "2eb85326.b33f34",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b136a2e3.d45108",\r
+        "id": "1ab73b94.dc63c4",\r
         "type": "set",\r
         "name": "set ack-final to 'N'",\r
         "xml": "<set>\n<parameter name='ack-final' value='N' />\n",\r
         "comments": "",\r
-        "x": 2184.591583251953,\r
-        "y": 416.8401184082031,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2216.841583251953,\r
+        "y": 411.8401184082031,\r
+        "z": "2eb85326.b33f34",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d256cf36.0c3f28",\r
+        "id": "3482a769.667ab",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1976.1311340332031,\r
-        "y": 355.4126281738281,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2008.3811340332031,\r
+        "y": 350.4126281738281,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "f1013e22.c6f5a8",\r
-                "b136a2e3.d45108"\r
+                "c4652243.2cd31",\r
+                "1ab73b94.dc63c4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cfee6463.dd54a",\r
+        "id": "e62becbd.74017",\r
         "type": "comment",\r
         "name": "ack-final=N triggers Provider to call vnf-topology-operation-aysnc DG",\r
         "info": "",\r
         "comments": "",\r
-        "x": 2396.908966064453,\r
-        "y": 457.8094787597656,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2429.158966064453,\r
+        "y": 452.8094787597656,\r
+        "z": "2eb85326.b33f34",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ebf58448.85f46",\r
+        "id": "fe882fb9.dd7f48",\r
         "type": "switchNode",\r
         "name": "so-response-url empty?",\r
         "xml": "<switch test='`length($vnf-topology-operation-input.sdnc-request-header.svc-notification-url) == 0`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1082.0357971191406,\r
-        "y": 202.28570556640625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1114.2857971191406,\r
+        "y": 197.28570556640625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "6efaf214.4f6624",\r
-                "a9793fc1.08e938"\r
+                "baa70abd.0fd63",\r
+                "686c7efb.0e9a6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6efaf214.4f6624",\r
+        "id": "baa70abd.0fd63",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1307.0357971191406,\r
-        "y": 158.28570556640625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1339.2857971191406,\r
+        "y": 153.28570556640625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "aa3c8ce5.53793"\r
+                "a4fab659.b0a56"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a9793fc1.08e938",\r
+        "id": "686c7efb.0e9a6",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1297.0357971191406,\r
-        "y": 250.28570556640625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1329.2857971191406,\r
+        "y": 245.28570556640625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "31d0be5e.539722"\r
+                "8c77358e.ed8228"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "31d0be5e.539722",\r
+        "id": "8c77358e.ed8228",\r
         "type": "switchNode",\r
         "name": "so-response-url = ignored URL?",\r
         "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url == $prop.so.ignore-url`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1519.0357971191406,\r
-        "y": 251.28570556640625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1551.2857971191406,\r
+        "y": 246.28570556640625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "de4e1a7d.d2376",\r
-                "84d1db43.9eb618"\r
+                "11d3b338.9e5c8d",\r
+                "200ae17a.0a95c6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "aa3c8ce5.53793",\r
+        "id": "a4fab659.b0a56",\r
         "type": "call",\r
         "name": "call vnf-topology-operation-assign-sync",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign-sync' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1983.0357971191406,\r
-        "y": 159.28570556640625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2015.2857971191406,\r
+        "y": 154.28570556640625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "de4e1a7d.d2376",\r
+        "id": "11d3b338.9e5c8d",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1759.0357971191406,\r
-        "y": 250.28570556640625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1791.2857971191406,\r
+        "y": 245.28570556640625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "aa3c8ce5.53793"\r
+                "a4fab659.b0a56"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "84d1db43.9eb618",\r
+        "id": "200ae17a.0a95c6",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1767.0357971191406,\r
-        "y": 351.28570556640625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1799.2857971191406,\r
+        "y": 346.28570556640625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "d256cf36.0c3f28"\r
+                "3482a769.667ab"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "621f2def.3bc7f4",\r
+        "id": "b2848e24.03a05",\r
         "type": "execute",\r
         "name": "execute getProperties",\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' />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1095.4122619628906,\r
-        "y": 92.54547119140625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1127.6622619628906,\r
+        "y": 87.54547119140625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8097b3a1.623438",\r
+        "id": "4fafd3d6.e9c86c",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 904.5033264160156,\r
-        "y": 90.727294921875,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 936.7533264160156,\r
+        "y": 85.727294921875,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "ebf58448.85f46",\r
-                "621f2def.3bc7f4"\r
+                "fe882fb9.dd7f48",\r
+                "b2848e24.03a05"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2476b7aa.1b79f8",\r
+        "id": "ab85e0c9.740d",\r
         "type": "outcome",\r
         "name": "CreateSOTNUnderlayInstance",\r
         "xml": "<outcome value='CreateSOTNUnderlayInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1435.4165983200073,\r
-        "y": 1588.999900341034,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1453.6665983200073,\r
+        "y": 1786.999900341034,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "93caa9d0.6497a8"\r
+                "57558677.681798"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "93caa9d0.6497a8",\r
+        "id": "57558677.681798",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1891.940218925476,\r
-        "y": 1593.5206797122955,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1910.190218925476,\r
+        "y": 1791.5206797122955,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "85c7833e.301688",\r
+        "id": "1335f1cb.2420be",\r
         "type": "outcome",\r
         "name": "ActivateSOTNUnderlayInstance",\r
         "xml": "<outcome value='ActivateSOTNUnderlayInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1412.7499694824219,\r
-        "y": 829.3332703113556,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1444.9999694824219,\r
+        "y": 723.3332703113556,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "9729b91.9391748"\r
+                "f5e7fd9c.42866"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9729b91.9391748",\r
+        "id": "f5e7fd9c.42866",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1872.6069641113281,\r
-        "y": 823.8540802001953,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1904.8569641113281,\r
+        "y": 717.8540802001953,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "e2eb0e3d.ee18",\r
+        "id": "d9d8a57.b489358",\r
         "type": "outcome",\r
         "name": "DeactivateSOTNUnderlayInstance",\r
         "xml": "<outcome value='DeactivateSOTNUnderlayInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1444.4166564941406,\r
-        "y": 1172.6665802001953,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1476.6666564941406,\r
+        "y": 1167.6665802001953,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2575141a.d8b94c"\r
+                "24872c71.c379b4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2575141a.d8b94c",\r
+        "id": "24872c71.c379b4",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1912.6069641113281,\r
-        "y": 1175.520523071289,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1944.8569641113281,\r
+        "y": 1170.520523071289,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "61af328b.a8ad5c",\r
+        "id": "58d57172.fc9ab",\r
         "type": "outcome",\r
         "name": "DeleteSOTNUnderlayInstance",\r
         "xml": "<outcome value='DeleteSOTNUnderlayInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1441.4166717529297,\r
-        "y": 2026.3333563804626,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1462.6666717529297,\r
+        "y": 2377.3333563804626,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "26312d60.4b5c62"\r
+                "fc2f8c01.3ad288"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "26312d60.4b5c62",\r
+        "id": "fc2f8c01.3ad288",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1879.6071014404297,\r
-        "y": 2022.5207343101501,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1900.8571014404297,\r
+        "y": 2373.52073431015,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "84311768.7532f",\r
+        "id": "e984aa3b.a932c",\r
         "type": "outcome",\r
         "name": "CreateAccessConnectivityInstance",\r
         "xml": "<outcome value='CreateAccessConnectivityInstance'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1449.25,\r
-        "y": 1292.75,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1467.5,\r
+        "y": 1490.75,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "f6358eed.8fd788"\r
+                "ebf3fb46.44d4c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f6358eed.8fd788",\r
+        "id": "ebf3fb46.44d4c8",\r
         "type": "for",\r
         "name": "for:vnf-input-paramters",\r
         "xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1735.182861328125,\r
-        "y": 1290.033447265625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1753.432861328125,\r
+        "y": 1488.033447265625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "abf89d78.ae136"\r
+                "22ea9454.058e1c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "abf89d78.ae136",\r
+        "id": "22ea9454.058e1c",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer",\r
         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1972.349365234375,\r
-        "y": 1284.033447265625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1990.599365234375,\r
+        "y": 1482.033447265625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2b63eeb1.50b352"\r
+                "d9ddd0af.b69c08"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2b63eeb1.50b352",\r
+        "id": "d9ddd0af.b69c08",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2166.349365234375,\r
-        "y": 1285.03369140625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2184.599365234375,\r
+        "y": 1483.03369140625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "c45d3d3e.1b1e7"\r
+                "15707209.859e26"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3fe1f22d.2ed6be",\r
+        "id": "dded3789.e6b0f",\r
         "type": "outcome",\r
         "name": "CreateInternetProfileInstance",\r
         "xml": "<outcome value='CreateInternetProfileInstance'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1427.033203125,\r
-        "y": 1329.616455078125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1445.283203125,\r
+        "y": 1527.616455078125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "37bd78e1.b21b58"\r
+                "6b82d221.0cf264"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "37bd78e1.b21b58",\r
+        "id": "6b82d221.0cf264",\r
         "type": "for",\r
         "name": "for:vnf-input-paramters",\r
         "xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1712.189453125,\r
-        "y": 1328.60595703125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1730.439453125,\r
+        "y": 1526.60595703125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "113a92fc.f5a94d"\r
+                "4637bf92.809598"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "113a92fc.f5a94d",\r
+        "id": "4637bf92.809598",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer",\r
         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1965.3558349609375,\r
-        "y": 1325.60595703125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1983.6058349609375,\r
+        "y": 1523.60595703125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "8bbd3b64.069538"\r
+                "ea561129.ba7158"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8bbd3b64.069538",\r
+        "id": "ea561129.ba7158",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2161.355712890625,\r
-        "y": 1341.606201171875,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2179.605712890625,\r
+        "y": 1539.606201171875,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "fc5c5b44.57562"\r
+                "eb33a1df.b27988"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fc5c5b44.57562",\r
+        "id": "eb33a1df.b27988",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer value",\r
         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2384.356201171875,\r
-        "y": 1351.6064453125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2402.606201171875,\r
+        "y": 1549.6064453125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "63e9014d.bd269"\r
+                "94514c5c.b09aa"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c45d3d3e.1b1e7",\r
+        "id": "15707209.859e26",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer value",\r
         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2398.349853515625,\r
-        "y": 1285.033935546875,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2416.599853515625,\r
+        "y": 1483.033935546875,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2afa08fa.5da1b8",\r
-                "72740d7.e2257f4"\r
+                "3bc9e881.210f6",\r
+                "1e5debbd.1cc0bc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2afa08fa.5da1b8",\r
+        "id": "3bc9e881.210f6",\r
         "type": "outcomeTrue",\r
         "name": "HUAWEI",\r
         "xml": "<outcome value='HUAWEI'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2630.183349609375,\r
-        "y": 1287.03369140625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2648.433349609375,\r
+        "y": 1485.03369140625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "a877b7c1.f7ab2"\r
+                "d86bc2c0.93fa8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "72740d7.e2257f4",\r
+        "id": "1e5debbd.1cc0bc",\r
         "type": "other",\r
         "name": "Other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2624.583251953125,\r
-        "y": 1318.75,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2642.833251953125,\r
+        "y": 1516.75,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "2a1c0ea0.7b8bfa"\r
+                "55dea9c1.ebbe88"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "63e9014d.bd269",\r
+        "id": "94514c5c.b09aa",\r
         "type": "outcomeTrue",\r
         "name": "HUAWEI",\r
         "xml": "<outcome value='HUAWEI'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2612.189453125,\r
-        "y": 1381.606201171875,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2630.439453125,\r
+        "y": 1579.606201171875,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "a5024e1b.c39f78"\r
+                "d09ca34a.b65f98"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a877b7c1.f7ab2",\r
+        "id": "d86bc2c0.93fa8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:bbs-access-connectivity-vnf-topology-operation-create-huawei",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-access-connectivity-vnf-topology-operation-create-huawei' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3127.0269165039062,\r
-        "y": 1287.044189453125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 3145.2769165039062,\r
+        "y": 1485.044189453125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "2a1c0ea0.7b8bfa",\r
+        "id": "55dea9c1.ebbe88",\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-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name+' is invalid manufacturer,please check!'`\" />",\r
         "comments": "",\r
-        "x": 2872.916259765625,\r
-        "y": 1330.4166259765625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2891.166259765625,\r
+        "y": 1528.4166259765625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a5024e1b.c39f78",\r
+        "id": "d09ca34a.b65f98",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:bbs-internet-profile-vnf-topology-operation-create-huawei",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-create-huawei' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3113.033447265625,\r
-        "y": 1383.616943359375,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 3131.283447265625,\r
+        "y": 1581.616943359375,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "2446e491.707454",\r
+        "id": "58a075cd.2a28cc",\r
         "type": "outcome",\r
         "name": "DeleteAccessConnectivityInstance",\r
         "xml": "<outcome value='DeleteAccessConnectivityInstance'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1457.5,\r
-        "y": 1702.75,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1478.75,\r
+        "y": 2053.75,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "6a4bffaa.01c668"\r
+                "2fe8fc2c.9e18c4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6a4bffaa.01c668",\r
+        "id": "2fe8fc2c.9e18c4",\r
         "type": "for",\r
         "name": "for:vnf-input-paramters",\r
         "xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1770.3232421875,\r
-        "y": 1693.73974609375,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1791.5732421875,\r
+        "y": 2044.73974609375,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "21623b1f.3f8d44"\r
+                "2ff99d94.7a38aa"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "21623b1f.3f8d44",\r
+        "id": "2ff99d94.7a38aa",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer",\r
         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2041.4893798828125,\r
-        "y": 1687.73974609375,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2062.7393798828125,\r
+        "y": 2038.73974609375,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "635419c6.f5c7f"\r
+                "9d28a15.cb4fb6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "635419c6.f5c7f",\r
+        "id": "9d28a15.cb4fb6",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2241.489501953125,\r
-        "y": 1687.7396240234375,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2262.739501953125,\r
+        "y": 2038.7396240234375,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "5da11410.41b91c"\r
+                "da625743.b6b9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b0d73803.27cd6",\r
+        "id": "1ce03296.eacf2d",\r
         "type": "outcome",\r
         "name": "DeleteInternetProfileInstance",\r
         "xml": "<outcome value='DeleteInternetProfileInstance'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1439.066650390625,\r
-        "y": 1742.800048828125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1460.316650390625,\r
+        "y": 2093.800048828125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "a4985cc.fb944a"\r
+                "e0e2140.cef7d7"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a4985cc.fb944a",\r
+        "id": "e0e2140.cef7d7",\r
         "type": "for",\r
         "name": "for:vnf-input-paramters",\r
         "xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1716.4000244140625,\r
-        "y": 1754.5167236328125,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1737.6500244140625,\r
+        "y": 2105.5167236328125,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "5b4764ae.b86d54"\r
+                "282b6105.2ce956"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5b4764ae.b86d54",\r
+        "id": "282b6105.2ce956",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer",\r
         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1944.5663528442383,\r
-        "y": 1743.516764640808,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1965.8163528442383,\r
+        "y": 2094.516764640808,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "7462815c.35f6c"\r
+                "7a75ccaa.45800c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7462815c.35f6c",\r
+        "id": "7a75ccaa.45800c",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2134.566230773926,\r
-        "y": 1743.517008781433,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2155.816230773926,\r
+        "y": 2094.517008781433,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "81263075.e9e5c8"\r
+                "bc8cb901.156488"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "81263075.e9e5c8",\r
+        "id": "bc8cb901.156488",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer value",\r
         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2348.566719055176,\r
-        "y": 1739.517252922058,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2369.816719055176,\r
+        "y": 2090.517252922058,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "532a59b0.2081a8"\r
+                "6506ce79.c7ee4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5da11410.41b91c",\r
+        "id": "da625743.b6b9",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer value",\r
         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2500.4898986816406,\r
-        "y": 1680.739761352539,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2521.7398986816406,\r
+        "y": 2031.739761352539,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "a81f1872.f6aa9"\r
+                "9eeed2b2.ffa65"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a81f1872.f6aa9",\r
+        "id": "9eeed2b2.ffa65",\r
         "type": "outcomeTrue",\r
         "name": "HUAWEI",\r
         "xml": "<outcome value='HUAWEI'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2703.3232421875,\r
-        "y": 1689.7396240234375,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2724.5732421875,\r
+        "y": 2040.7396240234375,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "848d81b5.130f"\r
+                "74318d61.eabaac"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "532a59b0.2081a8",\r
+        "id": "6506ce79.c7ee4",\r
         "type": "outcomeTrue",\r
         "name": "HUAWEI",\r
         "xml": "<outcome value='HUAWEI'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2536.3997802734375,\r
-        "y": 1735.5169677734375,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2557.6497802734375,\r
+        "y": 2086.5169677734375,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "91a8b026.241e6"\r
+                "1d65720a.ff1cbe"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "91a8b026.241e6",\r
+        "id": "1d65720a.ff1cbe",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:bbs-internet-profile-vnf-topology-operation-delete-huawei",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-delete-huawei' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2879.243896484375,\r
-        "y": 1795.527587890625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2900.493896484375,\r
+        "y": 2146.527587890625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "848d81b5.130f",\r
+        "id": "74318d61.eabaac",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:bbs-access-connectivity-vnf-topology-operation-delete-huawei",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-access-connectivity-vnf-topology-operation-delete-huawei' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3144.500732421875,\r
-        "y": 1738.7506103515625,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 3165.750732421875,\r
+        "y": 2089.7506103515625,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ed83e2f.1faa02",\r
+        "id": "5ce4691c.c29e48",\r
         "type": "outcome",\r
         "name": "update",\r
         "xml": "<outcome value='update'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 923.25,\r
-        "y": 2087,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 943.499942779541,\r
+        "y": 2514.00008392334,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "ac49fc9a.d44d8"\r
+                "7808856d.04e4ac"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ac49fc9a.d44d8",\r
+        "id": "7808856d.04e4ac",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1126.2500305175781,\r
-        "y": 2180.5,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1146.4999732971191,\r
+        "y": 2607.50008392334,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "b2415f4b.ebd0b"\r
+                "acb579b0.a5157"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b2415f4b.ebd0b",\r
+        "id": "acb579b0.a5157",\r
         "type": "outcome",\r
         "name": "ChangeInternetProfileInstance",\r
         "xml": "<outcome value='ChangeInternetProfileInstance'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1399.2499694824219,\r
-        "y": 2177,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1419.499912261963,\r
+        "y": 2604.00008392334,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "63ada1aa.f3dca"\r
+                "4bd1e7d2.287198"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "63ada1aa.f3dca",\r
+        "id": "4bd1e7d2.287198",\r
         "type": "for",\r
         "name": "for:vnf-input-paramters",\r
         "xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1723.4061851501465,\r
-        "y": 2175.98966217041,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 1743.6561279296875,\r
+        "y": 2602.98974609375,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "549f7959.1514a"\r
+                "56a21b47.885b94"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "549f7959.1514a",\r
+        "id": "56a21b47.885b94",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer",\r
         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1970.5724754333496,\r
-        "y": 2175.989679336548,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2004.822509765625,\r
+        "y": 2600.98974609375,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "39016a4.e633196"\r
+                "759ecbfa.1b9c8c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "39016a4.e633196",\r
+        "id": "759ecbfa.1b9c8c",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2158.5723609924316,\r
-        "y": 2177.9898414611816,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2192.822395324707,\r
+        "y": 2602.989908218384,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "c2bca40.df8efe"\r
+                "8126afba.fba1b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c2bca40.df8efe",\r
+        "id": "8126afba.fba1b8",\r
         "type": "switchNode",\r
         "name": "switch:manufacturer value",\r
         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2369.5730018615723,\r
-        "y": 2177.9901666641235,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2403.8230361938477,\r
+        "y": 2602.9902334213257,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "b6eebb76.bbbd78"\r
+                "110da833.5c065"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b6eebb76.bbbd78",\r
+        "id": "110da833.5c065",\r
         "type": "outcomeTrue",\r
         "name": "HUAWEI",\r
         "xml": "<outcome value='HUAWEI'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2621.406234741211,\r
-        "y": 2103.98983001709,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 2655.6562690734863,\r
+        "y": 2528.989896774292,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             [\r
-                "cafa6fb7.bfb6"\r
+                "b3b76bdf.09e3e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cafa6fb7.bfb6",\r
+        "id": "b3b76bdf.09e3e",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:bbs-internet-profile-vnf-topology-operation-change-huawei",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-change-huawei' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3085.250789642334,\r
-        "y": 2105.000162124634,\r
-        "z": "bcfd2953.62c4e",\r
+        "x": 3119.5008239746094,\r
+        "y": 2530.000228881836,\r
+        "z": "2eb85326.b33f34",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "396cf4fc.519af4",\r
+        "type": "outcome",\r
+        "name": "ActivateTransportSliceInstance",\r
+        "xml": "<outcome value='ActivateTransportSliceInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1441,\r
+        "y": 787,\r
+        "z": "2eb85326.b33f34",\r
+        "wires": [\r
+            [\r
+                "98abb5bf.a53b2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98abb5bf.a53b2",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1900.8569946289062,\r
+        "y": 781.5208098888397,\r
+        "z": "2eb85326.b33f34",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f605d964.bf649",\r
+        "type": "outcome",\r
+        "name": "DeleteTransportSliceInstance",\r
+        "xml": "<outcome value='DeleteTransportSliceInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1457,\r
+        "y": 2445,\r
+        "z": "2eb85326.b33f34",\r
+        "wires": [\r
+            [\r
+                "68ebe508.81cc9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "68ebe508.81cc9c",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-delete",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1895.1904296875,\r
+        "y": 2441.1873779296875,\r
+        "z": "2eb85326.b33f34",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "42d2af76.1ab5f8",\r
+        "type": "outcome",\r
+        "name": "AllocateTransportSliceInstance",\r
+        "xml": "<outcome value='AllocateTransportSliceInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1450,\r
+        "y": 1855,\r
+        "z": "2eb85326.b33f34",\r
+        "wires": [\r
+            [\r
+                "d6261b88.e8ce"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6261b88.e8ce",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-allocate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1902.523681640625,\r
+        "y": 1849.520751953125,\r
+        "z": "2eb85326.b33f34",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4fb9c783.53cbd8",\r
+        "type": "outcome",\r
+        "name": "DeactivateTransportSliceInstance",\r
+        "xml": "<outcome value='DeactivateTransportSliceInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1475,\r
+        "y": 1240,\r
+        "z": "2eb85326.b33f34",\r
+        "wires": [\r
+            [\r
+                "366804fb.ac0b14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "366804fb.ac0b14",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1943.1903076171875,\r
+        "y": 1242.8539428710938,\r
+        "z": "2eb85326.b33f34",\r
         "wires": [\r
             []\r
         ]\r
index 48817a4..95a8497 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "7a5b2247.76a96c",\r
+        "id": "85443592.af092",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 115,\r
-        "y": 61,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 98,\r
+        "y": 38,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8f393b9e.9e17b"\r
+                "852063b.0947b2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8f393b9e.9e17b",\r
+        "id": "852063b.0947b2",\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": 246.2856903076172,\r
-        "y": 110.23810863494873,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 229.2856903076172,\r
+        "y": 87.23810863494873,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "eff67602.0d4e4"\r
+                "aeeba709.125ee8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "eff67602.0d4e4",\r
+        "id": "aeeba709.125ee8",\r
         "type": "method",\r
         "name": "method sotn-vf-operation-uni-activate",\r
         "xml": "<method rpc='sotn-vf-operation-uni-activate' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 249.42861938476562,\r
-        "y": 195.00003242492676,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 232.42861938476562,\r
+        "y": 172.00003242492676,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "c03d71cc.6719d8"\r
+                "607019e9.c9785"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b1251334.94c658",\r
+        "id": "91f12862.db0db8",\r
         "type": "switchNode",\r
         "name": "switch vf-modules.vf-module_length",\r
         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 721.9959564208984,\r
-        "y": 375.99998915195465,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 704.9959564208984,\r
+        "y": 352.99998915195465,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "2185890c.41cf5e",\r
-                "7887ee8e.f7ad9",\r
-                "bf0b3d3b.de1c1"\r
+                "583dc2c6.a1eadc",\r
+                "8575a683.b84fa",\r
+                "550ed40f.69db1c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c03d71cc.6719d8",\r
+        "id": "607019e9.c9785",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 340.6626205444336,\r
-        "y": 480.66670763492584,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 323.6626205444336,\r
+        "y": 457.66670763492584,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "b1251334.94c658",\r
-                "e40d5cd3.6df488",\r
-                "77bef901.3c81f",\r
-                "f1780b76.81d518",\r
-                "5733466d.dcbb88",\r
-                "6d51d616.88647",\r
-                "aab160b4.f76088",\r
-                "48dc3a93.b23a44"\r
+                "91f12862.db0db8",\r
+                "9d769fa.70def6",\r
+                "5f3f8849.95d748",\r
+                "e7066e5e.bd1598",\r
+                "d390a700.afff28",\r
+                "bbda4146.d9ba7",\r
+                "eb840621.54dba",\r
+                "90ab95eb.d707c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "77bef901.3c81f",\r
+        "id": "5f3f8849.95d748",\r
         "type": "for",\r
         "name": "for each vnf",\r
         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 687.0273170471191,\r
-        "y": 246.269144654274,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 670.0273170471191,\r
+        "y": 223.269144654274,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "c9d21017.2aa0b8"\r
+                "89dba9bf.84a9b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e40d5cd3.6df488",\r
+        "id": "9d769fa.70def6",\r
         "type": "switchNode",\r
         "name": "switch vnf_length",\r
         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 691.9959716796875,\r
-        "y": 185.00001394748688,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 674.9959716796875,\r
+        "y": 162.00001394748688,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "eb024dbb.2172c"\r
+                "6defab1b.9f589c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "eb024dbb.2172c",\r
+        "id": "6defab1b.9f589c",\r
         "type": "outcome",\r
         "name": "NULL",\r
         "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 871.9959526062012,\r
-        "y": 184.0000034570694,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 854.9959526062012,\r
+        "y": 161.0000034570694,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "9467f8cc.185d38"\r
+                "64e5f15f.80e5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9467f8cc.185d38",\r
+        "id": "64e5f15f.80e5",\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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
         "comments": "",\r
-        "x": 1021.4246788024902,\r
-        "y": 185.14292109012604,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1004.4246788024902,\r
+        "y": 162.14292109012604,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c9d21017.2aa0b8",\r
+        "id": "89dba9bf.84a9b",\r
         "type": "switchNode",\r
         "name": "switch this vnf-id == input vnf-id",\r
         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 909.9959678649902,\r
-        "y": 247.00000965595245,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 892.9959678649902,\r
+        "y": 224.00000965595245,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "5eb86cb5.aa0e34"\r
+                "927d25a0.9b192"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5eb86cb5.aa0e34",\r
+        "id": "927d25a0.9b192",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1124.9959526062012,\r
-        "y": 245.0000034570694,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1107.9959526062012,\r
+        "y": 222.0000034570694,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "eb010427.42f398"\r
+                "cf847dc6.e7718"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8fe487a9.faab98",\r
+        "id": "28206034.44efa",\r
         "type": "set",\r
         "name": "set vnf-index",\r
         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
         "comments": "",\r
-        "x": 1465.9959716796875,\r
-        "y": 213,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1448.9959716796875,\r
+        "y": 190,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "7887ee8e.f7ad9",\r
+        "id": "8575a683.b84fa",\r
         "type": "outcome",\r
         "name": "NULL",\r
         "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 981.9959716796875,\r
-        "y": 400,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 964.9959716796875,\r
+        "y": 377,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "6182e795.96a958"\r
+                "119d4d0b.7a079b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2185890c.41cf5e",\r
+        "id": "583dc2c6.a1eadc",\r
         "type": "outcome",\r
         "name": "0",\r
         "xml": "<outcome value='0'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 978.9959716796875,\r
-        "y": 328,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 961.9959716796875,\r
+        "y": 305,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "6182e795.96a958"\r
+                "119d4d0b.7a079b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6182e795.96a958",\r
+        "id": "119d4d0b.7a079b",\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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
         "comments": "",\r
-        "x": 1150.9959716796875,\r
-        "y": 362,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1133.9959716796875,\r
+        "y": 339,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "bf0b3d3b.de1c1",\r
+        "id": "550ed40f.69db1c",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 943.9959487915039,\r
-        "y": 470.9999986886978,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 926.9959487915039,\r
+        "y": 447.9999986886978,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "f14d9e8b.d52ee8"\r
+                "7abd9cc7.4badf4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "13dbecad.5f9583",\r
+        "id": "c7633f36.59d75",\r
         "type": "set",\r
         "name": "set vf-module_length",\r
         "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",\r
         "comments": "",\r
-        "x": 1297.995964050293,\r
-        "y": 469.0000126361847,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1280.995964050293,\r
+        "y": 446.0000126361847,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f14d9e8b.d52ee8",\r
+        "id": "7abd9cc7.4badf4",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1104.995994567871,\r
-        "y": 467.99999010562897,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1087.995994567871,\r
+        "y": 444.99999010562897,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "13dbecad.5f9583",\r
-                "76e7a061.215fe"\r
+                "c7633f36.59d75",\r
+                "ec6b544.1550628"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "76e7a061.215fe",\r
+        "id": "ec6b544.1550628",\r
         "type": "for",\r
         "name": "for each existing vf-index",\r
         "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1316.9959335327148,\r
-        "y": 521.9999891519547,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1299.9959335327148,\r
+        "y": 498.99998915195465,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "4d4229cc.870928"\r
+                "2f003dfc.c09752"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4d4229cc.870928",\r
+        "id": "2f003dfc.c09752",\r
         "type": "switchNode",\r
         "name": "switch vf-module-id found",\r
         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1559.995948791504,\r
-        "y": 516.9999986886978,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1542.995948791504,\r
+        "y": 493.9999986886978,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "235f500c.adb2d8"\r
+                "bc526c4d.7064b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "235f500c.adb2d8",\r
+        "id": "bc526c4d.7064b8",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1757.9959774017334,\r
-        "y": 504.00000536441803,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1740.9959774017334,\r
+        "y": 481.00000536441803,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "b98c0673.7d62f8"\r
+                "8d2f78f6.19375"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b98c0673.7d62f8",\r
+        "id": "8d2f78f6.19375",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1909.995948791504,\r
-        "y": 505.9999986886978,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1892.995948791504,\r
+        "y": 482.9999986886978,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "9c359698.db3d68",\r
-                "1962516c.e21167"\r
+                "77a297db.c2104",\r
+                "6e412733.5c6ba"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9c359698.db3d68",\r
+        "id": "77a297db.c2104",\r
         "type": "set",\r
         "name": "set tmp.vidx and ctx.vnf-data",\r
         "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
         "comments": "",\r
-        "x": 2137.996063232422,\r
-        "y": 448.0000025033951,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2120.996063232422,\r
+        "y": 425.0000025033951,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "1962516c.e21167",\r
+        "id": "6e412733.5c6ba",\r
         "type": "set",\r
         "name": "set vf-module-request-input.",\r
         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
         "comments": "",\r
-        "x": 2141.996063232422,\r
-        "y": 502.0000025033951,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2124.996063232422,\r
+        "y": 479.0000025033951,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f1780b76.81d518",\r
+        "id": "e7066e5e.bd1598",\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": 615.9961547851562,\r
-        "y": 1675.501220703125,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 598.9961547851562,\r
+        "y": 1652.501220703125,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "29a9aeb.30d1952",\r
+        "id": "8ad19510.26b14",\r
         "type": "call",\r
         "name": "call sotn-get-vf-module-uni-param",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2172.45108795166,\r
-        "y": 553.0104948282242,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2155.45108795166,\r
+        "y": 530.0104948282242,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "5733466d.dcbb88",\r
+        "id": "d390a700.afff28",\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' />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 701.9959564208984,\r
-        "y": 315.5039049386978,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 684.9959564208984,\r
+        "y": 292.5039049386978,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "eb010427.42f398",\r
+        "id": "cf847dc6.e7718",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1288,\r
-        "y": 255,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1271,\r
+        "y": 232,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8fe487a9.faab98",\r
-                "c2b0533e.d5b1d"\r
+                "28206034.44efa",\r
+                "7bec934c.afda74"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c2b0533e.d5b1d",\r
+        "id": "7bec934c.afda74",\r
         "type": "set",\r
         "name": "set tmp.vnf-id",\r
         "xml": "<set>\n<parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\n",\r
         "comments": "",\r
-        "x": 1473,\r
-        "y": 270,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1456,\r
+        "y": 247,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "48dc3a93.b23a44",\r
+        "id": "90ab95eb.d707c",\r
         "type": "get-resource",\r
         "name": "get-resource generic-vnf",\r
         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n        pfx='tmp.aai.generic-vnf' local-only='false' >\n\n<!--AND depth = '0'\"-->\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 594,\r
-        "y": 534,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 577,\r
+        "y": 511,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "28391a2c.3321fe"\r
+                "8ccaf711.31aa4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6a811cc0.b174ac",\r
+        "id": "8cabc424.4e22c8",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 824,\r
-        "y": 582,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 807,\r
+        "y": 559,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "1afc6101.b3a3ff",\r
-                "6ac23f85.2f3a38"\r
+                "5fc2da03.1d071c",\r
+                "3d46b86.8c742c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6ac23f85.2f3a38",\r
+        "id": "3d46b86.8c742c8",\r
         "type": "for",\r
         "name": "for each relationship in gen-vnf",\r
         "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1036,\r
-        "y": 585,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1019,\r
+        "y": 562,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "5e0bc542.fea784"\r
+                "4909c045.b1da"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5e0bc542.fea784",\r
+        "id": "4909c045.b1da",\r
         "type": "switchNode",\r
         "name": "switch related-to",\r
         "xml": "<switch test='`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1262,\r
-        "y": 589,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1245,\r
+        "y": 566,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "ad3f5adb.0bf5b8"\r
+                "9b3ab29f.42cf08"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ad3f5adb.0bf5b8",\r
+        "id": "9b3ab29f.42cf08",\r
         "type": "outcome",\r
         "name": "uni",\r
         "xml": "<outcome value='uni'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1451.285888671875,\r
-        "y": 597.82177734375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1434.285888671875,\r
+        "y": 574.82177734375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "4a0655ab.fa2fa4"\r
+                "65cb3fab.86e0b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4a0655ab.fa2fa4",\r
+        "id": "65cb3fab.86e0b8",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1626.117431640625,\r
-        "y": 600.3402709960938,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1609.117431640625,\r
+        "y": 577.3402709960938,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8a87ece8.73f728"\r
+                "7d0630b8.9b289"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2cd069f4.1bd85e",\r
+        "id": "7a2b5a85.21693c",\r
         "type": "set",\r
         "name": "set tmp.unis.uni[].tpId",\r
         "xml": "<set>\n<!--<parameter name='`tmp.unis.uni[$vidx].tpId`' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />-->\n\n<parameter name='tmp.tp-id' value=\"`$tmp.aai.uni.tp-id`\" />\n",\r
         "comments": "",\r
-        "x": 2557.117431640625,\r
-        "y": 641.3402709960938,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2540.117431640625,\r
+        "y": 618.3402709960938,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "1afc6101.b3a3ff",\r
+        "id": "5fc2da03.1d071c",\r
         "type": "switchNode",\r
         "name": "switch number of unis  less than two",\r
         "xml": "<switch test='`$tmp.unis.uni_length &lt; 2`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1011,\r
-        "y": 749,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 994,\r
+        "y": 726,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "3398154f.dabcca"\r
+                "c70e962d.92df"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f0dacaa2.3f6d9",\r
+        "id": "24e891c1.19b05e",\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\n",\r
         "comments": "",\r
-        "x": 1419,\r
-        "y": 751,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1402,\r
+        "y": 728,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3398154f.dabcca",\r
+        "id": "c70e962d.92df",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1227,\r
-        "y": 750,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1210,\r
+        "y": 727,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "f0dacaa2.3f6d9"\r
+                "24e891c1.19b05e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e85654b4.901fd",\r
+        "id": "c25132f5.a97a9",\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.uni.tp-id`'/>\n<parameter name=\"regex\" value=\"[^-]+$\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n\n",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.uni.tp-id`'/>\n<parameter name=\"regex\" value=\"[^-]+$\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2596,\r
-        "y": 716,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2579,\r
+        "y": 693,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "fb92d303.a6d858",\r
-                "3b07d667.72d91a"\r
+                "24c82b36.46c39c",\r
+                "630e66bd.e52df8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3b07d667.72d91a",\r
+        "id": "630e66bd.e52df8",\r
         "type": "failure",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2819,\r
-        "y": 671,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2802,\r
+        "y": 648,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "9111f685.17b2e8"\r
+                "a1db8006.117e2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fb92d303.a6d858",\r
+        "id": "24c82b36.46c39c",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2821,\r
-        "y": 735,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2804,\r
+        "y": 712,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "1432f6d2.d75751"\r
+                "1b614bdf.e6fde4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9111f685.17b2e8",\r
+        "id": "a1db8006.117e2",\r
         "type": "set",\r
         "name": "set ltpId",\r
         "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix[$param-prefix_length -1]`' />\n",\r
         "comments": "",\r
-        "x": 3041,\r
-        "y": 673,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3024,\r
+        "y": 650,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "1432f6d2.d75751",\r
+        "id": "1b614bdf.e6fde4",\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": 2980,\r
-        "y": 754,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2963,\r
+        "y": 731,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "596112fe.dbc0a4",\r
+        "id": "6b1b7759.250c98",\r
         "type": "get-resource",\r
         "name": "get-resource pnf",\r
         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"'pnf.pnf-name = $tmp.unis.uni[$vidx].pnf-name'\n\t\tAND depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\t\tresource=\"generic-vnf\" -->\n<!--\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' -->\n<!--\t\tAND depth = '0'\"-->\n<!--        pfx='tmp.aai.generic-vnf' local-only='false' >-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2526,\r
-        "y": 853,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2509,\r
+        "y": 830,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "51c3744a.753414"\r
+                "55f3c1e5.5a0098"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "796d1bdc.d65e9c",\r
+        "id": "7ece5f8e.1b9b38",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2885.88232421875,\r
-        "y": 861.6556396484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2868.88232421875,\r
+        "y": 838.6556396484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "9e81136f.40f158",\r
-                "3a607f75.56a9d"\r
+                "68f9febc.4723f8",\r
+                "8f8ea6dc.d16678"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9e81136f.40f158",\r
+        "id": "68f9febc.4723f8",\r
         "type": "set",\r
         "name": "set node-id",\r
         "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].node-id`' value=\"`$tmp.aai.pnf.pnf-id`\" />\n",\r
         "comments": "",\r
-        "x": 3065,\r
-        "y": 815,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3048,\r
+        "y": 792,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3a607f75.56a9d",\r
+        "id": "8f8ea6dc.d16678",\r
         "type": "for",\r
         "name": "for each relationship in pnf",\r
         "xml": "<for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3077.882568359375,\r
-        "y": 901.6597290039062,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3060.882568359375,\r
+        "y": 878.6597290039062,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "709c4d83.a869b4"\r
+                "65ed7a4.b573f04"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "709c4d83.a869b4",\r
+        "id": "65ed7a4.b573f04",\r
         "type": "switchNode",\r
         "name": "switch related-to",\r
         "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3303.882568359375,\r
-        "y": 901.6597290039062,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3286.882568359375,\r
+        "y": 878.6597290039062,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8cbba6bb.ad862",\r
-                "dd673476.c308f"\r
+                "974bc5e6.b4d62",\r
+                "e5a98e29.7e38d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "dd673476.c308f",\r
+        "id": "e5a98e29.7e38d8",\r
         "type": "outcome",\r
         "name": "network-resource",\r
         "xml": "<outcome value='network-resource'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3513,\r
-        "y": 971,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3496,\r
+        "y": 948,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "2c8cb3cb.28eeec"\r
+                "f9474736.835c28"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2c8cb3cb.28eeec",\r
+        "id": "f9474736.835c28",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3726,\r
-        "y": 972,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3709,\r
+        "y": 949,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8af5221c.7c91b",\r
-                "47206fa6.e312e"\r
+                "ec758b37.bd131",\r
+                "8dbd70c6.b809a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8af5221c.7c91b",\r
+        "id": "ec758b37.bd131",\r
         "type": "set",\r
         "name": "set network-id",\r
         "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].network-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",\r
         "comments": "",\r
-        "x": 3961,\r
-        "y": 902,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3944,\r
+        "y": 879,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "47206fa6.e312e",\r
+        "id": "8dbd70c6.b809a8",\r
         "type": "get-resource",\r
         "name": "get-resource network-resource",\r
         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"'network-resource.network-id = $tmp.unis.uni[$vidx].network-id'\n\t\tAND depth = '0'\"\n        pfx='tmp.aai.network-resource' local-only='false' >\n\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3969,\r
-        "y": 983,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3952,\r
+        "y": 960,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "4ad04544.d0fad4"\r
+                "fcf952ac.a0e578"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4ad04544.d0fad4",\r
+        "id": "fcf952ac.a0e578",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4201.5,\r
-        "y": 979,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 4184.5,\r
+        "y": 956,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "d8cca786.0614f8"\r
+                "14d23388.330624"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d8cca786.0614f8",\r
+        "id": "14d23388.330624",\r
         "type": "set",\r
         "name": "set network-id, topo-id, client-id, etc",\r
         "xml": "<set>\n<parameter name=\"`$tmp.unis.uni[$vidx].network-id`\" value=\"`$tmp.aai.network-resource.network-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].provider-id`\" value=\"`$tmp.aai.network-resource.provider-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].client-id`\" value=\"`$tmp.aai.network-resource.client-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].te-topo-id`\" value=\"`$tmp.aai.network-resource.te-topo-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].network-type`\" value=\"`$tmp.aai.network-resource.network-type`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 4470,\r
-        "y": 978,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 4453,\r
+        "y": 955,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "aab160b4.f76088",\r
+        "id": "eb840621.54dba",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 800,\r
-        "y": 896,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 783,\r
+        "y": 873,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8cbba6bb.ad862",\r
+        "id": "974bc5e6.b4d62",\r
         "type": "outcome",\r
         "name": "thirdparty-controller",\r
         "xml": "<outcome value='thirdparty-controller'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3540,\r
-        "y": 836,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3523,\r
+        "y": 813,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8b43ac76.263cd"\r
+                "7bf0b175.d7fd18"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8b43ac76.263cd",\r
+        "id": "7bf0b175.d7fd18",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3753,\r
-        "y": 837,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3736,\r
+        "y": 814,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "9b5d5673.27be38"\r
+                "f82d81f3.06226"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9b5d5673.27be38",\r
+        "id": "f82d81f3.06226",\r
         "type": "set",\r
         "name": "set thirdparty-sdnc-id",\r
         "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",\r
         "comments": "",\r
-        "x": 3980,\r
-        "y": 836,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 3963,\r
+        "y": 813,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "4ddb604c.658b08",\r
+        "id": "cfcd9efa.e41c08",\r
         "type": "comment",\r
         "name": "when we reach here, we have 2 UNIs, so do ACTN operations",\r
         "info": "",\r
         "comments": "",\r
-        "x": 813,\r
-        "y": 842,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 796,\r
+        "y": 819,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "6d51d616.88647",\r
+        "id": "bbda4146.d9ba7",\r
         "type": "for",\r
         "name": "for vidx..unis.uni_length[]",\r
         "xml": "<for index='vidx' start='0' end='`$tmp.unis.uni_length`' >",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 666,\r
-        "y": 1088,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 649,\r
+        "y": 1065,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8a72c5de.69f39"\r
+                "a0c1a02.ae339e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f7756434.d014e",\r
+        "id": "6deceac6.273a7c",\r
         "type": "set",\r
         "name": "set oof.vpn",\r
         "xml": "<set>\n<parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />",\r
         "comments": "",\r
-        "x": 1096.0272216796875,\r
-        "y": 946.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1079.0272216796875,\r
+        "y": 923.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8e5c8d32.64abe8",\r
+        "id": "23c6bb2c.1ee91c",\r
         "type": "set",\r
         "name": "set controller data",\r
         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.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": 1572.0272216796875,\r
-        "y": 1140.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1555.0272216796875,\r
+        "y": 1117.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "58b223b2.226b5c",\r
+        "id": "15d08552.c95093",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1402.0272216796875,\r
-        "y": 1140.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1385.0272216796875,\r
+        "y": 1117.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8e5c8d32.64abe8"\r
+                "23c6bb2c.1ee91c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "74cd1f0b.113038",\r
+        "id": "40600b2e.91061c",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1406.0272216796875,\r
-        "y": 1180.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1389.0272216796875,\r
+        "y": 1157.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "50f33a59.7393a4"\r
+                "2b53d3c0.494304"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4f39f2a5.5bd5fc",\r
+        "id": "6d1532.96f61ad",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1398.0272216796875,\r
-        "y": 1220.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1381.0272216796875,\r
+        "y": 1197.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "4b579e44.4ec6b"\r
+                "c51555c1.127b9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "50f33a59.7393a4",\r
+        "id": "2b53d3c0.494304",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
         "comments": "",\r
-        "x": 1556.0272216796875,\r
-        "y": 1180.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1539.0272216796875,\r
+        "y": 1157.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "4b579e44.4ec6b",\r
+        "id": "c51555c1.127b9",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
         "comments": "",\r
-        "x": 1556.0272216796875,\r
-        "y": 1220.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1539.0272216796875,\r
+        "y": 1197.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "66a971fa.46a568",\r
+        "id": "39a43e8c.12f28a",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1402.0272216796875,\r
-        "y": 1260.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1385.0272216796875,\r
+        "y": 1237.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "9aeb59cf.e4f488"\r
+                "9ffed135.085748"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3bf26416.4deddc",\r
+        "id": "127cb0e0.f6337f",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1398.0272216796875,\r
-        "y": 1300.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1381.0272216796875,\r
+        "y": 1277.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "e227ce38.6755d"\r
+                "42670ca5.0d852c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e227ce38.6755d",\r
+        "id": "42670ca5.0d852c",\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 get token rest api\" />\n",\r
         "comments": "",\r
-        "x": 1556.0272216796875,\r
-        "y": 1300.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1539.0272216796875,\r
+        "y": 1277.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "9aeb59cf.e4f488",\r
+        "id": "9ffed135.085748",\r
         "type": "set",\r
         "name": "set token-id",\r
         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
         "comments": "",\r
-        "x": 1552.5272216796875,\r
-        "y": 1260.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1535.5272216796875,\r
+        "y": 1237.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ac6d44a1.0c401",\r
+        "id": "ca782055.9e2288",\r
         "type": "comment",\r
         "name": "Get controller info and send request",\r
         "info": "",\r
         "comments": "",\r
-        "x": 1164.0272216796875,\r
-        "y": 1140.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1147.0272216796875,\r
+        "y": 1117.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a9643f3f.4f04b",\r
+        "id": "7c55f05.ae92f9",\r
         "type": "get-resource",\r
         "name": "get-resource 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 = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1156.0272216796875,\r
-        "y": 1180.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1139.0272216796875,\r
+        "y": 1157.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "58b223b2.226b5c",\r
-                "74cd1f0b.113038",\r
-                "4f39f2a5.5bd5fc"\r
+                "15d08552.c95093",\r
+                "40600b2e.91061c",\r
+                "6d1532.96f61ad"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c6d53bc.53f5bc8",\r
+        "id": "132c8130.52018f",\r
         "type": "execute",\r
         "name": "execute RestApiCallNode Get token",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\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\"/>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1168.5272216796875,\r
-        "y": 1280.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1151.5272216796875,\r
+        "y": 1257.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "66a971fa.46a568",\r
-                "3bf26416.4deddc"\r
+                "39a43e8c.12f28a",\r
+                "127cb0e0.f6337f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "787bd09.8ff59b",\r
+        "id": "8b8f431b.afab28",\r
         "type": "comment",\r
         "name": "call domain controller to  create underlay OTN tunnel",\r
         "info": "",\r
         "comments": "",\r
-        "x": 1217.5272216796875,\r
-        "y": 1365.49560546875,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1200.5272216796875,\r
+        "y": 1342.49560546875,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ee991e0.ab6b36",\r
+        "id": "72587bb.46de384",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sotn-create-otn-tunnel",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1237.5272216796875,\r
-        "y": 1409.49560546875,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1220.5272216796875,\r
+        "y": 1386.49560546875,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8a72c5de.69f39",\r
+        "id": "a0c1a02.ae339e",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 819.5272216796875,\r
-        "y": 1420.0407409667969,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 802.5272216796875,\r
+        "y": 1397.0407409667969,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "124c6957.e07dc7",\r
-                "f7756434.d014e",\r
-                "a9643f3f.4f04b",\r
-                "ae925256.a68df",\r
-                "ee991e0.ab6b36",\r
-                "3ce3b19a.7c10c6",\r
-                "d661efba.3fa238",\r
-                "c6d53bc.53f5bc8"\r
+                "4d995f3e.15c858",\r
+                "6deceac6.273a7c",\r
+                "7c55f05.ae92f9",\r
+                "db2b3730.902018",\r
+                "72587bb.46de384",\r
+                "ec5a35c9.5d1e88",\r
+                "3df609df.1fc0ce",\r
+                "132c8130.52018f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ab7e4ea9.e8e178",\r
+        "id": "5781fdd6.208f54",\r
         "type": "comment",\r
         "name": "Loop through UNIs and configure domain controllers",\r
         "info": "",\r
         "comments": "",\r
-        "x": 754.5003662109375,\r
-        "y": 1228.5003662109375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 737.5003662109375,\r
+        "y": 1205.5003662109375,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "124c6957.e07dc7",\r
+        "id": "4d995f3e.15c858",\r
         "type": "set",\r
         "name": "set sotn_value",\r
         "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
         "comments": "",\r
-        "x": 1083.52734375,\r
-        "y": 1488.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1066.52734375,\r
+        "y": 1465.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3ce3b19a.7c10c6",\r
+        "id": "ec5a35c9.5d1e88",\r
         "type": "set",\r
         "name": "set attachment_param",\r
         "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n",\r
         "comments": "",\r
-        "x": 1108.02734375,\r
-        "y": 1528.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1091.02734375,\r
+        "y": 1505.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d661efba.3fa238",\r
+        "id": "3df609df.1fc0ce",\r
         "type": "switchNode",\r
         "name": "switch prop.sdncRestApi.token_id",\r
         "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1143.52734375,\r
-        "y": 1568.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1126.52734375,\r
+        "y": 1545.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "f63083b5.0624b",\r
-                "fbf2273e.fbe678"\r
+                "a0bdd826.3f4cd8",\r
+                "6962c04c.c84c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "678c3911.078e2",\r
+        "id": "f371d079.2c80a8",\r
         "type": "execute",\r
         "name": "execute RestApiCallNode Create ethernet Service with token",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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": 1660.52734375,\r
-        "y": 1588.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1643.52734375,\r
+        "y": 1565.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "72a042fd.6a9e5c",\r
-                "4ae2509c.7d19b8"\r
+                "b25690a3.da1fe",\r
+                "44b94c62.5f6294"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "72a042fd.6a9e5c",\r
+        "id": "b25690a3.da1fe",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2004.02734375,\r
-        "y": 1588.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1987.02734375,\r
+        "y": 1565.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "743fa383.cc94fc"\r
+                "acd4383.6d75ac8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "743fa383.cc94fc",\r
+        "id": "acd4383.6d75ac8",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2161.52734375,\r
-        "y": 1588.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2144.52734375,\r
+        "y": 1565.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "7e01ab8f.069484",\r
+        "id": "acde530.390303",\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 Create vpn rest api\" />\n",\r
         "comments": "",\r
-        "x": 2158.02734375,\r
-        "y": 1548.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2141.02734375,\r
+        "y": 1525.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "4ae2509c.7d19b8",\r
+        "id": "44b94c62.5f6294",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2000.02734375,\r
-        "y": 1548.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1983.02734375,\r
+        "y": 1525.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "7e01ab8f.069484"\r
+                "acde530.390303"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f63083b5.0624b",\r
+        "id": "a0bdd826.3f4cd8",\r
         "type": "other",\r
         "name": "Null",\r
         "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1356.3711738586426,\r
-        "y": 1548.162670135498,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1339.3711738586426,\r
+        "y": 1525.162670135498,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "42cb8b06.e7daec"\r
+                "dd18b88a.c3942"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fbf2273e.fbe678",\r
+        "id": "6962c04c.c84c",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1360.02734375,\r
-        "y": 1588.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1343.02734375,\r
+        "y": 1565.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "678c3911.078e2"\r
+                "f371d079.2c80a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "42cb8b06.e7daec",\r
+        "id": "dd18b88a.c3942",\r
         "type": "execute",\r
         "name": "execute RestApiCallNode Create ethernet Service without token",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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\"/>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1670.52734375,\r
-        "y": 1548.040771484375,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1653.52734375,\r
+        "y": 1525.040771484375,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "4ae2509c.7d19b8",\r
-                "72a042fd.6a9e5c"\r
+                "44b94c62.5f6294",\r
+                "b25690a3.da1fe"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "28391a2c.3321fe",\r
+        "id": "8ccaf711.31aa4",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 725,\r
-        "y": 663,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 708,\r
+        "y": 640,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "6a811cc0.b174ac"\r
+                "8cabc424.4e22c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "51c3744a.753414",\r
+        "id": "55f3c1e5.5a0098",\r
         "type": "failure",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2709,\r
-        "y": 860,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2692,\r
+        "y": 837,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "796d1bdc.d65e9c"\r
+                "7ece5f8e.1b9b38"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "672fc75a.1e91b",\r
+        "id": "5ed4925c.49643c",\r
         "type": "set",\r
         "name": "set tmp.unis.uni[].tpId",\r
         "xml": "<set>\n<parameter name='tmp.unis.uni[0].id' value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" />\n<parameter name='tmp.unis.uni[0].tp-id' value=\"networkId-providerId-5555-clientId-6666-topologyId-11-nodeId-0.190.0.1\" />\n<parameter name='tmp.unis.uni[0].access-provider-id' value=\"`$domain-A.provider-id`\" />\n<parameter name='tmp.unis.uni[0].access-client-id' value=\"`$domain-A.client-id`\" />\n<parameter name='tmp.unis.uni[0].access-topology-id' value=\"`$domain-A.topology-id`\" />\n<parameter name='tmp.unis.uni[0].access-node-id' value=\"0.190.0.1\" />\n<parameter name='tmp.unis.uni[0].src-access-ltp-id' value=\"1234\" />\n<parameter name='tmp.unis.uni[0].dst-access-ltp-id' value=\"5678\" />\n<parameter name='tmp.unis.uni[0].network-id' value=\"domain2-providerId-5555-clientId-6666-topologyId-11\" />\n\n\n<parameter name='tmp.unis.uni[1].id' value=\"5642e9dd-496c-4ef6-be97-5caf4e9beec9\" />\n<parameter name='tmp.unis.uni[1].tp-id' value=\"networkId-domain2-providerId-5555-clientId-6666-topologyId-11-nodeId-0.191.0.4\" />\n<parameter name='tmp.unis.uni[1].access-provider-id' value=\"`$domain-B.provider-id`\" />\n<parameter name='tmp.unis.uni[1].access-client-id' value=\"`$domain-B.client-id`\" />\n<parameter name='tmp.unis.uni[1].access-topology-id' value=\"`$domain-B.topology-id`\" />\n<parameter name='tmp.unis.uni[1].access-node-id' value=\"0.190.0.3\" />\n<parameter name='tmp.unis.uni[1].src-access-ltp-id' value=\"9123\" />\n<parameter name='tmp.unis.uni[1].dst-access-ltp-id' value=\"4567\" />\n<parameter name='tmp.unis.uni[1].network-id' value=\"domain2-providerId-5555-clientId-6666-topologyId-11\" />\n\n\n<parameter name='tmp.unis.uni_length' value=\"2\" />\n\n",\r
         "comments": "",\r
-        "x": 655,\r
-        "y": 1015,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 638,\r
+        "y": 992,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ae925256.a68df",\r
+        "id": "db2b3730.902018",\r
         "type": "get-resource",\r
         "name": "get network-resource",\r
         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"network-resource.network-id = $oof.vpn.network-id\"\n        pfx='tmp.aai.network-resource' local-only='false' >\n\n\n\n\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1128,\r
-        "y": 1024,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1111,\r
+        "y": 1001,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "23c084ce.22a7f4",\r
-                "d2d56dd3.d8df6",\r
-                "28e7be58.d60b6a"\r
+                "1a14b8d2.a8f357",\r
+                "f7a955ca.9be14",\r
+                "34e2d0ff.2b0ba8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "23c084ce.22a7f4",\r
+        "id": "1a14b8d2.a8f357",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1323.5001220703125,\r
-        "y": 981,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1306.5001220703125,\r
+        "y": 958,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "16ae77fe.3db2f"\r
+                "10c48a33.860696"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d2d56dd3.d8df6",\r
+        "id": "f7a955ca.9be14",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1315.5001220703125,\r
-        "y": 1036,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1298.5001220703125,\r
+        "y": 1013,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "8f6658aa.e556f8"\r
+                "7314720a.de097c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "28e7be58.d60b6a",\r
+        "id": "34e2d0ff.2b0ba8",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1320.5001220703125,\r
-        "y": 1093,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1303.5001220703125,\r
+        "y": 1070,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "5bc0d431.a1baf4"\r
+                "247bba75.1dbfee"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5bc0d431.a1baf4",\r
+        "id": "247bba75.1dbfee",\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": 1472.5001220703125,\r
-        "y": 1094,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1455.5001220703125,\r
+        "y": 1071,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8f6658aa.e556f8",\r
+        "id": "7314720a.de097c",\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": 1483.5001220703125,\r
-        "y": 1039,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1466.5001220703125,\r
+        "y": 1016,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "16ae77fe.3db2f",\r
+        "id": "10c48a33.860696",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1467.8824462890625,\r
-        "y": 978.6556701660156,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1450.8824462890625,\r
+        "y": 955.6556701660156,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "1facb6e4.b004d9"\r
+                "3803718b.d2dfd6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1facb6e4.b004d9",\r
+        "id": "3803718b.d2dfd6",\r
         "type": "for",\r
         "name": "for each relationship",\r
         "xml": "<for index='ridx' start='0' end='`$tmp.aai.network-resource.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1682.8826904296875,\r
-        "y": 978.6597290039062,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1665.8826904296875,\r
+        "y": 955.6597290039062,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "a5fdb89.17d6dc8"\r
+                "7cf64c03.a76a4c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a5fdb89.17d6dc8",\r
+        "id": "7cf64c03.a76a4c",\r
         "type": "switchNode",\r
         "name": "switch related-to",\r
         "xml": "<switch test='`$tmp.aai.network-resource.relationship-list.relationship[$ridx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1908.8826904296875,\r
-        "y": 978.6597290039062,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1891.8826904296875,\r
+        "y": 955.6597290039062,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "d4a46397.2bb99"\r
+                "7cc2a602.3c71d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d4a46397.2bb99",\r
+        "id": "7cc2a602.3c71d",\r
         "type": "outcome",\r
         "name": "esr-thirdparty-sdnc",\r
         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2115.0001220703125,\r
-        "y": 977,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2098.0001220703125,\r
+        "y": 954,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "d4ec153c.0cdc78"\r
+                "f4284fa2.072448"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d4ec153c.0cdc78",\r
+        "id": "f4284fa2.072448",\r
         "type": "set",\r
         "name": "set prop.sdncRestApi.thirdpartySdnc.id",\r
         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.id' value=\"`$tmp.aai.network-resource.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",\r
         "comments": "",\r
-        "x": 2133,\r
-        "y": 1056,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2116,\r
+        "y": 1033,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8a87ece8.73f728",\r
+        "id": "7d0630b8.9b289",\r
         "type": "get-resource",\r
         "name": "get-resource uni",\r
         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"uni\" \n\t\tkey=\"uni.id = $tmp.aai.generic-vnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value\"\n        pfx='tmp.aai.uni' local-only='false' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1802,\r
-        "y": 689,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1785,\r
+        "y": 666,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "af655688.304b78"\r
+                "ad8ad07a.d8a1c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "af655688.304b78",\r
+        "id": "ad8ad07a.d8a1c8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1974,\r
-        "y": 689,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 1957,\r
+        "y": 666,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "91d7b892.85ea"\r
+                "9b99c47a.3de3d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bc6860a4.74042",\r
+        "id": "8d4b6de9.39d208",\r
         "type": "set",\r
         "name": "set tmp.unis.uni[]",\r
         "xml": "<set>\n<!--<parameter name='`tmp.unis.uni[$vidx].tpId`' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />-->\n\n<parameter name='`tmp.unis.uni[$vidx].`' value=\"`$tmp.aai.uni.`\" />\n",\r
         "comments": "",\r
-        "x": 2299,\r
-        "y": 645,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2282,\r
+        "y": 622,\r
+        "z": "a9486230.abaca8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "91d7b892.85ea",\r
+        "id": "9b99c47a.3de3d",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2115,\r
-        "y": 691,\r
-        "z": "9b26c8a0.a64c1",\r
+        "x": 2098,\r
+        "y": 668,\r
+        "z": "a9486230.abaca8",\r
         "wires": [\r
             [\r
-                "bc6860a4.74042",\r
-                "e85654b4.901fd",\r
-                "596112fe.dbc0a4"\r
+                "8d4b6de9.39d208",\r
+                "c25132f5.a97a9",\r
+                "6b1b7759.250c98"\r
             ]\r
         ]\r
     }\r
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
new file mode 100644 (file)
index 0000000..669eca8
--- /dev/null
@@ -0,0 +1,1686 @@
+[\r
+    {\r
+        "id": "c95751e3.8ae788",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 133,\r
+        "y": 58,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "a120d0c2.d16848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a120d0c2.d16848",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 264.2856903076172,\r
+        "y": 107.23810863494873,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "e3f08946.3b4f3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e3f08946.3b4f3",\r
+        "type": "method",\r
+        "name": "method tsli-vnf-topology-operation-trans-slice-activate",\r
+        "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 267.4286193847656,\r
+        "y": 192.00003242492676,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "da15bb94.f35d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da15bb94.f35d78",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 417.238037109375,\r
+        "y": 321.6666564941406,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "a0613c64.0d3d18",\r
+                "bec74808.bd7fc8",\r
+                "6e589ca9.47c63c",\r
+                "a8ba9960.6cb65",\r
+                "d40da373.f15598",\r
+                "358d1f62.e4f2c8",\r
+                "a739ea85.93c65",\r
+                "19a0d774.67fb01"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a0613c64.0d3d18",\r
+        "type": "set",\r
+        "name": "set vnf-level-oper-status to Active",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].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[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",\r
+        "comments": "",\r
+        "x": 760.3849563598633,\r
+        "y": 558.6705458434299,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bec74808.bd7fc8",\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": 687.5716552734375,\r
+        "y": 1430.59716796875,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6e589ca9.47c63c",\r
+        "type": "set",\r
+        "name": "set vnf-index and vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.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/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",\r
+        "comments": "",\r
+        "x": 766.5716018676758,\r
+        "y": 506.5968001158908,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a8ba9960.6cb65",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 775,\r
+        "y": 261,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "752da5f3.b4cc4c",\r
+                "b945aefb.e762f",\r
+                "8cef6bde.bc7818"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8cef6bde.bc7818",\r
+        "type": "outcome",\r
+        "name": "0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1167.968994140625,\r
+        "y": 226.96875,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "5417fb2d.edce0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5417fb2d.edce0c",\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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1322.7778816223145,\r
+        "y": 245.889018535614,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "752da5f3.b4cc4c",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1161.0001335144043,\r
+        "y": 266.00007152557373,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "5417fb2d.edce0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b945aefb.e762f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1154.0005416870117,\r
+        "y": 299.000075340271,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "39deabe9.dfa46c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39deabe9.dfa46c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1301.2700843811035,\r
+        "y": 299.5547204017639,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "ffe0cb12.24663"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffe0cb12.24663",\r
+        "type": "for",\r
+        "name": "for vidx..service-data.vnfs.vnf_length[]",\r
+        "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1547.2862014770508,\r
+        "y": 306.42864084243774,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "d581e614.41ca28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d581e614.41ca28",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1766.6358337402344,\r
+        "y": 305.96872091293335,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "6cb341ea.d215b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6cb341ea.d215b",\r
+        "type": "switchNode",\r
+        "name": "switch vnfid found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1920.715431213379,\r
+        "y": 305.67880296707153,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "7e8f8e16.82297"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e8f8e16.82297",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2131.6675758361816,\r
+        "y": 308.571494102478,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "1efc1703.0b69f1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1efc1703.0b69f1",\r
+        "type": "set",\r
+        "name": "set tmp.vidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
+        "comments": "",\r
+        "x": 2341.199951171875,\r
+        "y": 310.32159423828125,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d40da373.f15598",\r
+        "type": "save",\r
+        "name": "update AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 785.9999618530273,\r
+        "y": 625.0103714736179,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "358d1f62.e4f2c8",\r
+        "type": "set",\r
+        "name": "copy input data to service data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",\r
+        "comments": "",\r
+        "x": 765.0000762939453,\r
+        "y": 456.01033284980804,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a739ea85.93c65",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-level-oper-status",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 751.7499389648438,\r
+        "y": 361.00390270072967,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "c40ac9fb.21106",\r
+                "625ef5e9.0fa304"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c40ac9fb.21106",\r
+        "type": "outcome",\r
+        "name": "outcome Created",\r
+        "xml": "<outcome value='Created'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1131.5833320617676,\r
+        "y": 366.1149909766391,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "50da061e.3d2a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "625ef5e9.0fa304",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1109.583351135254,\r
+        "y": 416.1150024207309,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "9d9a6d0b.f63a18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d9a6d0b.f63a18",\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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
+        "comments": "",\r
+        "x": 1269.0831184387207,\r
+        "y": 419.1150014670566,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "50da061e.3d2a4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1341.889705657959,\r
+        "y": 377.44016626197845,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a49c1a1.74cca",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 726,\r
+        "y": 699,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "19a0d774.67fb01",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 737,\r
+        "y": 749,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "ef923a7d.6928a8",\r
+                "981c314b.31ecb8",\r
+                "65818037.104038"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef923a7d.6928a8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 953,\r
+        "y": 714,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "c4da4ce2.e86fd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "981c314b.31ecb8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 962.490966796875,\r
+        "y": 756.5740356445312,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "2c51a746.8529b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65818037.104038",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 951,\r
+        "y": 803,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "11f3085c.6c3b58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c51a746.8529b8",\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": 1116.0623779296875,\r
+        "y": 759.8597717285156,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "11f3085c.6c3b58",\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": 1120,\r
+        "y": 804,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c4da4ce2.e86fd",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1150,\r
+        "y": 710,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "eb26c03f.cde3a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb26c03f.cde3a",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1373.33349609375,\r
+        "y": 709.9999389648438,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "b65d7d38.16fc68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b65d7d38.16fc68",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1574.0001335144043,\r
+        "y": 711.000020980835,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "fda5561b.cca698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "edc6ee23.1891a",\r
+        "type": "save",\r
+        "name": "get connectivityA from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityA\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2179,\r
+        "y": 599,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "81d6e319.abfd8",\r
+                "313c36d7.969d3a",\r
+                "3d5cf6f2.953e9a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fda5561b.cca698",\r
+        "type": "switchNode",\r
+        "name": "switch $rel-index == 0",\r
+        "xml": "<switch test=\"`$rel-index == 0`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1762,\r
+        "y": 709,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "44bd1b.3cc782e4",\r
+                "f85fb605.a76398"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "44bd1b.3cc782e4",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1985,\r
+        "y": 599,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "edc6ee23.1891a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f85fb605.a76398",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1971,\r
+        "y": 1156,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "7b60b790.bc4c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b60b790.bc4c4",\r
+        "type": "save",\r
+        "name": "get connectivityB from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityB\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2167,\r
+        "y": 1156,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "8b96b70e.2f635",\r
+                "20f5c9d8.832b4e",\r
+                "f513c25.b78554"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "81d6e319.abfd8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2385,\r
+        "y": 559,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "98b1c0b9.f7f4b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "313c36d7.969d3a",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2385.490966796875,\r
+        "y": 604.5740356445312,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "d4d990d4.f7b0a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d5cf6f2.953e9a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2383,\r
+        "y": 648,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "97be5e5a.798428"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98b1c0b9.f7f4b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2557.66650390625,\r
+        "y": 558,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "2d415746.a7be9",\r
+                "96d25665.97a75",\r
+                "2f11d14a.7d5856",\r
+                "d0c66bee.225358"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d4d990d4.f7b0a8",\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": 2548.0623779296875,\r
+        "y": 604.8597717285156,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "97be5e5a.798428",\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": 2552,\r
+        "y": 649,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8b96b70e.2f635",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2387,\r
+        "y": 1127,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "aff8819.10cbe8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20f5c9d8.832b4e",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2388.490966796875,\r
+        "y": 1172.5740356445312,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "cb55df0.f8980a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f513c25.b78554",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2385,\r
+        "y": 1218,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "fd8e37a.cf27348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aff8819.10cbe8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2559.66650390625,\r
+        "y": 1128,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "490cf25b.6f8bbc",\r
+                "7192c89b.9fa8a",\r
+                "83e10369.9e2a48",\r
+                "8632824a.a7d1a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb55df0.f8980a",\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": 2550.0623779296875,\r
+        "y": 1174.8597717285156,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fd8e37a.cf27348",\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": 2554,\r
+        "y": 1219,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2d415746.a7be9",\r
+        "type": "save",\r
+        "name": "get vpn-binding-A from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivityA.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-bindingA\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2782,\r
+        "y": 556,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "2054e000.51325",\r
+                "24cb3e35.5919ba",\r
+                "49ca8d9.cac6774"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "490cf25b.6f8bbc",\r
+        "type": "save",\r
+        "name": "get vpn-binding-B from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivityB.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-bindingB\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2786,\r
+        "y": 1126,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "9697ed36.e16ad8",\r
+                "1b825f20.68c389",\r
+                "214845f.325e5ba"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8505e692.6e58e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3166,\r
+        "y": 556,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "1e245d3c.a778db",\r
+                "f09e2868.9a86c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e245d3c.a778db",\r
+        "type": "set",\r
+        "name": "set attachment_param for OTN A",\r
+        "xml": "<set>\n<parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n\n",\r
+        "comments": "",\r
+        "x": 3402,\r
+        "y": 555,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2054e000.51325",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2993,\r
+        "y": 558,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "8505e692.6e58e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "24cb3e35.5919ba",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2993.490966796875,\r
+        "y": 603.5740356445312,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "7b7e2f47.0a22b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49ca8d9.cac6774",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2991,\r
+        "y": 647,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "f869989c.799108"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f869989c.799108",\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": 3158,\r
+        "y": 646,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7b7e2f47.0a22b",\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": 3156.0623779296875,\r
+        "y": 603.8597717285156,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9697ed36.e16ad8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2993,\r
+        "y": 1129,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "d0988988.8d0a18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b825f20.68c389",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2993.490966796875,\r
+        "y": 1174.5740356445312,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "875a2548.0cfdc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "214845f.325e5ba",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2991,\r
+        "y": 1218,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "5743b059.d8fee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5743b059.d8fee",\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": 3160,\r
+        "y": 1219,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "875a2548.0cfdc8",\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": 3156.0623779296875,\r
+        "y": 1174.8597717285156,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d0988988.8d0a18",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3162,\r
+        "y": 1129,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "7dda745d.4071a4",\r
+                "6468b39.c45bd4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7dda745d.4071a4",\r
+        "type": "set",\r
+        "name": "set attachment_param for OTN B",\r
+        "xml": "<set>\n<parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingB.dst-access-ltp-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n\n",\r
+        "comments": "",\r
+        "x": 3398,\r
+        "y": 1128,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f09e2868.9a86c8",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create OTN tunnel with token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<!--<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />-->\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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": 3480,\r
+        "y": 601,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "a8d618e8.7c53c8",\r
+                "84fddcaa.8b02a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8d618e8.7c53c8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3790.5,\r
+        "y": 568,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "6eacb8a7.7aa3d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84fddcaa.8b02a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3805.5,\r
+        "y": 633,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "b82bd962.cbba2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6eacb8a7.7aa3d",\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 Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 3974.5,\r
+        "y": 564,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b82bd962.cbba2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4000,\r
+        "y": 626,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "74c1bd3a.398664",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3775,\r
+        "y": 1150,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "fc791248.fc4648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fdc0c54.10c51b8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3790,\r
+        "y": 1215,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "16f26dc2.3147e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc791248.fc4648",\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 Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 3959,\r
+        "y": 1146,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "16f26dc2.3147e2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3984.5,\r
+        "y": 1208,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6468b39.c45bd4c",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create OTN tunnel with token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<!--<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />-->\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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": 3464.5,\r
+        "y": 1183,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "74c1bd3a.398664",\r
+                "fdc0c54.10c51b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f11d14a.7d5856",\r
+        "type": "set",\r
+        "name": "set sotn_value",\r
+        "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
+        "comments": "",\r
+        "x": 2766.5,\r
+        "y": 898,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d0c66bee.225358",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2920.5,\r
+        "y": 946,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "3db41fa8.f38878",\r
+                "fbb2729e.49853"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3db41fa8.f38878",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3266,\r
+        "y": 927,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "f346270d.843368"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fbb2729e.49853",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3270,\r
+        "y": 967,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "c716fb9b.f3ffc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f346270d.843368",\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 Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 3424,\r
+        "y": 927,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c716fb9b.f3ffc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3427.5,\r
+        "y": 967,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "3124f6f9.b8bd1a",\r
+                "856ae03f.786118"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c34ee00.d0d39",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "comments": "",\r
+        "x": 2764,\r
+        "y": 854,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "96d25665.97a75",\r
+        "type": "get-resource",\r
+        "name": "get-resource 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 = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2816,\r
+        "y": 780,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "4a3c4a39.62e724",\r
+                "e52cd6a7.6aeb28",\r
+                "bb40af56.1cbe7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a3c4a39.62e724",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3062,\r
+        "y": 740,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "9e28f8d9.f64138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e52cd6a7.6aeb28",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3066,\r
+        "y": 780,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "916c7538.648ed"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb40af56.1cbe7",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3058,\r
+        "y": 820,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "a678576a.20b77"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a678576a.20b77",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3216,\r
+        "y": 820,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "916c7538.648ed",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3216,\r
+        "y": 780,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9e28f8d9.f64138",\r
+        "type": "set",\r
+        "name": "set controller data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.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": 3232,\r
+        "y": 740,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b0af8ca6.269818",\r
+        "type": "comment",\r
+        "name": "Get controller info and send request",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2824,\r
+        "y": 740,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "83e10369.9e2a48",\r
+        "type": "set",\r
+        "name": "set sotn_value",\r
+        "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
+        "comments": "",\r
+        "x": 2752,\r
+        "y": 1454,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8632824a.a7d1a",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2906,\r
+        "y": 1502,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "51ac9234.46b414",\r
+                "a5f17af5.5d803"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "51ac9234.46b414",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3251.5,\r
+        "y": 1483,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "6f72d542.94964c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a5f17af5.5d803",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3255.5,\r
+        "y": 1523,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "2dab9f7d.db59d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f72d542.94964c",\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 Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 3409.5,\r
+        "y": 1483,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2dab9f7d.db59d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3413,\r
+        "y": 1523,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "a1391891.c310f",\r
+                "ccc1b1df.33721"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5d06869f.f8bcb8",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "comments": "",\r
+        "x": 2749.5,\r
+        "y": 1410,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7192c89b.9fa8a",\r
+        "type": "get-resource",\r
+        "name": "get-resource 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 = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2801.5,\r
+        "y": 1336,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "e2e5c437.a11d5",\r
+                "9dfaf98b.e80c9",\r
+                "dcca7d62.830ee8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2e5c437.a11d5",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3047.5,\r
+        "y": 1296,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "427eefc5.61bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9dfaf98b.e80c9",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3051.5,\r
+        "y": 1336,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "8ac5fa96.75d4b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcca7d62.830ee8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3043.5,\r
+        "y": 1376,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            [\r
+                "39cf0825.d43ae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39cf0825.d43ae",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3201.5,\r
+        "y": 1376,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8ac5fa96.75d4b",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3201.5,\r
+        "y": 1336,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "427eefc5.61bc",\r
+        "type": "set",\r
+        "name": "set controller data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.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": 3217.5,\r
+        "y": 1296,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "74572637.f29d7",\r
+        "type": "comment",\r
+        "name": "Get controller info and send request",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2809.5,\r
+        "y": 1296,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "135b0ed7.2faa91",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "comments": "",\r
+        "x": 2744,\r
+        "y": 1256,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a58ac83b.b037d",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "comments": "",\r
+        "x": 2756,\r
+        "y": 700,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3124f6f9.b8bd1a",\r
+        "type": "save",\r
+        "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
+        "xml": "<update 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\n<parameter name='operational-status' value='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3756,\r
+        "y": 967,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "554a4766.c457a",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
+        "comments": "",\r
+        "x": 3620,\r
+        "y": 926,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a1391891.c310f",\r
+        "type": "save",\r
+        "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
+        "xml": "<update 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\n<parameter name='operational-status' value='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3753,\r
+        "y": 1522,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "90d3682d.e54348",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
+        "comments": "",\r
+        "x": 3611,\r
+        "y": 1480,\r
+        "z": "978d88fe.49f858",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "856ae03f.786118",\r
+        "type": "save",\r
+        "name": "update connectivity resource in AAI",\r
+        "xml": "<update 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='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3683,\r
+        "y": 1013,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ccc1b1df.33721",\r
+        "type": "save",\r
+        "name": "update connectivity resource in AAI",\r
+        "xml": "<update 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='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3682,\r
+        "y": 1571,\r
+        "z": "978d88fe.49f858",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json
new file mode 100644 (file)
index 0000000..967f65e
--- /dev/null
@@ -0,0 +1,2149 @@
+[\r
+    {\r
+        "id": "c7ab28db.5fa9f8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 108,\r
+        "y": 69,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "b4f2bafa.fe95a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4f2bafa.fe95a",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 392.2856903076172,\r
+        "y": 130.23810863494873,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "5dd33274.e7d4cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5dd33274.e7d4cc",\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
+        "wires": [\r
+            [\r
+                "28d22516.fc87aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "28d22516.fc87aa",\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
+        "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
+            ]\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
+        "comments": "",\r
+        "x": 1182.238037109375,\r
+        "y": 498.6668718131259,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1170.5715408325195,\r
+        "y": 448.3334558280185,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1197.5713577270508,\r
+        "y": 118.33337858039886,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "45cce5a8.451aac",\r
+                "48e9b931.dabab8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "45cce5a8.451aac",\r
+        "type": "other",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1432.285743713379,\r
+        "y": 113.47619893867522,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "6299edd9.775e24"\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
+        "comments": "",\r
+        "x": 1592.5714492797852,\r
+        "y": 113.4762904914096,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "48e9b931.dabab8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1428.714282989502,\r
+        "y": 146.76203039009124,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "777ae1e9.6bbca"\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
+        "comments": "",\r
+        "x": 1821.5715255737305,\r
+        "y": 125.04775598365813,\r
+        "z": "5b68e0d.bd97b2",\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
+        "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
+    },\r
+    {\r
+        "id": "777ae1e9.6bbca",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1563.428565979004,\r
+        "y": 148.76199987251312,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "6abef48d.2c4e6c",\r
+                "8a52abb7.25d258"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2203.2858810424805,\r
+        "y": 160.6192119391635,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "95d50976.54cf58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95d50976.54cf58",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2484.5715827941895,\r
+        "y": 159.1906173499301,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "19c5d87f.a3e7b"\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
+        "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
+        "comments": "",\r
+        "x": 1128.571533203125,\r
+        "y": 396.33343505859375,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "x": 1124.571533203125,\r
+        "y": 1344.5969848632812,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "efeb4f56.d9cc7",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1162.2382736206055,\r
+        "y": 815.5968644889072,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\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
+        "comments": "",\r
+        "x": 1183.571533203125,\r
+        "y": 644.5968902381137,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\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
+        "comments": "",\r
+        "x": 2613.142951965332,\r
+        "y": 210.19063165504485,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1238.5458374023438,\r
+        "y": 754.2471072943881,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b2c577f.aa706",\r
+        "type": "comment",\r
+        "name": "TODO: change AAI models",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1172.1820983886719,\r
+        "y": 713.9743230612949,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1598.7395858764648,\r
+        "y": 207.75002291519195,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "889ccd2d.4a8fe8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1402.483383178711,\r
+        "y": 212.00189593154937,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "d58f334a.ba5338",\r
+                "e9083033.2291c8"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1187.7050399780273,\r
+        "y": 214.44631197769195,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "889ccd2d.4a8fe8"\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
+        "comments": "",\r
+        "x": 1144.7046737670898,\r
+        "y": 284.77101900894195,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "x": 1575.7395858764648,\r
+        "y": 253.75002291519195,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1200.7395858764648,\r
+        "y": 336.75002291519195,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "ab7df566.3e05d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab7df566.3e05d",\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
+        "wires": [\r
+            [\r
+                "352dca87.707f0e"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1583.4722518920898,\r
+        "y": 333.0938339503482,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "590b3579.cf8c54"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "590b3579.cf8c54",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1744.4726181030273,\r
+        "y": 333.09389498550445,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "63083064.a23a18"\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
+        "comments": "",\r
+        "x": 1902.4727401733398,\r
+        "y": 331.6939316065982,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1155,\r
+        "y": 940,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "5d430eb5.2b236",\r
+                "4db06806.f53418",\r
+                "95ae5b5a.c22a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5d430eb5.2b236",\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
+        "wires": [\r
+            [\r
+                "53896828.686ee8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4db06806.f53418",\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
+        "wires": [\r
+            [\r
+                "2be30b71.aee02c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95ae5b5a.c22a4",\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
+        "wires": [\r
+            [\r
+                "ecad310e.0677"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1610,\r
+        "y": 902,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "a4b1136f.62ed08",\r
+                "46b85697.e69b9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2be30b71.aee02c",\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
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ecad310e.0677",\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
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a4b1136f.62ed08",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1823,\r
+        "y": 926,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "cb1b8f06.47ef2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46b85697.e69b9",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1825,\r
+        "y": 866,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1270,\r
+        "y": 1266,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "643d2cea.4605b4",\r
+                "7caeb522.7a961c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "643d2cea.4605b4",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1464,\r
+        "y": 1400,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "152d2d7d.5e3893"\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
+    },\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
+        "comments": "",\r
+        "x": 1804,\r
+        "y": 1372,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cb1b8f06.47ef2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1808,\r
+        "y": 1014,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "a019135.4f8ccf",\r
+                "e575462e.50d5b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "152d2d7d.5e3893",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1595,\r
+        "y": 1405,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "814386d7.12d29",\r
+                "fecafec9.0d1c5"\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
+        "outputs": 1,\r
+        "x": 2012,\r
+        "y": 1044,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "9038c1c3.67b67",\r
+                "d5fe3cc1.f1ab58",\r
+                "3a3c5476.f230dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9038c1c3.67b67",\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
+        "wires": [\r
+            [\r
+                "457beb03.a98104"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5fe3cc1.f1ab58",\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
+        "wires": [\r
+            [\r
+                "d1ddfc7b.e8b11"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a3c5476.f230dc",\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
+        "wires": [\r
+            [\r
+                "5d76fda0.b3386c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1ddfc7b.e8b11",\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
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5d76fda0.b3386c",\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
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1791,\r
+        "y": 1444,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "c3decf76.de238",\r
+                "cbe9f0d3.03cae",\r
+                "f1d67d6b.7b18f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbe9f0d3.03cae",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2056.490966796875,\r
+        "y": 1366.573974609375,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "df9ad0cd.393e9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1d67d6b.7b18f8",\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
+        "wires": [\r
+            [\r
+                "387801a6.c55046"\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
+        "comments": "",\r
+        "x": 2205.0625,\r
+        "y": 1366.8597412109375,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "387801a6.c55046",\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": 2204,\r
+        "y": 1411,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c3decf76.de238",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2052,\r
+        "y": 1490,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "85643202.66a9f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "85643202.66a9f8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2191,\r
+        "y": 1490,\r
+        "z": "5b68e0d.bd97b2",\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
+        "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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2399,\r
+        "y": 1573,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "6b7f9293.5e4b3c",\r
+                "271678cd.b7a718",\r
+                "fda0cd5e.c574c8"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2413,\r
+        "y": 1845,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "cac7dfa0.02314",\r
+                "cd4a18c4.24c5e8",\r
+                "b2a92c1e.f10cd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b7f9293.5e4b3c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2621,\r
+        "y": 1455,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "6df2f8ce.f4df28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "271678cd.b7a718",\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
+        "wires": [\r
+            [\r
+                "a0e96fb5.85588"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fda0cd5e.c574c8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2620.509033203125,\r
+        "y": 1555.426025390625,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "57154704.0e805"\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
+        "comments": "",\r
+        "x": 2769.571533203125,\r
+        "y": 1454.2857666015625,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "x": 2759.509033203125,\r
+        "y": 1504.426025390625,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cac7dfa0.02314",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2636,\r
+        "y": 1815,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "857e5bf7.e021b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd4a18c4.24c5e8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2631.509033203125,\r
+        "y": 1864.426025390625,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "68a88270.f542bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2a92c1e.f10cd8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2635.509033203125,\r
+        "y": 1915.426025390625,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "4220b72.dbed048"\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
+        "comments": "",\r
+        "x": 2784.571533203125,\r
+        "y": 1814.2857666015625,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "x": 2774.509033203125,\r
+        "y": 1864.426025390625,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2993,\r
+        "y": 1556,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "ca5e0e2a.2b9fd8"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3206.3334426879883,\r
+        "y": 1555.9999389648438,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "20488961.beb436"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20488961.beb436",\r
+        "type": "outcome",\r
+        "name": "p-interface",\r
+        "xml": "<outcome value='p-interface'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3378.0000801086426,\r
+        "y": 1556.000020980835,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "3536184f.ec7b9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6bc94704.d03de",\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
+        "wires": [\r
+            [\r
+                "b0648d5.a5c8bf",\r
+                "502adfb6.94aa38",\r
+                "6f6a8b61.fa1ffc",\r
+                "24d9a7fc.8cd3f8"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3625,\r
+        "y": 1554,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "d439294.8fb6358",\r
+                "5c59ee09.9262d",\r
+                "f82521c.310fee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d439294.8fb6358",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3868,\r
+        "y": 1549,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "6bc94704.d03de"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f82521c.310fee",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3877.490966796875,\r
+        "y": 1591.5740356445312,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "da7fc859.beff18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5c59ee09.9262d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3866,\r
+        "y": 1638,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "872414be.4b5f28"\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
+        "comments": "",\r
+        "x": 4035,\r
+        "y": 1639,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "57154704.0e805",\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
+        "wires": [\r
+            [\r
+                "404469ae.c8a71"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "85084de0.cfb7d",\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
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4220b72.dbed048",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2786,\r
+        "y": 1917,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "8dfc41f6.4f4f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8dfc41f6.4f4f",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.endpointB.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2997,\r
+        "y": 1916,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "5452c2da.11d5dc"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3210.3334426879883,\r
+        "y": 1915.9999389648438,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "cb7a504b.d626a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb7a504b.d626a",\r
+        "type": "outcome",\r
+        "name": "p-interface",\r
+        "xml": "<outcome value='p-interface'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3382.0000801086426,\r
+        "y": 1916.000020980835,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "8fa1d382.ebbb3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "825ff590.84496",\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
+        "wires": [\r
+            [\r
+                "674b1eb0.174b2",\r
+                "f4b1b11a.276db8",\r
+                "485a23dc.9461bc",\r
+                "a54100e4.bdfd8"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3629,\r
+        "y": 1914,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "e30b52f2.d3bd18",\r
+                "2a8a7b32.c6c034",\r
+                "95395b70.5ce658"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e30b52f2.d3bd18",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3872,\r
+        "y": 1909,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "825ff590.84496"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95395b70.5ce658",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3881.490966796875,\r
+        "y": 1951.5740356445312,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "ec0be134.e7e7f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a8a7b32.c6c034",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3870,\r
+        "y": 1998,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "5f44beb8.f571"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec0be134.e7e7f8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4035.0623779296875,\r
+        "y": 1954.8597717285156,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5f44beb8.f571",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 4039,\r
+        "y": 1999,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "18f16001.6c653",\r
+        "type": "comment",\r
+        "name": "Question?",\r
+        "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
+        "comments": "",\r
+        "x": 3572,\r
+        "y": 1867,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b0648d5.a5c8bf",\r
+        "type": "execute",\r
+        "name": "execute split tp-id to get pnf-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.endpointA.p-interface-src`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[^-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4301,\r
+        "y": 1546,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "6bf39cd9.c078dc",\r
+                "1f241f8d.ded588"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f241f8d.ded588",\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
+        "wires": [\r
+            [\r
+                "711e2d50.cbfec4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6bf39cd9.c078dc",\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
+        "wires": [\r
+            [\r
+                "d87f8a80.c2edb8"\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
+        "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
+        "wires": []\r
+    },\r
+    {\r
+        "id": "711e2d50.cbfec4",\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
+        "wires": [\r
+            [\r
+                "8f149145.0a9d38",\r
+                "ed673da0.d5043"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed673da0.d5043",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
+        "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
+        "comments": "",\r
+        "x": 4238,\r
+        "y": 1671,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "674b1eb0.174b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4299,\r
+        "y": 1904,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "bf4f2038.8bcc6",\r
+                "816a3f3d.c967d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "816a3f3d.c967d",\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
+        "wires": [\r
+            [\r
+                "bbb7eb1.f117918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf4f2038.8bcc6",\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
+        "wires": [\r
+            [\r
+                "3fe77c2.445af04"\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
+        "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
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bbb7eb1.f117918",\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
+        "wires": [\r
+            [\r
+                "2024c7b6.3996d",\r
+                "e7f53e76.5ddf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7f53e76.5ddf",\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": 4858,\r
+        "y": 1922,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4301,\r
+        "y": 2063,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4346,\r
+        "y": 1973,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\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
+        "comments": "",\r
+        "x": 4236,\r
+        "y": 2029,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3eb8bee0.c23c0a",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2518,\r
+        "y": 2064,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\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
+    },\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
+        "comments": "",\r
+        "x": 2353,\r
+        "y": 1988,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2483,\r
+        "y": 2168,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "eee018f4.9abed"\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2481.5,\r
+        "y": 2211,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ac2c26e.60f274",\r
+        "type": "save",\r
+        "name": "save srcLTP relationship in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3134.5,\r
+        "y": 2149,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\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
+        "outputs": 1,\r
+        "x": 3136.5,\r
+        "y": 2188,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4431,\r
+        "y": 1753,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4428,\r
+        "y": 2128,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "eee018f4.9abed",\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
+        "wires": [\r
+            [\r
+                "60c98c50.d9d324"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60c98c50.d9d324",\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
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "99e923c8.5700b8",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME: do we need this relationship?",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3171,\r
+        "y": 2108,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "debe7c1a.c25a08",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME: put proper values",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2409,\r
+        "y": 2130,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ccc984ea.946438",\r
+        "type": "save",\r
+        "name": "save vpn-binding B resource (aka. OTN domainB) in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2465,\r
+        "y": 2348,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "de2c330e.390d88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff4306de.40969",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME: do we need this relationship?",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3153,\r
+        "y": 2288,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3116.5,\r
+        "y": 2329,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3118.5,\r
+        "y": 2368,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "82297458.0d3c48",\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
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "de2c330e.390d88",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2765,\r
+        "y": 2347,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            [\r
+                "82297458.0d3c48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b5978da.cf55b8",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME: put proper values",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2386,\r
+        "y": 2308,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2463.5,\r
+        "y": 2388,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\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
+        "comments": "",\r
+        "x": 2337,\r
+        "y": 2471,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "97832dc3.63313",\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": 2360,\r
+        "y": 2511,\r
+        "z": "5b68e0d.bd97b2",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5071,\r
+        "y": 1523,\r
+        "z": "5b68e0d.bd97b2",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json
new file mode 100644 (file)
index 0000000..fa7b88c
--- /dev/null
@@ -0,0 +1,1362 @@
+[\r
+    {\r
+        "id": "303f7566.d219ba",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 110,\r
+        "y": 318,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "f39490a3.b09b28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f39490a3.b09b28",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 394.2856903076172,\r
+        "y": 379.23810863494873,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "72c32dea.176324"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72c32dea.176324",\r
+        "type": "method",\r
+        "name": "method tsli-vnf-topology-operation-trans-slice-deactivate",\r
+        "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 400.42860412597656,\r
+        "y": 464.0000305175781,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "d12dc6f7.97bdd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d12dc6f7.97bdd",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 596.2380447387695,\r
+        "y": 622.6666681496426,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "6aad2197.a72ef",\r
+                "1be9220f.ba6ca6",\r
+                "7fd5d3ea.13b334",\r
+                "5cda8af7.9a0634",\r
+                "225a4cf6.f0c67c",\r
+                "a4c45de.b22e5a",\r
+                "d2fb34de.34839",\r
+                "2fc6eaae.5fdc7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6aad2197.a72ef",\r
+        "type": "set",\r
+        "name": "set vnf-level-oper-status to PendingDelete",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].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[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",\r
+        "comments": "",\r
+        "x": 1004.3849029541016,\r
+        "y": 771.670627951622,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1be9220f.ba6ca6",\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": 916.5716552734375,\r
+        "y": 1843.5970458984375,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7fd5d3ea.13b334",\r
+        "type": "set",\r
+        "name": "set vnf-index and vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.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/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",\r
+        "comments": "",\r
+        "x": 981.5716247558594,\r
+        "y": 727.5968955755234,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5cda8af7.9a0634",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1026.0000610351562,\r
+        "y": 512.000005456619,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "183040b7.7ccbff",\r
+                "71cafe22.189b2",\r
+                "b0ad485b.8627c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0ad485b.8627c",\r
+        "type": "outcome",\r
+        "name": "0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1284.9689559936523,\r
+        "y": 473.96876499336213,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "f9a51cd3.102398"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9a51cd3.102398",\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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1439.7778434753418,\r
+        "y": 492.88903352897614,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "183040b7.7ccbff",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1278.0000953674316,\r
+        "y": 513.0000865189359,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "f9a51cd3.102398"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "71cafe22.189b2",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1271.000503540039,\r
+        "y": 546.0000903336331,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "f6c4231c.6894e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f6c4231c.6894e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1418.2700462341309,\r
+        "y": 546.554735395126,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "541e7856.d1e2",\r
+                "8337a3da.3c8e38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "541e7856.d1e2",\r
+        "type": "for",\r
+        "name": "for vidx..service-data.vnfs.vnf_length[]",\r
+        "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1664.2861633300781,\r
+        "y": 553.4286558357999,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "ebbd7e9e.ba96c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebbd7e9e.ba96c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1883.6357955932617,\r
+        "y": 552.9687359062955,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "436917e7.e9b6a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "436917e7.e9b6a",\r
+        "type": "switchNode",\r
+        "name": "switch vnfid found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2037.7153930664062,\r
+        "y": 552.6788179604337,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "27314ab3.a1187e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27314ab3.a1187e",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2213.6675148010254,\r
+        "y": 552.5715000359342,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "cf77593a.1343d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf77593a.1343d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2362.312973022461,\r
+        "y": 540.97913000267,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "f0ff74da.16b248"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0ff74da.16b248",\r
+        "type": "set",\r
+        "name": "set tmp.vidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
+        "comments": "",\r
+        "x": 2624.1997680664062,\r
+        "y": 518.3215563027188,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8337a3da.3c8e38",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.vidx ",\r
+        "xml": "<switch test=\"`$tmp.vidx`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1607.0000228881836,\r
+        "y": 607.99999353569,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "1cd8ba9c.bf5235"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cd8ba9c.bf5235",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1762.4286499023438,\r
+        "y": 607.5713770119473,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "6dd6d49d.d00eec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6dd6d49d.d00eec",\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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1907.8573913574219,\r
+        "y": 607.7143146721646,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "225a4cf6.f0c67c",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-level-oper-status",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 975.0000762939453,\r
+        "y": 620.8890204429626,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "e0bfe23d.068ad8",\r
+                "3e0c4d79.12e802"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e0bfe23d.068ad8",\r
+        "type": "outcome",\r
+        "name": "outcome Active",\r
+        "xml": "<outcome value='Active'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1220.8333702087402,\r
+        "y": 622.0001182556152,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "40413c0b.9420dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40413c0b.9420dc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1434.139762878418,\r
+        "y": 631.3253078460693,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3e0c4d79.12e802",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1198.8333892822266,\r
+        "y": 672.000129699707,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "fc734294.cf7788"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc734294.cf7788",\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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
+        "comments": "",\r
+        "x": 1358.3331565856934,\r
+        "y": 675.0001287460327,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a4c45de.b22e5a",\r
+        "type": "set",\r
+        "name": "copy input data to service data",\r
+        "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",\r
+        "comments": "",\r
+        "x": 984.0065612792969,\r
+        "y": 680.010435461998,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d2fb34de.34839",\r
+        "type": "save",\r
+        "name": "update AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1026.0064239501953,\r
+        "y": 826.0105141401291,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5dd794c8.fb268c",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 967,\r
+        "y": 898,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2fc6eaae.5fdc7e",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 978,\r
+        "y": 948,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "aebcc6b7.4bd97",\r
+                "534659e3.16c99",\r
+                "4b75ad0e.b2264c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aebcc6b7.4bd97",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1194,\r
+        "y": 913,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "dfa58322.db6e7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "534659e3.16c99",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1203.490966796875,\r
+        "y": 955.5740356445312,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "7aae8b9.3267cf4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b75ad0e.b2264c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1192,\r
+        "y": 1002,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "47847ce9.cdac14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7aae8b9.3267cf4",\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": 1357.0623779296875,\r
+        "y": 958.8597717285156,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "47847ce9.cdac14",\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": 1361,\r
+        "y": 1003,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dfa58322.db6e7",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1391,\r
+        "y": 909,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "1fcd5169.0fe3ef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1fcd5169.0fe3ef",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1614.33349609375,\r
+        "y": 908.9999389648438,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "b3fa3516.3c5f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3fa3516.3c5f7",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1810,\r
+        "y": 911,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "8171ffc1.700ce8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8171ffc1.700ce8",\r
+        "type": "switchNode",\r
+        "name": "switch $rel-index == 0",\r
+        "xml": "<switch test=\"`$rel-index == 0`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1997.9998664855957,\r
+        "y": 908.999979019165,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "4491f21f.012e44",\r
+                "66fe8847.e5db68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4491f21f.012e44",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2220.9998664855957,\r
+        "y": 798.999979019165,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "50b3c107.0ef428"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66fe8847.e5db68",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2191.999755859375,\r
+        "y": 1225,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "49f4be1a.dd4768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50b3c107.0ef428",\r
+        "type": "save",\r
+        "name": "get connectivityA from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityA\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2414.9998664855957,\r
+        "y": 798.999979019165,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "c5f57c4d.37656",\r
+                "f8bc0153.3111b",\r
+                "fd26821d.45f278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5f57c4d.37656",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2620.9998664855957,\r
+        "y": 758.999979019165,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "944973cd.969b48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f8bc0153.3111b",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2621.4908332824707,\r
+        "y": 804.5740146636963,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "4c56e2b6.ecbe4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd26821d.45f278",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2618.9998664855957,\r
+        "y": 847.999979019165,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "5f2713ec.fce9b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49f4be1a.dd4768",\r
+        "type": "save",\r
+        "name": "get connectivityB from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityB\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2387.999755859375,\r
+        "y": 1225,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "99901664.bef67",\r
+                "fa356ad9.66e31",\r
+                "3216507d.6f0df8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99901664.bef67",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2607.999755859375,\r
+        "y": 1196,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "b3f3fc8e.164aa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa356ad9.66e31",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2609.49072265625,\r
+        "y": 1241.5740356445312,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "9c397b15.bf0e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3216507d.6f0df8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2605.999755859375,\r
+        "y": 1287,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "1f619a9f.fc34dd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "944973cd.969b48",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2793.6663703918457,\r
+        "y": 757.999979019165,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "905f3b23.ac61b8",\r
+                "6125d5eb.a534c4",\r
+                "b1bd9fc5.bac3a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c56e2b6.ecbe4c",\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": 2784.062244415283,\r
+        "y": 804.8597507476807,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5f2713ec.fce9b4",\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": 2787.9998664855957,\r
+        "y": 848.999979019165,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6125d5eb.a534c4",\r
+        "type": "set",\r
+        "name": "set sotn_value for ETH deletion",\r
+        "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
+        "comments": "",\r
+        "x": 3081.4996452331543,\r
+        "y": 849.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b1bd9fc5.bac3a",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\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=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3179.499755859375,\r
+        "y": 894,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "43014871.10916",\r
+                "ef466a56.4961d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "43014871.10916",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3524.999755859375,\r
+        "y": 875,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "b872830e.e33218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef466a56.4961d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3528.999755859375,\r
+        "y": 915,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "ecca88b1.05406"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "53822d52.50003c",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "comments": "",\r
+        "x": 3022.999755859375,\r
+        "y": 802,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "905f3b23.ac61b8",\r
+        "type": "get-resource",\r
+        "name": "get-resource 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 = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3074.999755859375,\r
+        "y": 728,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "7583aec3.33d84",\r
+                "34076538.0ecf52",\r
+                "5f6cfa0b.4be42c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7583aec3.33d84",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3320.999755859375,\r
+        "y": 688,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "af220c19.d532d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34076538.0ecf52",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3324.999755859375,\r
+        "y": 728,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "c8a27e43.a20b28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f6cfa0b.4be42c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3316.999755859375,\r
+        "y": 768,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "d282616c.39fe68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d282616c.39fe68",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3474.999755859375,\r
+        "y": 768,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c8a27e43.a20b28",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3474.999755859375,\r
+        "y": 728,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "af220c19.d532d8",\r
+        "type": "set",\r
+        "name": "set controller data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.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": 3490.999755859375,\r
+        "y": 688,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c61ae526.8c7cb8",\r
+        "type": "comment",\r
+        "name": "Get controller info and send request",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3082.999755859375,\r
+        "y": 688,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "24a118da.312548",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "comments": "",\r
+        "x": 3014.999755859375,\r
+        "y": 648,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b3f3fc8e.164aa8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2780.666259765625,\r
+        "y": 1197,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "c56d5bdd.22466",\r
+                "ba468b68.004d98",\r
+                "8df38d4b.ee6e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c397b15.bf0e5",\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": 2771.0621337890625,\r
+        "y": 1243.8597717285156,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1f619a9f.fc34dd",\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": 2774.999755859375,\r
+        "y": 1288,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ba468b68.004d98",\r
+        "type": "set",\r
+        "name": "set sotn_value for ETH deletion",\r
+        "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
+        "comments": "",\r
+        "x": 3068.9995346069336,\r
+        "y": 1274.00004196167,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8df38d4b.ee6e2",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\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=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3173.9996452331543,\r
+        "y": 1321.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "846e91eb.5fd658",\r
+                "9847a507.3f69e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "846e91eb.5fd658",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3519.4996452331543,\r
+        "y": 1302.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "dcec496b.f92f38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9847a507.3f69e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3523.4996452331543,\r
+        "y": 1342.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "43eceb78.82b2dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de77a242.224c1",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "comments": "",\r
+        "x": 3017.4996452331543,\r
+        "y": 1229.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c56d5bdd.22466",\r
+        "type": "get-resource",\r
+        "name": "get-resource 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 = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3069.4996452331543,\r
+        "y": 1155.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "c6d3e171.5193a",\r
+                "9098a017.2895f8",\r
+                "8e10fa0e.d0c448"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6d3e171.5193a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3315.4996452331543,\r
+        "y": 1115.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "ec0b6188.dc04e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9098a017.2895f8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3319.4996452331543,\r
+        "y": 1155.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "8b3e7b4d.6376a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e10fa0e.d0c448",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3311.4996452331543,\r
+        "y": 1195.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "124616cb.e9eee9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "124616cb.e9eee9",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3469.4996452331543,\r
+        "y": 1195.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8b3e7b4d.6376a",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3469.4996452331543,\r
+        "y": 1155.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ec0b6188.dc04e",\r
+        "type": "set",\r
+        "name": "set controller data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.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": 3485.4996452331543,\r
+        "y": 1115.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "98e2fbb6.34e38",\r
+        "type": "comment",\r
+        "name": "Get controller info and send request",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3077.4996452331543,\r
+        "y": 1115.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "758d1f74.6d4218",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "comments": "",\r
+        "x": 3011.9996452331543,\r
+        "y": 1075.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dcec496b.f92f38",\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 Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 3677.4996452331543,\r
+        "y": 1302.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "43eceb78.82b2dc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3680.9996452331543,\r
+        "y": 1342.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "a040c34e.71e608",\r
+                "29ceb3fa.1e4b14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1acc213f.73169f",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
+        "comments": "",\r
+        "x": 3878.9996452331543,\r
+        "y": 1299.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a040c34e.71e608",\r
+        "type": "save",\r
+        "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
+        "xml": "<update 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\n<parameter name='operational-status' value='DeActivated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4020.9996452331543,\r
+        "y": 1341.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "29ceb3fa.1e4b14",\r
+        "type": "save",\r
+        "name": "update connectivity resource in AAI",\r
+        "xml": "<update 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='DeActivated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3949.9996452331543,\r
+        "y": 1390.000020980835,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ecca88b1.05406",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3686.499755859375,\r
+        "y": 915,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            [\r
+                "f3cb9aac.524828",\r
+                "4b8d9e90.2bfc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b872830e.e33218",\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 Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 3682.999755859375,\r
+        "y": 875,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "270674fa.6cafe4",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
+        "comments": "",\r
+        "x": 3878.999755859375,\r
+        "y": 874,\r
+        "z": "15891279.d6b57e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f3cb9aac.524828",\r
+        "type": "save",\r
+        "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
+        "xml": "<update 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\n<parameter name='operational-status' value='DeActivated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4014.999755859375,\r
+        "y": 915,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b8d9e90.2bfc",\r
+        "type": "save",\r
+        "name": "update connectivity resource in AAI",\r
+        "xml": "<update 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='DeActivated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3941.999755859375,\r
+        "y": 961,\r
+        "z": "15891279.d6b57e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.json
new file mode 100644 (file)
index 0000000..ae15591
--- /dev/null
@@ -0,0 +1,1660 @@
+[\r
+    {\r
+        "id": "fa505d09.c9298",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 106,\r
+        "y": 62,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "96d975d7.ae7b9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96d975d7.ae7b9",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 390.2856903076172,\r
+        "y": 123.23810863494873,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "197a98e4.ad38d7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "197a98e4.ad38d7",\r
+        "type": "method",\r
+        "name": "method tsli-vnf-topology-operation-trans-slice-delete",\r
+        "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 396.42860412597656,\r
+        "y": 208.00003051757812,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "eeba2d4.aaa3b5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e471fb5.d24a9",\r
+        "type": "comment",\r
+        "name": "site-vnf-topology-operation-delete",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 968.9162979125977,\r
+        "y": 129.58639907836914,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eeba2d4.aaa3b5",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 596.2380447387695,\r
+        "y": 357.6666717529297,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "cdad3ccf.c778c8",\r
+                "ddca427c.b6135",\r
+                "16b5196b.e4f74f",\r
+                "72550323.add05c",\r
+                "bcb30576.c5395",\r
+                "1ee10a8.e75cb76",\r
+                "2400813d.b23cfe",\r
+                "466b59d1.1f9ec8",\r
+                "8fb031c0.32361",\r
+                "4290869b.c0e258",\r
+                "12c0646.e45499c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72550323.add05c",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1048.6660919189453,\r
+        "y": 275.2611792087555,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "f1600d0.d3bcd7",\r
+                "5da847de.3e7bd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1600d0.d3bcd7",\r
+        "type": "other",\r
+        "name": "outcome Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1313.3884048461914,\r
+        "y": 257.81680130958557,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "2758e1f4.65c7de"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2758e1f4.65c7de",\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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1494.3882751464844,\r
+        "y": 252.81667923927307,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5da847de.3e7bd8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1298.8884048461914,\r
+        "y": 309.81676411628723,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "3d795ab1.0cafb6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d795ab1.0cafb6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1470.888111114502,\r
+        "y": 309.8167622089386,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "ed865e4c.fb2fe",\r
+                "ef77d3e7.8772d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef77d3e7.8772d",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.nidx ",\r
+        "xml": "<switch test=\"`$tmp.nidx`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1645.888282775879,\r
+        "y": 328.81668400764465,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "e8dd060b.17e57"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "16b5196b.e4f74f",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-level-oper-status",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1019.0550918579102,\r
+        "y": 349.7056429386139,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "284f50fc.866d8",\r
+                "cdf83757.65b4b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "284f50fc.866d8",\r
+        "type": "outcome",\r
+        "name": "outcome PendingDelete",\r
+        "xml": "<outcome value='PendingDelete'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1295.8884353637695,\r
+        "y": 352.8167426586151,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "e9cca7ec.303c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cdf83757.65b4b8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1256.8884201049805,\r
+        "y": 398.8167917728424,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "28762357.a03f74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "28762357.a03f74",\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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
+        "comments": "",\r
+        "x": 1405.3881340026855,\r
+        "y": 397.81677174568176,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bcb30576.c5395",\r
+        "type": "execute",\r
+        "name": "execute requiredParameters",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1035.388427734375,\r
+        "y": 218.8167588710785,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed865e4c.fb2fe",\r
+        "type": "for",\r
+        "name": "for nidx..service-data.vnfs.vnf[]",\r
+        "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1706.3882865905762,\r
+        "y": 264.8166801929474,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "5b03bf9c.f15f28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b03bf9c.f15f28",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1962.3883056640625,\r
+        "y": 264.8166801929474,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "b0289fb.f82296"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0289fb.f82296",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2138.888359069824,\r
+        "y": 267.8166801929474,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "772109f8.0b899"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "772109f8.0b899",\r
+        "type": "set",\r
+        "name": "set tmp.nidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",\r
+        "comments": "",\r
+        "x": 2305.8883743286133,\r
+        "y": 328.8166801929474,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "68963ea5.a81b48",\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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1951.388298034668,\r
+        "y": 328.81668400764465,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e8dd060b.17e57",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1813.888298034668,\r
+        "y": 328.81668400764465,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "68963ea5.a81b48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cdad3ccf.c778c8",\r
+        "type": "set",\r
+        "name": "set vnfId and vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",\r
+        "comments": "",\r
+        "x": 1005.9051132202148,\r
+        "y": 564.3336856365204,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ddca427c.b6135",\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": 906.0162353515625,\r
+        "y": 1435.88916015625,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e9cca7ec.303c7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1491.1947937011719,\r
+        "y": 360.14194798469543,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ee10a8.e75cb76",\r
+        "type": "set",\r
+        "name": "set prop.vnfNewidx",\r
+        "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",\r
+        "comments": "",\r
+        "x": 988.0000839233398,\r
+        "y": 400.00007796287537,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2400813d.b23cfe",\r
+        "type": "for",\r
+        "name": "for lidx..service-data.vnfs.vnf[]",\r
+        "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1012.0000686645508,\r
+        "y": 442.0000765323639,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "572dbcf2.896d3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "572dbcf2.896d3c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1273.000144958496,\r
+        "y": 446.00011134147644,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "53356e5d.7d71c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "53356e5d.7d71c",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1465.0000915527344,\r
+        "y": 455.00015568733215,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "82733dd2.3a7d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "82733dd2.3a7d",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1651.0001068115234,\r
+        "y": 439.0000422000885,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "d7f72ca.5dc4ed"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7f72ca.5dc4ed",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1802.0000305175781,\r
+        "y": 440.0000784397125,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "920da24f.169358",\r
+                "953950.d86c6eb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "920da24f.169358",\r
+        "type": "set",\r
+        "name": "set  vnf data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",\r
+        "comments": "",\r
+        "x": 1969.0001983642578,\r
+        "y": 414.00026202201843,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "953950.d86c6eb",\r
+        "type": "set",\r
+        "name": "set prop.vnfNewidx",\r
+        "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",\r
+        "comments": "",\r
+        "x": 1989.0001258850098,\r
+        "y": 471.0001976490021,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "466b59d1.1f9ec8",\r
+        "type": "set",\r
+        "name": "set new vnf length",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",\r
+        "comments": "",\r
+        "x": 980.1014823913574,\r
+        "y": 485.804429769516,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8fb031c0.32361",\r
+        "type": "set",\r
+        "name": "Remove vnf from ServiceData",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",\r
+        "comments": "",\r
+        "x": 1010.0002517700195,\r
+        "y": 524.0002129077911,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4290869b.c0e258",\r
+        "type": "save",\r
+        "name": "delete AnAI - vnf-instance.orchestration-status",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1067.0066452026367,\r
+        "y": 601.0106251239777,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "740c712e.7b0a18",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1001,\r
+        "y": 735,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "12c0646.e45499c",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1012,\r
+        "y": 785,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "f9064279.1b4f8",\r
+                "17f4eefe.af8569",\r
+                "e0ea0e9c.c1ac38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9064279.1b4f8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1228,\r
+        "y": 750,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "7baaa7aa.36e958"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17f4eefe.af8569",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1237.490966796875,\r
+        "y": 792.5740356445312,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "48a0edde.3f94f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e0ea0e9c.c1ac38",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1226,\r
+        "y": 839,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "b71eb698.9367c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "48a0edde.3f94f4",\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": 1391.0623779296875,\r
+        "y": 795.8597717285156,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b71eb698.9367c8",\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": 1395,\r
+        "y": 840,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7baaa7aa.36e958",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1425,\r
+        "y": 746,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "7f9e9a3e.4de224"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f9e9a3e.4de224",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1648.33349609375,\r
+        "y": 745.9999389648438,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "316daf9e.190dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "316daf9e.190dc",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1844,\r
+        "y": 748,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "d510feb6.348d7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d510feb6.348d7",\r
+        "type": "switchNode",\r
+        "name": "switch $rel-index == 0",\r
+        "xml": "<switch test=\"`$rel-index == 0`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2031.9998664855957,\r
+        "y": 745.999979019165,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "71f2cf8d.3a35e",\r
+                "264b9f2.1aba9e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "71f2cf8d.3a35e",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2254.9998664855957,\r
+        "y": 635.999979019165,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "c924f778.a2b848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "264b9f2.1aba9e",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2225.999755859375,\r
+        "y": 1062,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "beac7966.aff0e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c924f778.a2b848",\r
+        "type": "save",\r
+        "name": "get connectivityA from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityA\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2448.9998664855957,\r
+        "y": 635.999979019165,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "b8d26364.3207e8",\r
+                "ce782cd0.462e9",\r
+                "c0db2841.2c9108"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "beac7966.aff0e",\r
+        "type": "save",\r
+        "name": "get connectivityB from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityB\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2421.999755859375,\r
+        "y": 1062,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "e783575a.ee3408",\r
+                "f2d51460.33b19",\r
+                "7c2969db.4e66a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b8d26364.3207e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2654.9998664855957,\r
+        "y": 595.999979019165,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "888a4917.61b98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ce782cd0.462e9",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2655.4908332824707,\r
+        "y": 641.5740146636963,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "a71edbbe.5f5c18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c0db2841.2c9108",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2652.9998664855957,\r
+        "y": 684.999979019165,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "a3da676a.d60b68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "888a4917.61b98",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2827.6663703918457,\r
+        "y": 594.999979019165,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "e61d24fe.b9f57"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a71edbbe.5f5c18",\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": 2818.062244415283,\r
+        "y": 641.8597507476807,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a3da676a.d60b68",\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": 2821.9998664855957,\r
+        "y": 685.999979019165,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e783575a.ee3408",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2641.999755859375,\r
+        "y": 1033,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "589b1078.8544c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2d51460.33b19",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2643.49072265625,\r
+        "y": 1078.5740356445312,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "41e63be3.fadc5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c2969db.4e66a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2639.999755859375,\r
+        "y": 1124,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "2d54d7a1.ac5068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "589b1078.8544c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2814.666259765625,\r
+        "y": 1034,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "be4e9140.d69b68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "41e63be3.fadc5c",\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": 2805.0621337890625,\r
+        "y": 1080.8597717285156,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2d54d7a1.ac5068",\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": 2808.999755859375,\r
+        "y": 1125,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e61d24fe.b9f57",\r
+        "type": "save",\r
+        "name": "get vpn-binding-A from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivityA.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-bindingA\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3047,\r
+        "y": 579,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "2b60392e.ff6d9e",\r
+                "49846022.e395b8",\r
+                "b35a5936.c908e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abc0c7ad.b5acd8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3431,\r
+        "y": 579,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "4263af43.fa9c48",\r
+                "196f2286.5bda85",\r
+                "e474491b.fe4e98",\r
+                "f4710eb9.81bb",\r
+                "4d26fd5b.dd7194"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4263af43.fa9c48",\r
+        "type": "set",\r
+        "name": "set attachment_param for TN NSSSI deleteion in PNC A",\r
+        "xml": "<set>\n<parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n\n",\r
+        "comments": "",\r
+        "x": 3783,\r
+        "y": 572,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2b60392e.ff6d9e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3258,\r
+        "y": 581,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "abc0c7ad.b5acd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49846022.e395b8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3258.490966796875,\r
+        "y": 626.5740356445312,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "df7bab95.4da49"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b35a5936.c908e8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3256,\r
+        "y": 670,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "2e3ee94d.2c9d76"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e3ee94d.2c9d76",\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": 3423,\r
+        "y": 669,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "df7bab95.4da49",\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": 3421.0623779296875,\r
+        "y": 626.8597717285156,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4d26fd5b.dd7194",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete TN NSSI",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<!--<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />-->\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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": 3739,\r
+        "y": 623,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "1605b46c.2a0984",\r
+                "49599f6.eb505e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1605b46c.2a0984",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4086.5,\r
+        "y": 593,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "c35b0230.a333b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49599f6.eb505e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4101.5,\r
+        "y": 658,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "c575a6f8.585bd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c35b0230.a333b8",\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 Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 4270.5,\r
+        "y": 589,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c575a6f8.585bd8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4296,\r
+        "y": 651,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "196f2286.5bda85",\r
+        "type": "get-resource",\r
+        "name": "get-resource 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 = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3734,\r
+        "y": 444,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "1da34d03.94651b",\r
+                "c42b64ae.aaab8",\r
+                "25d5725f.b07fee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1da34d03.94651b",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3980,\r
+        "y": 404,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "6e678297.9224ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c42b64ae.aaab8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3984,\r
+        "y": 444,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "96b16b61.297a58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25d5725f.b07fee",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3976,\r
+        "y": 484,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "8951a2c3.b71c18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8951a2c3.b71c18",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4134,\r
+        "y": 484,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "96b16b61.297a58",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4134,\r
+        "y": 444,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6e678297.9224ac",\r
+        "type": "set",\r
+        "name": "set controller data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.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": 4150,\r
+        "y": 404,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7ef0083.0af5478",\r
+        "type": "comment",\r
+        "name": "Get controller info and send request",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3742,\r
+        "y": 404,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3d0f709d.f526f8",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "comments": "",\r
+        "x": 3674,\r
+        "y": 364,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "744d9a2e.8e773c",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "Set proper values to generate a good JSON body to be sent to PNC A for TN NSSI deletion.",\r
+        "comments": "",\r
+        "x": 3654,\r
+        "y": 528,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e474491b.fe4e98",\r
+        "type": "save",\r
+        "name": "delete connectivity resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3711,\r
+        "y": 715,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "47618fca.ed7b18",\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": 3646,\r
+        "y": 681,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f4710eb9.81bb",\r
+        "type": "save",\r
+        "name": "delete vpn-binding resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='tmp.aai.vpn-bindingA = $tmp.aai.vpn-bindingA'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3707,\r
+        "y": 759,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "be4e9140.d69b68",\r
+        "type": "save",\r
+        "name": "get vpn-binding-B from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivityB.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-bindingB\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3079,\r
+        "y": 1027,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "ef723c11.8ecf08",\r
+                "d24eb3b1.82784",\r
+                "d82f4ae7.ff1938"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef723c11.8ecf08",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3286,\r
+        "y": 1030,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "db88eddf.0d68b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d24eb3b1.82784",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3286.490966796875,\r
+        "y": 1075.5740356445312,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "b2d386a0.34fcc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d82f4ae7.ff1938",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3284,\r
+        "y": 1119,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "fced2850.46c338"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fced2850.46c338",\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": 3453,\r
+        "y": 1120,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2d386a0.34fcc8",\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": 3449.0623779296875,\r
+        "y": 1075.8597717285156,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "db88eddf.0d68b8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3455,\r
+        "y": 1030,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "968b60ca.b919a8",\r
+                "4bf2b1b3.14be6",\r
+                "474863fb.23ac14",\r
+                "13714ee3.ae8141",\r
+                "408a0c32.404a4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "968b60ca.b919a8",\r
+        "type": "set",\r
+        "name": "set attachment_param for TN NSSSI deleteion in PNC B",\r
+        "xml": "<set>\n<parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingB.dst-access-ltp-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n\n",\r
+        "comments": "",\r
+        "x": 3816,\r
+        "y": 1131,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cb725e7f.5dd5b",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4075,\r
+        "y": 1158,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "8ff601d0.110ad8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cd7bc00.01b8a8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4090,\r
+        "y": 1223,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "f31755df.8bf058"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ff601d0.110ad8",\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 Create vpn rest api\" />\n",\r
+        "comments": "",\r
+        "x": 4259,\r
+        "y": 1154,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f31755df.8bf058",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4257.5,\r
+        "y": 1217,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4bf2b1b3.14be6",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete TN NSSI",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<!--<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />-->\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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": 3775.5,\r
+        "y": 1181,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "cb725e7f.5dd5b",\r
+                "9cd7bc00.01b8a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "474863fb.23ac14",\r
+        "type": "get-resource",\r
+        "name": "get-resource 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 = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3743,\r
+        "y": 1016,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "d06c3921.6cace",\r
+                "88d90a9f.091b3",\r
+                "12a460ba.ca9617"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d06c3921.6cace",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3989,\r
+        "y": 976,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "21d11018.7e29f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "88d90a9f.091b3",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3993,\r
+        "y": 1016,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "863d5ed9.b49e18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12a460ba.ca9617",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3985,\r
+        "y": 1056,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            [\r
+                "1cdaf293.72e3fd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cdaf293.72e3fd",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4143,\r
+        "y": 1056,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "863d5ed9.b49e18",\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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4143,\r
+        "y": 1016,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "21d11018.7e29f8",\r
+        "type": "set",\r
+        "name": "set controller data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.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": 4159,\r
+        "y": 976,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ef8c4420.4b2328",\r
+        "type": "comment",\r
+        "name": "Get controller info and send request",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3751,\r
+        "y": 976,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e3821d69.5cd46",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "comments": "",\r
+        "x": 3685.5,\r
+        "y": 936,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e565282f.4ac74",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "Set proper values to generate a good JSON body to be sent to PNC A for TN NSSI deletion.",\r
+        "comments": "",\r
+        "x": 3682,\r
+        "y": 1080,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "13714ee3.ae8141",\r
+        "type": "save",\r
+        "name": "delete connectivity resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3733,\r
+        "y": 1273,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "36d49abc.7de96e",\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": 3668,\r
+        "y": 1239,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "408a0c32.404a4c",\r
+        "type": "save",\r
+        "name": "delete vpn-binding resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='tmp.aai.vpn-bindingB = $tmp.aai.vpn-bindingB'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3729,\r
+        "y": 1317,\r
+        "z": "b189bed1.bef5e8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index 9b8f9a0..6ea99b6 100644 (file)
@@ -60,6 +60,9 @@
                             <outcome value='ActivateSOTNUnderlayInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='ActivateTransportSliceInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' ></call>\r
                             </outcome>\r
                                     <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync' ></call>\r
                                 </block>\r
                             </outcome>\r
+                            <outcome value='DeactivateSOTNUnderlayInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync' ></call>\r
+                            </outcome>\r
+                            <outcome value='DeactivateTransportSliceInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' ></call>\r
                             </outcome>\r
                             <outcome value='CreateSOTNUnderlayInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-create' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='AllocateTransportSliceInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <block></block>\r
                             </outcome>\r
                             <outcome value='DeleteSOTNUnderlayInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='DeleteTransportSliceInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <block></block>\r
                             </outcome>\r
index d8e111c..04395f2 100644 (file)
@@ -1,63 +1,65 @@
-<service-logic xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}">\r
-    <method rpc="sotn-vf-operation-uni-activate" mode="sync">\r
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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
+    <method rpc='sotn-vf-operation-uni-activate' mode='sync'>\r
         <block atomic="true">\r
-            <switch test="`$service-data.vnfs.vnf_length`">\r
-                <outcome value="">\r
-                    <return status="failure">\r
-                        <parameter name="ack-final" value="Y"/>\r
-                        <parameter name="error-code" value="500"/>\r
-                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data"/>\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
                     </return>\r
                 </outcome>\r
             </switch>\r
-            <for index="idx" start="0" end="`$service-data.vnfs.vnf_length`">\r
+            <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
                 <switch test="`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`">\r
-                    <outcome value="true">\r
+                    <outcome value='true'>\r
                         <block atomic="true">\r
                             <set>\r
-                                <parameter name="vnf-index" value="`$idx`"/>\r
+                                <parameter name='vnf-index' value='`$idx`' />\r
                             </set>\r
                             <set>\r
-                                <parameter name="tmp.vnf-id" value="`$vf-module-topology-operation-input.vnf-information.vnf-id`"/>\r
+                                <parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\r
                             </set>\r
                         </block>\r
                     </outcome>\r
                 </switch>\r
             </for>\r
-            <execute plugin="org.onap.ccsdk.sli.plugins.prop.PropertiesNode" method="readProperties">\r
-                <parameter name="fileName" value="%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties"/>\r
-                <parameter name="contextPrefix" value="prop"/>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\r
+                <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\r
+                <parameter name='contextPrefix' value='prop' />\r
             </execute>\r
-            <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`">\r
-                <outcome value="0">\r
-                    <return status="failure">\r
-                        <parameter name="ack-final" value="Y"/>\r
-                        <parameter name="error-code" value="500"/>\r
-                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data"/>\r
+            <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\r
+                <outcome value='0'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
                     </return>\r
                 </outcome>\r
-                <outcome value="">\r
-                    <return status="failure">\r
-                        <parameter name="ack-final" value="Y"/>\r
-                        <parameter name="error-code" value="500"/>\r
-                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data"/>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
                     </return>\r
                 </outcome>\r
-                <outcome value="Other">\r
+                <outcome value='Other'>\r
                     <block atomic="true">\r
                         <set>\r
-                            <parameter name="vf-module-length" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`"/>\r
+                            <parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\r
                         </set>\r
-                        <for index="idx" start="0" end="`$vf-module-length`">\r
+                        <for index='idx' start='0' end='`$vf-module-length`' >\r
                             <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`">\r
-                                <outcome value="true">\r
+                                <outcome value='true'>\r
                                     <block atomic="true">\r
                                         <set>\r
-                                            <parameter name="tmp.vidx" value="`$idx`"/>\r
-                                            <parameter name="ctx.vf-module-data." value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`"/>\r
+                                            <parameter name='tmp.vidx' value='`$idx`' />\r
+                                            <parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\r
                                         </set>\r
                                         <set>\r
-                                            <parameter name="vf-module-request-input." value="`$ctx.vf-module-data.vf-module-request-input.`"/>\r
+                                            <parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\r
                                         </set>\r
                                     </block>\r
                                 </outcome>\r
                     </block>\r
                 </outcome>\r
             </switch>\r
-            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="generic-vnf" key="generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id" pfx="tmp.aai.generic-vnf" local-only="false">\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="generic-vnf" \r
+               key="generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id"\r
+        pfx='tmp.aai.generic-vnf' local-only='false' >\r
                 <!--AND depth = '0'"-->\r
-                <outcome value="success">\r
+                <outcome value='success'>\r
                     <block>\r
-                        <for silentFailure="true" index="vidx" start="0" end="`$tmp.aai.generic-vnf.relationship-list.relationship_length`">\r
-                            <switch test="`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`">\r
-                                <outcome value="uni">\r
+                        <for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >\r
+                            <switch test='`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`'>\r
+                                <outcome value='uni'>\r
                                     <block atomic="true">\r
-                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="uni" key="uni.id = $tmp.aai.generic-vnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value" pfx="tmp.aai.uni" local-only="false">\r
-                                            <outcome value="success">\r
+                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="uni" \r
+               key="uni.id = $tmp.aai.generic-vnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value"\r
+        pfx='tmp.aai.uni' local-only='false' >\r
+                                            <outcome value='success'>\r
                                                 <block>\r
                                                     <set>\r
-                                                        <!--\r
-                                                        <parameter name='`tmp.unis.uni[$vidx].tpId`' value="`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`" />\r
-                                                        -->\r
-                                                        <parameter name="`tmp.unis.uni[$vidx].`" value="`$tmp.aai.uni.`"/>\r
+                                                        <!--<parameter name='`tmp.unis.uni[$vidx].tpId`' value="`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`" />-->\r
+                                                        <parameter name='`tmp.unis.uni[$vidx].`' value="`$tmp.aai.uni.`" />\r
                                                     </set>\r
-                                                    <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split">\r
-                                                        <parameter name="original_string" value="`tmp.aai.uni.tp-id`"/>\r
+                                                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                                                        <parameter name="original_string" value='`$tmp.aai.uni.tp-id`'/>\r
                                                         <parameter name="regex" value="[^-]+$"/>\r
                                                         <parameter name="ctx_memory_result_key" value="param-prefix"/>\r
-                                                        <outcome value="success">\r
+                                                        <outcome value='success'>\r
                                                             <set>\r
-                                                                <parameter name="tmp.src.ltpId" value="`$param-prefix[$param-prefix_length -1]`"/>\r
+                                                                <parameter name='tmp.src.ltpId' value='`$param-prefix[$param-prefix_length -1]`' />\r
                                                             </set>\r
                                                         </outcome>\r
-                                                        <outcome value="failure">\r
-                                                            <return status="failure">\r
-                                                                <parameter name="error-code" value=""/>\r
-                                                                <parameter name="error-message" value="An error occured while splitting sna1_route"/>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='error-code' value='' />\r
+                                                                <parameter name='error-message' value="An error occured while splitting sna1_route" />\r
                                                             </return>\r
                                                         </outcome>\r
                                                     </execute>\r
-                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="pnf" key="'pnf.pnf-name = $tmp.unis.uni[$vidx].pnf-name' AND depth = '0'" pfx="tmp.aai.pnf" local-only="false">\r
-                                                        <!--\r
-                                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
-                                                        -->\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="pnf" \r
+               key="'pnf.pnf-name = $tmp.unis.uni[$vidx].pnf-name'\r
+               AND depth = '0'"\r
+        pfx='tmp.aai.pnf' local-only='false' >\r
+                                                        <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->\r
                                                         <!--           resource="generic-vnf" -->\r
-                                                        <!--\r
-                                                                key="'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id'\r
-                                                        -->\r
+                                                        <!--           key="'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' -->\r
                                                         <!--           AND depth = '0'"-->\r
-                                                        <!--\r
-                                                                pfx='tmp.aai.generic-vnf' local-only='false' >\r
-                                                        -->\r
-                                                        <outcome value="success">\r
+                                                        <!--        pfx='tmp.aai.generic-vnf' local-only='false' >-->\r
+                                                        <outcome value='success'>\r
                                                             <block>\r
                                                                 <set>\r
-                                                                    <parameter name="`$tmp.unis.uni[$vidx].node-id`" value="`$tmp.aai.pnf.pnf-id`"/>\r
+                                                                    <parameter name='`$tmp.unis.uni[$vidx].node-id`' value="`$tmp.aai.pnf.pnf-id`" />\r
                                                                 </set>\r
-                                                                <for silentFailure="true" index="ridx" start="0" end="`$tmp.aai.pnf.relationship-list.relationship_length`">\r
-                                                                    <switch test="`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`">\r
-                                                                        <outcome value="thirdparty-controller">\r
+                                                                <for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\r
+                                                                    <switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\r
+                                                                        <outcome value='thirdparty-controller'>\r
                                                                             <block atomic="true">\r
                                                                                 <set>\r
-                                                                                    <parameter name="`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`" value="`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`"/>\r
+                                                                                    <parameter name='`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`' value="`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`" />\r
                                                                                 </set>\r
                                                                             </block>\r
                                                                         </outcome>\r
-                                                                        <outcome value="network-resource">\r
+                                                                        <outcome value='network-resource'>\r
                                                                             <block atomic="true">\r
                                                                                 <set>\r
-                                                                                    <parameter name="`$tmp.unis.uni[$vidx].network-id`" value="`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`"/>\r
+                                                                                    <parameter name='`$tmp.unis.uni[$vidx].network-id`' value="`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`" />\r
                                                                                 </set>\r
-                                                                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="network-resource" key="'network-resource.network-id = $tmp.unis.uni[$vidx].network-id' AND depth = '0'" pfx="tmp.aai.network-resource" local-only="false">\r
-                                                                                    <outcome value="success">\r
+                                                                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="network-resource" \r
+               key="'network-resource.network-id = $tmp.unis.uni[$vidx].network-id'\r
+               AND depth = '0'"\r
+        pfx='tmp.aai.network-resource' local-only='false' >\r
+                                                                                    <outcome value='success'>\r
                                                                                         <set>\r
-                                                                                            <parameter name="`$tmp.unis.uni[$vidx].network-id`" value="`$tmp.aai.network-resource.network-id`"/>\r
-                                                                                            <parameter name="`$tmp.unis.uni[$vidx].provider-id`" value="`$tmp.aai.network-resource.provider-id`"/>\r
-                                                                                            <parameter name="`$tmp.unis.uni[$vidx].client-id`" value="`$tmp.aai.network-resource.client-id`"/>\r
-                                                                                            <parameter name="`$tmp.unis.uni[$vidx].te-topo-id`" value="`$tmp.aai.network-resource.te-topo-id`"/>\r
-                                                                                            <parameter name="`$tmp.unis.uni[$vidx].network-type`" value="`$tmp.aai.network-resource.network-type`"/>\r
+                                                                                            <parameter name="`$tmp.unis.uni[$vidx].network-id`" value="`$tmp.aai.network-resource.network-id`" />\r
+                                                                                            <parameter name="`$tmp.unis.uni[$vidx].provider-id`" value="`$tmp.aai.network-resource.provider-id`" />\r
+                                                                                            <parameter name="`$tmp.unis.uni[$vidx].client-id`" value="`$tmp.aai.network-resource.client-id`" />\r
+                                                                                            <parameter name="`$tmp.unis.uni[$vidx].te-topo-id`" value="`$tmp.aai.network-resource.te-topo-id`" />\r
+                                                                                            <parameter name="`$tmp.unis.uni[$vidx].network-type`" value="`$tmp.aai.network-resource.network-type`" />\r
                                                                                         </set>\r
                                                                                     </outcome>\r
                                                                                 </get-resource>\r
                                 </outcome>\r
                             </switch>\r
                         </for>\r
-                        <switch test="`$tmp.unis.uni_length < 2`">\r
-                            <outcome value="true">\r
-                                <return status="success">\r
-                                    <parameter name="ack-final-indicator" value="Y"/>\r
-                                    <parameter name="error-code" value="200"/>\r
-                                    <parameter name="error-message" value="`$error-message`"/>\r
+                        <switch test='`$tmp.unis.uni_length &lt; 2`' >\r
+                            <outcome value='true'>\r
+                                <return status='success'>\r
+                                    <parameter name="ack-final-indicator" value="Y" />\r
+                                    <parameter name="error-code" value="200" />\r
+                                    <parameter name="error-message" value="`$error-message`" />\r
                                 </return>\r
                             </outcome>\r
                         </switch>\r
                     </block>\r
                 </outcome>\r
             </get-resource>\r
-            <call module="GENERIC-RESOURCE-API" rpc="sotn-get-otn-tunnel-path-from-oof" mode="sync"/>\r
-            <for index="vidx" start="0" end="`$tmp.unis.uni_length`">\r
+            <call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' ></call>\r
+            <for index='vidx' start='0' end='`$tmp.unis.uni_length`' >\r
                 <block atomic="true">\r
                     <set>\r
-                        <parameter name="oof.vpn." value="`$tmp.unis.uni[$vidx].`"/>\r
+                        <parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />\r
                     </set>\r
-                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="network-resource" key="network-resource.network-id = $oof.vpn.network-id" pfx="tmp.aai.network-resource" local-only="false">\r
-                        <outcome value="success">\r
+                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="network-resource" \r
+               key="network-resource.network-id = $oof.vpn.network-id"\r
+        pfx='tmp.aai.network-resource' local-only='false' >\r
+                        <outcome value='success'>\r
                             <block>\r
-                                <for index="ridx" start="0" end="`$tmp.aai.network-resource.relationship-list.relationship_length`">\r
-                                    <switch test="`$tmp.aai.network-resource.relationship-list.relationship[$ridx].related-to`">\r
-                                        <outcome value="esr-thirdparty-sdnc">\r
+                                <for index='ridx' start='0' end='`$tmp.aai.network-resource.relationship-list.relationship_length`' >\r
+                                    <switch test='`$tmp.aai.network-resource.relationship-list.relationship[$ridx].related-to`'>\r
+                                        <outcome value='esr-thirdparty-sdnc'>\r
                                             <set>\r
-                                                <parameter name="prop.sdncRestApi.thirdpartySdnc.id" value="`$tmp.aai.network-resource.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`"/>\r
+                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.id' value="`$tmp.aai.network-resource.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`" />\r
                                             </set>\r
                                         </outcome>\r
                                     </switch>\r
                                 </for>\r
                             </block>\r
                         </outcome>\r
-                        <outcome value="not-found">\r
-                            <return status="failure">\r
-                                <parameter name="ack-final" value="Y"/>\r
-                                <parameter name="error-code" value="500"/>\r
-                                <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`"/>\r
+                        <outcome value='not-found'>\r
+                            <return status='failure'>\r
+                                <parameter name='ack-final' value='Y'/>\r
+                                <parameter name="error-code" value="500" />\r
+                                <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />\r
                             </return>\r
                         </outcome>\r
-                        <outcome value="Other">\r
-                            <return status="failure">\r
-                                <parameter name="ack-final" value="Y"/>\r
-                                <parameter name="error-code" value="500"/>\r
-                                <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`"/>\r
+                        <outcome value='Other'>\r
+                            <return status='failure'>\r
+                                <parameter name='ack-final' value='Y'/>\r
+                                <parameter name="error-code" value="500" />\r
+                                <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />\r
                             </return>\r
                         </outcome>\r
                     </get-resource>\r
-                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="esr-thirdparty-sdnc" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND depth = '1'" pfx="tmp.aai.esr-thirdparty-sdnc" local-only="false">\r
-                        <outcome value="success">\r
+                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="esr-thirdparty-sdnc" \r
+               key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \r
+                    depth = '1'"\r
+        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\r
+                        <outcome value='success'>\r
                             <set>\r
-                                <parameter name="prop.sdncRestApi.thirdpartySdnc.url" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`"/>\r
-                                <parameter name="prop.sdncRestApi.thirdpartySdnc.user" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`"/>\r
-                                <parameter name="prop.sdncRestApi.thirdpartySdnc.password" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`"/>\r
-                                <!--\r
-                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
-                                -->\r
-                                <!--\r
-                                <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />\r
-                                -->\r
-                                <!--\r
-                                <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
-                                -->\r
-                                <!--\r
-                                <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
-                                -->\r
+                                <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />\r
+                                <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />\r
+                                <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />\r
+                                <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\r
+                                <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->\r
+                                <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->\r
+                                <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->\r
                                 <!--<parameter name="format" value="json"/>-->\r
                                 <!--<parameter name="httpMethod" value="get"/>-->\r
-                                <!--\r
-                                <parameter name="responsePrefix" value="topology"/>\r
-                                -->\r
-                                <!--\r
-                                <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
-                                -->\r
-                                <!--\r
-                                <parameter name="trustStorePassword" value="adminadmin"/>\r
-                                -->\r
-                                <!--\r
-                                <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
-                                -->\r
-                                <!--\r
-                                <parameter name="keyStorePassword" value="adminadmin"/>\r
-                                -->\r
+                                <!--<parameter name="responsePrefix" value="topology"/>-->\r
+                                <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->\r
+                                <!--<parameter name="trustStorePassword" value="adminadmin"/>-->\r
+                                <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->\r
+                                <!--<parameter name="keyStorePassword" value="adminadmin"/>-->\r
                             </set>\r
                         </outcome>\r
-                        <outcome value="not-found">\r
-                            <return status="failure">\r
-                                <parameter name="ack-final" value="Y"/>\r
-                                <parameter name="error-code" value="500"/>\r
-                                <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`"/>\r
+                        <outcome value='not-found'>\r
+                            <return status='failure'>\r
+                                <parameter name='ack-final' value='Y'/>\r
+                                <parameter name="error-code" value="500" />\r
+                                <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
                             </return>\r
                         </outcome>\r
-                        <outcome value="Other">\r
-                            <return status="failure">\r
-                                <parameter name="ack-final" value="Y"/>\r
-                                <parameter name="error-code" value="500"/>\r
-                                <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`"/>\r
+                        <outcome value='Other'>\r
+                            <return status='failure'>\r
+                                <parameter name='ack-final' value='Y'/>\r
+                                <parameter name="error-code" value="500" />\r
+                                <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
                             </return>\r
                         </outcome>\r
                     </get-resource>\r
-                    <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">\r
-                        <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`"/>\r
-                        <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`"/>\r
+                    <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                        <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />\r
+                        <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`" />\r
                         <parameter name="format" value="json"/>\r
                         <parameter name="httpMethod" value="post"/>\r
                         <parameter name="responsePrefix" value="token-result"/>\r
                         <parameter name="trustStorePassword" value="adminadmin"/>\r
                         <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
                         <parameter name="keyStorePassword" value="adminadmin"/>\r
-                        <outcome value="success">\r
+                        <outcome value='success'>\r
                             <set>\r
-                                <parameter name="prop.sdncRestApi.token_id" value="`$token-result.data.token_id`"/>\r
+                                <parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\r
                             </set>\r
                         </outcome>\r
-                        <outcome value="failure">\r
-                            <return status="failure">\r
-                                <parameter name="ack-final" value="Y"/>\r
-                                <parameter name="error-code" value="500"/>\r
-                                <parameter name="error-message" value="Error executing get token rest api"/>\r
+                        <outcome value='failure'>\r
+                            <return status='failure'>\r
+                                <parameter name='ack-final' value='Y'/>\r
+                                <parameter name="error-code" value="500" />\r
+                                <parameter name="error-message" value="Error executing get token rest api" />\r
                             </return>\r
                         </outcome>\r
                     </execute>\r
-                    <call module="GENERIC-RESOURCE-API" rpc="sotn-create-otn-tunnel" mode="sync"/>\r
+                    <call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' ></call>\r
                     <set>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type" value="ietf-eth-tran-types:mef-10-bwp"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type" value="ietf-eth-tran-types:p2p-svc"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status" value="ietf-te-types:tunnel-state-up"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id" value="0"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type" value="ietf-eth-tran-types:port-classification"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id" value="1"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type" value="ietf-eth-tran-types:port-classification"/>\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
                     </set>\r
                     <set>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id" value="`$oof.vpn.access-provider-id`"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id" value="`$oof.vpn.access-client-id`"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id" value="`$oof.vpn.access-topology-id`"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id" value="`$oof.vpn.access-node-id`"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id" value="`$oof.vpn.src-access-ltp-id`"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id" value="`$oof.vpn.access-node-id`"/>\r
-                        <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id" value="`$oof.vpn.dst-access-ltp-id`"/>\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\r
                     </set>\r
                     <switch test="`$prop.sdncRestApi.token_id`">\r
-                        <outcome value="">\r
-                            <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode" method="sendRequest">\r
-                                <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`"/>\r
-                                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`"/>\r
-                                <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`"/>\r
-                                <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`"/>\r
+                        <outcome value=''>\r
+                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode' method='sendRequest' >\r
+                                <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />\r
+                                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />\r
+                                <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
                                 <parameter name="format" value="json"/>\r
                                 <parameter name="httpMethod" value="patch"/>\r
-                                <parameter name="dirPath" value="/opt/onap/sdnc/restconfapi/yang"/>\r
+                                <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
                                 <parameter name="responsePrefix" value="vpn-result"/>\r
                                 <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
                                 <parameter name="trustStorePassword" value="adminadmin"/>\r
                                 <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
                                 <parameter name="keyStorePassword" value="adminadmin"/>\r
-                                <outcome value="failure">\r
-                                    <return status="failure">\r
-                                        <parameter name="ack-final" value="Y"/>\r
-                                        <parameter name="error-code" value="500"/>\r
-                                        <parameter name="error-message" value="Error executing Create vpn rest api"/>\r
+                                <outcome value='failure'>\r
+                                    <return status='failure'>\r
+                                        <parameter name='ack-final' value='Y'/>\r
+                                        <parameter name="error-code" value="500" />\r
+                                        <parameter name="error-message" value="Error executing Create vpn rest api" />\r
                                     </return>\r
                                 </outcome>\r
-                                <outcome value="success">\r
-                                    <block atomic="true"/>\r
+                                <outcome value='success'>\r
+                                    <block atomic="true"></block>\r
                                 </outcome>\r
                             </execute>\r
                         </outcome>\r
-                        <outcome value="Other">\r
-                            <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode" method="sendRequest">\r
-                                <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`"/>\r
-                                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`"/>\r
-                                <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`"/>\r
-                                <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`"/>\r
+                        <outcome value='Other'>\r
+                            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode' method='sendRequest' >\r
+                                <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />\r
+                                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />\r
+                                <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
                                 <parameter name="format" value="json"/>\r
                                 <parameter name="httpMethod" value="patch"/>\r
-                                <parameter name="dirPath" value="/opt/onap/sdnc/restconfapi/yang"/>\r
+                                <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
                                 <parameter name="responsePrefix" value="vpn-result"/>\r
                                 <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
                                 <parameter name="trustStorePassword" value="adminadmin"/>\r
                                 <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
                                 <parameter name="keyStorePassword" value="adminadmin"/>\r
-                                <parameter name="customHttpHeaders" value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`"/>\r
-                                <outcome value="failure">\r
-                                    <return status="failure">\r
-                                        <parameter name="ack-final" value="Y"/>\r
-                                        <parameter name="error-code" value="500"/>\r
-                                        <parameter name="error-message" value="Error executing Create vpn rest api"/>\r
+                                <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+                                <outcome value='failure'>\r
+                                    <return status='failure'>\r
+                                        <parameter name='ack-final' value='Y'/>\r
+                                        <parameter name="error-code" value="500" />\r
+                                        <parameter name="error-message" value="Error executing Create vpn rest api" />\r
                                     </return>\r
                                 </outcome>\r
-                                <outcome value="success">\r
-                                    <block atomic="true"/>\r
+                                <outcome value='success'>\r
+                                    <block atomic="true"></block>\r
                                 </outcome>\r
                             </execute>\r
                         </outcome>\r
                     </switch>\r
                 </block>\r
             </for>\r
-            <return status="success">\r
-                <parameter name="ack-final-indicator" value="Y"/>\r
-                <parameter name="error-code" value="200"/>\r
-                <parameter name="error-message" value="`$error-message`"/>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
             </return>\r
         </block>\r
     </method>\r
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml
new file mode 100644 (file)
index 0000000..5d181c9
--- /dev/null
@@ -0,0 +1,470 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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
+    <method rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value='0'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic="true">\r
+                        <for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                            <block>\r
+                                <switch test="`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                                    <outcome value='true'>\r
+                                        <set>\r
+                                            <parameter name='tmp.vidx' value='`$vidx`' />\r
+                                            <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\r
+                                        </set>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </block>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\r
+                <outcome value='Created'>\r
+                    <block atomic="true"></block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\r
+            </set>\r
+            <set>\r
+                <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\r
+                <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/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` " />\r
+            </set>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\r
+            </set>\r
+            <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="generic-vnf"   \r
+               key="generic-vnf.vnf-id = $vnfId" >\r
+                <parameter name="orchestration-status" value="Active" />\r
+                <parameter name="vnf-type" value="some vnf-type" />\r
+            </update>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="service-instance"\r
+       key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'\r
+       local-only="false"\r
+       force="true" pfx="tmp.aai.service-instance">\r
+                <outcome value='success'>\r
+                    <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\r
+                        <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\r
+                            <outcome value='connectivity'>\r
+                                <switch test="`$rel-index == 0`">\r
+                                    <outcome value='true'>\r
+                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="connectivity"\r
+           key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.connectivityA" >\r
+                                            <outcome value='success'>\r
+                                                <block atomic="true">\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="vpn-binding"\r
+           key="vpn-binding.vpn-id = $tmp.aai.connectivityA.relationship-list.relationship[0].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.vpn-bindingA" >\r
+                                                        <outcome value='success'>\r
+                                                            <block atomic="true">\r
+                                                                <set>\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\r
+                                                                </set>\r
+                                                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                                                    <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`" />\r
+                                                                    <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`" />\r
+                                                                    <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                                                    <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                                                    <parameter name="format" value="json"/>\r
+                                                                    <parameter name="httpMethod" value="patch"/>\r
+                                                                    <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
+                                                                    <!--<parameter name='dirPath' value="/opt/sdnc/restapi/yang" />-->\r
+                                                                    <parameter name="responsePrefix" value="vpn-result"/>\r
+                                                                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                                                                    <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                                                    <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                                                    <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                                                    <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+                                                                    <outcome value='failure'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='success'>\r
+                                                                        <block atomic="true"></block>\r
+                                                                    </outcome>\r
+                                                                </execute>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='error-code' value='' />\r
+                                                                <parameter name='error-message' value='' />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="esr-thirdparty-sdnc" \r
+               key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \r
+                    depth = '1'"\r
+        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\r
+                                                        <outcome value='success'>\r
+                                                            <set>\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />\r
+                                                                <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\r
+                                                                <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->\r
+                                                                <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->\r
+                                                                <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->\r
+                                                                <!--<parameter name="format" value="json"/>-->\r
+                                                                <!--<parameter name="httpMethod" value="get"/>-->\r
+                                                                <!--<parameter name="responsePrefix" value="topology"/>-->\r
+                                                                <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->\r
+                                                                <!--<parameter name="trustStorePassword" value="adminadmin"/>-->\r
+                                                                <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->\r
+                                                                <!--<parameter name="keyStorePassword" value="adminadmin"/>-->\r
+                                                            </set>\r
+                                                        </outcome>\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='Other'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                    <set>\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                                                    </set>\r
+                                                    <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                                        <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />\r
+                                                        <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />\r
+                                                        <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                                        <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                                        <parameter name="format" value="json"/>\r
+                                                        <parameter name="httpMethod" value="patch"/>\r
+                                                        <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
+                                                        <parameter name="responsePrefix" value="vpn-result"/>\r
+                                                        <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                                                        <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                                        <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                                        <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='success'>\r
+                                                            <block atomic="true">\r
+                                                                <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \r
+      key='vpn-binding.vpn-id = $tmp.vpnName' >\r
+                                                                    <parameter name='vpn-id' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='vpn-name' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='operational-status' value='Activated' />\r
+                                                                </update>\r
+                                                                <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\r
+                                                                    <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\r
+                                                                    <parameter name='operational-status' value='Activated' />\r
+                                                                </update>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                    </execute>\r
+                                                </block>\r
+                                            </outcome>\r
+                                            <outcome value='not-found'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='ack-final' value='Y'/>\r
+                                                    <parameter name="error-code" value="500" />\r
+                                                    <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                </return>\r
+                                            </outcome>\r
+                                            <outcome value='failure'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='error-code' value='' />\r
+                                                    <parameter name='error-message' value='' />\r
+                                                </return>\r
+                                            </outcome>\r
+                                        </get-resource>\r
+                                    </outcome>\r
+                                    <outcome value='false'>\r
+                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="connectivity"\r
+           key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.connectivityB" >\r
+                                            <outcome value='success'>\r
+                                                <block atomic="true">\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="vpn-binding"\r
+           key="vpn-binding.vpn-id = $tmp.aai.connectivityB.relationship-list.relationship[0].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.vpn-bindingB" >\r
+                                                        <outcome value='success'>\r
+                                                            <block atomic="true">\r
+                                                                <set>\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingB.dst-access-ltp-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\r
+                                                                </set>\r
+                                                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                                                    <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`" />\r
+                                                                    <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`" />\r
+                                                                    <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                                                    <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                                                    <parameter name="format" value="json"/>\r
+                                                                    <parameter name="httpMethod" value="patch"/>\r
+                                                                    <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
+                                                                    <!--<parameter name='dirPath' value="/opt/sdnc/restapi/yang" />-->\r
+                                                                    <parameter name="responsePrefix" value="vpn-result"/>\r
+                                                                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                                                                    <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                                                    <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                                                    <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                                                    <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+                                                                    <outcome value='failure'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='success'>\r
+                                                                        <block atomic="true"></block>\r
+                                                                    </outcome>\r
+                                                                </execute>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='error-code' value='' />\r
+                                                                <parameter name='error-message' value='' />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="esr-thirdparty-sdnc" \r
+               key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \r
+                    depth = '1'"\r
+        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\r
+                                                        <outcome value='success'>\r
+                                                            <set>\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />\r
+                                                                <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\r
+                                                                <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->\r
+                                                                <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->\r
+                                                                <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->\r
+                                                                <!--<parameter name="format" value="json"/>-->\r
+                                                                <!--<parameter name="httpMethod" value="get"/>-->\r
+                                                                <!--<parameter name="responsePrefix" value="topology"/>-->\r
+                                                                <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->\r
+                                                                <!--<parameter name="trustStorePassword" value="adminadmin"/>-->\r
+                                                                <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->\r
+                                                                <!--<parameter name="keyStorePassword" value="adminadmin"/>-->\r
+                                                            </set>\r
+                                                        </outcome>\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='Other'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                    <set>\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                                                    </set>\r
+                                                    <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                                        <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />\r
+                                                        <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />\r
+                                                        <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                                        <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                                        <parameter name="format" value="json"/>\r
+                                                        <parameter name="httpMethod" value="patch"/>\r
+                                                        <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
+                                                        <parameter name="responsePrefix" value="vpn-result"/>\r
+                                                        <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                                                        <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                                        <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                                        <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='success'>\r
+                                                            <block atomic="true">\r
+                                                                <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \r
+      key='vpn-binding.vpn-id = $tmp.vpnName' >\r
+                                                                    <parameter name='vpn-id' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='vpn-name' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='operational-status' value='Activated' />\r
+                                                                </update>\r
+                                                                <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\r
+                                                                    <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\r
+                                                                    <parameter name='operational-status' value='Activated' />\r
+                                                                </update>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                    </execute>\r
+                                                </block>\r
+                                            </outcome>\r
+                                            <outcome value='not-found'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='ack-final' value='Y'/>\r
+                                                    <parameter name="error-code" value="500" />\r
+                                                    <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                </return>\r
+                                            </outcome>\r
+                                            <outcome value='failure'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='error-code' value='' />\r
+                                                    <parameter name='error-message' value='' />\r
+                                                </return>\r
+                                            </outcome>\r
+                                        </get-resource>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+                <outcome value='not-found'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='failure'>\r
+                    <return status='failure'>\r
+                        <parameter name='error-code' value='' />\r
+                        <parameter name='error-message' value='' />\r
+                    </return>\r
+                </outcome>\r
+            </get-resource>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml
new file mode 100644 (file)
index 0000000..a0c46f5
--- /dev/null
@@ -0,0 +1,528 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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
+    <method rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value=''>\r
+                    <set>\r
+                        <parameter name='vnf-index' value='0' />\r
+                    </set>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                            <switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\r
+                                <outcome value='true'>\r
+                                    <return status='failure'>\r
+                                        <parameter name='ack-final' value='Y'/>\r
+                                        <parameter name="error-code" value="500" />\r
+                                        <parameter name="error-message" value="`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\r
+      + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`" />\r
+                                    </return>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <for index="idx" start="0" end="`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`">\r
+                <block>\r
+                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                        <parameter name="original_string" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`'/>\r
+                        <parameter name="regex" value="_"/>\r
+                        <parameter name="ctx_memory_result_key" value="param-prefix"/>\r
+                    </execute>\r
+                    <set>\r
+                        <parameter name="`vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`" value='`$param-prefix[$param-prefix_length -1]`'/>\r
+                    </set>\r
+                </block>\r
+            </for>\r
+            <set>\r
+                <parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\r
+            </set>\r
+            <for index="idx" start="0" end="`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`">\r
+                <block>\r
+                    <switch test="`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`">\r
+                        <outcome value='true'>\r
+                            <set>\r
+                                <parameter name='prop.vnfName' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\r
+                            </set>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\r
+            </set>\r
+            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\r
+                <parameter name="ctx-destination" value="prop.vnf-id"/>\r
+            </execute>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-id`' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\r
+            </set>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-id`' />\r
+            </set>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\r
+                <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`' />\r
+                <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`' />\r
+            </set>\r
+            <set>\r
+                <parameter name='vnfId' value='`$prop.vnf-id`' />\r
+                <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
+            </set>\r
+            <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="generic-vnf"   \r
+               key='generic-vnf.vnf-id = $prop.vnf-id' >\r
+                <parameter name="orchestration-status" value="Created" />\r
+                <parameter name="in-maint" value = "true" />\r
+                <parameter name="vnf-type" value='`$prop.vnfName`' />\r
+                <parameter name="vnf-name" value = "`$prop.vnfName`"/>\r
+                <parameter name="model-invariant-id" value = "`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`"/>\r
+                <parameter name="model-version-id" value = "`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`"/>\r
+                <parameter name="model-customization-id" value = "`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`"/>\r
+            </save>\r
+            <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \r
+      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \r
+      force="true" pfx="tmp.AnAI-data">\r
+                <parameter name="relationship-list.relationship[0].related-to" value="generic-vnf" />\r
+                <parameter name="relationship-list.relationship[0].related-link" value="`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-id`" />\r
+                <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="generic-vnf.vnf-id" />\r
+                <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.vnf-id`" />\r
+                <!--key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\r
+                <!--key='service-instance.service-instance-id = $service-data.service-instance-id -->\r
+            </save>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="service-instance"\r
+       key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'\r
+       local-only="false"\r
+       force="true" pfx="tmp.aai.service-instance">\r
+                <outcome value='success'>\r
+                    <switch test='`$tmp.aai.service-instance.allotted-resources_length != 0`'>\r
+                        <outcome value='false'></outcome>\r
+                        <outcome value='true'>\r
+                            <block>\r
+                                <set>\r
+                                    <parameter name='allotted-resource-id' value="`$tmp.aai.service-instance.allotted-resources[0]`" />\r
+                                </set>\r
+                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="allotted-resource"\r
+       key='allotted-resource.id = $allotted-resource-id'\r
+       local-only="false"\r
+       force="true" pfx="tmp.aai.allotted-resource">\r
+                                    <outcome value='not-found'>\r
+                                        <return status='failure'>\r
+                                            <parameter name='ack-final' value='Y'/>\r
+                                            <parameter name="error-code" value="500" />\r
+                                            <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                        </return>\r
+                                    </outcome>\r
+                                    <outcome value='failure'>\r
+                                        <return status='failure'>\r
+                                            <parameter name='error-code' value='' />\r
+                                            <parameter name='error-message' value='' />\r
+                                        </return>\r
+                                    </outcome>\r
+                                    <outcome value='success'>\r
+                                        <switch test='`$tmp.aai.allotted-resource.logical-links_length != 0`'>\r
+                                            <outcome value='false'></outcome>\r
+                                            <outcome value='true'>\r
+                                                <block>\r
+                                                    <set>\r
+                                                        <parameter name='logical-link-name' value="`$tmp.aai.allotted-resource.logical-links[0]`" />\r
+                                                    </set>\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="logical-link"\r
+       key='logical-link.name = $logical-link-name'\r
+       local-only="false"\r
+       force="true" pfx="tmp.aai.logical-link">\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='error-code' value='' />\r
+                                                                <parameter name='error-message' value='' />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='success'>\r
+                                                            <block>\r
+                                                                <set>\r
+                                                                    <parameter name='endpointA' value="`$tmp.aai.logical-link.name`" />\r
+                                                                </set>\r
+                                                                <set>\r
+                                                                    <parameter name='endpointB' value="`$tmp.aai.logical-link.name2`" />\r
+                                                                </set>\r
+                                                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="endpoint"\r
+       key='endpoint.endpoint-id = $endpointA'\r
+       local-only="false"\r
+       force="true" pfx="tmp.aai.endpointA">\r
+                                                                    <outcome value='not-found'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='failure'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='error-code' value='' />\r
+                                                                            <parameter name='error-message' value='' />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='success'>\r
+                                                                        <block atomic="true">\r
+                                                                            <for index='rel-index' start='0' end='`$tmp.aai.endpointA.relationship-list.relationship_length`' >\r
+                                                                                <switch test='`$tmp.aai.endpointA.relationship-list.relationship[$rel-index].related-to`'>\r
+                                                                                    <outcome value='p-interface'>\r
+                                                                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="p-interface"\r
+           key="p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.endpointA.p-interface-src" >\r
+                                                                                            <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->\r
+                                                                                            <!--       resource="p-interface"-->\r
+                                                                                            <!--           key="pnf.pnf-name = $unique-src-node-Id-->\r
+                                                                                            <!--               and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"-->\r
+                                                                                            <!--               local-only="false" -->\r
+                                                                                            <!--               pfx="tmp.aai.endpointA.p-interface-src" >-->\r
+                                                                                            <outcome value='success'>\r
+                                                                                                <block atomic="true">\r
+                                                                                                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                                                                                                        <parameter name="original_string" value='`$tmp.aai.endpointA.p-interface-src`'/>\r
+                                                                                                        <!--<parameter name="regex" value="[^-]+$"/>-->\r
+                                                                                                        <parameter name="regex" value="[^-]+"/>\r
+                                                                                                        <parameter name="ctx_memory_result_key" value="param-prefix-domainA"/>\r
+                                                                                                        <outcome value='success'>\r
+                                                                                                            <block atomic="true">\r
+                                                                                                                <set>\r
+                                                                                                                    <parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\r
+                                                                                                                </set>\r
+                                                                                                                <set>\r
+                                                                                                                    <parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\r
+                                                                                                                </set>\r
+                                                                                                            </block>\r
+                                                                                                        </outcome>\r
+                                                                                                        <outcome value='failure'>\r
+                                                                                                            <return status='failure'>\r
+                                                                                                                <parameter name='error-code' value='' />\r
+                                                                                                                <parameter name='error-message' value="An error occured while splitting sna1_route" />\r
+                                                                                                            </return>\r
+                                                                                                        </outcome>\r
+                                                                                                    </execute>\r
+                                                                                                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\r
+                                                                                                        <parameter name="ctx-destination" value="prop.connectivity-domainA-uuid"/>\r
+                                                                                                    </execute>\r
+                                                                                                    <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\r
+                                                                                                        <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\r
+                                                                                                        <parameter name='operational-status' value='Created' />\r
+                                                                                                        <parameter name='access-provider-id' value='' />\r
+                                                                                                        <parameter name='access-client-id' value='' />\r
+                                                                                                        <parameter name='access-topology-id' value='' />\r
+                                                                                                        <parameter name='access-node-id' value='' />\r
+                                                                                                        <parameter name='access-ltp-id' value='' />\r
+                                                                                                        <parameter name='cvlan' value='' />\r
+                                                                                                        <parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\r
+                                                                                                        <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\r
+                                                                                                        <parameter name='CIR' value='`$prop.sotn.cir`' />\r
+                                                                                                        <parameter name='EIR' value='`$prop.sotn.eir`' />\r
+                                                                                                        <parameter name='CBS' value='`$prop.sotn.cbs`' />\r
+                                                                                                        <parameter name='EBS' value='`$prop.sotn.ebs`' />\r
+                                                                                                        <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\r
+                                                                                                        <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\r
+                                                                                                        <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\r
+                                                                                                        <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\r
+                                                                                                        <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\r
+                                                                                                        <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\r
+                                                                                                        <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/'` " />\r
+                                                                                                    </save>\r
+                                                                                                    <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \r
+      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \r
+      force="true" pfx="tmp.AnAI-data">\r
+                                                                                                        <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />\r
+                                                                                                        <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainA-uuid`" />\r
+                                                                                                        <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />\r
+                                                                                                        <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainA-uuid`" />\r
+                                                                                                        <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\r
+                                                                                                        <!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\r
+                                                                                                        <!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\r
+                                                                                                        <!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\r
+                                                                                                        <!--      force="true" pfx="tmp.AnAI-data">-->\r
+                                                                                                        <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->\r
+                                                                                                        <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->\r
+                                                                                                        <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->\r
+                                                                                                        <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->\r
+                                                                                                    </save>\r
+                                                                                                </block>\r
+                                                                                            </outcome>\r
+                                                                                            <outcome value='not-found'>\r
+                                                                                                <return status='failure'>\r
+                                                                                                    <parameter name='ack-final' value='Y'/>\r
+                                                                                                    <parameter name="error-code" value="500" />\r
+                                                                                                    <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                                                                </return>\r
+                                                                                            </outcome>\r
+                                                                                            <outcome value='failure'>\r
+                                                                                                <return status='failure'>\r
+                                                                                                    <parameter name='error-code' value='' />\r
+                                                                                                    <parameter name='error-message' value='' />\r
+                                                                                                </return>\r
+                                                                                            </outcome>\r
+                                                                                        </get-resource>\r
+                                                                                    </outcome>\r
+                                                                                </switch>\r
+                                                                            </for>\r
+                                                                        </block>\r
+                                                                    </outcome>\r
+                                                                </get-resource>\r
+                                                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="endpoint"\r
+       key='endpoint.endpoint-id = $endpointB'\r
+       local-only="false"\r
+       force="true" pfx="tmp.aai.endpointB">\r
+                                                                    <outcome value='not-found'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='failure'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='error-code' value='' />\r
+                                                                            <parameter name='error-message' value='' />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='success'>\r
+                                                                        <block atomic="true">\r
+                                                                            <for index='rel-index' start='0' end='`$tmp.aai.endpointB.relationship-list.relationship_length`' >\r
+                                                                                <switch test='`$tmp.aai.endpointB.relationship-list.relationship[$rel-index].related-to`'>\r
+                                                                                    <outcome value='p-interface'>\r
+                                                                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="p-interface"\r
+           key="p-interface.interface-name = $tmp.aai.endpointB.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.endpointB.p-interface-dst" >\r
+                                                                                            <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->\r
+                                                                                            <!--       resource="p-interface"-->\r
+                                                                                            <!--           key="pnf.pnf-name = $unique-src-node-Id-->\r
+                                                                                            <!--               and p-interface.interface-name = $tmp.aai.endpointB.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"-->\r
+                                                                                            <!--               local-only="false" -->\r
+                                                                                            <!--               pfx="tmp.aai.endpointB.p-interface-dst" >-->\r
+                                                                                            <outcome value='success'>\r
+                                                                                                <block atomic="true">\r
+                                                                                                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                                                                                                        <parameter name="original_string" value='`$tmp.aai.endpointB.p-interface-dst`'/>\r
+                                                                                                        <!--<parameter name="regex" value="[^-]+$"/>-->\r
+                                                                                                        <parameter name="regex" value="[^-]+"/>\r
+                                                                                                        <parameter name="ctx_memory_result_key" value="param-prefix-domainB"/>\r
+                                                                                                        <outcome value='success'>\r
+                                                                                                            <block atomic="true">\r
+                                                                                                                <set>\r
+                                                                                                                    <parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\r
+                                                                                                                </set>\r
+                                                                                                                <set>\r
+                                                                                                                    <parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\r
+                                                                                                                </set>\r
+                                                                                                            </block>\r
+                                                                                                        </outcome>\r
+                                                                                                        <outcome value='failure'>\r
+                                                                                                            <return status='failure'>\r
+                                                                                                                <parameter name='error-code' value='' />\r
+                                                                                                                <parameter name='error-message' value="An error occured while splitting sna1_route" />\r
+                                                                                                            </return>\r
+                                                                                                        </outcome>\r
+                                                                                                    </execute>\r
+                                                                                                    <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\r
+                                                                                                        <parameter name="ctx-destination" value="prop.connectivity-domainB-uuid"/>\r
+                                                                                                    </execute>\r
+                                                                                                    <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\r
+                                                                                                        <parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\r
+                                                                                                        <parameter name='operational-status' value='Created' />\r
+                                                                                                        <parameter name='access-provider-id' value='' />\r
+                                                                                                        <parameter name='access-client-id' value='' />\r
+                                                                                                        <parameter name='access-topology-id' value='' />\r
+                                                                                                        <parameter name='access-node-id' value='' />\r
+                                                                                                        <parameter name='access-ltp-id' value='' />\r
+                                                                                                        <parameter name='cvlan' value='' />\r
+                                                                                                        <parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\r
+                                                                                                        <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\r
+                                                                                                        <parameter name='CIR' value='`$prop.sotn.cir`' />\r
+                                                                                                        <parameter name='EIR' value='`$prop.sotn.eir`' />\r
+                                                                                                        <parameter name='CBS' value='`$prop.sotn.cbs`' />\r
+                                                                                                        <parameter name='EBS' value='`$prop.sotn.ebs`' />\r
+                                                                                                        <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\r
+                                                                                                        <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\r
+                                                                                                        <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\r
+                                                                                                        <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\r
+                                                                                                        <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\r
+                                                                                                        <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\r
+                                                                                                        <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/'` " />\r
+                                                                                                    </save>\r
+                                                                                                    <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \r
+      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \r
+      force="true" pfx="tmp.AnAI-data">\r
+                                                                                                        <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />\r
+                                                                                                        <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" />\r
+                                                                                                        <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />\r
+                                                                                                        <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" />\r
+                                                                                                        <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\r
+                                                                                                        <!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\r
+                                                                                                        <!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\r
+                                                                                                        <!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\r
+                                                                                                        <!--      force="true" pfx="tmp.AnAI-data">-->\r
+                                                                                                        <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->\r
+                                                                                                        <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->\r
+                                                                                                        <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->\r
+                                                                                                        <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->\r
+                                                                                                    </save>\r
+                                                                                                </block>\r
+                                                                                            </outcome>\r
+                                                                                            <outcome value='not-found'>\r
+                                                                                                <return status='failure'>\r
+                                                                                                    <parameter name='ack-final' value='Y'/>\r
+                                                                                                    <parameter name="error-code" value="500" />\r
+                                                                                                    <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                                                                </return>\r
+                                                                                            </outcome>\r
+                                                                                            <outcome value='failure'>\r
+                                                                                                <return status='failure'>\r
+                                                                                                    <parameter name='error-code' value='' />\r
+                                                                                                    <parameter name='error-message' value='' />\r
+                                                                                                </return>\r
+                                                                                            </outcome>\r
+                                                                                        </get-resource>\r
+                                                                                    </outcome>\r
+                                                                                </switch>\r
+                                                                            </for>\r
+                                                                        </block>\r
+                                                                    </outcome>\r
+                                                                </get-resource>\r
+                                                                <set>\r
+                                                                    <parameter name='prop.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                                                                    <parameter name='prop.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                                                                    <parameter name='prop.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                                                                    <parameter name='prop.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                                    <parameter name='prop.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                                                                    <parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                                                                    <parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                                                                    <parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                                                                    <parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                                    <parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                                                                </set>\r
+                                                                <call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' ></call>\r
+                                                                <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \r
+      key='vpn-binding.vpn-id = $tmp.vpnName' >\r
+                                                                    <parameter name='vpn-id' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='vpn-name' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                                                                    <parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                                                                    <parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                                                                    <parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                                    <parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                                                                    <parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                                    <parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\r
+                                                                    <parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\r
+                                                                    <parameter name='operational-status' value='Created' />\r
+                                                                    <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\r
+                                                                    <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\r
+                                                                    <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\r
+                                                                    <outcome value='success'>\r
+                                                                        <block></block>\r
+                                                                    </outcome>\r
+                                                                </save>\r
+                                                                <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \r
+      key='vpn-binding.vpn-id = $tmp.vpnName' \r
+      force="true" pfx="tmp.AnAI-data">\r
+                                                                    <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />\r
+                                                                    <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`" />\r
+                                                                    <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />\r
+                                                                    <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$mdsal-psd.service-data.networks.network[0].network-id`" />\r
+                                                                </save>\r
+                                                                <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \r
+      key='vpn-binding.vpn-id = $tmp.vpnName' >\r
+                                                                    <parameter name='vpn-id' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='vpn-name' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                                                                    <parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                                                                    <parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                                                                    <parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                                    <parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                                                                    <parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                                    <parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\r
+                                                                    <parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\r
+                                                                    <parameter name='operational-status' value='Created' />\r
+                                                                    <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\r
+                                                                    <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\r
+                                                                    <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\r
+                                                                    <outcome value='success'>\r
+                                                                        <block></block>\r
+                                                                    </outcome>\r
+                                                                </save>\r
+                                                                <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \r
+      key='vpn-binding.vpn-id = $tmp.vpnName' \r
+      force="true" pfx="tmp.AnAI-data">\r
+                                                                    <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />\r
+                                                                    <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`" />\r
+                                                                    <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />\r
+                                                                    <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$mdsal-psd.service-data.networks.network[0].network-id`" />\r
+                                                                </save>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                </block>\r
+                                            </outcome>\r
+                                        </switch>\r
+                                    </outcome>\r
+                                </get-resource>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                </outcome>\r
+                <outcome value='not-found'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='failure'>\r
+                    <return status='failure'>\r
+                        <parameter name='error-code' value='' />\r
+                        <parameter name='error-message' value='' />\r
+                    </return>\r
+                </outcome>\r
+            </get-resource>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml
new file mode 100644 (file)
index 0000000..0a853f1
--- /dev/null
@@ -0,0 +1,350 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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
+    <method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value='0'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic="true">\r
+                        <for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                            <block>\r
+                                <switch test="`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                                    <outcome value='true'>\r
+                                        <block atomic="true">\r
+                                            <set>\r
+                                                <parameter name='tmp.vidx' value='`$vidx`' />\r
+                                                <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\r
+                                            </set>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </block>\r
+                        </for>\r
+                        <switch test="`$tmp.vidx`">\r
+                            <outcome value=''>\r
+                                <return status='failure'>\r
+                                    <parameter name='ack-final' value='Y'/>\r
+                                    <parameter name="error-code" value="500" />\r
+                                    <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                                </return>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\r
+                <outcome value='Active'>\r
+                    <block atomic="true"></block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\r
+            </set>\r
+            <set>\r
+                <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\r
+                <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/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` " />\r
+            </set>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\r
+                <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\r
+            </set>\r
+            <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="generic-vnf"   \r
+               key="generic-vnf.vnf-id = $vnfId" >\r
+                <parameter name="orchestration-status" value="PendingDelete" />\r
+                <parameter name="vnf-type" value="some vnf-type" />\r
+            </update>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="service-instance"\r
+       key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'\r
+       local-only="false"\r
+       force="true" pfx="tmp.aai.service-instance">\r
+                <outcome value='success'>\r
+                    <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\r
+                        <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\r
+                            <outcome value='connectivity'>\r
+                                <switch test="`$rel-index == 0`">\r
+                                    <outcome value='true'>\r
+                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="connectivity"\r
+           key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.connectivityA" >\r
+                                            <outcome value='success'>\r
+                                                <block atomic="true">\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="esr-thirdparty-sdnc" \r
+               key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \r
+                    depth = '1'"\r
+        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\r
+                                                        <outcome value='success'>\r
+                                                            <set>\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />\r
+                                                                <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\r
+                                                                <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->\r
+                                                                <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->\r
+                                                                <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->\r
+                                                                <!--<parameter name="format" value="json"/>-->\r
+                                                                <!--<parameter name="httpMethod" value="get"/>-->\r
+                                                                <!--<parameter name="responsePrefix" value="topology"/>-->\r
+                                                                <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->\r
+                                                                <!--<parameter name="trustStorePassword" value="adminadmin"/>-->\r
+                                                                <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->\r
+                                                                <!--<parameter name="keyStorePassword" value="adminadmin"/>-->\r
+                                                            </set>\r
+                                                        </outcome>\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='Other'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                    <set>\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                                                    </set>\r
+                                                    <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                                        <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />\r
+                                                        <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />\r
+                                                        <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                                        <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                                        <parameter name="format" value="json"/>\r
+                                                        <parameter name="httpMethod" value="delete"/>\r
+                                                        <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
+                                                        <parameter name="responsePrefix" value="vpn-result"/>\r
+                                                        <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                                                        <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                                        <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                                        <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='success'>\r
+                                                            <block atomic="true">\r
+                                                                <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \r
+      key='vpn-binding.vpn-id = $tmp.vpnName' >\r
+                                                                    <parameter name='vpn-id' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='vpn-name' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='operational-status' value='DeActivated' />\r
+                                                                </update>\r
+                                                                <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\r
+                                                                    <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\r
+                                                                    <parameter name='operational-status' value='DeActivated' />\r
+                                                                </update>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                    </execute>\r
+                                                </block>\r
+                                            </outcome>\r
+                                            <outcome value='not-found'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='ack-final' value='Y'/>\r
+                                                    <parameter name="error-code" value="500" />\r
+                                                    <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                </return>\r
+                                            </outcome>\r
+                                            <outcome value='failure'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='error-code' value='' />\r
+                                                    <parameter name='error-message' value='' />\r
+                                                </return>\r
+                                            </outcome>\r
+                                        </get-resource>\r
+                                    </outcome>\r
+                                    <outcome value='false'>\r
+                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="connectivity"\r
+           key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.connectivityB" >\r
+                                            <outcome value='success'>\r
+                                                <block atomic="true">\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="esr-thirdparty-sdnc" \r
+               key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \r
+                    depth = '1'"\r
+        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\r
+                                                        <outcome value='success'>\r
+                                                            <set>\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />\r
+                                                                <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />\r
+                                                                <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\r
+                                                                <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->\r
+                                                                <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->\r
+                                                                <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->\r
+                                                                <!--<parameter name="format" value="json"/>-->\r
+                                                                <!--<parameter name="httpMethod" value="get"/>-->\r
+                                                                <!--<parameter name="responsePrefix" value="topology"/>-->\r
+                                                                <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->\r
+                                                                <!--<parameter name="trustStorePassword" value="adminadmin"/>-->\r
+                                                                <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->\r
+                                                                <!--<parameter name="keyStorePassword" value="adminadmin"/>-->\r
+                                                            </set>\r
+                                                        </outcome>\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='Other'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                    <set>\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\r
+                                                        <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />\r
+                                                    </set>\r
+                                                    <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                                        <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />\r
+                                                        <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />\r
+                                                        <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                                        <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                                        <parameter name="format" value="json"/>\r
+                                                        <parameter name="httpMethod" value="delete"/>\r
+                                                        <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
+                                                        <parameter name="responsePrefix" value="vpn-result"/>\r
+                                                        <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                                                        <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                                        <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                                        <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='success'>\r
+                                                            <block atomic="true">\r
+                                                                <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \r
+      key='vpn-binding.vpn-id = $tmp.vpnName' >\r
+                                                                    <parameter name='vpn-id' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='vpn-name' value='`$tmp.vpnName`' />\r
+                                                                    <parameter name='operational-status' value='DeActivated' />\r
+                                                                </update>\r
+                                                                <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\r
+                                                                    <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\r
+                                                                    <parameter name='operational-status' value='DeActivated' />\r
+                                                                </update>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                    </execute>\r
+                                                </block>\r
+                                            </outcome>\r
+                                            <outcome value='not-found'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='ack-final' value='Y'/>\r
+                                                    <parameter name="error-code" value="500" />\r
+                                                    <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                </return>\r
+                                            </outcome>\r
+                                            <outcome value='failure'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='error-code' value='' />\r
+                                                    <parameter name='error-message' value='' />\r
+                                                </return>\r
+                                            </outcome>\r
+                                        </get-resource>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+                <outcome value='not-found'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='failure'>\r
+                    <return status='failure'>\r
+                        <parameter name='error-code' value='' />\r
+                        <parameter name='error-message' value='' />\r
+                    </return>\r
+                </outcome>\r
+            </get-resource>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.xml
new file mode 100644 (file)
index 0000000..5c04763
--- /dev/null
@@ -0,0 +1,395 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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
+    <method rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync'>\r
+        <block atomic="true">\r
+            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\r
+                <parameter name="vnf-topology-operation-input.vnf-information.vnf-id" value="$vnf-topology-operation-input.vnf-information.vnf-id"/>\r
+            </execute>\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic="true">\r
+                        <for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                            <switch test="`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                                <outcome value='true'>\r
+                                    <set>\r
+                                        <parameter name='tmp.nidx' value='`$nidx`' />\r
+                                        <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\r
+                                    </set>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                        <switch test="`$tmp.nidx`">\r
+                            <outcome value=''>\r
+                                <return status='failure'>\r
+                                    <parameter name='ack-final' value='Y'/>\r
+                                    <parameter name="error-code" value="500" />\r
+                                    <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                                </return>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\r
+                <outcome value='PendingDelete'>\r
+                    <block atomic="true"></block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <parameter name='prop.vnfidxLen' value='`0`' />\r
+            </set>\r
+            <for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                <block atomic="true">\r
+                    <switch test="`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">\r
+                        <outcome value='false'>\r
+                            <block atomic="true">\r
+                                <set>\r
+                                    <parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\r
+                                    <parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\r
+                                </set>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <set>\r
+                <parameter name="service-data.vnfs.vnf_length" value='`$prop.vnfidxLen`'/>\r
+            </set>\r
+            <set>\r
+                <parameter name="service-data.vnfs.vnf[$prop.vnfidxLen]." value=""/>\r
+            </set>\r
+            <set>\r
+                <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\r
+                <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'\r
+ + $vnf-topology-operation-input.service-information.service-instance-id\r
+ + '/service-data/service-topology/'` " />\r
+            </set>\r
+            <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="generic-vnf"   \r
+               key="generic-vnf.vnf-id = $vnfId" >\r
+                <parameter name="orchestration-status" value="PendingDelete" />\r
+                <parameter name="vnf-type" value="some vnf-type" />\r
+            </delete>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="service-instance"\r
+       key='service-instance.service-instance-id = $service-data.service-information.service-instance-id\r
+         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \r
+         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'\r
+       local-only="false"\r
+       force="true" pfx="tmp.aai.service-instance">\r
+                <outcome value='success'>\r
+                    <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\r
+                        <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\r
+                            <outcome value='connectivity'>\r
+                                <switch test="`$rel-index == 0`">\r
+                                    <outcome value='true'>\r
+                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="connectivity"\r
+           key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.connectivityA" >\r
+                                            <outcome value='success'>\r
+                                                <block atomic="true">\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="vpn-binding"\r
+           key="vpn-binding.vpn-id = $tmp.aai.connectivityA.relationship-list.relationship[0].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.vpn-bindingA" >\r
+                                                        <outcome value='success'>\r
+                                                            <block atomic="true">\r
+                                                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="esr-thirdparty-sdnc" \r
+               key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \r
+                    depth = '1'"\r
+        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\r
+                                                                    <outcome value='success'>\r
+                                                                        <set>\r
+                                                                            <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />\r
+                                                                            <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />\r
+                                                                            <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />\r
+                                                                            <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\r
+                                                                            <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->\r
+                                                                            <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->\r
+                                                                            <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->\r
+                                                                            <!--<parameter name="format" value="json"/>-->\r
+                                                                            <!--<parameter name="httpMethod" value="get"/>-->\r
+                                                                            <!--<parameter name="responsePrefix" value="topology"/>-->\r
+                                                                            <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->\r
+                                                                            <!--<parameter name="trustStorePassword" value="adminadmin"/>-->\r
+                                                                            <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->\r
+                                                                            <!--<parameter name="keyStorePassword" value="adminadmin"/>-->\r
+                                                                        </set>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='not-found'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='Other'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                </get-resource>\r
+                                                                <set>\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\r
+                                                                </set>\r
+                                                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                                                    <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`" />\r
+                                                                    <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`" />\r
+                                                                    <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                                                    <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                                                    <parameter name="format" value="json"/>\r
+                                                                    <parameter name="httpMethod" value="patch"/>\r
+                                                                    <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
+                                                                    <!--<parameter name='dirPath' value="/opt/sdnc/restapi/yang" />-->\r
+                                                                    <parameter name="responsePrefix" value="vpn-result"/>\r
+                                                                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                                                                    <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                                                    <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                                                    <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                                                    <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+                                                                    <outcome value='failure'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='success'>\r
+                                                                        <block atomic="true"></block>\r
+                                                                    </outcome>\r
+                                                                </execute>\r
+                                                                <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'></delete>\r
+                                                                <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='tmp.aai.vpn-bindingA = $tmp.aai.vpn-bindingA'></delete>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='error-code' value='' />\r
+                                                                <parameter name='error-message' value='' />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                </block>\r
+                                            </outcome>\r
+                                            <outcome value='not-found'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='ack-final' value='Y'/>\r
+                                                    <parameter name="error-code" value="500" />\r
+                                                    <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                </return>\r
+                                            </outcome>\r
+                                            <outcome value='failure'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='error-code' value='' />\r
+                                                    <parameter name='error-message' value='' />\r
+                                                </return>\r
+                                            </outcome>\r
+                                        </get-resource>\r
+                                    </outcome>\r
+                                    <outcome value='false'>\r
+                                        <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="connectivity"\r
+           key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.connectivityB" >\r
+                                            <outcome value='success'>\r
+                                                <block atomic="true">\r
+                                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+       resource="vpn-binding"\r
+           key="vpn-binding.vpn-id = $tmp.aai.connectivityB.relationship-list.relationship[0].relationship-data[0].relationship-value"\r
+               local-only="false" \r
+               pfx="tmp.aai.vpn-bindingB" >\r
+                                                        <outcome value='success'>\r
+                                                            <block atomic="true">\r
+                                                                <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
+               resource="esr-thirdparty-sdnc" \r
+               key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \r
+                    depth = '1'"\r
+        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\r
+                                                                    <outcome value='success'>\r
+                                                                        <set>\r
+                                                                            <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />\r
+                                                                            <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />\r
+                                                                            <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />\r
+                                                                            <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\r
+                                                                            <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->\r
+                                                                            <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->\r
+                                                                            <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->\r
+                                                                            <!--<parameter name="format" value="json"/>-->\r
+                                                                            <!--<parameter name="httpMethod" value="get"/>-->\r
+                                                                            <!--<parameter name="responsePrefix" value="topology"/>-->\r
+                                                                            <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->\r
+                                                                            <!--<parameter name="trustStorePassword" value="adminadmin"/>-->\r
+                                                                            <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->\r
+                                                                            <!--<parameter name="keyStorePassword" value="adminadmin"/>-->\r
+                                                                        </set>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='not-found'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='Other'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                </get-resource>\r
+                                                                <set>\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingB.dst-access-ltp-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\r
+                                                                    <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\r
+                                                                </set>\r
+                                                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                                                    <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`" />\r
+                                                                    <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`" />\r
+                                                                    <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                                                    <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                                                    <parameter name="format" value="json"/>\r
+                                                                    <parameter name="httpMethod" value="patch"/>\r
+                                                                    <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />\r
+                                                                    <!--<parameter name='dirPath' value="/opt/sdnc/restapi/yang" />-->\r
+                                                                    <parameter name="responsePrefix" value="vpn-result"/>\r
+                                                                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                                                                    <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                                                    <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                                                    <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                                                    <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+                                                                    <outcome value='failure'>\r
+                                                                        <return status='failure'>\r
+                                                                            <parameter name='ack-final' value='Y'/>\r
+                                                                            <parameter name="error-code" value="500" />\r
+                                                                            <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                                                        </return>\r
+                                                                    </outcome>\r
+                                                                    <outcome value='success'>\r
+                                                                        <block atomic="true"></block>\r
+                                                                    </outcome>\r
+                                                                </execute>\r
+                                                                <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'></delete>\r
+                                                                <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \r
+      key='tmp.aai.vpn-bindingB = $tmp.aai.vpn-bindingB'></delete>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                        <outcome value='not-found'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='ack-final' value='Y'/>\r
+                                                                <parameter name="error-code" value="500" />\r
+                                                                <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                        <outcome value='failure'>\r
+                                                            <return status='failure'>\r
+                                                                <parameter name='error-code' value='' />\r
+                                                                <parameter name='error-message' value='' />\r
+                                                            </return>\r
+                                                        </outcome>\r
+                                                    </get-resource>\r
+                                                </block>\r
+                                            </outcome>\r
+                                            <outcome value='not-found'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='ack-final' value='Y'/>\r
+                                                    <parameter name="error-code" value="500" />\r
+                                                    <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                                                </return>\r
+                                            </outcome>\r
+                                            <outcome value='failure'>\r
+                                                <return status='failure'>\r
+                                                    <parameter name='error-code' value='' />\r
+                                                    <parameter name='error-message' value='' />\r
+                                                </return>\r
+                                            </outcome>\r
+                                        </get-resource>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+                <outcome value='not-found'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='failure'>\r
+                    <return status='failure'>\r
+                        <parameter name='error-code' value='' />\r
+                        <parameter name='error-message' value='' />\r
+                    </return>\r
+                </outcome>\r
+            </get-resource>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file