aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json1457
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json1072
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json1686
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json2149
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json1362
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.json1660
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml15
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml401
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml470
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml528
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml350
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.xml395
12 files changed, 10141 insertions, 1404 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json
index e10de62f..a1327b1d 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json
@@ -1,20 +1,20 @@
[
{
- "id": "6970cbfb.c1907c",
+ "id": "65a7b5bd.b33c0c",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 122.75,
- "y": 181.98507690429688,
- "z": "bcfd2953.62c4e",
+ "x": 155,
+ "y": 176.98507690429688,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "99e58991.186a5"
+ "437f21d0.c52c4"
]
]
},
{
- "id": "99e58991.186a5",
+ "id": "437f21d0.c52c4",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,2050 +22,2175 @@
"comments": "",
"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}'>",
"outputs": 1,
- "x": 206.03570556640625,
- "y": 243.22317504882812,
- "z": "bcfd2953.62c4e",
+ "x": 238.28570556640625,
+ "y": 238.22317504882812,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2fd42108.8384a6"
+ "7a4849d4.72ee48"
]
]
},
{
- "id": "2fd42108.8384a6",
+ "id": "7a4849d4.72ee48",
"type": "method",
"name": "method vnf-topology-operation",
"xml": "<method rpc='vnf-topology-operation' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 198.17862701416016,
- "y": 305.985071182251,
- "z": "bcfd2953.62c4e",
+ "x": 230.42862701416016,
+ "y": 300.985071182251,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "c0fe93ff.46afe8"
+ "45b98d95.e70a04"
]
]
},
{
- "id": "6dce1d8e.e0f0dc",
+ "id": "4ded41b7.94d268",
"type": "comment",
"name": "vnf-topology-operation",
"info": "",
"comments": "",
- "x": 522.6662979125977,
- "y": 25,
- "z": "bcfd2953.62c4e",
+ "x": 554.9162979125977,
+ "y": 20,
+ "z": "2eb85326.b33f34",
"wires": []
},
{
- "id": "c0fe93ff.46afe8",
+ "id": "45b98d95.e70a04",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 221.91676330566406,
- "y": 635.6785974502563,
- "z": "bcfd2953.62c4e",
+ "x": 254.16676330566406,
+ "y": 630.6785974502563,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "10cbb1dc.2702c6",
- "54fd59c9.529288",
- "5d438b9c.3a31f4"
+ "8c37381a.3831a",
+ "608a5f48.b70468",
+ "eb593071.413eb"
]
]
},
{
- "id": "10cbb1dc.2702c6",
+ "id": "8c37381a.3831a",
"type": "returnSuccess",
"name": "return success",
"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",
"comments": "",
- "x": 514.4167175292969,
- "y": 790.8426303863525,
- "z": "bcfd2953.62c4e",
+ "x": 546.6667175292969,
+ "y": 785.8426303863525,
+ "z": "2eb85326.b33f34",
"wires": []
},
{
- "id": "54fd59c9.529288",
+ "id": "608a5f48.b70468",
"type": "switchNode",
"name": "switch svc-action",
"xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 517.3214340209961,
- "y": 633.8898410797119,
- "z": "bcfd2953.62c4e",
+ "x": 549.5714340209961,
+ "y": 628.8898410797119,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "306534c7.4b7964",
- "fac214a0.d9f068",
- "8af1e144.1ebf78",
- "75b6f00a.5c8fd",
- "4c5cf395.49e5f4",
- "755c8b59.1d2dc4",
- "71f10773.d1b468",
- "ed83e2f.1faa02"
+ "81a7942.76def68",
+ "57464d7.1c2e1b4",
+ "2f654dff.7677ba",
+ "622a548f.1d64c4",
+ "584643fb.d9510c",
+ "c1172b79.788dd",
+ "6c127345.ce1dd4",
+ "5ce4691c.c29e48"
]
]
},
{
- "id": "306534c7.4b7964",
+ "id": "81a7942.76def68",
"type": "outcome",
"name": "assign",
"xml": "<outcome value='assign'>\n",
"comments": "",
"outputs": 1,
- "x": 852.1309814453125,
- "y": 461.5089511871338,
- "z": "bcfd2953.62c4e",
+ "x": 884.3809814453125,
+ "y": 456.5089511871338,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "8097b3a1.623438"
+ "4fafd3d6.e9c86c"
]
]
},
{
- "id": "fac214a0.d9f068",
+ "id": "57464d7.1c2e1b4",
"type": "outcome",
"name": "unassign",
"xml": "<outcome value='unassign'>\n",
"comments": "",
"outputs": 1,
- "x": 928.1787996292114,
- "y": 1230.6997060775757,
- "z": "bcfd2953.62c4e",
+ "x": 946.4287996292114,
+ "y": 1428.6997060775757,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "ebbf23ca.a1c418"
+ "2fde344e.576464"
]
]
},
{
- "id": "75b6f00a.5c8fd",
+ "id": "622a548f.1d64c4",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 892.89306640625,
- "y": 2323.889892578125,
- "z": "bcfd2953.62c4e",
+ "x": 925.14306640625,
+ "y": 2671.889892578125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "cd64d64b.85d62"
+ "f361b2ad.38da28"
]
]
},
{
- "id": "cd64d64b.85d62",
+ "id": "f361b2ad.38da28",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1116.08349609375,
- "y": 2322.889892578125,
- "z": "bcfd2953.62c4e",
+ "x": 1148.33349609375,
+ "y": 2670.889892578125,
+ "z": "2eb85326.b33f34",
"wires": []
},
{
- "id": "5d438b9c.3a31f4",
+ "id": "eb593071.413eb",
"type": "call",
"name": "call GENERIC-RESOURCE-API:validate-vnf-input",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 623.1666870117188,
- "y": 386.3661289215088,
- "z": "bcfd2953.62c4e",
+ "x": 655.4166870117188,
+ "y": 381.3661289215088,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "b63e8b29.e7f0a8",
+ "id": "4fee4a66.da80ec",
"type": "call",
"name": "call GENERIC-RESOURCE-API:vnf-topology-operation-deactivate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1747.9405822753906,
- "y": 1207.747085571289,
- "z": "bcfd2953.62c4e",
+ "x": 1750.1906127929688,
+ "y": 1360.7470703125,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "ebbf23ca.a1c418",
+ "id": "2fde344e.576464",
"type": "call",
"name": "call GENERIC-RESOURCE-API:vnf-topology-operation-unassign",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-unassign' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1293.9405822753906,
- "y": 1252.0805206298828,
- "z": "bcfd2953.62c4e",
+ "x": 1312.1905822753906,
+ "y": 1450.0805206298828,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "8af1e144.1ebf78",
+ "id": "2f654dff.7677ba",
"type": "outcome",
"name": "deactivate",
"xml": "<outcome value='deactivate'>\n",
"comments": "",
"outputs": 1,
- "x": 897.2738800048828,
- "y": 970.080415725708,
- "z": "bcfd2953.62c4e",
+ "x": 929.5238800048828,
+ "y": 965.080415725708,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "ec8e6332.b6c05"
+ "8da629b7.7785d"
]
]
},
{
- "id": "7890bbbe.2a813c",
+ "id": "87adbe9c.842b5",
"type": "call",
"name": "call GENERIC-RESOURCE-API:vnf-topology-operation-activate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1699.7501525878906,
- "y": 868.9850616455078,
- "z": "bcfd2953.62c4e",
+ "x": 1732.0001525878906,
+ "y": 863.9850616455078,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "4c5cf395.49e5f4",
+ "id": "584643fb.d9510c",
"type": "outcome",
"name": "activate",
"xml": "<outcome value='activate'>\n",
"comments": "",
"outputs": 1,
- "x": 860.0833129882812,
- "y": 631.6517143249512,
- "z": "bcfd2953.62c4e",
+ "x": 892.3333129882812,
+ "y": 626.6517143249512,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "3e54bc75.144ee4"
+ "bb5ac7de.cbb54"
]
]
},
{
- "id": "755c8b59.1d2dc4",
+ "id": "c1172b79.788dd",
"type": "outcome",
"name": "create",
"xml": "<outcome value='create'>\n",
"comments": "",
"outputs": 1,
- "x": 929.7502298355103,
- "y": 1363.0713729858398,
- "z": "bcfd2953.62c4e",
+ "x": 948.0002298355103,
+ "y": 1561.0713729858398,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "8f08f8ba.193ed8"
+ "225b7efc.8fa52a"
]
]
},
{
- "id": "71f10773.d1b468",
+ "id": "6c127345.ce1dd4",
"type": "outcome",
"name": "delete",
"xml": "<outcome value='delete'>\n",
"comments": "",
"outputs": 1,
- "x": 919.750244140625,
- "y": 1796.0714111328125,
- "z": "bcfd2953.62c4e",
+ "x": 952.000244140625,
+ "y": 1791.0714111328125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "9c586f2f.e33028"
+ "81ec64a2.44c6"
]
]
},
{
- "id": "303d5d1e.01d29a",
+ "id": "6b0b37a0.9ca588",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1101.7500839233398,
- "y": 687.0713911056519,
- "z": "bcfd2953.62c4e",
+ "x": 1134.0000839233398,
+ "y": 682.0713911056519,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "c4010eac.92b6d",
- "8097bbf5.dccfc8",
- "6b700dfa.5b7894",
- "4877cf68.9cf618",
- "d97c0f9f.42635",
- "2be7f987.98f3ce",
- "85c7833e.301688"
+ "7fca8158.91f35",
+ "9b59d855.a7acc8",
+ "4755a794.0050b8",
+ "2e56d91.79e7326",
+ "d6b29a0.e7b84e8",
+ "dd14e3b6.ed5b08",
+ "1335f1cb.2420be",
+ "396cf4fc.519af4"
]
]
},
{
- "id": "8097bbf5.dccfc8",
+ "id": "9b59d855.a7acc8",
"type": "outcome",
"name": "ActivateSiteInstance",
"xml": "<outcome value='ActivateSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1362.2263259887695,
- "y": 609.5506420135498,
- "z": "bcfd2953.62c4e",
+ "x": 1394.4763259887695,
+ "y": 503.5506420135498,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2090147c.7f3ebc"
+ "7c431af.c7b6a64"
]
]
},
{
- "id": "c4010eac.92b6d",
+ "id": "7fca8158.91f35",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1331.7976989746094,
- "y": 871.5953521728516,
- "z": "bcfd2953.62c4e",
+ "x": 1364.0476989746094,
+ "y": 866.5953521728516,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "7890bbbe.2a813c"
+ "87adbe9c.842b5"
]
]
},
{
- "id": "3e54bc75.144ee4",
+ "id": "bb5ac7de.cbb54",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1040.7500839233398,
- "y": 632.0713911056519,
- "z": "bcfd2953.62c4e",
+ "x": 1073.0000839233398,
+ "y": 627.0713911056519,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "303d5d1e.01d29a"
+ "6b0b37a0.9ca588"
]
]
},
{
- "id": "2090147c.7f3ebc",
+ "id": "7c431af.c7b6a64",
"type": "call",
"name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-activate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-activate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1728.750129699707,
- "y": 612.0714244842529,
- "z": "bcfd2953.62c4e",
+ "x": 1761.000129699707,
+ "y": 506.07142448425293,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "a872eb97.73437",
+ "id": "3aedfea2.380c82",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1159.7501983642578,
- "y": 1003.071382522583,
- "z": "bcfd2953.62c4e",
+ "x": 1192.0001983642578,
+ "y": 998.071382522583,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "d3169c17.8c1318",
- "495a662d.78b068",
- "6dfb7278.159c44",
- "25872c81.98ab74",
- "897395af.927c48",
- "ebf879bd.b608f8"
+ "4e5c2734.b4b4d8",
+ "dc0e0143.6bd3c8",
+ "a6a10b16.9db1a8",
+ "4dadb200.cffd6c",
+ "83a2f891.8b61e8",
+ "7a11315c.08885",
+ "d9d8a57.b489358",
+ "4fb9c783.53cbd8"
]
]
},
{
- "id": "495a662d.78b068",
+ "id": "dc0e0143.6bd3c8",
"type": "outcome",
"name": "DeactivateSiteInstance",
"xml": "<outcome value='DeactivateSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1403.2263946533203,
- "y": 954.5506310462952,
- "z": "bcfd2953.62c4e",
+ "x": 1435.4763946533203,
+ "y": 949.5506310462952,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2f898baf.553cbc"
+ "c4e83aa9.f0ea5"
]
]
},
{
- "id": "d3169c17.8c1318",
+ "id": "4e5c2734.b4b4d8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1384.7976989746094,
- "y": 1206.5953521728516,
- "z": "bcfd2953.62c4e",
+ "x": 1387.0477294921875,
+ "y": 1359.5953369140625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "b63e8b29.e7f0a8"
+ "4fee4a66.da80ec"
]
]
},
{
- "id": "ec8e6332.b6c05",
+ "id": "8da629b7.7785d",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1098.7501983642578,
- "y": 948.071382522583,
- "z": "bcfd2953.62c4e",
+ "x": 1131.0001983642578,
+ "y": 943.071382522583,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "a872eb97.73437"
+ "3aedfea2.380c82"
]
]
},
{
- "id": "2f898baf.553cbc",
+ "id": "c4e83aa9.f0ea5",
"type": "call",
"name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-deactivate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-deactivate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1772.7501983642578,
- "y": 952.0714135169983,
- "z": "bcfd2953.62c4e",
+ "x": 1805.0001983642578,
+ "y": 947.0714135169983,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "e542c925.100cb",
+ "id": "12bd2849.859b18",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1128.083625793457,
- "y": 1449.6576824188232,
- "z": "bcfd2953.62c4e",
+ "x": 1146.333625793457,
+ "y": 1647.6576824188232,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "4cf2e62b.d1fd08",
- "9b7a0b77.8dcfd",
- "bc0dfdf.db024",
- "822ca78e.7c6b1",
- "bc324ef7.aba63",
- "594d2772.c82a7",
- "2476b7aa.1b79f8",
- "84311768.7532f",
- "3fe1f22d.2ed6be"
+ "a5546947.872828",
+ "98d1ee64.a859d8",
+ "b4652d97.1f82a",
+ "d84e3d35.1b6498",
+ "3c335fd3.49242",
+ "f28f5d04.bb2268",
+ "ab85e0c9.740d",
+ "e984aa3b.a932c",
+ "dded3789.e6b0f",
+ "42d2af76.1ab5f8"
]
]
},
{
- "id": "9b7a0b77.8dcfd",
+ "id": "98d1ee64.a859d8",
"type": "outcome",
"name": "CreateSiteInstance",
"xml": "<outcome value='CreateSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1389.56005859375,
- "y": 1366.136962890625,
- "z": "bcfd2953.62c4e",
+ "x": 1407.81005859375,
+ "y": 1564.136962890625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "3600755e.c820da"
+ "19f9c8ad.fe3f3f"
]
]
},
{
- "id": "4cf2e62b.d1fd08",
+ "id": "a5546947.872828",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1363.1310834884644,
- "y": 1634.181514263153,
- "z": "bcfd2953.62c4e",
+ "x": 1381.381103515625,
+ "y": 1917.1815185546875,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "d3577745.7a3668"
+ "8e9dbba2.9704c8"
]
]
},
{
- "id": "8f08f8ba.193ed8",
+ "id": "225b7efc.8fa52a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1112.0837144851685,
- "y": 1360.6577405929565,
- "z": "bcfd2953.62c4e",
+ "x": 1130.3337144851685,
+ "y": 1558.6577405929565,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "e542c925.100cb"
+ "12bd2849.859b18"
]
]
},
{
- "id": "3600755e.c820da",
+ "id": "19f9c8ad.fe3f3f",
"type": "call",
"name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-create",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-create' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1766.0837631225586,
- "y": 1364.6577215194702,
- "z": "bcfd2953.62c4e",
+ "x": 1784.3337631225586,
+ "y": 1562.6577215194702,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "d3577745.7a3668",
+ "id": "8e9dbba2.9704c8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1503.4166593551636,
- "y": 1635.237937450409,
- "z": "bcfd2953.62c4e",
+ "x": 1521.6666793823242,
+ "y": 1918.2379417419434,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "cf368a61.e211c8",
+ "id": "96d2109.f63b17",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1165.750244140625,
- "y": 1848.5714111328125,
- "z": "bcfd2953.62c4e",
+ "x": 1187.000244140625,
+ "y": 2199.5714111328125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "579fcf13.f7d6f8",
- "192b14c7.a9450b",
- "7268797a.eb65d",
- "9e7e4bfc.278db8",
- "1b2e943b.d70b5c",
- "c0d1dfda.9d8bf8",
- "61af328b.a8ad5c",
- "2446e491.707454",
- "b0d73803.27cd6"
+ "26331c8c.278694",
+ "abddd00e.2e5d78",
+ "1199f718.5ce6e9",
+ "b17cca78.ca71f8",
+ "d90d8ec6.0e4c9",
+ "2f773619.4af1ca",
+ "58d57172.fc9ab",
+ "58a075cd.2a28cc",
+ "1ce03296.eacf2d",
+ "f605d964.bf649"
]
]
},
{
- "id": "192b14c7.a9450b",
+ "id": "abddd00e.2e5d78",
"type": "outcome",
"name": "DeleteSiteInstance",
"xml": "<outcome value='DeleteSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1406.226463317871,
- "y": 1794.050654888153,
- "z": "bcfd2953.62c4e",
+ "x": 1427.476463317871,
+ "y": 2145.050654888153,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "c183a045.30b8"
+ "22011e48.f6c9ca"
]
]
},
{
- "id": "579fcf13.f7d6f8",
+ "id": "26331c8c.278694",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1376.131332397461,
- "y": 2071.095685482025,
- "z": "bcfd2953.62c4e",
+ "x": 1388.38134765625,
+ "y": 2521.095703125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "8b1483fa.aa37f8"
+ "4db86e7c.83c3b8"
]
]
},
{
- "id": "9c586f2f.e33028",
+ "id": "81ec64a2.44c6",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1104.750244140625,
- "y": 1793.5714111328125,
- "z": "bcfd2953.62c4e",
+ "x": 1126.000244140625,
+ "y": 2144.5714111328125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "cf368a61.e211c8"
+ "96d2109.f63b17"
]
]
},
{
- "id": "c183a045.30b8",
+ "id": "22011e48.f6c9ca",
"type": "call",
"name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-delete",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-delete' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1778.7502670288086,
- "y": 1791.571406841278,
- "z": "bcfd2953.62c4e",
+ "x": 1800.0002670288086,
+ "y": 2142.571406841278,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "8b1483fa.aa37f8",
+ "id": "4db86e7c.83c3b8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1511.4168548583984,
- "y": 2063.8187079429626,
- "z": "bcfd2953.62c4e",
+ "x": 1527.6668701171875,
+ "y": 2514.818603515625,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "6b700dfa.5b7894",
+ "id": "4755a794.0050b8",
"type": "outcome",
"name": "ActivateSDWANDeviceInstance",
"xml": "<outcome value='ActivateSDWANDeviceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1393.4167556762695,
- "y": 660.571455001831,
- "z": "bcfd2953.62c4e",
+ "x": 1425.6667556762695,
+ "y": 554.571455001831,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "dde383e2.14d1b"
+ "398a4a69.0e148e"
]
]
},
{
- "id": "dde383e2.14d1b",
+ "id": "398a4a69.0e148e",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-activate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-activate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1832.9404373168945,
- "y": 659.092206954956,
- "z": "bcfd2953.62c4e",
+ "x": 1865.1904373168945,
+ "y": 553.092206954956,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "6dfb7278.159c44",
+ "id": "a6a10b16.9db1a8",
"type": "outcome",
"name": "DeactivateSDWANDeviceInstance",
"xml": "<outcome value='DeactivateSDWANDeviceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1444.416633605957,
- "y": 1002.571409702301,
- "z": "bcfd2953.62c4e",
+ "x": 1476.666633605957,
+ "y": 997.571409702301,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "818a25dd.c0d2d8"
+ "70544464.2f4a84"
]
]
},
{
- "id": "818a25dd.c0d2d8",
+ "id": "70544464.2f4a84",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-deactivate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-deactivate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1900.940330505371,
- "y": 1002.0922451019287,
- "z": "bcfd2953.62c4e",
+ "x": 1933.190330505371,
+ "y": 997.0922451019287,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "d78c63b7.25544",
+ "id": "4240f71c.947248",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-activate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1830.416633605957,
- "y": 699.5713939666748,
- "z": "bcfd2953.62c4e",
+ "x": 1862.666633605957,
+ "y": 593.5713939666748,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "4877cf68.9cf618",
+ "id": "2e56d91.79e7326",
"type": "outcome",
"name": "ActivateSDWANPortInstance",
"xml": "<outcome value='ActivateSDWANPortInstance'>",
"comments": "",
"outputs": 1,
- "x": 1386.892951965332,
- "y": 707.0506114959717,
- "z": "bcfd2953.62c4e",
+ "x": 1419.142951965332,
+ "y": 601.0506114959717,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "d78c63b7.25544"
+ "4240f71c.947248"
]
]
},
{
- "id": "25872c81.98ab74",
+ "id": "4dadb200.cffd6c",
"type": "outcome",
"name": "DeactivateSDWANPortInstance",
"xml": "<outcome value='DeactivateSDWANPortInstance'>",
"comments": "",
"outputs": 1,
- "x": 1436.4166793823242,
- "y": 1040.904725074768,
- "z": "bcfd2953.62c4e",
+ "x": 1468.6666793823242,
+ "y": 1035.904725074768,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "70d01de8.15b83c"
+ "2225b71.ac2f148"
]
]
},
{
- "id": "70d01de8.15b83c",
+ "id": "2225b71.ac2f148",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-deactivate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1910.940330505371,
- "y": 1057.4255270957947,
- "z": "bcfd2953.62c4e",
+ "x": 1943.190330505371,
+ "y": 1052.4255270957947,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "bc0dfdf.db024",
+ "id": "b4652d97.1f82a",
"type": "outcome",
"name": "CreateSDWANPortInstance",
"xml": "<outcome value='CreateSDWANPortInstance'>",
"comments": "",
"outputs": 1,
- "x": 1439.4169540405273,
- "y": 1454.9047973155975,
- "z": "bcfd2953.62c4e",
+ "x": 1457.6669540405273,
+ "y": 1652.9047973155975,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "8c93f3dc.323148"
+ "7ae0670d.5e8368"
]
]
},
{
- "id": "8c93f3dc.323148",
+ "id": "7ae0670d.5e8368",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-create",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-create' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1895.940574645996,
- "y": 1459.4255766868591,
- "z": "bcfd2953.62c4e",
+ "x": 1914.190574645996,
+ "y": 1657.4255766868591,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "7268797a.eb65d",
+ "id": "1199f718.5ce6e9",
"type": "outcome",
"name": "DeleteSDWANPortInstance",
"xml": "<outcome value='DeleteSDWANPortInstance'>",
"comments": "",
"outputs": 1,
- "x": 1442.083480834961,
- "y": 1904.9047994613647,
- "z": "bcfd2953.62c4e",
+ "x": 1463.333480834961,
+ "y": 2255.9047994613647,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "d08fa2da.56d74"
+ "30358e96.23d39a"
]
]
},
{
- "id": "d08fa2da.56d74",
+ "id": "30358e96.23d39a",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-delete",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1868.6072006225586,
- "y": 1904.425654888153,
- "z": "bcfd2953.62c4e",
+ "x": 1889.8572006225586,
+ "y": 2255.425654888153,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "9e7e4bfc.278db8",
+ "id": "b17cca78.ca71f8",
"type": "outcome",
"name": "DeleteSDWANDeviceInstance",
"xml": "<outcome value='DeleteSDWANDeviceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1450.7816314697266,
- "y": 1845.1027059555054,
- "z": "bcfd2953.62c4e",
+ "x": 1472.0316314697266,
+ "y": 2196.1027059555054,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "23bb007c.f32be8"
+ "35efb4d9.5a00f4"
]
]
},
{
- "id": "23bb007c.f32be8",
+ "id": "35efb4d9.5a00f4",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-delete",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-delete' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1883.3052368164062,
- "y": 1844.6234192848206,
- "z": "bcfd2953.62c4e",
+ "x": 1904.5552368164062,
+ "y": 2195.6234192848206,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "822ca78e.7c6b1",
+ "id": "d84e3d35.1b6498",
"type": "outcome",
"name": "CreateSDWANDeviceInstance",
"xml": "<outcome value='CreateSDWANDeviceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1454.7813034057617,
- "y": 1411.1027607917786,
- "z": "bcfd2953.62c4e",
+ "x": 1473.0313034057617,
+ "y": 1609.1027607917786,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2136a8d7.1d7db8"
+ "7d9159a3.db89c8"
]
]
},
{
- "id": "2136a8d7.1d7db8",
+ "id": "7d9159a3.db89c8",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-create",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-create' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1911.3049697875977,
- "y": 1409.6235747337341,
- "z": "bcfd2953.62c4e",
+ "x": 1929.5549697875977,
+ "y": 1607.6235747337341,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "d97c0f9f.42635",
+ "id": "d6b29a0.e7b84e8",
"type": "outcome",
"name": "ActivateSDWANVpnInstance",
"xml": "<outcome value='ActivateSDWANVpnInstance'>",
"comments": "",
"outputs": 1,
- "x": 1396.0461730957031,
- "y": 747.8151397705078,
- "z": "bcfd2953.62c4e",
+ "x": 1428.2961730957031,
+ "y": 641.8151397705078,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "820fc280.2984a8"
+ "80e5bb2b.aa015"
]
]
},
{
- "id": "2be7f987.98f3ce",
+ "id": "dd14e3b6.ed5b08",
"type": "outcome",
"name": "ActivateSDWANSiteInstance",
"xml": "<outcome value='ActivateSDWANSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1400.0461730957031,
- "y": 790.4815826416016,
- "z": "bcfd2953.62c4e",
+ "x": 1432.2961730957031,
+ "y": 684.4815826416016,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "820fc280.2984a8"
+ "80e5bb2b.aa015"
]
]
},
{
- "id": "820fc280.2984a8",
+ "id": "80e5bb2b.aa015",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1671.0461654663086,
- "y": 768.4816343784332,
- "z": "bcfd2953.62c4e",
+ "x": 1703.2961654663086,
+ "y": 662.4816343784332,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "9ce0f57b.73394"
+ "c89bb7c5.4c4e5"
]
]
},
{
- "id": "9ce0f57b.73394",
+ "id": "c89bb7c5.4c4e5",
"type": "call",
"name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-activate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2049.046012878418,
- "y": 765.8152935504913,
- "z": "bcfd2953.62c4e",
+ "x": 2081.296012878418,
+ "y": 659.8152935504913,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "5aa2ff69.f1c198",
+ "id": "235e503e.fa02e8",
"type": "call",
"name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-deactivate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2097.0832138061523,
- "y": 1112.9380941390991,
- "z": "bcfd2953.62c4e",
+ "x": 2129.3332138061523,
+ "y": 1107.9380941390991,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "fe515738.186868",
+ "id": "3e48634b.4b27b4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1700.0833053588867,
- "y": 1114.6044387817383,
- "z": "bcfd2953.62c4e",
+ "x": 1732.3333053588867,
+ "y": 1109.6044387817383,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "5aa2ff69.f1c198"
+ "235e503e.fa02e8"
]
]
},
{
- "id": "ebf879bd.b608f8",
+ "id": "7a11315c.08885",
"type": "outcome",
"name": "DeactivateSDWANSiteInstance",
"xml": "<outcome value='DeactivateSDWANSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1442.0832901000977,
- "y": 1136.6044034957886,
- "z": "bcfd2953.62c4e",
+ "x": 1474.3332901000977,
+ "y": 1131.6044034957886,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "fe515738.186868"
+ "3e48634b.4b27b4"
]
]
},
{
- "id": "897395af.927c48",
+ "id": "83a2f891.8b61e8",
"type": "outcome",
"name": "DeactivateSDWANVpnInstance",
"xml": "<outcome value='DeactivateSDWANVpnInstance'>",
"comments": "",
"outputs": 1,
- "x": 1436.0832595825195,
- "y": 1093.9379558563232,
- "z": "bcfd2953.62c4e",
+ "x": 1468.3332595825195,
+ "y": 1088.9379558563232,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "fe515738.186868"
+ "3e48634b.4b27b4"
]
]
},
{
- "id": "bc324ef7.aba63",
+ "id": "3c335fd3.49242",
"type": "outcome",
"name": "CreateSDWANVpnInstance",
"xml": "<outcome value='CreateSDWANVpnInstance'>",
"comments": "",
"outputs": 1,
- "x": 1435.6016340255737,
- "y": 1509.5928702354431,
- "z": "bcfd2953.62c4e",
+ "x": 1453.8516340255737,
+ "y": 1707.5928702354431,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2ea0216b.051dee"
+ "d4c5177.5196768"
]
]
},
{
- "id": "594d2772.c82a7",
+ "id": "f28f5d04.bb2268",
"type": "outcome",
"name": "CreateSDWANSiteInstance",
"xml": "<outcome value='CreateSDWANSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1427.6016111373901,
- "y": 1551.2592587471008,
- "z": "bcfd2953.62c4e",
+ "x": 1445.8516111373901,
+ "y": 1749.2592587471008,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2ea0216b.051dee"
+ "d4c5177.5196768"
]
]
},
{
- "id": "2ea0216b.051dee",
+ "id": "d4c5177.5196768",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1685.6016263961792,
- "y": 1529.2592940330505,
- "z": "bcfd2953.62c4e",
+ "x": 1703.8516263961792,
+ "y": 1727.2592940330505,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "fe1aa149.c654b"
+ "a05703f3.26b69"
]
]
},
{
- "id": "fe1aa149.c654b",
+ "id": "a05703f3.26b69",
"type": "call",
"name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-create",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2063.6014738082886,
- "y": 1526.5929532051086,
- "z": "bcfd2953.62c4e",
+ "x": 2081.8514738082886,
+ "y": 1724.5929532051086,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "1b2e943b.d70b5c",
+ "id": "d90d8ec6.0e4c9",
"type": "outcome",
"name": "DeleteSDWANVpnInstance",
"xml": "<outcome value='DeleteSDWANVpnInstance'>",
"comments": "",
"outputs": 1,
- "x": 1433.083396911621,
- "y": 1951.938106060028,
- "z": "bcfd2953.62c4e",
+ "x": 1454.333396911621,
+ "y": 2302.938106060028,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "8ae554b4.b818a"
+ "f656e1fc.4af1b8"
]
]
},
{
- "id": "c0d1dfda.9d8bf8",
+ "id": "2f773619.4af1ca",
"type": "outcome",
"name": "DeleteSDWANSiteInstance",
"xml": "<outcome value='DeleteSDWANSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1433.083396911621,
- "y": 1992.6046710014343,
- "z": "bcfd2953.62c4e",
+ "x": 1454.333396911621,
+ "y": 2343.6046710014343,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "8ae554b4.b818a"
+ "f656e1fc.4af1b8"
]
]
},
{
- "id": "8ae554b4.b818a",
+ "id": "f656e1fc.4af1b8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1683.0833892822266,
- "y": 1971.6045298576355,
- "z": "bcfd2953.62c4e",
+ "x": 1704.3333892822266,
+ "y": 2322.6045298576355,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "de065509.487fa8"
+ "ba7745e3.6b0038"
]
]
},
{
- "id": "de065509.487fa8",
+ "id": "ba7745e3.6b0038",
"type": "call",
"name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-delete",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2061.083236694336,
- "y": 1968.9381890296936,
- "z": "bcfd2953.62c4e",
+ "x": 2082.333236694336,
+ "y": 2319.9381890296936,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "f1013e22.c6f5a8",
+ "id": "c4652243.2cd31",
"type": "set",
"name": "set skip-mdsal-update to Y",
"xml": "<set>\n<parameter name='skip-mdsal-update' value='Y' />\n",
"comments": "",
- "x": 2212.7818908691406,
- "y": 352.4920959472656,
- "z": "bcfd2953.62c4e",
+ "x": 2245.0318908691406,
+ "y": 347.4920959472656,
+ "z": "2eb85326.b33f34",
"wires": []
},
{
- "id": "b136a2e3.d45108",
+ "id": "1ab73b94.dc63c4",
"type": "set",
"name": "set ack-final to 'N'",
"xml": "<set>\n<parameter name='ack-final' value='N' />\n",
"comments": "",
- "x": 2184.591583251953,
- "y": 416.8401184082031,
- "z": "bcfd2953.62c4e",
+ "x": 2216.841583251953,
+ "y": 411.8401184082031,
+ "z": "2eb85326.b33f34",
"wires": []
},
{
- "id": "d256cf36.0c3f28",
+ "id": "3482a769.667ab",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1976.1311340332031,
- "y": 355.4126281738281,
- "z": "bcfd2953.62c4e",
+ "x": 2008.3811340332031,
+ "y": 350.4126281738281,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "f1013e22.c6f5a8",
- "b136a2e3.d45108"
+ "c4652243.2cd31",
+ "1ab73b94.dc63c4"
]
]
},
{
- "id": "cfee6463.dd54a",
+ "id": "e62becbd.74017",
"type": "comment",
"name": "ack-final=N triggers Provider to call vnf-topology-operation-aysnc DG",
"info": "",
"comments": "",
- "x": 2396.908966064453,
- "y": 457.8094787597656,
- "z": "bcfd2953.62c4e",
+ "x": 2429.158966064453,
+ "y": 452.8094787597656,
+ "z": "2eb85326.b33f34",
"wires": []
},
{
- "id": "ebf58448.85f46",
+ "id": "fe882fb9.dd7f48",
"type": "switchNode",
"name": "so-response-url empty?",
"xml": "<switch test='`length($vnf-topology-operation-input.sdnc-request-header.svc-notification-url) == 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 1082.0357971191406,
- "y": 202.28570556640625,
- "z": "bcfd2953.62c4e",
+ "x": 1114.2857971191406,
+ "y": 197.28570556640625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "6efaf214.4f6624",
- "a9793fc1.08e938"
+ "baa70abd.0fd63",
+ "686c7efb.0e9a6"
]
]
},
{
- "id": "6efaf214.4f6624",
+ "id": "baa70abd.0fd63",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1307.0357971191406,
- "y": 158.28570556640625,
- "z": "bcfd2953.62c4e",
+ "x": 1339.2857971191406,
+ "y": 153.28570556640625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "aa3c8ce5.53793"
+ "a4fab659.b0a56"
]
]
},
{
- "id": "a9793fc1.08e938",
+ "id": "686c7efb.0e9a6",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1297.0357971191406,
- "y": 250.28570556640625,
- "z": "bcfd2953.62c4e",
+ "x": 1329.2857971191406,
+ "y": 245.28570556640625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "31d0be5e.539722"
+ "8c77358e.ed8228"
]
]
},
{
- "id": "31d0be5e.539722",
+ "id": "8c77358e.ed8228",
"type": "switchNode",
"name": "so-response-url = ignored URL?",
"xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url == $prop.so.ignore-url`'>\n",
"comments": "",
"outputs": 1,
- "x": 1519.0357971191406,
- "y": 251.28570556640625,
- "z": "bcfd2953.62c4e",
+ "x": 1551.2857971191406,
+ "y": 246.28570556640625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "de4e1a7d.d2376",
- "84d1db43.9eb618"
+ "11d3b338.9e5c8d",
+ "200ae17a.0a95c6"
]
]
},
{
- "id": "aa3c8ce5.53793",
+ "id": "a4fab659.b0a56",
"type": "call",
"name": "call vnf-topology-operation-assign-sync",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign-sync' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1983.0357971191406,
- "y": 159.28570556640625,
- "z": "bcfd2953.62c4e",
+ "x": 2015.2857971191406,
+ "y": 154.28570556640625,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "de4e1a7d.d2376",
+ "id": "11d3b338.9e5c8d",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1759.0357971191406,
- "y": 250.28570556640625,
- "z": "bcfd2953.62c4e",
+ "x": 1791.2857971191406,
+ "y": 245.28570556640625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "aa3c8ce5.53793"
+ "a4fab659.b0a56"
]
]
},
{
- "id": "84d1db43.9eb618",
+ "id": "200ae17a.0a95c6",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1767.0357971191406,
- "y": 351.28570556640625,
- "z": "bcfd2953.62c4e",
+ "x": 1799.2857971191406,
+ "y": 346.28570556640625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "d256cf36.0c3f28"
+ "3482a769.667ab"
]
]
},
{
- "id": "621f2def.3bc7f4",
+ "id": "b2848e24.03a05",
"type": "execute",
"name": "execute getProperties",
"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",
"comments": "",
"outputs": 1,
- "x": 1095.4122619628906,
- "y": 92.54547119140625,
- "z": "bcfd2953.62c4e",
+ "x": 1127.6622619628906,
+ "y": 87.54547119140625,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "8097b3a1.623438",
+ "id": "4fafd3d6.e9c86c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 904.5033264160156,
- "y": 90.727294921875,
- "z": "bcfd2953.62c4e",
+ "x": 936.7533264160156,
+ "y": 85.727294921875,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "ebf58448.85f46",
- "621f2def.3bc7f4"
+ "fe882fb9.dd7f48",
+ "b2848e24.03a05"
]
]
},
{
- "id": "2476b7aa.1b79f8",
+ "id": "ab85e0c9.740d",
"type": "outcome",
"name": "CreateSOTNUnderlayInstance",
"xml": "<outcome value='CreateSOTNUnderlayInstance'>",
"comments": "",
"outputs": 1,
- "x": 1435.4165983200073,
- "y": 1588.999900341034,
- "z": "bcfd2953.62c4e",
+ "x": 1453.6665983200073,
+ "y": 1786.999900341034,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "93caa9d0.6497a8"
+ "57558677.681798"
]
]
},
{
- "id": "93caa9d0.6497a8",
+ "id": "57558677.681798",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-create",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-create' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1891.940218925476,
- "y": 1593.5206797122955,
- "z": "bcfd2953.62c4e",
+ "x": 1910.190218925476,
+ "y": 1791.5206797122955,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "85c7833e.301688",
+ "id": "1335f1cb.2420be",
"type": "outcome",
"name": "ActivateSOTNUnderlayInstance",
"xml": "<outcome value='ActivateSOTNUnderlayInstance'>",
"comments": "",
"outputs": 1,
- "x": 1412.7499694824219,
- "y": 829.3332703113556,
- "z": "bcfd2953.62c4e",
+ "x": 1444.9999694824219,
+ "y": 723.3332703113556,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "9729b91.9391748"
+ "f5e7fd9c.42866"
]
]
},
{
- "id": "9729b91.9391748",
+ "id": "f5e7fd9c.42866",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-activate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1872.6069641113281,
- "y": 823.8540802001953,
- "z": "bcfd2953.62c4e",
+ "x": 1904.8569641113281,
+ "y": 717.8540802001953,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "e2eb0e3d.ee18",
+ "id": "d9d8a57.b489358",
"type": "outcome",
"name": "DeactivateSOTNUnderlayInstance",
"xml": "<outcome value='DeactivateSOTNUnderlayInstance'>",
"comments": "",
"outputs": 1,
- "x": 1444.4166564941406,
- "y": 1172.6665802001953,
- "z": "bcfd2953.62c4e",
+ "x": 1476.6666564941406,
+ "y": 1167.6665802001953,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2575141a.d8b94c"
+ "24872c71.c379b4"
]
]
},
{
- "id": "2575141a.d8b94c",
+ "id": "24872c71.c379b4",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-deactivate",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1912.6069641113281,
- "y": 1175.520523071289,
- "z": "bcfd2953.62c4e",
+ "x": 1944.8569641113281,
+ "y": 1170.520523071289,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "61af328b.a8ad5c",
+ "id": "58d57172.fc9ab",
"type": "outcome",
"name": "DeleteSOTNUnderlayInstance",
"xml": "<outcome value='DeleteSOTNUnderlayInstance'>",
"comments": "",
"outputs": 1,
- "x": 1441.4166717529297,
- "y": 2026.3333563804626,
- "z": "bcfd2953.62c4e",
+ "x": 1462.6666717529297,
+ "y": 2377.3333563804626,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "26312d60.4b5c62"
+ "fc2f8c01.3ad288"
]
]
},
{
- "id": "26312d60.4b5c62",
+ "id": "fc2f8c01.3ad288",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-delete",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1879.6071014404297,
- "y": 2022.5207343101501,
- "z": "bcfd2953.62c4e",
+ "x": 1900.8571014404297,
+ "y": 2373.52073431015,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "84311768.7532f",
+ "id": "e984aa3b.a932c",
"type": "outcome",
"name": "CreateAccessConnectivityInstance",
"xml": "<outcome value='CreateAccessConnectivityInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1449.25,
- "y": 1292.75,
- "z": "bcfd2953.62c4e",
+ "x": 1467.5,
+ "y": 1490.75,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "f6358eed.8fd788"
+ "ebf3fb46.44d4c8"
]
]
},
{
- "id": "f6358eed.8fd788",
+ "id": "ebf3fb46.44d4c8",
"type": "for",
"name": "for:vnf-input-paramters",
"xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1735.182861328125,
- "y": 1290.033447265625,
- "z": "bcfd2953.62c4e",
+ "x": 1753.432861328125,
+ "y": 1488.033447265625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "abf89d78.ae136"
+ "22ea9454.058e1c"
]
]
},
{
- "id": "abf89d78.ae136",
+ "id": "22ea9454.058e1c",
"type": "switchNode",
"name": "switch:manufacturer",
"xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1972.349365234375,
- "y": 1284.033447265625,
- "z": "bcfd2953.62c4e",
+ "x": 1990.599365234375,
+ "y": 1482.033447265625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2b63eeb1.50b352"
+ "d9ddd0af.b69c08"
]
]
},
{
- "id": "2b63eeb1.50b352",
+ "id": "d9ddd0af.b69c08",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2166.349365234375,
- "y": 1285.03369140625,
- "z": "bcfd2953.62c4e",
+ "x": 2184.599365234375,
+ "y": 1483.03369140625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "c45d3d3e.1b1e7"
+ "15707209.859e26"
]
]
},
{
- "id": "3fe1f22d.2ed6be",
+ "id": "dded3789.e6b0f",
"type": "outcome",
"name": "CreateInternetProfileInstance",
"xml": "<outcome value='CreateInternetProfileInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1427.033203125,
- "y": 1329.616455078125,
- "z": "bcfd2953.62c4e",
+ "x": 1445.283203125,
+ "y": 1527.616455078125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "37bd78e1.b21b58"
+ "6b82d221.0cf264"
]
]
},
{
- "id": "37bd78e1.b21b58",
+ "id": "6b82d221.0cf264",
"type": "for",
"name": "for:vnf-input-paramters",
"xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1712.189453125,
- "y": 1328.60595703125,
- "z": "bcfd2953.62c4e",
+ "x": 1730.439453125,
+ "y": 1526.60595703125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "113a92fc.f5a94d"
+ "4637bf92.809598"
]
]
},
{
- "id": "113a92fc.f5a94d",
+ "id": "4637bf92.809598",
"type": "switchNode",
"name": "switch:manufacturer",
"xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1965.3558349609375,
- "y": 1325.60595703125,
- "z": "bcfd2953.62c4e",
+ "x": 1983.6058349609375,
+ "y": 1523.60595703125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "8bbd3b64.069538"
+ "ea561129.ba7158"
]
]
},
{
- "id": "8bbd3b64.069538",
+ "id": "ea561129.ba7158",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2161.355712890625,
- "y": 1341.606201171875,
- "z": "bcfd2953.62c4e",
+ "x": 2179.605712890625,
+ "y": 1539.606201171875,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "fc5c5b44.57562"
+ "eb33a1df.b27988"
]
]
},
{
- "id": "fc5c5b44.57562",
+ "id": "eb33a1df.b27988",
"type": "switchNode",
"name": "switch:manufacturer value",
"xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",
"comments": "",
"outputs": 1,
- "x": 2384.356201171875,
- "y": 1351.6064453125,
- "z": "bcfd2953.62c4e",
+ "x": 2402.606201171875,
+ "y": 1549.6064453125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "63e9014d.bd269"
+ "94514c5c.b09aa"
]
]
},
{
- "id": "c45d3d3e.1b1e7",
+ "id": "15707209.859e26",
"type": "switchNode",
"name": "switch:manufacturer value",
"xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",
"comments": "",
"outputs": 1,
- "x": 2398.349853515625,
- "y": 1285.033935546875,
- "z": "bcfd2953.62c4e",
+ "x": 2416.599853515625,
+ "y": 1483.033935546875,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2afa08fa.5da1b8",
- "72740d7.e2257f4"
+ "3bc9e881.210f6",
+ "1e5debbd.1cc0bc"
]
]
},
{
- "id": "2afa08fa.5da1b8",
+ "id": "3bc9e881.210f6",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2630.183349609375,
- "y": 1287.03369140625,
- "z": "bcfd2953.62c4e",
+ "x": 2648.433349609375,
+ "y": 1485.03369140625,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "a877b7c1.f7ab2"
+ "d86bc2c0.93fa8"
]
]
},
{
- "id": "72740d7.e2257f4",
+ "id": "1e5debbd.1cc0bc",
"type": "other",
"name": "Other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 2624.583251953125,
- "y": 1318.75,
- "z": "bcfd2953.62c4e",
+ "x": 2642.833251953125,
+ "y": 1516.75,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "2a1c0ea0.7b8bfa"
+ "55dea9c1.ebbe88"
]
]
},
{
- "id": "63e9014d.bd269",
+ "id": "94514c5c.b09aa",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2612.189453125,
- "y": 1381.606201171875,
- "z": "bcfd2953.62c4e",
+ "x": 2630.439453125,
+ "y": 1579.606201171875,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "a5024e1b.c39f78"
+ "d09ca34a.b65f98"
]
]
},
{
- "id": "a877b7c1.f7ab2",
+ "id": "d86bc2c0.93fa8",
"type": "call",
"name": "call GENERIC-RESOURCE-API:bbs-access-connectivity-vnf-topology-operation-create-huawei",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-access-connectivity-vnf-topology-operation-create-huawei' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 3127.0269165039062,
- "y": 1287.044189453125,
- "z": "bcfd2953.62c4e",
+ "x": 3145.2769165039062,
+ "y": 1485.044189453125,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "2a1c0ea0.7b8bfa",
+ "id": "55dea9c1.ebbe88",
"type": "returnFailure",
"name": "return failure",
"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!'`\" />",
"comments": "",
- "x": 2872.916259765625,
- "y": 1330.4166259765625,
- "z": "bcfd2953.62c4e",
+ "x": 2891.166259765625,
+ "y": 1528.4166259765625,
+ "z": "2eb85326.b33f34",
"wires": []
},
{
- "id": "a5024e1b.c39f78",
+ "id": "d09ca34a.b65f98",
"type": "call",
"name": "call GENERIC-RESOURCE-API:bbs-internet-profile-vnf-topology-operation-create-huawei",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-create-huawei' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 3113.033447265625,
- "y": 1383.616943359375,
- "z": "bcfd2953.62c4e",
+ "x": 3131.283447265625,
+ "y": 1581.616943359375,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "2446e491.707454",
+ "id": "58a075cd.2a28cc",
"type": "outcome",
"name": "DeleteAccessConnectivityInstance",
"xml": "<outcome value='DeleteAccessConnectivityInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1457.5,
- "y": 1702.75,
- "z": "bcfd2953.62c4e",
+ "x": 1478.75,
+ "y": 2053.75,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "6a4bffaa.01c668"
+ "2fe8fc2c.9e18c4"
]
]
},
{
- "id": "6a4bffaa.01c668",
+ "id": "2fe8fc2c.9e18c4",
"type": "for",
"name": "for:vnf-input-paramters",
"xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1770.3232421875,
- "y": 1693.73974609375,
- "z": "bcfd2953.62c4e",
+ "x": 1791.5732421875,
+ "y": 2044.73974609375,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "21623b1f.3f8d44"
+ "2ff99d94.7a38aa"
]
]
},
{
- "id": "21623b1f.3f8d44",
+ "id": "2ff99d94.7a38aa",
"type": "switchNode",
"name": "switch:manufacturer",
"xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",
"comments": "",
"outputs": 1,
- "x": 2041.4893798828125,
- "y": 1687.73974609375,
- "z": "bcfd2953.62c4e",
+ "x": 2062.7393798828125,
+ "y": 2038.73974609375,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "635419c6.f5c7f"
+ "9d28a15.cb4fb6"
]
]
},
{
- "id": "635419c6.f5c7f",
+ "id": "9d28a15.cb4fb6",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2241.489501953125,
- "y": 1687.7396240234375,
- "z": "bcfd2953.62c4e",
+ "x": 2262.739501953125,
+ "y": 2038.7396240234375,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "5da11410.41b91c"
+ "da625743.b6b9"
]
]
},
{
- "id": "b0d73803.27cd6",
+ "id": "1ce03296.eacf2d",
"type": "outcome",
"name": "DeleteInternetProfileInstance",
"xml": "<outcome value='DeleteInternetProfileInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1439.066650390625,
- "y": 1742.800048828125,
- "z": "bcfd2953.62c4e",
+ "x": 1460.316650390625,
+ "y": 2093.800048828125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "a4985cc.fb944a"
+ "e0e2140.cef7d7"
]
]
},
{
- "id": "a4985cc.fb944a",
+ "id": "e0e2140.cef7d7",
"type": "for",
"name": "for:vnf-input-paramters",
"xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1716.4000244140625,
- "y": 1754.5167236328125,
- "z": "bcfd2953.62c4e",
+ "x": 1737.6500244140625,
+ "y": 2105.5167236328125,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "5b4764ae.b86d54"
+ "282b6105.2ce956"
]
]
},
{
- "id": "5b4764ae.b86d54",
+ "id": "282b6105.2ce956",
"type": "switchNode",
"name": "switch:manufacturer",
"xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1944.5663528442383,
- "y": 1743.516764640808,
- "z": "bcfd2953.62c4e",
+ "x": 1965.8163528442383,
+ "y": 2094.516764640808,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "7462815c.35f6c"
+ "7a75ccaa.45800c"
]
]
},
{
- "id": "7462815c.35f6c",
+ "id": "7a75ccaa.45800c",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2134.566230773926,
- "y": 1743.517008781433,
- "z": "bcfd2953.62c4e",
+ "x": 2155.816230773926,
+ "y": 2094.517008781433,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "81263075.e9e5c8"
+ "bc8cb901.156488"
]
]
},
{
- "id": "81263075.e9e5c8",
+ "id": "bc8cb901.156488",
"type": "switchNode",
"name": "switch:manufacturer value",
"xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",
"comments": "",
"outputs": 1,
- "x": 2348.566719055176,
- "y": 1739.517252922058,
- "z": "bcfd2953.62c4e",
+ "x": 2369.816719055176,
+ "y": 2090.517252922058,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "532a59b0.2081a8"
+ "6506ce79.c7ee4"
]
]
},
{
- "id": "5da11410.41b91c",
+ "id": "da625743.b6b9",
"type": "switchNode",
"name": "switch:manufacturer value",
"xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",
"comments": "",
"outputs": 1,
- "x": 2500.4898986816406,
- "y": 1680.739761352539,
- "z": "bcfd2953.62c4e",
+ "x": 2521.7398986816406,
+ "y": 2031.739761352539,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "a81f1872.f6aa9"
+ "9eeed2b2.ffa65"
]
]
},
{
- "id": "a81f1872.f6aa9",
+ "id": "9eeed2b2.ffa65",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2703.3232421875,
- "y": 1689.7396240234375,
- "z": "bcfd2953.62c4e",
+ "x": 2724.5732421875,
+ "y": 2040.7396240234375,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "848d81b5.130f"
+ "74318d61.eabaac"
]
]
},
{
- "id": "532a59b0.2081a8",
+ "id": "6506ce79.c7ee4",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2536.3997802734375,
- "y": 1735.5169677734375,
- "z": "bcfd2953.62c4e",
+ "x": 2557.6497802734375,
+ "y": 2086.5169677734375,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "91a8b026.241e6"
+ "1d65720a.ff1cbe"
]
]
},
{
- "id": "91a8b026.241e6",
+ "id": "1d65720a.ff1cbe",
"type": "call",
"name": "call GENERIC-RESOURCE-API:bbs-internet-profile-vnf-topology-operation-delete-huawei",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-delete-huawei' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2879.243896484375,
- "y": 1795.527587890625,
- "z": "bcfd2953.62c4e",
+ "x": 2900.493896484375,
+ "y": 2146.527587890625,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "848d81b5.130f",
+ "id": "74318d61.eabaac",
"type": "call",
"name": "call GENERIC-RESOURCE-API:bbs-access-connectivity-vnf-topology-operation-delete-huawei",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-access-connectivity-vnf-topology-operation-delete-huawei' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 3144.500732421875,
- "y": 1738.7506103515625,
- "z": "bcfd2953.62c4e",
+ "x": 3165.750732421875,
+ "y": 2089.7506103515625,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
},
{
- "id": "ed83e2f.1faa02",
+ "id": "5ce4691c.c29e48",
"type": "outcome",
"name": "update",
"xml": "<outcome value='update'>\n",
"comments": "",
"outputs": 1,
- "x": 923.25,
- "y": 2087,
- "z": "bcfd2953.62c4e",
+ "x": 943.499942779541,
+ "y": 2514.00008392334,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "ac49fc9a.d44d8"
+ "7808856d.04e4ac"
]
]
},
{
- "id": "ac49fc9a.d44d8",
+ "id": "7808856d.04e4ac",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1126.2500305175781,
- "y": 2180.5,
- "z": "bcfd2953.62c4e",
+ "x": 1146.4999732971191,
+ "y": 2607.50008392334,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "b2415f4b.ebd0b"
+ "acb579b0.a5157"
]
]
},
{
- "id": "b2415f4b.ebd0b",
+ "id": "acb579b0.a5157",
"type": "outcome",
"name": "ChangeInternetProfileInstance",
"xml": "<outcome value='ChangeInternetProfileInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1399.2499694824219,
- "y": 2177,
- "z": "bcfd2953.62c4e",
+ "x": 1419.499912261963,
+ "y": 2604.00008392334,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "63ada1aa.f3dca"
+ "4bd1e7d2.287198"
]
]
},
{
- "id": "63ada1aa.f3dca",
+ "id": "4bd1e7d2.287198",
"type": "for",
"name": "for:vnf-input-paramters",
"xml": "<for index='idx' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1723.4061851501465,
- "y": 2175.98966217041,
- "z": "bcfd2953.62c4e",
+ "x": 1743.6561279296875,
+ "y": 2602.98974609375,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "549f7959.1514a"
+ "56a21b47.885b94"
]
]
},
{
- "id": "549f7959.1514a",
+ "id": "56a21b47.885b94",
"type": "switchNode",
"name": "switch:manufacturer",
"xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'manufacturer'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1970.5724754333496,
- "y": 2175.989679336548,
- "z": "bcfd2953.62c4e",
+ "x": 2004.822509765625,
+ "y": 2600.98974609375,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "39016a4.e633196"
+ "759ecbfa.1b9c8c"
]
]
},
{
- "id": "39016a4.e633196",
+ "id": "759ecbfa.1b9c8c",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2158.5723609924316,
- "y": 2177.9898414611816,
- "z": "bcfd2953.62c4e",
+ "x": 2192.822395324707,
+ "y": 2602.989908218384,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "c2bca40.df8efe"
+ "8126afba.fba1b8"
]
]
},
{
- "id": "c2bca40.df8efe",
+ "id": "8126afba.fba1b8",
"type": "switchNode",
"name": "switch:manufacturer value",
"xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`'>\n",
"comments": "",
"outputs": 1,
- "x": 2369.5730018615723,
- "y": 2177.9901666641235,
- "z": "bcfd2953.62c4e",
+ "x": 2403.8230361938477,
+ "y": 2602.9902334213257,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "b6eebb76.bbbd78"
+ "110da833.5c065"
]
]
},
{
- "id": "b6eebb76.bbbd78",
+ "id": "110da833.5c065",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2621.406234741211,
- "y": 2103.98983001709,
- "z": "bcfd2953.62c4e",
+ "x": 2655.6562690734863,
+ "y": 2528.989896774292,
+ "z": "2eb85326.b33f34",
"wires": [
[
- "cafa6fb7.bfb6"
+ "b3b76bdf.09e3e"
]
]
},
{
- "id": "cafa6fb7.bfb6",
+ "id": "b3b76bdf.09e3e",
"type": "call",
"name": "call GENERIC-RESOURCE-API:bbs-internet-profile-vnf-topology-operation-change-huawei",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-change-huawei' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 3085.250789642334,
- "y": 2105.000162124634,
- "z": "bcfd2953.62c4e",
+ "x": 3119.5008239746094,
+ "y": 2530.000228881836,
+ "z": "2eb85326.b33f34",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "396cf4fc.519af4",
+ "type": "outcome",
+ "name": "ActivateTransportSliceInstance",
+ "xml": "<outcome value='ActivateTransportSliceInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1441,
+ "y": 787,
+ "z": "2eb85326.b33f34",
+ "wires": [
+ [
+ "98abb5bf.a53b2"
+ ]
+ ]
+ },
+ {
+ "id": "98abb5bf.a53b2",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-activate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1900.8569946289062,
+ "y": 781.5208098888397,
+ "z": "2eb85326.b33f34",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f605d964.bf649",
+ "type": "outcome",
+ "name": "DeleteTransportSliceInstance",
+ "xml": "<outcome value='DeleteTransportSliceInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1457,
+ "y": 2445,
+ "z": "2eb85326.b33f34",
+ "wires": [
+ [
+ "68ebe508.81cc9c"
+ ]
+ ]
+ },
+ {
+ "id": "68ebe508.81cc9c",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-delete",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1895.1904296875,
+ "y": 2441.1873779296875,
+ "z": "2eb85326.b33f34",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "42d2af76.1ab5f8",
+ "type": "outcome",
+ "name": "AllocateTransportSliceInstance",
+ "xml": "<outcome value='AllocateTransportSliceInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1450,
+ "y": 1855,
+ "z": "2eb85326.b33f34",
+ "wires": [
+ [
+ "d6261b88.e8ce"
+ ]
+ ]
+ },
+ {
+ "id": "d6261b88.e8ce",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-allocate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1902.523681640625,
+ "y": 1849.520751953125,
+ "z": "2eb85326.b33f34",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4fb9c783.53cbd8",
+ "type": "outcome",
+ "name": "DeactivateTransportSliceInstance",
+ "xml": "<outcome value='DeactivateTransportSliceInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1475,
+ "y": 1240,
+ "z": "2eb85326.b33f34",
+ "wires": [
+ [
+ "366804fb.ac0b14"
+ ]
+ ]
+ },
+ {
+ "id": "366804fb.ac0b14",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-deactivate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1943.1903076171875,
+ "y": 1242.8539428710938,
+ "z": "2eb85326.b33f34",
"wires": [
[]
]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
index 48817a42..95a84974 100644
--- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
@@ -1,20 +1,20 @@
[
{
- "id": "7a5b2247.76a96c",
+ "id": "85443592.af092",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 115,
- "y": 61,
- "z": "9b26c8a0.a64c1",
+ "x": 98,
+ "y": 38,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8f393b9e.9e17b"
+ "852063b.0947b2"
]
]
},
{
- "id": "8f393b9e.9e17b",
+ "id": "852063b.0947b2",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1567 +22,1567 @@
"comments": "",
"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}'>",
"outputs": 1,
- "x": 246.2856903076172,
- "y": 110.23810863494873,
- "z": "9b26c8a0.a64c1",
+ "x": 229.2856903076172,
+ "y": 87.23810863494873,
+ "z": "a9486230.abaca8",
"wires": [
[
- "eff67602.0d4e4"
+ "aeeba709.125ee8"
]
]
},
{
- "id": "eff67602.0d4e4",
+ "id": "aeeba709.125ee8",
"type": "method",
"name": "method sotn-vf-operation-uni-activate",
"xml": "<method rpc='sotn-vf-operation-uni-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 249.42861938476562,
- "y": 195.00003242492676,
- "z": "9b26c8a0.a64c1",
+ "x": 232.42861938476562,
+ "y": 172.00003242492676,
+ "z": "a9486230.abaca8",
"wires": [
[
- "c03d71cc.6719d8"
+ "607019e9.c9785"
]
]
},
{
- "id": "b1251334.94c658",
+ "id": "91f12862.db0db8",
"type": "switchNode",
"name": "switch vf-modules.vf-module_length",
"xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 721.9959564208984,
- "y": 375.99998915195465,
- "z": "9b26c8a0.a64c1",
+ "x": 704.9959564208984,
+ "y": 352.99998915195465,
+ "z": "a9486230.abaca8",
"wires": [
[
- "2185890c.41cf5e",
- "7887ee8e.f7ad9",
- "bf0b3d3b.de1c1"
+ "583dc2c6.a1eadc",
+ "8575a683.b84fa",
+ "550ed40f.69db1c"
]
]
},
{
- "id": "c03d71cc.6719d8",
+ "id": "607019e9.c9785",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 340.6626205444336,
- "y": 480.66670763492584,
- "z": "9b26c8a0.a64c1",
+ "x": 323.6626205444336,
+ "y": 457.66670763492584,
+ "z": "a9486230.abaca8",
"wires": [
[
- "b1251334.94c658",
- "e40d5cd3.6df488",
- "77bef901.3c81f",
- "f1780b76.81d518",
- "5733466d.dcbb88",
- "6d51d616.88647",
- "aab160b4.f76088",
- "48dc3a93.b23a44"
+ "91f12862.db0db8",
+ "9d769fa.70def6",
+ "5f3f8849.95d748",
+ "e7066e5e.bd1598",
+ "d390a700.afff28",
+ "bbda4146.d9ba7",
+ "eb840621.54dba",
+ "90ab95eb.d707c"
]
]
},
{
- "id": "77bef901.3c81f",
+ "id": "5f3f8849.95d748",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 687.0273170471191,
- "y": 246.269144654274,
- "z": "9b26c8a0.a64c1",
+ "x": 670.0273170471191,
+ "y": 223.269144654274,
+ "z": "a9486230.abaca8",
"wires": [
[
- "c9d21017.2aa0b8"
+ "89dba9bf.84a9b"
]
]
},
{
- "id": "e40d5cd3.6df488",
+ "id": "9d769fa.70def6",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 691.9959716796875,
- "y": 185.00001394748688,
- "z": "9b26c8a0.a64c1",
+ "x": 674.9959716796875,
+ "y": 162.00001394748688,
+ "z": "a9486230.abaca8",
"wires": [
[
- "eb024dbb.2172c"
+ "6defab1b.9f589c"
]
]
},
{
- "id": "eb024dbb.2172c",
+ "id": "6defab1b.9f589c",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 871.9959526062012,
- "y": 184.0000034570694,
- "z": "9b26c8a0.a64c1",
+ "x": 854.9959526062012,
+ "y": 161.0000034570694,
+ "z": "a9486230.abaca8",
"wires": [
[
- "9467f8cc.185d38"
+ "64e5f15f.80e5"
]
]
},
{
- "id": "9467f8cc.185d38",
+ "id": "64e5f15f.80e5",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1021.4246788024902,
- "y": 185.14292109012604,
- "z": "9b26c8a0.a64c1",
+ "x": 1004.4246788024902,
+ "y": 162.14292109012604,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "c9d21017.2aa0b8",
+ "id": "89dba9bf.84a9b",
"type": "switchNode",
"name": "switch this vnf-id == input vnf-id",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
"comments": "",
"outputs": 1,
- "x": 909.9959678649902,
- "y": 247.00000965595245,
- "z": "9b26c8a0.a64c1",
+ "x": 892.9959678649902,
+ "y": 224.00000965595245,
+ "z": "a9486230.abaca8",
"wires": [
[
- "5eb86cb5.aa0e34"
+ "927d25a0.9b192"
]
]
},
{
- "id": "5eb86cb5.aa0e34",
+ "id": "927d25a0.9b192",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1124.9959526062012,
- "y": 245.0000034570694,
- "z": "9b26c8a0.a64c1",
+ "x": 1107.9959526062012,
+ "y": 222.0000034570694,
+ "z": "a9486230.abaca8",
"wires": [
[
- "eb010427.42f398"
+ "cf847dc6.e7718"
]
]
},
{
- "id": "8fe487a9.faab98",
+ "id": "28206034.44efa",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1465.9959716796875,
- "y": 213,
- "z": "9b26c8a0.a64c1",
+ "x": 1448.9959716796875,
+ "y": 190,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "7887ee8e.f7ad9",
+ "id": "8575a683.b84fa",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 981.9959716796875,
- "y": 400,
- "z": "9b26c8a0.a64c1",
+ "x": 964.9959716796875,
+ "y": 377,
+ "z": "a9486230.abaca8",
"wires": [
[
- "6182e795.96a958"
+ "119d4d0b.7a079b"
]
]
},
{
- "id": "2185890c.41cf5e",
+ "id": "583dc2c6.a1eadc",
"type": "outcome",
"name": "0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 978.9959716796875,
- "y": 328,
- "z": "9b26c8a0.a64c1",
+ "x": 961.9959716796875,
+ "y": 305,
+ "z": "a9486230.abaca8",
"wires": [
[
- "6182e795.96a958"
+ "119d4d0b.7a079b"
]
]
},
{
- "id": "6182e795.96a958",
+ "id": "119d4d0b.7a079b",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1150.9959716796875,
- "y": 362,
- "z": "9b26c8a0.a64c1",
+ "x": 1133.9959716796875,
+ "y": 339,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "bf0b3d3b.de1c1",
+ "id": "550ed40f.69db1c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 943.9959487915039,
- "y": 470.9999986886978,
- "z": "9b26c8a0.a64c1",
+ "x": 926.9959487915039,
+ "y": 447.9999986886978,
+ "z": "a9486230.abaca8",
"wires": [
[
- "f14d9e8b.d52ee8"
+ "7abd9cc7.4badf4"
]
]
},
{
- "id": "13dbecad.5f9583",
+ "id": "c7633f36.59d75",
"type": "set",
"name": "set vf-module_length",
"xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",
"comments": "",
- "x": 1297.995964050293,
- "y": 469.0000126361847,
- "z": "9b26c8a0.a64c1",
+ "x": 1280.995964050293,
+ "y": 446.0000126361847,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "f14d9e8b.d52ee8",
+ "id": "7abd9cc7.4badf4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1104.995994567871,
- "y": 467.99999010562897,
- "z": "9b26c8a0.a64c1",
+ "x": 1087.995994567871,
+ "y": 444.99999010562897,
+ "z": "a9486230.abaca8",
"wires": [
[
- "13dbecad.5f9583",
- "76e7a061.215fe"
+ "c7633f36.59d75",
+ "ec6b544.1550628"
]
]
},
{
- "id": "76e7a061.215fe",
+ "id": "ec6b544.1550628",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1316.9959335327148,
- "y": 521.9999891519547,
- "z": "9b26c8a0.a64c1",
+ "x": 1299.9959335327148,
+ "y": 498.99998915195465,
+ "z": "a9486230.abaca8",
"wires": [
[
- "4d4229cc.870928"
+ "2f003dfc.c09752"
]
]
},
{
- "id": "4d4229cc.870928",
+ "id": "2f003dfc.c09752",
"type": "switchNode",
"name": "switch vf-module-id found",
"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",
"comments": "",
"outputs": 1,
- "x": 1559.995948791504,
- "y": 516.9999986886978,
- "z": "9b26c8a0.a64c1",
+ "x": 1542.995948791504,
+ "y": 493.9999986886978,
+ "z": "a9486230.abaca8",
"wires": [
[
- "235f500c.adb2d8"
+ "bc526c4d.7064b8"
]
]
},
{
- "id": "235f500c.adb2d8",
+ "id": "bc526c4d.7064b8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1757.9959774017334,
- "y": 504.00000536441803,
- "z": "9b26c8a0.a64c1",
+ "x": 1740.9959774017334,
+ "y": 481.00000536441803,
+ "z": "a9486230.abaca8",
"wires": [
[
- "b98c0673.7d62f8"
+ "8d2f78f6.19375"
]
]
},
{
- "id": "b98c0673.7d62f8",
+ "id": "8d2f78f6.19375",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1909.995948791504,
- "y": 505.9999986886978,
- "z": "9b26c8a0.a64c1",
+ "x": 1892.995948791504,
+ "y": 482.9999986886978,
+ "z": "a9486230.abaca8",
"wires": [
[
- "9c359698.db3d68",
- "1962516c.e21167"
+ "77a297db.c2104",
+ "6e412733.5c6ba"
]
]
},
{
- "id": "9c359698.db3d68",
+ "id": "77a297db.c2104",
"type": "set",
"name": "set tmp.vidx and ctx.vnf-data",
"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",
"comments": "",
- "x": 2137.996063232422,
- "y": 448.0000025033951,
- "z": "9b26c8a0.a64c1",
+ "x": 2120.996063232422,
+ "y": 425.0000025033951,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "1962516c.e21167",
+ "id": "6e412733.5c6ba",
"type": "set",
"name": "set vf-module-request-input.",
"xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",
"comments": "",
- "x": 2141.996063232422,
- "y": 502.0000025033951,
- "z": "9b26c8a0.a64c1",
+ "x": 2124.996063232422,
+ "y": 479.0000025033951,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "f1780b76.81d518",
+ "id": "e7066e5e.bd1598",
"type": "returnSuccess",
"name": "return success",
"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",
"comments": "",
- "x": 615.9961547851562,
- "y": 1675.501220703125,
- "z": "9b26c8a0.a64c1",
+ "x": 598.9961547851562,
+ "y": 1652.501220703125,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "29a9aeb.30d1952",
+ "id": "8ad19510.26b14",
"type": "call",
"name": "call sotn-get-vf-module-uni-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2172.45108795166,
- "y": 553.0104948282242,
- "z": "9b26c8a0.a64c1",
+ "x": 2155.45108795166,
+ "y": 530.0104948282242,
+ "z": "a9486230.abaca8",
"wires": [
[]
]
},
{
- "id": "5733466d.dcbb88",
+ "id": "d390a700.afff28",
"type": "execute",
"name": "execute Properties",
"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",
"comments": "",
"outputs": 1,
- "x": 701.9959564208984,
- "y": 315.5039049386978,
- "z": "9b26c8a0.a64c1",
+ "x": 684.9959564208984,
+ "y": 292.5039049386978,
+ "z": "a9486230.abaca8",
"wires": [
[]
]
},
{
- "id": "eb010427.42f398",
+ "id": "cf847dc6.e7718",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1288,
- "y": 255,
- "z": "9b26c8a0.a64c1",
+ "x": 1271,
+ "y": 232,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8fe487a9.faab98",
- "c2b0533e.d5b1d"
+ "28206034.44efa",
+ "7bec934c.afda74"
]
]
},
{
- "id": "c2b0533e.d5b1d",
+ "id": "7bec934c.afda74",
"type": "set",
"name": "set tmp.vnf-id",
"xml": "<set>\n<parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\n",
"comments": "",
- "x": 1473,
- "y": 270,
- "z": "9b26c8a0.a64c1",
+ "x": 1456,
+ "y": 247,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "48dc3a93.b23a44",
+ "id": "90ab95eb.d707c",
"type": "get-resource",
"name": "get-resource generic-vnf",
"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",
"comments": "",
"outputs": 1,
- "x": 594,
- "y": 534,
- "z": "9b26c8a0.a64c1",
+ "x": 577,
+ "y": 511,
+ "z": "a9486230.abaca8",
"wires": [
[
- "28391a2c.3321fe"
+ "8ccaf711.31aa4"
]
]
},
{
- "id": "6a811cc0.b174ac",
+ "id": "8cabc424.4e22c8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 824,
- "y": 582,
- "z": "9b26c8a0.a64c1",
+ "x": 807,
+ "y": 559,
+ "z": "a9486230.abaca8",
"wires": [
[
- "1afc6101.b3a3ff",
- "6ac23f85.2f3a38"
+ "5fc2da03.1d071c",
+ "3d46b86.8c742c8"
]
]
},
{
- "id": "6ac23f85.2f3a38",
+ "id": "3d46b86.8c742c8",
"type": "for",
"name": "for each relationship in gen-vnf",
"xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1036,
- "y": 585,
- "z": "9b26c8a0.a64c1",
+ "x": 1019,
+ "y": 562,
+ "z": "a9486230.abaca8",
"wires": [
[
- "5e0bc542.fea784"
+ "4909c045.b1da"
]
]
},
{
- "id": "5e0bc542.fea784",
+ "id": "4909c045.b1da",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1262,
- "y": 589,
- "z": "9b26c8a0.a64c1",
+ "x": 1245,
+ "y": 566,
+ "z": "a9486230.abaca8",
"wires": [
[
- "ad3f5adb.0bf5b8"
+ "9b3ab29f.42cf08"
]
]
},
{
- "id": "ad3f5adb.0bf5b8",
+ "id": "9b3ab29f.42cf08",
"type": "outcome",
"name": "uni",
"xml": "<outcome value='uni'>\n",
"comments": "",
"outputs": 1,
- "x": 1451.285888671875,
- "y": 597.82177734375,
- "z": "9b26c8a0.a64c1",
+ "x": 1434.285888671875,
+ "y": 574.82177734375,
+ "z": "a9486230.abaca8",
"wires": [
[
- "4a0655ab.fa2fa4"
+ "65cb3fab.86e0b8"
]
]
},
{
- "id": "4a0655ab.fa2fa4",
+ "id": "65cb3fab.86e0b8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1626.117431640625,
- "y": 600.3402709960938,
- "z": "9b26c8a0.a64c1",
+ "x": 1609.117431640625,
+ "y": 577.3402709960938,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8a87ece8.73f728"
+ "7d0630b8.9b289"
]
]
},
{
- "id": "2cd069f4.1bd85e",
+ "id": "7a2b5a85.21693c",
"type": "set",
"name": "set tmp.unis.uni[].tpId",
"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",
"comments": "",
- "x": 2557.117431640625,
- "y": 641.3402709960938,
- "z": "9b26c8a0.a64c1",
+ "x": 2540.117431640625,
+ "y": 618.3402709960938,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "1afc6101.b3a3ff",
+ "id": "5fc2da03.1d071c",
"type": "switchNode",
"name": "switch number of unis less than two",
"xml": "<switch test='`$tmp.unis.uni_length &lt; 2`' >\n",
"comments": "",
"outputs": 1,
- "x": 1011,
- "y": 749,
- "z": "9b26c8a0.a64c1",
+ "x": 994,
+ "y": 726,
+ "z": "a9486230.abaca8",
"wires": [
[
- "3398154f.dabcca"
+ "c70e962d.92df"
]
]
},
{
- "id": "f0dacaa2.3f6d9",
+ "id": "24e891c1.19b05e",
"type": "returnSuccess",
"name": "return success",
"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",
"comments": "",
- "x": 1419,
- "y": 751,
- "z": "9b26c8a0.a64c1",
+ "x": 1402,
+ "y": 728,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "3398154f.dabcca",
+ "id": "c70e962d.92df",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1227,
- "y": 750,
- "z": "9b26c8a0.a64c1",
+ "x": 1210,
+ "y": 727,
+ "z": "a9486230.abaca8",
"wires": [
[
- "f0dacaa2.3f6d9"
+ "24e891c1.19b05e"
]
]
},
{
- "id": "e85654b4.901fd",
+ "id": "c25132f5.a97a9",
"type": "execute",
"name": "execute split tp-id to get pnf-name",
- "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",
+ "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",
"comments": "",
"outputs": 1,
- "x": 2596,
- "y": 716,
- "z": "9b26c8a0.a64c1",
+ "x": 2579,
+ "y": 693,
+ "z": "a9486230.abaca8",
"wires": [
[
- "fb92d303.a6d858",
- "3b07d667.72d91a"
+ "24c82b36.46c39c",
+ "630e66bd.e52df8"
]
]
},
{
- "id": "3b07d667.72d91a",
+ "id": "630e66bd.e52df8",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2819,
- "y": 671,
- "z": "9b26c8a0.a64c1",
+ "x": 2802,
+ "y": 648,
+ "z": "a9486230.abaca8",
"wires": [
[
- "9111f685.17b2e8"
+ "a1db8006.117e2"
]
]
},
{
- "id": "fb92d303.a6d858",
+ "id": "24c82b36.46c39c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2821,
- "y": 735,
- "z": "9b26c8a0.a64c1",
+ "x": 2804,
+ "y": 712,
+ "z": "a9486230.abaca8",
"wires": [
[
- "1432f6d2.d75751"
+ "1b614bdf.e6fde4"
]
]
},
{
- "id": "9111f685.17b2e8",
+ "id": "a1db8006.117e2",
"type": "set",
"name": "set ltpId",
"xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix[$param-prefix_length -1]`' />\n",
"comments": "",
- "x": 3041,
- "y": 673,
- "z": "9b26c8a0.a64c1",
+ "x": 3024,
+ "y": 650,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "1432f6d2.d75751",
+ "id": "1b614bdf.e6fde4",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
"comments": "",
- "x": 2980,
- "y": 754,
- "z": "9b26c8a0.a64c1",
+ "x": 2963,
+ "y": 731,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "596112fe.dbc0a4",
+ "id": "6b1b7759.250c98",
"type": "get-resource",
"name": "get-resource pnf",
"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' >-->",
"comments": "",
"outputs": 1,
- "x": 2526,
- "y": 853,
- "z": "9b26c8a0.a64c1",
+ "x": 2509,
+ "y": 830,
+ "z": "a9486230.abaca8",
"wires": [
[
- "51c3744a.753414"
+ "55f3c1e5.5a0098"
]
]
},
{
- "id": "796d1bdc.d65e9c",
+ "id": "7ece5f8e.1b9b38",
"type": "block",
"name": "block",
"xml": "<block>",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2885.88232421875,
- "y": 861.6556396484375,
- "z": "9b26c8a0.a64c1",
+ "x": 2868.88232421875,
+ "y": 838.6556396484375,
+ "z": "a9486230.abaca8",
"wires": [
[
- "9e81136f.40f158",
- "3a607f75.56a9d"
+ "68f9febc.4723f8",
+ "8f8ea6dc.d16678"
]
]
},
{
- "id": "9e81136f.40f158",
+ "id": "68f9febc.4723f8",
"type": "set",
"name": "set node-id",
"xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].node-id`' value=\"`$tmp.aai.pnf.pnf-id`\" />\n",
"comments": "",
- "x": 3065,
- "y": 815,
- "z": "9b26c8a0.a64c1",
+ "x": 3048,
+ "y": 792,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "3a607f75.56a9d",
+ "id": "8f8ea6dc.d16678",
"type": "for",
"name": "for each relationship in pnf",
"xml": "<for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 3077.882568359375,
- "y": 901.6597290039062,
- "z": "9b26c8a0.a64c1",
+ "x": 3060.882568359375,
+ "y": 878.6597290039062,
+ "z": "a9486230.abaca8",
"wires": [
[
- "709c4d83.a869b4"
+ "65ed7a4.b573f04"
]
]
},
{
- "id": "709c4d83.a869b4",
+ "id": "65ed7a4.b573f04",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 3303.882568359375,
- "y": 901.6597290039062,
- "z": "9b26c8a0.a64c1",
+ "x": 3286.882568359375,
+ "y": 878.6597290039062,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8cbba6bb.ad862",
- "dd673476.c308f"
+ "974bc5e6.b4d62",
+ "e5a98e29.7e38d8"
]
]
},
{
- "id": "dd673476.c308f",
+ "id": "e5a98e29.7e38d8",
"type": "outcome",
"name": "network-resource",
"xml": "<outcome value='network-resource'>\n",
"comments": "",
"outputs": 1,
- "x": 3513,
- "y": 971,
- "z": "9b26c8a0.a64c1",
+ "x": 3496,
+ "y": 948,
+ "z": "a9486230.abaca8",
"wires": [
[
- "2c8cb3cb.28eeec"
+ "f9474736.835c28"
]
]
},
{
- "id": "2c8cb3cb.28eeec",
+ "id": "f9474736.835c28",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 3726,
- "y": 972,
- "z": "9b26c8a0.a64c1",
+ "x": 3709,
+ "y": 949,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8af5221c.7c91b",
- "47206fa6.e312e"
+ "ec758b37.bd131",
+ "8dbd70c6.b809a8"
]
]
},
{
- "id": "8af5221c.7c91b",
+ "id": "ec758b37.bd131",
"type": "set",
"name": "set network-id",
"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",
"comments": "",
- "x": 3961,
- "y": 902,
- "z": "9b26c8a0.a64c1",
+ "x": 3944,
+ "y": 879,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "47206fa6.e312e",
+ "id": "8dbd70c6.b809a8",
"type": "get-resource",
"name": "get-resource network-resource",
"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",
"comments": "",
"outputs": 1,
- "x": 3969,
- "y": 983,
- "z": "9b26c8a0.a64c1",
+ "x": 3952,
+ "y": 960,
+ "z": "a9486230.abaca8",
"wires": [
[
- "4ad04544.d0fad4"
+ "fcf952ac.a0e578"
]
]
},
{
- "id": "4ad04544.d0fad4",
+ "id": "fcf952ac.a0e578",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4201.5,
- "y": 979,
- "z": "9b26c8a0.a64c1",
+ "x": 4184.5,
+ "y": 956,
+ "z": "a9486230.abaca8",
"wires": [
[
- "d8cca786.0614f8"
+ "14d23388.330624"
]
]
},
{
- "id": "d8cca786.0614f8",
+ "id": "14d23388.330624",
"type": "set",
"name": "set network-id, topo-id, client-id, etc",
"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",
"comments": "",
- "x": 4470,
- "y": 978,
- "z": "9b26c8a0.a64c1",
+ "x": 4453,
+ "y": 955,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "aab160b4.f76088",
+ "id": "eb840621.54dba",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 800,
- "y": 896,
- "z": "9b26c8a0.a64c1",
+ "x": 783,
+ "y": 873,
+ "z": "a9486230.abaca8",
"wires": [
[]
]
},
{
- "id": "8cbba6bb.ad862",
+ "id": "974bc5e6.b4d62",
"type": "outcome",
"name": "thirdparty-controller",
"xml": "<outcome value='thirdparty-controller'>\n",
"comments": "",
"outputs": 1,
- "x": 3540,
- "y": 836,
- "z": "9b26c8a0.a64c1",
+ "x": 3523,
+ "y": 813,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8b43ac76.263cd"
+ "7bf0b175.d7fd18"
]
]
},
{
- "id": "8b43ac76.263cd",
+ "id": "7bf0b175.d7fd18",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 3753,
- "y": 837,
- "z": "9b26c8a0.a64c1",
+ "x": 3736,
+ "y": 814,
+ "z": "a9486230.abaca8",
"wires": [
[
- "9b5d5673.27be38"
+ "f82d81f3.06226"
]
]
},
{
- "id": "9b5d5673.27be38",
+ "id": "f82d81f3.06226",
"type": "set",
"name": "set thirdparty-sdnc-id",
"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",
"comments": "",
- "x": 3980,
- "y": 836,
- "z": "9b26c8a0.a64c1",
+ "x": 3963,
+ "y": 813,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "4ddb604c.658b08",
+ "id": "cfcd9efa.e41c08",
"type": "comment",
"name": "when we reach here, we have 2 UNIs, so do ACTN operations",
"info": "",
"comments": "",
- "x": 813,
- "y": 842,
- "z": "9b26c8a0.a64c1",
+ "x": 796,
+ "y": 819,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "6d51d616.88647",
+ "id": "bbda4146.d9ba7",
"type": "for",
"name": "for vidx..unis.uni_length[]",
"xml": "<for index='vidx' start='0' end='`$tmp.unis.uni_length`' >",
"comments": "",
"outputs": 1,
- "x": 666,
- "y": 1088,
- "z": "9b26c8a0.a64c1",
+ "x": 649,
+ "y": 1065,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8a72c5de.69f39"
+ "a0c1a02.ae339e"
]
]
},
{
- "id": "f7756434.d014e",
+ "id": "6deceac6.273a7c",
"type": "set",
"name": "set oof.vpn",
"xml": "<set>\n<parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />",
"comments": "",
- "x": 1096.0272216796875,
- "y": 946.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1079.0272216796875,
+ "y": 923.040771484375,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "8e5c8d32.64abe8",
+ "id": "23c6bb2c.1ee91c",
"type": "set",
"name": "set controller data",
"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",
"comments": "",
- "x": 1572.0272216796875,
- "y": 1140.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1555.0272216796875,
+ "y": 1117.0407409667969,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "58b223b2.226b5c",
+ "id": "15d08552.c95093",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1402.0272216796875,
- "y": 1140.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1385.0272216796875,
+ "y": 1117.0407409667969,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8e5c8d32.64abe8"
+ "23c6bb2c.1ee91c"
]
]
},
{
- "id": "74cd1f0b.113038",
+ "id": "40600b2e.91061c",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1406.0272216796875,
- "y": 1180.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1389.0272216796875,
+ "y": 1157.0407409667969,
+ "z": "a9486230.abaca8",
"wires": [
[
- "50f33a59.7393a4"
+ "2b53d3c0.494304"
]
]
},
{
- "id": "4f39f2a5.5bd5fc",
+ "id": "6d1532.96f61ad",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1398.0272216796875,
- "y": 1220.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1381.0272216796875,
+ "y": 1197.0407409667969,
+ "z": "a9486230.abaca8",
"wires": [
[
- "4b579e44.4ec6b"
+ "c51555c1.127b9"
]
]
},
{
- "id": "50f33a59.7393a4",
+ "id": "2b53d3c0.494304",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1556.0272216796875,
- "y": 1180.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1539.0272216796875,
+ "y": 1157.0407409667969,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "4b579e44.4ec6b",
+ "id": "c51555c1.127b9",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1556.0272216796875,
- "y": 1220.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1539.0272216796875,
+ "y": 1197.0407409667969,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "66a971fa.46a568",
+ "id": "39a43e8c.12f28a",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1402.0272216796875,
- "y": 1260.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1385.0272216796875,
+ "y": 1237.0407409667969,
+ "z": "a9486230.abaca8",
"wires": [
[
- "9aeb59cf.e4f488"
+ "9ffed135.085748"
]
]
},
{
- "id": "3bf26416.4deddc",
+ "id": "127cb0e0.f6337f",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1398.0272216796875,
- "y": 1300.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1381.0272216796875,
+ "y": 1277.0407409667969,
+ "z": "a9486230.abaca8",
"wires": [
[
- "e227ce38.6755d"
+ "42670ca5.0d852c"
]
]
},
{
- "id": "e227ce38.6755d",
+ "id": "42670ca5.0d852c",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1556.0272216796875,
- "y": 1300.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1539.0272216796875,
+ "y": 1277.0407409667969,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "9aeb59cf.e4f488",
+ "id": "9ffed135.085748",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1552.5272216796875,
- "y": 1260.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1535.5272216796875,
+ "y": 1237.0407409667969,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "ac6d44a1.0c401",
+ "id": "ca782055.9e2288",
"type": "comment",
"name": "Get controller info and send request",
"info": "",
"comments": "",
- "x": 1164.0272216796875,
- "y": 1140.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1147.0272216796875,
+ "y": 1117.0407409667969,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "a9643f3f.4f04b",
+ "id": "7c55f05.ae92f9",
"type": "get-resource",
"name": "get-resource esr-thirdparty-sdnc",
"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",
"comments": "",
"outputs": 1,
- "x": 1156.0272216796875,
- "y": 1180.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1139.0272216796875,
+ "y": 1157.0407409667969,
+ "z": "a9486230.abaca8",
"wires": [
[
- "58b223b2.226b5c",
- "74cd1f0b.113038",
- "4f39f2a5.5bd5fc"
+ "15d08552.c95093",
+ "40600b2e.91061c",
+ "6d1532.96f61ad"
]
]
},
{
- "id": "c6d53bc.53f5bc8",
+ "id": "132c8130.52018f",
"type": "execute",
"name": "execute RestApiCallNode Get token",
"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\"/>",
"comments": "",
"outputs": 1,
- "x": 1168.5272216796875,
- "y": 1280.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 1151.5272216796875,
+ "y": 1257.0407409667969,
+ "z": "a9486230.abaca8",
"wires": [
[
- "66a971fa.46a568",
- "3bf26416.4deddc"
+ "39a43e8c.12f28a",
+ "127cb0e0.f6337f"
]
]
},
{
- "id": "787bd09.8ff59b",
+ "id": "8b8f431b.afab28",
"type": "comment",
"name": "call domain controller to create underlay OTN tunnel",
"info": "",
"comments": "",
- "x": 1217.5272216796875,
- "y": 1365.49560546875,
- "z": "9b26c8a0.a64c1",
+ "x": 1200.5272216796875,
+ "y": 1342.49560546875,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "ee991e0.ab6b36",
+ "id": "72587bb.46de384",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sotn-create-otn-tunnel",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1237.5272216796875,
- "y": 1409.49560546875,
- "z": "9b26c8a0.a64c1",
+ "x": 1220.5272216796875,
+ "y": 1386.49560546875,
+ "z": "a9486230.abaca8",
"wires": [
[]
]
},
{
- "id": "8a72c5de.69f39",
+ "id": "a0c1a02.ae339e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 819.5272216796875,
- "y": 1420.0407409667969,
- "z": "9b26c8a0.a64c1",
+ "x": 802.5272216796875,
+ "y": 1397.0407409667969,
+ "z": "a9486230.abaca8",
"wires": [
[
- "124c6957.e07dc7",
- "f7756434.d014e",
- "a9643f3f.4f04b",
- "ae925256.a68df",
- "ee991e0.ab6b36",
- "3ce3b19a.7c10c6",
- "d661efba.3fa238",
- "c6d53bc.53f5bc8"
+ "4d995f3e.15c858",
+ "6deceac6.273a7c",
+ "7c55f05.ae92f9",
+ "db2b3730.902018",
+ "72587bb.46de384",
+ "ec5a35c9.5d1e88",
+ "3df609df.1fc0ce",
+ "132c8130.52018f"
]
]
},
{
- "id": "ab7e4ea9.e8e178",
+ "id": "5781fdd6.208f54",
"type": "comment",
"name": "Loop through UNIs and configure domain controllers",
"info": "",
"comments": "",
- "x": 754.5003662109375,
- "y": 1228.5003662109375,
- "z": "9b26c8a0.a64c1",
+ "x": 737.5003662109375,
+ "y": 1205.5003662109375,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "124c6957.e07dc7",
+ "id": "4d995f3e.15c858",
"type": "set",
"name": "set sotn_value",
"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' />",
"comments": "",
- "x": 1083.52734375,
- "y": 1488.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1066.52734375,
+ "y": 1465.040771484375,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "3ce3b19a.7c10c6",
+ "id": "ec5a35c9.5d1e88",
"type": "set",
"name": "set attachment_param",
"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",
"comments": "",
- "x": 1108.02734375,
- "y": 1528.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1091.02734375,
+ "y": 1505.040771484375,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "d661efba.3fa238",
+ "id": "3df609df.1fc0ce",
"type": "switchNode",
"name": "switch prop.sdncRestApi.token_id",
"xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1143.52734375,
- "y": 1568.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1126.52734375,
+ "y": 1545.040771484375,
+ "z": "a9486230.abaca8",
"wires": [
[
- "f63083b5.0624b",
- "fbf2273e.fbe678"
+ "a0bdd826.3f4cd8",
+ "6962c04c.c84c"
]
]
},
{
- "id": "678c3911.078e2",
+ "id": "f371d079.2c80a8",
"type": "execute",
"name": "execute RestApiCallNode Create ethernet Service with token",
"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`\" />",
"comments": "",
"outputs": 1,
- "x": 1660.52734375,
- "y": 1588.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1643.52734375,
+ "y": 1565.040771484375,
+ "z": "a9486230.abaca8",
"wires": [
[
- "72a042fd.6a9e5c",
- "4ae2509c.7d19b8"
+ "b25690a3.da1fe",
+ "44b94c62.5f6294"
]
]
},
{
- "id": "72a042fd.6a9e5c",
+ "id": "b25690a3.da1fe",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2004.02734375,
- "y": 1588.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1987.02734375,
+ "y": 1565.040771484375,
+ "z": "a9486230.abaca8",
"wires": [
[
- "743fa383.cc94fc"
+ "acd4383.6d75ac8"
]
]
},
{
- "id": "743fa383.cc94fc",
+ "id": "acd4383.6d75ac8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2161.52734375,
- "y": 1588.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 2144.52734375,
+ "y": 1565.040771484375,
+ "z": "a9486230.abaca8",
"wires": [
[]
]
},
{
- "id": "7e01ab8f.069484",
+ "id": "acde530.390303",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 2158.02734375,
- "y": 1548.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 2141.02734375,
+ "y": 1525.040771484375,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "4ae2509c.7d19b8",
+ "id": "44b94c62.5f6294",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2000.02734375,
- "y": 1548.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1983.02734375,
+ "y": 1525.040771484375,
+ "z": "a9486230.abaca8",
"wires": [
[
- "7e01ab8f.069484"
+ "acde530.390303"
]
]
},
{
- "id": "f63083b5.0624b",
+ "id": "a0bdd826.3f4cd8",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1356.3711738586426,
- "y": 1548.162670135498,
- "z": "9b26c8a0.a64c1",
+ "x": 1339.3711738586426,
+ "y": 1525.162670135498,
+ "z": "a9486230.abaca8",
"wires": [
[
- "42cb8b06.e7daec"
+ "dd18b88a.c3942"
]
]
},
{
- "id": "fbf2273e.fbe678",
+ "id": "6962c04c.c84c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1360.02734375,
- "y": 1588.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1343.02734375,
+ "y": 1565.040771484375,
+ "z": "a9486230.abaca8",
"wires": [
[
- "678c3911.078e2"
+ "f371d079.2c80a8"
]
]
},
{
- "id": "42cb8b06.e7daec",
+ "id": "dd18b88a.c3942",
"type": "execute",
"name": "execute RestApiCallNode Create ethernet Service without token",
"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\"/>",
"comments": "",
"outputs": 1,
- "x": 1670.52734375,
- "y": 1548.040771484375,
- "z": "9b26c8a0.a64c1",
+ "x": 1653.52734375,
+ "y": 1525.040771484375,
+ "z": "a9486230.abaca8",
"wires": [
[
- "4ae2509c.7d19b8",
- "72a042fd.6a9e5c"
+ "44b94c62.5f6294",
+ "b25690a3.da1fe"
]
]
},
{
- "id": "28391a2c.3321fe",
+ "id": "8ccaf711.31aa4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 725,
- "y": 663,
- "z": "9b26c8a0.a64c1",
+ "x": 708,
+ "y": 640,
+ "z": "a9486230.abaca8",
"wires": [
[
- "6a811cc0.b174ac"
+ "8cabc424.4e22c8"
]
]
},
{
- "id": "51c3744a.753414",
+ "id": "55f3c1e5.5a0098",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2709,
- "y": 860,
- "z": "9b26c8a0.a64c1",
+ "x": 2692,
+ "y": 837,
+ "z": "a9486230.abaca8",
"wires": [
[
- "796d1bdc.d65e9c"
+ "7ece5f8e.1b9b38"
]
]
},
{
- "id": "672fc75a.1e91b",
+ "id": "5ed4925c.49643c",
"type": "set",
"name": "set tmp.unis.uni[].tpId",
"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",
"comments": "",
- "x": 655,
- "y": 1015,
- "z": "9b26c8a0.a64c1",
+ "x": 638,
+ "y": 992,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "ae925256.a68df",
+ "id": "db2b3730.902018",
"type": "get-resource",
"name": "get network-resource",
"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",
"comments": "",
"outputs": 1,
- "x": 1128,
- "y": 1024,
- "z": "9b26c8a0.a64c1",
+ "x": 1111,
+ "y": 1001,
+ "z": "a9486230.abaca8",
"wires": [
[
- "23c084ce.22a7f4",
- "d2d56dd3.d8df6",
- "28e7be58.d60b6a"
+ "1a14b8d2.a8f357",
+ "f7a955ca.9be14",
+ "34e2d0ff.2b0ba8"
]
]
},
{
- "id": "23c084ce.22a7f4",
+ "id": "1a14b8d2.a8f357",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1323.5001220703125,
- "y": 981,
- "z": "9b26c8a0.a64c1",
+ "x": 1306.5001220703125,
+ "y": 958,
+ "z": "a9486230.abaca8",
"wires": [
[
- "16ae77fe.3db2f"
+ "10c48a33.860696"
]
]
},
{
- "id": "d2d56dd3.d8df6",
+ "id": "f7a955ca.9be14",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1315.5001220703125,
- "y": 1036,
- "z": "9b26c8a0.a64c1",
+ "x": 1298.5001220703125,
+ "y": 1013,
+ "z": "a9486230.abaca8",
"wires": [
[
- "8f6658aa.e556f8"
+ "7314720a.de097c"
]
]
},
{
- "id": "28e7be58.d60b6a",
+ "id": "34e2d0ff.2b0ba8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1320.5001220703125,
- "y": 1093,
- "z": "9b26c8a0.a64c1",
+ "x": 1303.5001220703125,
+ "y": 1070,
+ "z": "a9486230.abaca8",
"wires": [
[
- "5bc0d431.a1baf4"
+ "247bba75.1dbfee"
]
]
},
{
- "id": "5bc0d431.a1baf4",
+ "id": "247bba75.1dbfee",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1472.5001220703125,
- "y": 1094,
- "z": "9b26c8a0.a64c1",
+ "x": 1455.5001220703125,
+ "y": 1071,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "8f6658aa.e556f8",
+ "id": "7314720a.de097c",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1483.5001220703125,
- "y": 1039,
- "z": "9b26c8a0.a64c1",
+ "x": 1466.5001220703125,
+ "y": 1016,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "16ae77fe.3db2f",
+ "id": "10c48a33.860696",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1467.8824462890625,
- "y": 978.6556701660156,
- "z": "9b26c8a0.a64c1",
+ "x": 1450.8824462890625,
+ "y": 955.6556701660156,
+ "z": "a9486230.abaca8",
"wires": [
[
- "1facb6e4.b004d9"
+ "3803718b.d2dfd6"
]
]
},
{
- "id": "1facb6e4.b004d9",
+ "id": "3803718b.d2dfd6",
"type": "for",
"name": "for each relationship",
"xml": "<for index='ridx' start='0' end='`$tmp.aai.network-resource.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1682.8826904296875,
- "y": 978.6597290039062,
- "z": "9b26c8a0.a64c1",
+ "x": 1665.8826904296875,
+ "y": 955.6597290039062,
+ "z": "a9486230.abaca8",
"wires": [
[
- "a5fdb89.17d6dc8"
+ "7cf64c03.a76a4c"
]
]
},
{
- "id": "a5fdb89.17d6dc8",
+ "id": "7cf64c03.a76a4c",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.network-resource.relationship-list.relationship[$ridx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1908.8826904296875,
- "y": 978.6597290039062,
- "z": "9b26c8a0.a64c1",
+ "x": 1891.8826904296875,
+ "y": 955.6597290039062,
+ "z": "a9486230.abaca8",
"wires": [
[
- "d4a46397.2bb99"
+ "7cc2a602.3c71d"
]
]
},
{
- "id": "d4a46397.2bb99",
+ "id": "7cc2a602.3c71d",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 2115.0001220703125,
- "y": 977,
- "z": "9b26c8a0.a64c1",
+ "x": 2098.0001220703125,
+ "y": 954,
+ "z": "a9486230.abaca8",
"wires": [
[
- "d4ec153c.0cdc78"
+ "f4284fa2.072448"
]
]
},
{
- "id": "d4ec153c.0cdc78",
+ "id": "f4284fa2.072448",
"type": "set",
"name": "set prop.sdncRestApi.thirdpartySdnc.id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.id' value=\"`$tmp.aai.network-resource.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 2133,
- "y": 1056,
- "z": "9b26c8a0.a64c1",
+ "x": 2116,
+ "y": 1033,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "8a87ece8.73f728",
+ "id": "7d0630b8.9b289",
"type": "get-resource",
"name": "get-resource uni",
"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",
"comments": "",
"outputs": 1,
- "x": 1802,
- "y": 689,
- "z": "9b26c8a0.a64c1",
+ "x": 1785,
+ "y": 666,
+ "z": "a9486230.abaca8",
"wires": [
[
- "af655688.304b78"
+ "ad8ad07a.d8a1c8"
]
]
},
{
- "id": "af655688.304b78",
+ "id": "ad8ad07a.d8a1c8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1974,
- "y": 689,
- "z": "9b26c8a0.a64c1",
+ "x": 1957,
+ "y": 666,
+ "z": "a9486230.abaca8",
"wires": [
[
- "91d7b892.85ea"
+ "9b99c47a.3de3d"
]
]
},
{
- "id": "bc6860a4.74042",
+ "id": "8d4b6de9.39d208",
"type": "set",
"name": "set tmp.unis.uni[]",
"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",
"comments": "",
- "x": 2299,
- "y": 645,
- "z": "9b26c8a0.a64c1",
+ "x": 2282,
+ "y": 622,
+ "z": "a9486230.abaca8",
"wires": []
},
{
- "id": "91d7b892.85ea",
+ "id": "9b99c47a.3de3d",
"type": "block",
"name": "block",
"xml": "<block>",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2115,
- "y": 691,
- "z": "9b26c8a0.a64c1",
+ "x": 2098,
+ "y": 668,
+ "z": "a9486230.abaca8",
"wires": [
[
- "bc6860a4.74042",
- "e85654b4.901fd",
- "596112fe.dbc0a4"
+ "8d4b6de9.39d208",
+ "c25132f5.a97a9",
+ "6b1b7759.250c98"
]
]
}
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
index 00000000..669eca8d
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
@@ -0,0 +1,1686 @@
+[
+ {
+ "id": "c95751e3.8ae788",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 133,
+ "y": 58,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "a120d0c2.d16848"
+ ]
+ ]
+ },
+ {
+ "id": "a120d0c2.d16848",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 264.2856903076172,
+ "y": 107.23810863494873,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "e3f08946.3b4f3"
+ ]
+ ]
+ },
+ {
+ "id": "e3f08946.3b4f3",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-activate",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 267.4286193847656,
+ "y": 192.00003242492676,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "da15bb94.f35d78"
+ ]
+ ]
+ },
+ {
+ "id": "da15bb94.f35d78",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 417.238037109375,
+ "y": 321.6666564941406,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "a0613c64.0d3d18",
+ "bec74808.bd7fc8",
+ "6e589ca9.47c63c",
+ "a8ba9960.6cb65",
+ "d40da373.f15598",
+ "358d1f62.e4f2c8",
+ "a739ea85.93c65",
+ "19a0d774.67fb01"
+ ]
+ ]
+ },
+ {
+ "id": "a0613c64.0d3d18",
+ "type": "set",
+ "name": "set vnf-level-oper-status to Active",
+ "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`' />",
+ "comments": "",
+ "x": 760.3849563598633,
+ "y": 558.6705458434299,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "bec74808.bd7fc8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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",
+ "comments": "",
+ "x": 687.5716552734375,
+ "y": 1430.59716796875,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "6e589ca9.47c63c",
+ "type": "set",
+ "name": "set vnf-index and vnf-object-path",
+ "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/'` \" />",
+ "comments": "",
+ "x": 766.5716018676758,
+ "y": 506.5968001158908,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "a8ba9960.6cb65",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 775,
+ "y": 261,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "752da5f3.b4cc4c",
+ "b945aefb.e762f",
+ "8cef6bde.bc7818"
+ ]
+ ]
+ },
+ {
+ "id": "8cef6bde.bc7818",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1167.968994140625,
+ "y": 226.96875,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "5417fb2d.edce0c"
+ ]
+ ]
+ },
+ {
+ "id": "5417fb2d.edce0c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1322.7778816223145,
+ "y": 245.889018535614,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "752da5f3.b4cc4c",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1161.0001335144043,
+ "y": 266.00007152557373,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "5417fb2d.edce0c"
+ ]
+ ]
+ },
+ {
+ "id": "b945aefb.e762f",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1154.0005416870117,
+ "y": 299.000075340271,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "39deabe9.dfa46c"
+ ]
+ ]
+ },
+ {
+ "id": "39deabe9.dfa46c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1301.2700843811035,
+ "y": 299.5547204017639,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "ffe0cb12.24663"
+ ]
+ ]
+ },
+ {
+ "id": "ffe0cb12.24663",
+ "type": "for",
+ "name": "for vidx..service-data.vnfs.vnf_length[]",
+ "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1547.2862014770508,
+ "y": 306.42864084243774,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "d581e614.41ca28"
+ ]
+ ]
+ },
+ {
+ "id": "d581e614.41ca28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1766.6358337402344,
+ "y": 305.96872091293335,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "6cb341ea.d215b"
+ ]
+ ]
+ },
+ {
+ "id": "6cb341ea.d215b",
+ "type": "switchNode",
+ "name": "switch vnfid found",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1920.715431213379,
+ "y": 305.67880296707153,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "7e8f8e16.82297"
+ ]
+ ]
+ },
+ {
+ "id": "7e8f8e16.82297",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2131.6675758361816,
+ "y": 308.571494102478,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "1efc1703.0b69f1"
+ ]
+ ]
+ },
+ {
+ "id": "1efc1703.0b69f1",
+ "type": "set",
+ "name": "set tmp.vidx and ctx.vnf-data",
+ "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
+ "comments": "",
+ "x": 2341.199951171875,
+ "y": 310.32159423828125,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "d40da373.f15598",
+ "type": "save",
+ "name": "update AnAI - vnf-instance.orchestration-status",
+ "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\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 785.9999618530273,
+ "y": 625.0103714736179,
+ "z": "978d88fe.49f858",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "358d1f62.e4f2c8",
+ "type": "set",
+ "name": "copy input data to service data",
+ "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.' />",
+ "comments": "",
+ "x": 765.0000762939453,
+ "y": 456.01033284980804,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "a739ea85.93c65",
+ "type": "switchNode",
+ "name": "switch vnf-level-oper-status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 751.7499389648438,
+ "y": 361.00390270072967,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "c40ac9fb.21106",
+ "625ef5e9.0fa304"
+ ]
+ ]
+ },
+ {
+ "id": "c40ac9fb.21106",
+ "type": "outcome",
+ "name": "outcome Created",
+ "xml": "<outcome value='Created'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1131.5833320617676,
+ "y": 366.1149909766391,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "50da061e.3d2a4"
+ ]
+ ]
+ },
+ {
+ "id": "625ef5e9.0fa304",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1109.583351135254,
+ "y": 416.1150024207309,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "9d9a6d0b.f63a18"
+ ]
+ ]
+ },
+ {
+ "id": "9d9a6d0b.f63a18",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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`\" />",
+ "comments": "",
+ "x": 1269.0831184387207,
+ "y": 419.1150014670566,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "50da061e.3d2a4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1341.889705657959,
+ "y": 377.44016626197845,
+ "z": "978d88fe.49f858",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7a49c1a1.74cca",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 726,
+ "y": 699,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "19a0d774.67fb01",
+ "type": "save",
+ "name": "get service-instance from aai",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 737,
+ "y": 749,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "ef923a7d.6928a8",
+ "981c314b.31ecb8",
+ "65818037.104038"
+ ]
+ ]
+ },
+ {
+ "id": "ef923a7d.6928a8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 953,
+ "y": 714,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "c4da4ce2.e86fd"
+ ]
+ ]
+ },
+ {
+ "id": "981c314b.31ecb8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 962.490966796875,
+ "y": 756.5740356445312,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "2c51a746.8529b8"
+ ]
+ ]
+ },
+ {
+ "id": "65818037.104038",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 951,
+ "y": 803,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "11f3085c.6c3b58"
+ ]
+ ]
+ },
+ {
+ "id": "2c51a746.8529b8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1116.0623779296875,
+ "y": 759.8597717285156,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "11f3085c.6c3b58",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1120,
+ "y": 804,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "c4da4ce2.e86fd",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1150,
+ "y": 710,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "eb26c03f.cde3a"
+ ]
+ ]
+ },
+ {
+ "id": "eb26c03f.cde3a",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1373.33349609375,
+ "y": 709.9999389648438,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "b65d7d38.16fc68"
+ ]
+ ]
+ },
+ {
+ "id": "b65d7d38.16fc68",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1574.0001335144043,
+ "y": 711.000020980835,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "fda5561b.cca698"
+ ]
+ ]
+ },
+ {
+ "id": "edc6ee23.1891a",
+ "type": "save",
+ "name": "get connectivityA from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2179,
+ "y": 599,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "81d6e319.abfd8",
+ "313c36d7.969d3a",
+ "3d5cf6f2.953e9a"
+ ]
+ ]
+ },
+ {
+ "id": "fda5561b.cca698",
+ "type": "switchNode",
+ "name": "switch $rel-index == 0",
+ "xml": "<switch test=\"`$rel-index == 0`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1762,
+ "y": 709,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "44bd1b.3cc782e4",
+ "f85fb605.a76398"
+ ]
+ ]
+ },
+ {
+ "id": "44bd1b.3cc782e4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1985,
+ "y": 599,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "edc6ee23.1891a"
+ ]
+ ]
+ },
+ {
+ "id": "f85fb605.a76398",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1971,
+ "y": 1156,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "7b60b790.bc4c4"
+ ]
+ ]
+ },
+ {
+ "id": "7b60b790.bc4c4",
+ "type": "save",
+ "name": "get connectivityB from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2167,
+ "y": 1156,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "8b96b70e.2f635",
+ "20f5c9d8.832b4e",
+ "f513c25.b78554"
+ ]
+ ]
+ },
+ {
+ "id": "81d6e319.abfd8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2385,
+ "y": 559,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "98b1c0b9.f7f4b"
+ ]
+ ]
+ },
+ {
+ "id": "313c36d7.969d3a",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2385.490966796875,
+ "y": 604.5740356445312,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "d4d990d4.f7b0a8"
+ ]
+ ]
+ },
+ {
+ "id": "3d5cf6f2.953e9a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2383,
+ "y": 648,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "97be5e5a.798428"
+ ]
+ ]
+ },
+ {
+ "id": "98b1c0b9.f7f4b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2557.66650390625,
+ "y": 558,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "2d415746.a7be9",
+ "96d25665.97a75",
+ "2f11d14a.7d5856",
+ "d0c66bee.225358"
+ ]
+ ]
+ },
+ {
+ "id": "d4d990d4.f7b0a8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2548.0623779296875,
+ "y": 604.8597717285156,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "97be5e5a.798428",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2552,
+ "y": 649,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "8b96b70e.2f635",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2387,
+ "y": 1127,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "aff8819.10cbe8"
+ ]
+ ]
+ },
+ {
+ "id": "20f5c9d8.832b4e",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2388.490966796875,
+ "y": 1172.5740356445312,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "cb55df0.f8980a"
+ ]
+ ]
+ },
+ {
+ "id": "f513c25.b78554",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2385,
+ "y": 1218,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "fd8e37a.cf27348"
+ ]
+ ]
+ },
+ {
+ "id": "aff8819.10cbe8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2559.66650390625,
+ "y": 1128,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "490cf25b.6f8bbc",
+ "7192c89b.9fa8a",
+ "83e10369.9e2a48",
+ "8632824a.a7d1a"
+ ]
+ ]
+ },
+ {
+ "id": "cb55df0.f8980a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2550.0623779296875,
+ "y": 1174.8597717285156,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "fd8e37a.cf27348",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2554,
+ "y": 1219,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "2d415746.a7be9",
+ "type": "save",
+ "name": "get vpn-binding-A from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2782,
+ "y": 556,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "2054e000.51325",
+ "24cb3e35.5919ba",
+ "49ca8d9.cac6774"
+ ]
+ ]
+ },
+ {
+ "id": "490cf25b.6f8bbc",
+ "type": "save",
+ "name": "get vpn-binding-B from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2786,
+ "y": 1126,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "9697ed36.e16ad8",
+ "1b825f20.68c389",
+ "214845f.325e5ba"
+ ]
+ ]
+ },
+ {
+ "id": "8505e692.6e58e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3166,
+ "y": 556,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "1e245d3c.a778db",
+ "f09e2868.9a86c8"
+ ]
+ ]
+ },
+ {
+ "id": "1e245d3c.a778db",
+ "type": "set",
+ "name": "set attachment_param for OTN A",
+ "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",
+ "comments": "",
+ "x": 3402,
+ "y": 555,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "2054e000.51325",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2993,
+ "y": 558,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "8505e692.6e58e8"
+ ]
+ ]
+ },
+ {
+ "id": "24cb3e35.5919ba",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2993.490966796875,
+ "y": 603.5740356445312,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "7b7e2f47.0a22b"
+ ]
+ ]
+ },
+ {
+ "id": "49ca8d9.cac6774",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2991,
+ "y": 647,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "f869989c.799108"
+ ]
+ ]
+ },
+ {
+ "id": "f869989c.799108",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3158,
+ "y": 646,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "7b7e2f47.0a22b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3156.0623779296875,
+ "y": 603.8597717285156,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "9697ed36.e16ad8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2993,
+ "y": 1129,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "d0988988.8d0a18"
+ ]
+ ]
+ },
+ {
+ "id": "1b825f20.68c389",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2993.490966796875,
+ "y": 1174.5740356445312,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "875a2548.0cfdc8"
+ ]
+ ]
+ },
+ {
+ "id": "214845f.325e5ba",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2991,
+ "y": 1218,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "5743b059.d8fee"
+ ]
+ ]
+ },
+ {
+ "id": "5743b059.d8fee",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3160,
+ "y": 1219,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "875a2548.0cfdc8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3156.0623779296875,
+ "y": 1174.8597717285156,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "d0988988.8d0a18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3162,
+ "y": 1129,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "7dda745d.4071a4",
+ "6468b39.c45bd4c"
+ ]
+ ]
+ },
+ {
+ "id": "7dda745d.4071a4",
+ "type": "set",
+ "name": "set attachment_param for OTN B",
+ "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",
+ "comments": "",
+ "x": 3398,
+ "y": 1128,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "f09e2868.9a86c8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create OTN tunnel with token",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3480,
+ "y": 601,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "a8d618e8.7c53c8",
+ "84fddcaa.8b02a"
+ ]
+ ]
+ },
+ {
+ "id": "a8d618e8.7c53c8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3790.5,
+ "y": 568,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "6eacb8a7.7aa3d"
+ ]
+ ]
+ },
+ {
+ "id": "84fddcaa.8b02a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3805.5,
+ "y": 633,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "b82bd962.cbba2"
+ ]
+ ]
+ },
+ {
+ "id": "6eacb8a7.7aa3d",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3974.5,
+ "y": 564,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "b82bd962.cbba2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4000,
+ "y": 626,
+ "z": "978d88fe.49f858",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "74c1bd3a.398664",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3775,
+ "y": 1150,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "fc791248.fc4648"
+ ]
+ ]
+ },
+ {
+ "id": "fdc0c54.10c51b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3790,
+ "y": 1215,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "16f26dc2.3147e2"
+ ]
+ ]
+ },
+ {
+ "id": "fc791248.fc4648",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3959,
+ "y": 1146,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "16f26dc2.3147e2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3984.5,
+ "y": 1208,
+ "z": "978d88fe.49f858",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6468b39.c45bd4c",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create OTN tunnel with token",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3464.5,
+ "y": 1183,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "74c1bd3a.398664",
+ "fdc0c54.10c51b8"
+ ]
+ ]
+ },
+ {
+ "id": "2f11d14a.7d5856",
+ "type": "set",
+ "name": "set sotn_value",
+ "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' />",
+ "comments": "",
+ "x": 2766.5,
+ "y": 898,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "d0c66bee.225358",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create ethernet Service without token",
+ "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\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2920.5,
+ "y": 946,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "3db41fa8.f38878",
+ "fbb2729e.49853"
+ ]
+ ]
+ },
+ {
+ "id": "3db41fa8.f38878",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3266,
+ "y": 927,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "f346270d.843368"
+ ]
+ ]
+ },
+ {
+ "id": "fbb2729e.49853",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3270,
+ "y": 967,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "c716fb9b.f3ffc"
+ ]
+ ]
+ },
+ {
+ "id": "f346270d.843368",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3424,
+ "y": 927,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "c716fb9b.f3ffc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3427.5,
+ "y": 967,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "3124f6f9.b8bd1a",
+ "856ae03f.786118"
+ ]
+ ]
+ },
+ {
+ "id": "4c34ee00.d0d39",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "put proper values based on connectivity resource retrieved from AAI",
+ "comments": "",
+ "x": 2764,
+ "y": 854,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "96d25665.97a75",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2816,
+ "y": 780,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "4a3c4a39.62e724",
+ "e52cd6a7.6aeb28",
+ "bb40af56.1cbe7"
+ ]
+ ]
+ },
+ {
+ "id": "4a3c4a39.62e724",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3062,
+ "y": 740,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "9e28f8d9.f64138"
+ ]
+ ]
+ },
+ {
+ "id": "e52cd6a7.6aeb28",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3066,
+ "y": 780,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "916c7538.648ed"
+ ]
+ ]
+ },
+ {
+ "id": "bb40af56.1cbe7",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3058,
+ "y": 820,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "a678576a.20b77"
+ ]
+ ]
+ },
+ {
+ "id": "a678576a.20b77",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3216,
+ "y": 820,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "916c7538.648ed",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3216,
+ "y": 780,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "9e28f8d9.f64138",
+ "type": "set",
+ "name": "set controller data",
+ "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",
+ "comments": "",
+ "x": 3232,
+ "y": 740,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "b0af8ca6.269818",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 2824,
+ "y": 740,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "83e10369.9e2a48",
+ "type": "set",
+ "name": "set sotn_value",
+ "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' />",
+ "comments": "",
+ "x": 2752,
+ "y": 1454,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "8632824a.a7d1a",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create ethernet Service without token",
+ "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\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2906,
+ "y": 1502,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "51ac9234.46b414",
+ "a5f17af5.5d803"
+ ]
+ ]
+ },
+ {
+ "id": "51ac9234.46b414",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3251.5,
+ "y": 1483,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "6f72d542.94964c"
+ ]
+ ]
+ },
+ {
+ "id": "a5f17af5.5d803",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3255.5,
+ "y": 1523,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "2dab9f7d.db59d8"
+ ]
+ ]
+ },
+ {
+ "id": "6f72d542.94964c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3409.5,
+ "y": 1483,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "2dab9f7d.db59d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3413,
+ "y": 1523,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "a1391891.c310f",
+ "ccc1b1df.33721"
+ ]
+ ]
+ },
+ {
+ "id": "5d06869f.f8bcb8",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "put proper values based on connectivity resource retrieved from AAI",
+ "comments": "",
+ "x": 2749.5,
+ "y": 1410,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "7192c89b.9fa8a",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2801.5,
+ "y": 1336,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "e2e5c437.a11d5",
+ "9dfaf98b.e80c9",
+ "dcca7d62.830ee8"
+ ]
+ ]
+ },
+ {
+ "id": "e2e5c437.a11d5",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3047.5,
+ "y": 1296,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "427eefc5.61bc"
+ ]
+ ]
+ },
+ {
+ "id": "9dfaf98b.e80c9",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3051.5,
+ "y": 1336,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "8ac5fa96.75d4b"
+ ]
+ ]
+ },
+ {
+ "id": "dcca7d62.830ee8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3043.5,
+ "y": 1376,
+ "z": "978d88fe.49f858",
+ "wires": [
+ [
+ "39cf0825.d43ae"
+ ]
+ ]
+ },
+ {
+ "id": "39cf0825.d43ae",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3201.5,
+ "y": 1376,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "8ac5fa96.75d4b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3201.5,
+ "y": 1336,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "427eefc5.61bc",
+ "type": "set",
+ "name": "set controller data",
+ "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",
+ "comments": "",
+ "x": 3217.5,
+ "y": 1296,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "74572637.f29d7",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 2809.5,
+ "y": 1296,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "135b0ed7.2faa91",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "How to know which domain's (A or B) controller is bein retrieved?",
+ "comments": "",
+ "x": 2744,
+ "y": 1256,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "a58ac83b.b037d",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "How to know which domain's (A or B) controller is bein retrieved?",
+ "comments": "",
+ "x": 2756,
+ "y": 700,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "3124f6f9.b8bd1a",
+ "type": "save",
+ "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3756,
+ "y": 967,
+ "z": "978d88fe.49f858",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "554a4766.c457a",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
+ "comments": "",
+ "x": 3620,
+ "y": 926,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "a1391891.c310f",
+ "type": "save",
+ "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3753,
+ "y": 1522,
+ "z": "978d88fe.49f858",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90d3682d.e54348",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
+ "comments": "",
+ "x": 3611,
+ "y": 1480,
+ "z": "978d88fe.49f858",
+ "wires": []
+ },
+ {
+ "id": "856ae03f.786118",
+ "type": "save",
+ "name": "update connectivity resource in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3683,
+ "y": 1013,
+ "z": "978d88fe.49f858",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ccc1b1df.33721",
+ "type": "save",
+ "name": "update connectivity resource in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3682,
+ "y": 1571,
+ "z": "978d88fe.49f858",
+ "wires": [
+ []
+ ]
+ }
+] \ 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
index 00000000..967f65e1
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json
@@ -0,0 +1,2149 @@
+[
+ {
+ "id": "c7ab28db.5fa9f8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 108,
+ "y": 69,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "b4f2bafa.fe95a"
+ ]
+ ]
+ },
+ {
+ "id": "b4f2bafa.fe95a",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 392.2856903076172,
+ "y": 130.23810863494873,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "5dd33274.e7d4cc"
+ ]
+ ]
+ },
+ {
+ "id": "5dd33274.e7d4cc",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-allocate",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 398.42860412597656,
+ "y": 215.00003051757812,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "28d22516.fc87aa"
+ ]
+ ]
+ },
+ {
+ "id": "28d22516.fc87aa",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 768.238037109375,
+ "y": 239.66668701171875,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "7c0b6069.496758",
+ "11269eb9.b73d59",
+ "b98a68a9.509cb8",
+ "18445def.73c80a",
+ "703f0f3.2526ff",
+ "d4cb43.708284c",
+ "9006694b.0db0e8",
+ "e3c7ee55.46e6f8",
+ "efeb4f56.d9cc7",
+ "4948ae3d.2fb728",
+ "e0ae06d.cc68bf8",
+ "fd6957d.13c0a28",
+ "8c69784a.6fe62",
+ "e181a758.620248"
+ ]
+ ]
+ },
+ {
+ "id": "11269eb9.b73d59",
+ "type": "set",
+ "name": "set vnf-level-oper-status to Created",
+ "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",
+ "comments": "",
+ "x": 1190.3848495483398,
+ "y": 603.6706197531894,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "7c0b6069.496758",
+ "type": "set",
+ "name": "copy input data to service data",
+ "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",
+ "comments": "",
+ "x": 1182.238037109375,
+ "y": 498.6668718131259,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "703f0f3.2526ff",
+ "type": "execute",
+ "name": "execute generate-vnf-index",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1170.5715408325195,
+ "y": 448.3334558280185,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4948ae3d.2fb728",
+ "type": "set",
+ "name": "set vnf-index to service data",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-id`' />\n",
+ "comments": "",
+ "x": 1181.5716171264648,
+ "y": 555.3334596427158,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "b98a68a9.509cb8",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1197.5713577270508,
+ "y": 118.33337858039886,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "45cce5a8.451aac",
+ "48e9b931.dabab8"
+ ]
+ ]
+ },
+ {
+ "id": "45cce5a8.451aac",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1432.285743713379,
+ "y": 113.47619893867522,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "6299edd9.775e24"
+ ]
+ ]
+ },
+ {
+ "id": "6299edd9.775e24",
+ "type": "set",
+ "name": "set vnf-index=0",
+ "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
+ "comments": "",
+ "x": 1592.5714492797852,
+ "y": 113.4762904914096,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "48e9b931.dabab8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1428.714282989502,
+ "y": 146.76203039009124,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "777ae1e9.6bbca"
+ ]
+ ]
+ },
+ {
+ "id": "6abef48d.2c4e6c",
+ "type": "set",
+ "name": "set vnf-index = vnf_length",
+ "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
+ "comments": "",
+ "x": 1821.5715255737305,
+ "y": 125.04775598365813,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "8a52abb7.25d258",
+ "type": "for",
+ "name": "for each existing VNF",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1810.000144958496,
+ "y": 160.0477278502658,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "1ea03c6.7395dc4"
+ ]
+ ]
+ },
+ {
+ "id": "777ae1e9.6bbca",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1563.428565979004,
+ "y": 148.76199987251312,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "6abef48d.2c4e6c",
+ "8a52abb7.25d258"
+ ]
+ ]
+ },
+ {
+ "id": "1ea03c6.7395dc4",
+ "type": "switchNode",
+ "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2203.2858810424805,
+ "y": 160.6192119391635,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "95d50976.54cf58"
+ ]
+ ]
+ },
+ {
+ "id": "95d50976.54cf58",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2484.5715827941895,
+ "y": 159.1906173499301,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "19c5d87f.a3e7b"
+ ]
+ ]
+ },
+ {
+ "id": "78e378bf.79cf5",
+ "type": "comment",
+ "name": "make sure this vnf-id doesn't exist already",
+ "info": "",
+ "comments": "",
+ "x": 2172.428497314453,
+ "y": 124.19060399848968,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "18445def.73c80a",
+ "type": "set",
+ "name": "set new vnf_length",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
+ "comments": "",
+ "x": 1128.571533203125,
+ "y": 396.33343505859375,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "d4cb43.708284c",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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",
+ "comments": "",
+ "x": 1124.571533203125,
+ "y": 1344.5969848632812,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "efeb4f56.d9cc7",
+ "type": "save",
+ "name": "save service relationship in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1162.2382736206055,
+ "y": 815.5968644889072,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9006694b.0db0e8",
+ "type": "set",
+ "name": "set vnf-index and vnf-object-path",
+ "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/'` \" />",
+ "comments": "",
+ "x": 1183.571533203125,
+ "y": 644.5968902381137,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "19c5d87f.a3e7b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2613.142951965332,
+ "y": 210.19063165504485,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "e3c7ee55.46e6f8",
+ "type": "save",
+ "name": "save AnAI - vnf-instance.orchestration-status",
+ "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`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1238.5458374023438,
+ "y": 754.2471072943881,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8b2c577f.aa706",
+ "type": "comment",
+ "name": "TODO: change AAI models",
+ "info": "",
+ "comments": "",
+ "x": 1172.1820983886719,
+ "y": 713.9743230612949,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "d58f334a.ba5338",
+ "type": "execute",
+ "name": "execute split parameterName",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1598.7395858764648,
+ "y": 207.75002291519195,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "889ccd2d.4a8fe8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1402.483383178711,
+ "y": 212.00189593154937,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "d58f334a.ba5338",
+ "e9083033.2291c8"
+ ]
+ ]
+ },
+ {
+ "id": "e0ae06d.cc68bf8",
+ "type": "for",
+ "name": "for loop idx - VNF input parameters",
+ "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1187.7050399780273,
+ "y": 214.44631197769195,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "889ccd2d.4a8fe8"
+ ]
+ ]
+ },
+ {
+ "id": "fd6957d.13c0a28",
+ "type": "set",
+ "name": "set vnf-request-input.",
+ "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",
+ "comments": "",
+ "x": 1144.7046737670898,
+ "y": 284.77101900894195,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "e9083033.2291c8",
+ "type": "set",
+ "name": "set parameterName",
+ "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",
+ "comments": "",
+ "x": 1575.7395858764648,
+ "y": 253.75002291519195,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "8c69784a.6fe62",
+ "type": "for",
+ "name": "for each sdwan-get-request-input-param",
+ "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1200.7395858764648,
+ "y": 336.75002291519195,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "ab7df566.3e05d"
+ ]
+ ]
+ },
+ {
+ "id": "ab7df566.3e05d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1426.9722518920898,
+ "y": 335.09377291519195,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "352dca87.707f0e"
+ ]
+ ]
+ },
+ {
+ "id": "352dca87.707f0e",
+ "type": "switchNode",
+ "name": "switch vnf name",
+ "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1583.4722518920898,
+ "y": 333.0938339503482,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "590b3579.cf8c54"
+ ]
+ ]
+ },
+ {
+ "id": "590b3579.cf8c54",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1744.4726181030273,
+ "y": 333.09389498550445,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "63083064.a23a18"
+ ]
+ ]
+ },
+ {
+ "id": "63083064.a23a18",
+ "type": "set",
+ "name": "set vnf name",
+ "xml": "<set>\n<parameter name='prop.vnfName' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1902.4727401733398,
+ "y": 331.6939316065982,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "e181a758.620248",
+ "type": "save",
+ "name": "get service-instance from aai",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1155,
+ "y": 940,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "5d430eb5.2b236",
+ "4db06806.f53418",
+ "95ae5b5a.c22a4"
+ ]
+ ]
+ },
+ {
+ "id": "5d430eb5.2b236",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1371,
+ "y": 905,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "53896828.686ee8"
+ ]
+ ]
+ },
+ {
+ "id": "4db06806.f53418",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1380.490966796875,
+ "y": 947.5740356445312,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "2be30b71.aee02c"
+ ]
+ ]
+ },
+ {
+ "id": "95ae5b5a.c22a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1369,
+ "y": 994,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "ecad310e.0677"
+ ]
+ ]
+ },
+ {
+ "id": "53896828.686ee8",
+ "type": "switchNode",
+ "name": "switch allotted-resources_length != 0",
+ "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1610,
+ "y": 902,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "a4b1136f.62ed08",
+ "46b85697.e69b9"
+ ]
+ ]
+ },
+ {
+ "id": "2be30b71.aee02c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1534.0623779296875,
+ "y": 950.8597717285156,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "ecad310e.0677",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1538,
+ "y": 995,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "a019135.4f8ccf",
+ "type": "set",
+ "name": "set the 1st allotted-resource-id",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources[0]`\" />\n\n\n",
+ "comments": "",
+ "x": 2009,
+ "y": 969,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "a4b1136f.62ed08",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1823,
+ "y": 926,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "cb1b8f06.47ef2"
+ ]
+ ]
+ },
+ {
+ "id": "46b85697.e69b9",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1825,
+ "y": 866,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "67d7c08a.0b2928",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 1144,
+ "y": 890,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "457beb03.a98104",
+ "type": "switchNode",
+ "name": "switch logical-links_length != 0",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.logical-links_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1270,
+ "y": 1266,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "643d2cea.4605b4",
+ "7caeb522.7a961c"
+ ]
+ ]
+ },
+ {
+ "id": "643d2cea.4605b4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1464,
+ "y": 1400,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "152d2d7d.5e3893"
+ ]
+ ]
+ },
+ {
+ "id": "7caeb522.7a961c",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1467,
+ "y": 1354,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "814386d7.12d29",
+ "type": "set",
+ "name": "set the 1st logical-link-name",
+ "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.logical-links[0]`\" />\n\n\n",
+ "comments": "",
+ "x": 1804,
+ "y": 1372,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "cb1b8f06.47ef2",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1808,
+ "y": 1014,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "a019135.4f8ccf",
+ "e575462e.50d5b"
+ ]
+ ]
+ },
+ {
+ "id": "152d2d7d.5e3893",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1595,
+ "y": 1405,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "814386d7.12d29",
+ "fecafec9.0d1c5"
+ ]
+ ]
+ },
+ {
+ "id": "67195ddd.58b94c",
+ "type": "set",
+ "name": "set EndpointA",
+ "xml": "<set>\n<parameter name='endpointA' value=\"`$tmp.aai.logical-link.name`\" />\n\n\n",
+ "comments": "",
+ "x": 2350,
+ "y": 1468,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "3cb07e0e.1a73c2",
+ "type": "set",
+ "name": "set EndpointB",
+ "xml": "<set>\n<parameter name='endpointB' value=\"`$tmp.aai.logical-link.name2`\" />\n\n\n",
+ "comments": "",
+ "x": 2351,
+ "y": 1515,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "e575462e.50d5b",
+ "type": "save",
+ "name": "get allotted-resource from aai",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2012,
+ "y": 1044,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "9038c1c3.67b67",
+ "d5fe3cc1.f1ab58",
+ "3a3c5476.f230dc"
+ ]
+ ]
+ },
+ {
+ "id": "9038c1c3.67b67",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2228,
+ "y": 1111,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "457beb03.a98104"
+ ]
+ ]
+ },
+ {
+ "id": "d5fe3cc1.f1ab58",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2228.490966796875,
+ "y": 1010.573974609375,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "d1ddfc7b.e8b11"
+ ]
+ ]
+ },
+ {
+ "id": "3a3c5476.f230dc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2224,
+ "y": 1060,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "5d76fda0.b3386c"
+ ]
+ ]
+ },
+ {
+ "id": "d1ddfc7b.e8b11",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2377.0625,
+ "y": 1009.8597412109375,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "5d76fda0.b3386c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2367,
+ "y": 1060,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "9b0fc370.e7b168",
+ "type": "comment",
+ "name": "Question?",
+ "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",
+ "comments": "",
+ "x": 1837,
+ "y": 1325,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "fecafec9.0d1c5",
+ "type": "save",
+ "name": "get logical-link from aai",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1791,
+ "y": 1444,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "c3decf76.de238",
+ "cbe9f0d3.03cae",
+ "f1d67d6b.7b18f8"
+ ]
+ ]
+ },
+ {
+ "id": "cbe9f0d3.03cae",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2056.490966796875,
+ "y": 1366.573974609375,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "df9ad0cd.393e9"
+ ]
+ ]
+ },
+ {
+ "id": "f1d67d6b.7b18f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2045,
+ "y": 1411,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "387801a6.c55046"
+ ]
+ ]
+ },
+ {
+ "id": "df9ad0cd.393e9",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2205.0625,
+ "y": 1366.8597412109375,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "387801a6.c55046",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2204,
+ "y": 1411,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "c3decf76.de238",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2052,
+ "y": 1490,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "85643202.66a9f8"
+ ]
+ ]
+ },
+ {
+ "id": "85643202.66a9f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2191,
+ "y": 1490,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "67195ddd.58b94c",
+ "3cb07e0e.1a73c2",
+ "e13bd0db.73d81",
+ "44095776.64c828",
+ "3eb8bee0.c23c0a",
+ "e199c2c7.64ce48",
+ "4e9e1552.e1012c",
+ "879bdb34.60c748",
+ "ccc984ea.946438",
+ "3824458b.0c70c2"
+ ]
+ ]
+ },
+ {
+ "id": "e13bd0db.73d81",
+ "type": "save",
+ "name": "get EndpointA from aai",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2399,
+ "y": 1573,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "6b7f9293.5e4b3c",
+ "271678cd.b7a718",
+ "fda0cd5e.c574c8"
+ ]
+ ]
+ },
+ {
+ "id": "44095776.64c828",
+ "type": "save",
+ "name": "get EndpointB from aai",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2413,
+ "y": 1845,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "cac7dfa0.02314",
+ "cd4a18c4.24c5e8",
+ "b2a92c1e.f10cd8"
+ ]
+ ]
+ },
+ {
+ "id": "6b7f9293.5e4b3c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2621,
+ "y": 1455,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "6df2f8ce.f4df28"
+ ]
+ ]
+ },
+ {
+ "id": "271678cd.b7a718",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2616.509033203125,
+ "y": 1504.426025390625,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "a0e96fb5.85588"
+ ]
+ ]
+ },
+ {
+ "id": "fda0cd5e.c574c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2620.509033203125,
+ "y": 1555.426025390625,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "57154704.0e805"
+ ]
+ ]
+ },
+ {
+ "id": "6df2f8ce.f4df28",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2769.571533203125,
+ "y": 1454.2857666015625,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "a0e96fb5.85588",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2759.509033203125,
+ "y": 1504.426025390625,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "cac7dfa0.02314",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2636,
+ "y": 1815,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "857e5bf7.e021b"
+ ]
+ ]
+ },
+ {
+ "id": "cd4a18c4.24c5e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2631.509033203125,
+ "y": 1864.426025390625,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "68a88270.f542bc"
+ ]
+ ]
+ },
+ {
+ "id": "b2a92c1e.f10cd8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2635.509033203125,
+ "y": 1915.426025390625,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "4220b72.dbed048"
+ ]
+ ]
+ },
+ {
+ "id": "857e5bf7.e021b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2784.571533203125,
+ "y": 1814.2857666015625,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "68a88270.f542bc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2774.509033203125,
+ "y": 1864.426025390625,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "404469ae.c8a71",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.aai.endpointA.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2993,
+ "y": 1556,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "ca5e0e2a.2b9fd8"
+ ]
+ ]
+ },
+ {
+ "id": "ca5e0e2a.2b9fd8",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.endpointA.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3206.3334426879883,
+ "y": 1555.9999389648438,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "20488961.beb436"
+ ]
+ ]
+ },
+ {
+ "id": "20488961.beb436",
+ "type": "outcome",
+ "name": "p-interface",
+ "xml": "<outcome value='p-interface'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3378.0000801086426,
+ "y": 1556.000020980835,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "3536184f.ec7b9"
+ ]
+ ]
+ },
+ {
+ "id": "6bc94704.d03de",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4040.66650390625,
+ "y": 1548,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "b0648d5.a5c8bf",
+ "502adfb6.94aa38",
+ "6f6a8b61.fa1ffc",
+ "24d9a7fc.8cd3f8"
+ ]
+ ]
+ },
+ {
+ "id": "3536184f.ec7b9",
+ "type": "save",
+ "name": "get p-interface-src from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3625,
+ "y": 1554,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "d439294.8fb6358",
+ "5c59ee09.9262d",
+ "f82521c.310fee"
+ ]
+ ]
+ },
+ {
+ "id": "d439294.8fb6358",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3868,
+ "y": 1549,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "6bc94704.d03de"
+ ]
+ ]
+ },
+ {
+ "id": "f82521c.310fee",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3877.490966796875,
+ "y": 1591.5740356445312,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "da7fc859.beff18"
+ ]
+ ]
+ },
+ {
+ "id": "5c59ee09.9262d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3866,
+ "y": 1638,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "872414be.4b5f28"
+ ]
+ ]
+ },
+ {
+ "id": "da7fc859.beff18",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4031.0623779296875,
+ "y": 1594.8597717285156,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "872414be.4b5f28",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4035,
+ "y": 1639,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "57154704.0e805",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2782,
+ "y": 1557,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "404469ae.c8a71"
+ ]
+ ]
+ },
+ {
+ "id": "85084de0.cfb7d",
+ "type": "comment",
+ "name": "Question?",
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
+ "comments": "",
+ "x": 3568,
+ "y": 1507,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "4220b72.dbed048",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2786,
+ "y": 1917,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "8dfc41f6.4f4f"
+ ]
+ ]
+ },
+ {
+ "id": "8dfc41f6.4f4f",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.aai.endpointB.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2997,
+ "y": 1916,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "5452c2da.11d5dc"
+ ]
+ ]
+ },
+ {
+ "id": "5452c2da.11d5dc",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.endpointB.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3210.3334426879883,
+ "y": 1915.9999389648438,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "cb7a504b.d626a"
+ ]
+ ]
+ },
+ {
+ "id": "cb7a504b.d626a",
+ "type": "outcome",
+ "name": "p-interface",
+ "xml": "<outcome value='p-interface'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3382.0000801086426,
+ "y": 1916.000020980835,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "8fa1d382.ebbb3"
+ ]
+ ]
+ },
+ {
+ "id": "825ff590.84496",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4044.66650390625,
+ "y": 1908,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "674b1eb0.174b2",
+ "f4b1b11a.276db8",
+ "485a23dc.9461bc",
+ "a54100e4.bdfd8"
+ ]
+ ]
+ },
+ {
+ "id": "8fa1d382.ebbb3",
+ "type": "save",
+ "name": "get p-interface-dst from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3629,
+ "y": 1914,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "e30b52f2.d3bd18",
+ "2a8a7b32.c6c034",
+ "95395b70.5ce658"
+ ]
+ ]
+ },
+ {
+ "id": "e30b52f2.d3bd18",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3872,
+ "y": 1909,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "825ff590.84496"
+ ]
+ ]
+ },
+ {
+ "id": "95395b70.5ce658",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3881.490966796875,
+ "y": 1951.5740356445312,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "ec0be134.e7e7f8"
+ ]
+ ]
+ },
+ {
+ "id": "2a8a7b32.c6c034",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3870,
+ "y": 1998,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "5f44beb8.f571"
+ ]
+ ]
+ },
+ {
+ "id": "ec0be134.e7e7f8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4035.0623779296875,
+ "y": 1954.8597717285156,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "5f44beb8.f571",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4039,
+ "y": 1999,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "18f16001.6c653",
+ "type": "comment",
+ "name": "Question?",
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
+ "comments": "",
+ "x": 3572,
+ "y": 1867,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "b0648d5.a5c8bf",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 4301,
+ "y": 1546,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "6bf39cd9.c078dc",
+ "1f241f8d.ded588"
+ ]
+ ]
+ },
+ {
+ "id": "1f241f8d.ded588",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4524,
+ "y": 1501,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "711e2d50.cbfec4"
+ ]
+ ]
+ },
+ {
+ "id": "6bf39cd9.c078dc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4526,
+ "y": 1565,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "d87f8a80.c2edb8"
+ ]
+ ]
+ },
+ {
+ "id": "8f149145.0a9d38",
+ "type": "set",
+ "name": "set ltpId",
+ "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",
+ "comments": "",
+ "x": 4859,
+ "y": 1459,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "d87f8a80.c2edb8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 4685,
+ "y": 1584,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "711e2d50.cbfec4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4689,
+ "y": 1498,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "8f149145.0a9d38",
+ "ed673da0.d5043"
+ ]
+ ]
+ },
+ {
+ "id": "ed673da0.d5043",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",
+ "comments": "",
+ "x": 4860,
+ "y": 1564,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "5bd7fa96.a6e064",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "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",
+ "comments": "",
+ "x": 4859,
+ "y": 1525,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "6f6a8b61.fa1ffc",
+ "type": "save",
+ "name": "save connectivity resource in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 4303,
+ "y": 1705,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "502adfb6.94aa38",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domainA",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainA-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4348,
+ "y": 1615,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2f48d78c.e343f8",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "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.",
+ "comments": "",
+ "x": 4238,
+ "y": 1671,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "674b1eb0.174b2",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 4299,
+ "y": 1904,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "bf4f2038.8bcc6",
+ "816a3f3d.c967d"
+ ]
+ ]
+ },
+ {
+ "id": "816a3f3d.c967d",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4522,
+ "y": 1859,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "bbb7eb1.f117918"
+ ]
+ ]
+ },
+ {
+ "id": "bf4f2038.8bcc6",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4524,
+ "y": 1923,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "3fe77c2.445af04"
+ ]
+ ]
+ },
+ {
+ "id": "2024c7b6.3996d",
+ "type": "set",
+ "name": "set ltpId",
+ "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",
+ "comments": "",
+ "x": 4857,
+ "y": 1817,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "3fe77c2.445af04",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 4683,
+ "y": 1942,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "bbb7eb1.f117918",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4687,
+ "y": 1856,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "2024c7b6.3996d",
+ "e7f53e76.5ddf"
+ ]
+ ]
+ },
+ {
+ "id": "e7f53e76.5ddf",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",
+ "comments": "",
+ "x": 4858,
+ "y": 1922,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "71ef13be.57065c",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "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",
+ "comments": "",
+ "x": 4857,
+ "y": 1883,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "485a23dc.9461bc",
+ "type": "save",
+ "name": "save connectivity resource in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 4301,
+ "y": 2063,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f4b1b11a.276db8",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domainB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4346,
+ "y": 1973,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "985d1e1b.82a998",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "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.",
+ "comments": "",
+ "x": 4236,
+ "y": 2029,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "3eb8bee0.c23c0a",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2518,
+ "y": 2064,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e199c2c7.64ce48",
+ "type": "set",
+ "name": "set attachment_param",
+ "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",
+ "comments": "",
+ "x": 2381,
+ "y": 2024,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "50e758b0.2c60a",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "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)",
+ "comments": "",
+ "x": 2353,
+ "y": 1988,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "4e9e1552.e1012c",
+ "type": "save",
+ "name": "save vpn-binding A resource (aka. OTN domainA) in AAI",
+ "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`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483,
+ "y": 2168,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "eee018f4.9abed"
+ ]
+ ]
+ },
+ {
+ "id": "879bdb34.60c748",
+ "type": "save",
+ "name": "save connectivity-A relationship to vpn-binding-A, in AAI",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2481.5,
+ "y": 2211,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5ac2c26e.60f274",
+ "type": "save",
+ "name": "save srcLTP relationship in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3134.5,
+ "y": 2149,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "481b1bdc.29fad4",
+ "type": "save",
+ "name": "save dstLTP relationship in AAI",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3136.5,
+ "y": 2188,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "24d9a7fc.8cd3f8",
+ "type": "save",
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
+ "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`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 4431,
+ "y": 1753,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a54100e4.bdfd8",
+ "type": "save",
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
+ "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`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 4428,
+ "y": 2128,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eee018f4.9abed",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2783,
+ "y": 2167,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "60c98c50.d9d324"
+ ]
+ ]
+ },
+ {
+ "id": "60c98c50.d9d324",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2923.500244140625,
+ "y": 2168.25390625,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "99e923c8.5700b8",
+ "type": "comment",
+ "name": "TODO: FIXME: do we need this relationship?",
+ "info": "",
+ "comments": "",
+ "x": 3171,
+ "y": 2108,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "debe7c1a.c25a08",
+ "type": "comment",
+ "name": "TODO: FIXME: put proper values",
+ "info": "",
+ "comments": "",
+ "x": 2409,
+ "y": 2130,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "ccc984ea.946438",
+ "type": "save",
+ "name": "save vpn-binding B resource (aka. OTN domainB) in AAI",
+ "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`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2465,
+ "y": 2348,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "de2c330e.390d88"
+ ]
+ ]
+ },
+ {
+ "id": "ff4306de.40969",
+ "type": "comment",
+ "name": "TODO: FIXME: do we need this relationship?",
+ "info": "",
+ "comments": "",
+ "x": 3153,
+ "y": 2288,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "bddb99db.4eee1",
+ "type": "save",
+ "name": "save srcLTP relationship in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3116.5,
+ "y": 2329,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e5e60ab.6592a8",
+ "type": "save",
+ "name": "save dstLTP relationship in AAI",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3118.5,
+ "y": 2368,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "82297458.0d3c48",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2905.500244140625,
+ "y": 2348.25390625,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "de2c330e.390d88",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2765,
+ "y": 2347,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ [
+ "82297458.0d3c48"
+ ]
+ ]
+ },
+ {
+ "id": "8b5978da.cf55b8",
+ "type": "comment",
+ "name": "TODO: FIXME: put proper values",
+ "info": "",
+ "comments": "",
+ "x": 2386,
+ "y": 2308,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "3824458b.0c70c2",
+ "type": "save",
+ "name": "save connectivity-B relationship to vpn-binding-B, in AAI",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2463.5,
+ "y": 2388,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ed749360.08754",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "set attachment param and send request to NCE-T\nfor bandwidth matrix\nmay require a new template for JSON body",
+ "comments": "",
+ "x": 2337,
+ "y": 2471,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "97832dc3.63313",
+ "type": "set",
+ "name": "set attachment_param",
+ "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",
+ "comments": "",
+ "x": 2360,
+ "y": 2511,
+ "z": "5b68e0d.bd97b2",
+ "wires": []
+ },
+ {
+ "id": "f27e6517.ff7968",
+ "type": "execute",
+ "name": "get parent-service-data tmp.ar-url-psd",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 5071,
+ "y": 1523,
+ "z": "5b68e0d.bd97b2",
+ "wires": [
+ []
+ ]
+ }
+] \ 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
index 00000000..fa7b88c4
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json
@@ -0,0 +1,1362 @@
+[
+ {
+ "id": "303f7566.d219ba",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 110,
+ "y": 318,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "f39490a3.b09b28"
+ ]
+ ]
+ },
+ {
+ "id": "f39490a3.b09b28",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 394.2856903076172,
+ "y": 379.23810863494873,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "72c32dea.176324"
+ ]
+ ]
+ },
+ {
+ "id": "72c32dea.176324",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-deactivate",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 400.42860412597656,
+ "y": 464.0000305175781,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "d12dc6f7.97bdd"
+ ]
+ ]
+ },
+ {
+ "id": "d12dc6f7.97bdd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 596.2380447387695,
+ "y": 622.6666681496426,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "6aad2197.a72ef",
+ "1be9220f.ba6ca6",
+ "7fd5d3ea.13b334",
+ "5cda8af7.9a0634",
+ "225a4cf6.f0c67c",
+ "a4c45de.b22e5a",
+ "d2fb34de.34839",
+ "2fc6eaae.5fdc7e"
+ ]
+ ]
+ },
+ {
+ "id": "6aad2197.a72ef",
+ "type": "set",
+ "name": "set vnf-level-oper-status to PendingDelete",
+ "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`' />",
+ "comments": "",
+ "x": 1004.3849029541016,
+ "y": 771.670627951622,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "1be9220f.ba6ca6",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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",
+ "comments": "",
+ "x": 916.5716552734375,
+ "y": 1843.5970458984375,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "7fd5d3ea.13b334",
+ "type": "set",
+ "name": "set vnf-index and vnf-object-path",
+ "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/'` \" />",
+ "comments": "",
+ "x": 981.5716247558594,
+ "y": 727.5968955755234,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "5cda8af7.9a0634",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1026.0000610351562,
+ "y": 512.000005456619,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "183040b7.7ccbff",
+ "71cafe22.189b2",
+ "b0ad485b.8627c"
+ ]
+ ]
+ },
+ {
+ "id": "b0ad485b.8627c",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1284.9689559936523,
+ "y": 473.96876499336213,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "f9a51cd3.102398"
+ ]
+ ]
+ },
+ {
+ "id": "f9a51cd3.102398",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1439.7778434753418,
+ "y": 492.88903352897614,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "183040b7.7ccbff",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1278.0000953674316,
+ "y": 513.0000865189359,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "f9a51cd3.102398"
+ ]
+ ]
+ },
+ {
+ "id": "71cafe22.189b2",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1271.000503540039,
+ "y": 546.0000903336331,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "f6c4231c.6894e8"
+ ]
+ ]
+ },
+ {
+ "id": "f6c4231c.6894e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1418.2700462341309,
+ "y": 546.554735395126,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "541e7856.d1e2",
+ "8337a3da.3c8e38"
+ ]
+ ]
+ },
+ {
+ "id": "541e7856.d1e2",
+ "type": "for",
+ "name": "for vidx..service-data.vnfs.vnf_length[]",
+ "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1664.2861633300781,
+ "y": 553.4286558357999,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "ebbd7e9e.ba96c8"
+ ]
+ ]
+ },
+ {
+ "id": "ebbd7e9e.ba96c8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1883.6357955932617,
+ "y": 552.9687359062955,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "436917e7.e9b6a"
+ ]
+ ]
+ },
+ {
+ "id": "436917e7.e9b6a",
+ "type": "switchNode",
+ "name": "switch vnfid found",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2037.7153930664062,
+ "y": 552.6788179604337,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "27314ab3.a1187e"
+ ]
+ ]
+ },
+ {
+ "id": "27314ab3.a1187e",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2213.6675148010254,
+ "y": 552.5715000359342,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "cf77593a.1343d8"
+ ]
+ ]
+ },
+ {
+ "id": "cf77593a.1343d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2362.312973022461,
+ "y": 540.97913000267,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "f0ff74da.16b248"
+ ]
+ ]
+ },
+ {
+ "id": "f0ff74da.16b248",
+ "type": "set",
+ "name": "set tmp.vidx and ctx.vnf-data",
+ "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
+ "comments": "",
+ "x": 2624.1997680664062,
+ "y": 518.3215563027188,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "8337a3da.3c8e38",
+ "type": "switchNode",
+ "name": "switch tmp.vidx ",
+ "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1607.0000228881836,
+ "y": 607.99999353569,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "1cd8ba9c.bf5235"
+ ]
+ ]
+ },
+ {
+ "id": "1cd8ba9c.bf5235",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1762.4286499023438,
+ "y": 607.5713770119473,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "6dd6d49d.d00eec"
+ ]
+ ]
+ },
+ {
+ "id": "6dd6d49d.d00eec",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1907.8573913574219,
+ "y": 607.7143146721646,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "225a4cf6.f0c67c",
+ "type": "switchNode",
+ "name": "switch vnf-level-oper-status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 975.0000762939453,
+ "y": 620.8890204429626,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "e0bfe23d.068ad8",
+ "3e0c4d79.12e802"
+ ]
+ ]
+ },
+ {
+ "id": "e0bfe23d.068ad8",
+ "type": "outcome",
+ "name": "outcome Active",
+ "xml": "<outcome value='Active'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1220.8333702087402,
+ "y": 622.0001182556152,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "40413c0b.9420dc"
+ ]
+ ]
+ },
+ {
+ "id": "40413c0b.9420dc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1434.139762878418,
+ "y": 631.3253078460693,
+ "z": "15891279.d6b57e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3e0c4d79.12e802",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1198.8333892822266,
+ "y": 672.000129699707,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "fc734294.cf7788"
+ ]
+ ]
+ },
+ {
+ "id": "fc734294.cf7788",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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`\" />",
+ "comments": "",
+ "x": 1358.3331565856934,
+ "y": 675.0001287460327,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "a4c45de.b22e5a",
+ "type": "set",
+ "name": "copy input data to service data",
+ "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.' />",
+ "comments": "",
+ "x": 984.0065612792969,
+ "y": 680.010435461998,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "d2fb34de.34839",
+ "type": "save",
+ "name": "update AnAI - vnf-instance.orchestration-status",
+ "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\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1026.0064239501953,
+ "y": 826.0105141401291,
+ "z": "15891279.d6b57e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5dd794c8.fb268c",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 967,
+ "y": 898,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "2fc6eaae.5fdc7e",
+ "type": "save",
+ "name": "get service-instance from aai",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 978,
+ "y": 948,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "aebcc6b7.4bd97",
+ "534659e3.16c99",
+ "4b75ad0e.b2264c"
+ ]
+ ]
+ },
+ {
+ "id": "aebcc6b7.4bd97",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1194,
+ "y": 913,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "dfa58322.db6e7"
+ ]
+ ]
+ },
+ {
+ "id": "534659e3.16c99",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1203.490966796875,
+ "y": 955.5740356445312,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "7aae8b9.3267cf4"
+ ]
+ ]
+ },
+ {
+ "id": "4b75ad0e.b2264c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1192,
+ "y": 1002,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "47847ce9.cdac14"
+ ]
+ ]
+ },
+ {
+ "id": "7aae8b9.3267cf4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1357.0623779296875,
+ "y": 958.8597717285156,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "47847ce9.cdac14",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1361,
+ "y": 1003,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "dfa58322.db6e7",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1391,
+ "y": 909,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "1fcd5169.0fe3ef"
+ ]
+ ]
+ },
+ {
+ "id": "1fcd5169.0fe3ef",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1614.33349609375,
+ "y": 908.9999389648438,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "b3fa3516.3c5f7"
+ ]
+ ]
+ },
+ {
+ "id": "b3fa3516.3c5f7",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1810,
+ "y": 911,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "8171ffc1.700ce8"
+ ]
+ ]
+ },
+ {
+ "id": "8171ffc1.700ce8",
+ "type": "switchNode",
+ "name": "switch $rel-index == 0",
+ "xml": "<switch test=\"`$rel-index == 0`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1997.9998664855957,
+ "y": 908.999979019165,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "4491f21f.012e44",
+ "66fe8847.e5db68"
+ ]
+ ]
+ },
+ {
+ "id": "4491f21f.012e44",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2220.9998664855957,
+ "y": 798.999979019165,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "50b3c107.0ef428"
+ ]
+ ]
+ },
+ {
+ "id": "66fe8847.e5db68",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2191.999755859375,
+ "y": 1225,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "49f4be1a.dd4768"
+ ]
+ ]
+ },
+ {
+ "id": "50b3c107.0ef428",
+ "type": "save",
+ "name": "get connectivityA from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2414.9998664855957,
+ "y": 798.999979019165,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "c5f57c4d.37656",
+ "f8bc0153.3111b",
+ "fd26821d.45f278"
+ ]
+ ]
+ },
+ {
+ "id": "c5f57c4d.37656",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2620.9998664855957,
+ "y": 758.999979019165,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "944973cd.969b48"
+ ]
+ ]
+ },
+ {
+ "id": "f8bc0153.3111b",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2621.4908332824707,
+ "y": 804.5740146636963,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "4c56e2b6.ecbe4c"
+ ]
+ ]
+ },
+ {
+ "id": "fd26821d.45f278",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2618.9998664855957,
+ "y": 847.999979019165,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "5f2713ec.fce9b4"
+ ]
+ ]
+ },
+ {
+ "id": "49f4be1a.dd4768",
+ "type": "save",
+ "name": "get connectivityB from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2387.999755859375,
+ "y": 1225,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "99901664.bef67",
+ "fa356ad9.66e31",
+ "3216507d.6f0df8"
+ ]
+ ]
+ },
+ {
+ "id": "99901664.bef67",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2607.999755859375,
+ "y": 1196,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "b3f3fc8e.164aa8"
+ ]
+ ]
+ },
+ {
+ "id": "fa356ad9.66e31",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2609.49072265625,
+ "y": 1241.5740356445312,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "9c397b15.bf0e5"
+ ]
+ ]
+ },
+ {
+ "id": "3216507d.6f0df8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2605.999755859375,
+ "y": 1287,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "1f619a9f.fc34dd"
+ ]
+ ]
+ },
+ {
+ "id": "944973cd.969b48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2793.6663703918457,
+ "y": 757.999979019165,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "905f3b23.ac61b8",
+ "6125d5eb.a534c4",
+ "b1bd9fc5.bac3a"
+ ]
+ ]
+ },
+ {
+ "id": "4c56e2b6.ecbe4c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2784.062244415283,
+ "y": 804.8597507476807,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "5f2713ec.fce9b4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2787.9998664855957,
+ "y": 848.999979019165,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "6125d5eb.a534c4",
+ "type": "set",
+ "name": "set sotn_value for ETH deletion",
+ "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' />",
+ "comments": "",
+ "x": 3081.4996452331543,
+ "y": 849.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "b1bd9fc5.bac3a",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service without token",
+ "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\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3179.499755859375,
+ "y": 894,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "43014871.10916",
+ "ef466a56.4961d8"
+ ]
+ ]
+ },
+ {
+ "id": "43014871.10916",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3524.999755859375,
+ "y": 875,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "b872830e.e33218"
+ ]
+ ]
+ },
+ {
+ "id": "ef466a56.4961d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3528.999755859375,
+ "y": 915,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "ecca88b1.05406"
+ ]
+ ]
+ },
+ {
+ "id": "53822d52.50003c",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "put proper values based on connectivity resource retrieved from AAI",
+ "comments": "",
+ "x": 3022.999755859375,
+ "y": 802,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "905f3b23.ac61b8",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3074.999755859375,
+ "y": 728,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "7583aec3.33d84",
+ "34076538.0ecf52",
+ "5f6cfa0b.4be42c"
+ ]
+ ]
+ },
+ {
+ "id": "7583aec3.33d84",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3320.999755859375,
+ "y": 688,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "af220c19.d532d8"
+ ]
+ ]
+ },
+ {
+ "id": "34076538.0ecf52",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3324.999755859375,
+ "y": 728,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "c8a27e43.a20b28"
+ ]
+ ]
+ },
+ {
+ "id": "5f6cfa0b.4be42c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3316.999755859375,
+ "y": 768,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "d282616c.39fe68"
+ ]
+ ]
+ },
+ {
+ "id": "d282616c.39fe68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3474.999755859375,
+ "y": 768,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "c8a27e43.a20b28",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3474.999755859375,
+ "y": 728,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "af220c19.d532d8",
+ "type": "set",
+ "name": "set controller data",
+ "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",
+ "comments": "",
+ "x": 3490.999755859375,
+ "y": 688,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "c61ae526.8c7cb8",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 3082.999755859375,
+ "y": 688,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "24a118da.312548",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "How to know which domain's (A or B) controller is bein retrieved?",
+ "comments": "",
+ "x": 3014.999755859375,
+ "y": 648,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "b3f3fc8e.164aa8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2780.666259765625,
+ "y": 1197,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "c56d5bdd.22466",
+ "ba468b68.004d98",
+ "8df38d4b.ee6e2"
+ ]
+ ]
+ },
+ {
+ "id": "9c397b15.bf0e5",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2771.0621337890625,
+ "y": 1243.8597717285156,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "1f619a9f.fc34dd",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2774.999755859375,
+ "y": 1288,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "ba468b68.004d98",
+ "type": "set",
+ "name": "set sotn_value for ETH deletion",
+ "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' />",
+ "comments": "",
+ "x": 3068.9995346069336,
+ "y": 1274.00004196167,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "8df38d4b.ee6e2",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service without token",
+ "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\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3173.9996452331543,
+ "y": 1321.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "846e91eb.5fd658",
+ "9847a507.3f69e"
+ ]
+ ]
+ },
+ {
+ "id": "846e91eb.5fd658",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3519.4996452331543,
+ "y": 1302.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "dcec496b.f92f38"
+ ]
+ ]
+ },
+ {
+ "id": "9847a507.3f69e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3523.4996452331543,
+ "y": 1342.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "43eceb78.82b2dc"
+ ]
+ ]
+ },
+ {
+ "id": "de77a242.224c1",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "put proper values based on connectivity resource retrieved from AAI",
+ "comments": "",
+ "x": 3017.4996452331543,
+ "y": 1229.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "c56d5bdd.22466",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3069.4996452331543,
+ "y": 1155.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "c6d3e171.5193a",
+ "9098a017.2895f8",
+ "8e10fa0e.d0c448"
+ ]
+ ]
+ },
+ {
+ "id": "c6d3e171.5193a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3315.4996452331543,
+ "y": 1115.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "ec0b6188.dc04e"
+ ]
+ ]
+ },
+ {
+ "id": "9098a017.2895f8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3319.4996452331543,
+ "y": 1155.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "8b3e7b4d.6376a"
+ ]
+ ]
+ },
+ {
+ "id": "8e10fa0e.d0c448",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3311.4996452331543,
+ "y": 1195.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "124616cb.e9eee9"
+ ]
+ ]
+ },
+ {
+ "id": "124616cb.e9eee9",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3469.4996452331543,
+ "y": 1195.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "8b3e7b4d.6376a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3469.4996452331543,
+ "y": 1155.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "ec0b6188.dc04e",
+ "type": "set",
+ "name": "set controller data",
+ "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",
+ "comments": "",
+ "x": 3485.4996452331543,
+ "y": 1115.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "98e2fbb6.34e38",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 3077.4996452331543,
+ "y": 1115.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "758d1f74.6d4218",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "How to know which domain's (A or B) controller is bein retrieved?",
+ "comments": "",
+ "x": 3011.9996452331543,
+ "y": 1075.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "dcec496b.f92f38",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3677.4996452331543,
+ "y": 1302.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "43eceb78.82b2dc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3680.9996452331543,
+ "y": 1342.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "a040c34e.71e608",
+ "29ceb3fa.1e4b14"
+ ]
+ ]
+ },
+ {
+ "id": "1acc213f.73169f",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
+ "comments": "",
+ "x": 3878.9996452331543,
+ "y": 1299.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "a040c34e.71e608",
+ "type": "save",
+ "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 4020.9996452331543,
+ "y": 1341.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "29ceb3fa.1e4b14",
+ "type": "save",
+ "name": "update connectivity resource in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3949.9996452331543,
+ "y": 1390.000020980835,
+ "z": "15891279.d6b57e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ecca88b1.05406",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3686.499755859375,
+ "y": 915,
+ "z": "15891279.d6b57e",
+ "wires": [
+ [
+ "f3cb9aac.524828",
+ "4b8d9e90.2bfc"
+ ]
+ ]
+ },
+ {
+ "id": "b872830e.e33218",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3682.999755859375,
+ "y": 875,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "270674fa.6cafe4",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
+ "comments": "",
+ "x": 3878.999755859375,
+ "y": 874,
+ "z": "15891279.d6b57e",
+ "wires": []
+ },
+ {
+ "id": "f3cb9aac.524828",
+ "type": "save",
+ "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 4014.999755859375,
+ "y": 915,
+ "z": "15891279.d6b57e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4b8d9e90.2bfc",
+ "type": "save",
+ "name": "update connectivity resource in AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3941.999755859375,
+ "y": 961,
+ "z": "15891279.d6b57e",
+ "wires": [
+ []
+ ]
+ }
+] \ 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
index 00000000..ae15591f
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.json
@@ -0,0 +1,1660 @@
+[
+ {
+ "id": "fa505d09.c9298",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 106,
+ "y": 62,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "96d975d7.ae7b9"
+ ]
+ ]
+ },
+ {
+ "id": "96d975d7.ae7b9",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 390.2856903076172,
+ "y": 123.23810863494873,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "197a98e4.ad38d7"
+ ]
+ ]
+ },
+ {
+ "id": "197a98e4.ad38d7",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-delete",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 396.42860412597656,
+ "y": 208.00003051757812,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "eeba2d4.aaa3b5"
+ ]
+ ]
+ },
+ {
+ "id": "9e471fb5.d24a9",
+ "type": "comment",
+ "name": "site-vnf-topology-operation-delete",
+ "info": "",
+ "comments": "",
+ "x": 968.9162979125977,
+ "y": 129.58639907836914,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "eeba2d4.aaa3b5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 596.2380447387695,
+ "y": 357.6666717529297,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "cdad3ccf.c778c8",
+ "ddca427c.b6135",
+ "16b5196b.e4f74f",
+ "72550323.add05c",
+ "bcb30576.c5395",
+ "1ee10a8.e75cb76",
+ "2400813d.b23cfe",
+ "466b59d1.1f9ec8",
+ "8fb031c0.32361",
+ "4290869b.c0e258",
+ "12c0646.e45499c"
+ ]
+ ]
+ },
+ {
+ "id": "72550323.add05c",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1048.6660919189453,
+ "y": 275.2611792087555,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "f1600d0.d3bcd7",
+ "5da847de.3e7bd8"
+ ]
+ ]
+ },
+ {
+ "id": "f1600d0.d3bcd7",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1313.3884048461914,
+ "y": 257.81680130958557,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "2758e1f4.65c7de"
+ ]
+ ]
+ },
+ {
+ "id": "2758e1f4.65c7de",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1494.3882751464844,
+ "y": 252.81667923927307,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "5da847de.3e7bd8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1298.8884048461914,
+ "y": 309.81676411628723,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "3d795ab1.0cafb6"
+ ]
+ ]
+ },
+ {
+ "id": "3d795ab1.0cafb6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1470.888111114502,
+ "y": 309.8167622089386,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "ed865e4c.fb2fe",
+ "ef77d3e7.8772d"
+ ]
+ ]
+ },
+ {
+ "id": "ef77d3e7.8772d",
+ "type": "switchNode",
+ "name": "switch tmp.nidx ",
+ "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1645.888282775879,
+ "y": 328.81668400764465,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "e8dd060b.17e57"
+ ]
+ ]
+ },
+ {
+ "id": "16b5196b.e4f74f",
+ "type": "switchNode",
+ "name": "switch vnf-level-oper-status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1019.0550918579102,
+ "y": 349.7056429386139,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "284f50fc.866d8",
+ "cdf83757.65b4b8"
+ ]
+ ]
+ },
+ {
+ "id": "284f50fc.866d8",
+ "type": "outcome",
+ "name": "outcome PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1295.8884353637695,
+ "y": 352.8167426586151,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "e9cca7ec.303c7"
+ ]
+ ]
+ },
+ {
+ "id": "cdf83757.65b4b8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1256.8884201049805,
+ "y": 398.8167917728424,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "28762357.a03f74"
+ ]
+ ]
+ },
+ {
+ "id": "28762357.a03f74",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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`\" />",
+ "comments": "",
+ "x": 1405.3881340026855,
+ "y": 397.81677174568176,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "bcb30576.c5395",
+ "type": "execute",
+ "name": "execute requiredParameters",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1035.388427734375,
+ "y": 218.8167588710785,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ed865e4c.fb2fe",
+ "type": "for",
+ "name": "for nidx..service-data.vnfs.vnf[]",
+ "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1706.3882865905762,
+ "y": 264.8166801929474,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "5b03bf9c.f15f28"
+ ]
+ ]
+ },
+ {
+ "id": "5b03bf9c.f15f28",
+ "type": "switchNode",
+ "name": "switch vnf-id found",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1962.3883056640625,
+ "y": 264.8166801929474,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "b0289fb.f82296"
+ ]
+ ]
+ },
+ {
+ "id": "b0289fb.f82296",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2138.888359069824,
+ "y": 267.8166801929474,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "772109f8.0b899"
+ ]
+ ]
+ },
+ {
+ "id": "772109f8.0b899",
+ "type": "set",
+ "name": "set tmp.nidx and ctx.vnf-data",
+ "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",
+ "comments": "",
+ "x": 2305.8883743286133,
+ "y": 328.8166801929474,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "68963ea5.a81b48",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1951.388298034668,
+ "y": 328.81668400764465,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "e8dd060b.17e57",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1813.888298034668,
+ "y": 328.81668400764465,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "68963ea5.a81b48"
+ ]
+ ]
+ },
+ {
+ "id": "cdad3ccf.c778c8",
+ "type": "set",
+ "name": "set vnfId and vnf-object-path",
+ "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/'` \" />",
+ "comments": "",
+ "x": 1005.9051132202148,
+ "y": 564.3336856365204,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "ddca427c.b6135",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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",
+ "comments": "",
+ "x": 906.0162353515625,
+ "y": 1435.88916015625,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "e9cca7ec.303c7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1491.1947937011719,
+ "y": 360.14194798469543,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1ee10a8.e75cb76",
+ "type": "set",
+ "name": "set prop.vnfNewidx",
+ "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
+ "comments": "",
+ "x": 988.0000839233398,
+ "y": 400.00007796287537,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "2400813d.b23cfe",
+ "type": "for",
+ "name": "for lidx..service-data.vnfs.vnf[]",
+ "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1012.0000686645508,
+ "y": 442.0000765323639,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "572dbcf2.896d3c"
+ ]
+ ]
+ },
+ {
+ "id": "572dbcf2.896d3c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1273.000144958496,
+ "y": 446.00011134147644,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "53356e5d.7d71c"
+ ]
+ ]
+ },
+ {
+ "id": "53356e5d.7d71c",
+ "type": "switchNode",
+ "name": "switch vnf-id found",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1465.0000915527344,
+ "y": 455.00015568733215,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "82733dd2.3a7d"
+ ]
+ ]
+ },
+ {
+ "id": "82733dd2.3a7d",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1651.0001068115234,
+ "y": 439.0000422000885,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "d7f72ca.5dc4ed"
+ ]
+ ]
+ },
+ {
+ "id": "d7f72ca.5dc4ed",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1802.0000305175781,
+ "y": 440.0000784397125,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "920da24f.169358",
+ "953950.d86c6eb"
+ ]
+ ]
+ },
+ {
+ "id": "920da24f.169358",
+ "type": "set",
+ "name": "set vnf data",
+ "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",
+ "comments": "",
+ "x": 1969.0001983642578,
+ "y": 414.00026202201843,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "953950.d86c6eb",
+ "type": "set",
+ "name": "set prop.vnfNewidx",
+ "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
+ "comments": "",
+ "x": 1989.0001258850098,
+ "y": 471.0001976490021,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "466b59d1.1f9ec8",
+ "type": "set",
+ "name": "set new vnf length",
+ "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
+ "comments": "",
+ "x": 980.1014823913574,
+ "y": 485.804429769516,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "8fb031c0.32361",
+ "type": "set",
+ "name": "Remove vnf from ServiceData",
+ "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",
+ "comments": "",
+ "x": 1010.0002517700195,
+ "y": 524.0002129077911,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "4290869b.c0e258",
+ "type": "save",
+ "name": "delete AnAI - vnf-instance.orchestration-status",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1067.0066452026367,
+ "y": 601.0106251239777,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "740c712e.7b0a18",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 1001,
+ "y": 735,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "12c0646.e45499c",
+ "type": "save",
+ "name": "get service-instance from aai",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1012,
+ "y": 785,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "f9064279.1b4f8",
+ "17f4eefe.af8569",
+ "e0ea0e9c.c1ac38"
+ ]
+ ]
+ },
+ {
+ "id": "f9064279.1b4f8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1228,
+ "y": 750,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "7baaa7aa.36e958"
+ ]
+ ]
+ },
+ {
+ "id": "17f4eefe.af8569",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1237.490966796875,
+ "y": 792.5740356445312,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "48a0edde.3f94f4"
+ ]
+ ]
+ },
+ {
+ "id": "e0ea0e9c.c1ac38",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1226,
+ "y": 839,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "b71eb698.9367c8"
+ ]
+ ]
+ },
+ {
+ "id": "48a0edde.3f94f4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1391.0623779296875,
+ "y": 795.8597717285156,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "b71eb698.9367c8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1395,
+ "y": 840,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "7baaa7aa.36e958",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1425,
+ "y": 746,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "7f9e9a3e.4de224"
+ ]
+ ]
+ },
+ {
+ "id": "7f9e9a3e.4de224",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1648.33349609375,
+ "y": 745.9999389648438,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "316daf9e.190dc"
+ ]
+ ]
+ },
+ {
+ "id": "316daf9e.190dc",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1844,
+ "y": 748,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "d510feb6.348d7"
+ ]
+ ]
+ },
+ {
+ "id": "d510feb6.348d7",
+ "type": "switchNode",
+ "name": "switch $rel-index == 0",
+ "xml": "<switch test=\"`$rel-index == 0`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2031.9998664855957,
+ "y": 745.999979019165,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "71f2cf8d.3a35e",
+ "264b9f2.1aba9e"
+ ]
+ ]
+ },
+ {
+ "id": "71f2cf8d.3a35e",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2254.9998664855957,
+ "y": 635.999979019165,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "c924f778.a2b848"
+ ]
+ ]
+ },
+ {
+ "id": "264b9f2.1aba9e",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2225.999755859375,
+ "y": 1062,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "beac7966.aff0e"
+ ]
+ ]
+ },
+ {
+ "id": "c924f778.a2b848",
+ "type": "save",
+ "name": "get connectivityA from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2448.9998664855957,
+ "y": 635.999979019165,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "b8d26364.3207e8",
+ "ce782cd0.462e9",
+ "c0db2841.2c9108"
+ ]
+ ]
+ },
+ {
+ "id": "beac7966.aff0e",
+ "type": "save",
+ "name": "get connectivityB from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 2421.999755859375,
+ "y": 1062,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "e783575a.ee3408",
+ "f2d51460.33b19",
+ "7c2969db.4e66a"
+ ]
+ ]
+ },
+ {
+ "id": "b8d26364.3207e8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2654.9998664855957,
+ "y": 595.999979019165,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "888a4917.61b98"
+ ]
+ ]
+ },
+ {
+ "id": "ce782cd0.462e9",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2655.4908332824707,
+ "y": 641.5740146636963,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "a71edbbe.5f5c18"
+ ]
+ ]
+ },
+ {
+ "id": "c0db2841.2c9108",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2652.9998664855957,
+ "y": 684.999979019165,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "a3da676a.d60b68"
+ ]
+ ]
+ },
+ {
+ "id": "888a4917.61b98",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2827.6663703918457,
+ "y": 594.999979019165,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "e61d24fe.b9f57"
+ ]
+ ]
+ },
+ {
+ "id": "a71edbbe.5f5c18",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2818.062244415283,
+ "y": 641.8597507476807,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "a3da676a.d60b68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2821.9998664855957,
+ "y": 685.999979019165,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "e783575a.ee3408",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2641.999755859375,
+ "y": 1033,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "589b1078.8544c"
+ ]
+ ]
+ },
+ {
+ "id": "f2d51460.33b19",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2643.49072265625,
+ "y": 1078.5740356445312,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "41e63be3.fadc5c"
+ ]
+ ]
+ },
+ {
+ "id": "7c2969db.4e66a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2639.999755859375,
+ "y": 1124,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "2d54d7a1.ac5068"
+ ]
+ ]
+ },
+ {
+ "id": "589b1078.8544c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2814.666259765625,
+ "y": 1034,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "be4e9140.d69b68"
+ ]
+ ]
+ },
+ {
+ "id": "41e63be3.fadc5c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2805.0621337890625,
+ "y": 1080.8597717285156,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "2d54d7a1.ac5068",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2808.999755859375,
+ "y": 1125,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "e61d24fe.b9f57",
+ "type": "save",
+ "name": "get vpn-binding-A from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3047,
+ "y": 579,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "2b60392e.ff6d9e",
+ "49846022.e395b8",
+ "b35a5936.c908e8"
+ ]
+ ]
+ },
+ {
+ "id": "abc0c7ad.b5acd8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3431,
+ "y": 579,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "4263af43.fa9c48",
+ "196f2286.5bda85",
+ "e474491b.fe4e98",
+ "f4710eb9.81bb",
+ "4d26fd5b.dd7194"
+ ]
+ ]
+ },
+ {
+ "id": "4263af43.fa9c48",
+ "type": "set",
+ "name": "set attachment_param for TN NSSSI deleteion in PNC A",
+ "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",
+ "comments": "",
+ "x": 3783,
+ "y": 572,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "2b60392e.ff6d9e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3258,
+ "y": 581,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "abc0c7ad.b5acd8"
+ ]
+ ]
+ },
+ {
+ "id": "49846022.e395b8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3258.490966796875,
+ "y": 626.5740356445312,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "df7bab95.4da49"
+ ]
+ ]
+ },
+ {
+ "id": "b35a5936.c908e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3256,
+ "y": 670,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "2e3ee94d.2c9d76"
+ ]
+ ]
+ },
+ {
+ "id": "2e3ee94d.2c9d76",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3423,
+ "y": 669,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "df7bab95.4da49",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3421.0623779296875,
+ "y": 626.8597717285156,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "4d26fd5b.dd7194",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete TN NSSI",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3739,
+ "y": 623,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "1605b46c.2a0984",
+ "49599f6.eb505e"
+ ]
+ ]
+ },
+ {
+ "id": "1605b46c.2a0984",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4086.5,
+ "y": 593,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "c35b0230.a333b8"
+ ]
+ ]
+ },
+ {
+ "id": "49599f6.eb505e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4101.5,
+ "y": 658,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "c575a6f8.585bd8"
+ ]
+ ]
+ },
+ {
+ "id": "c35b0230.a333b8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4270.5,
+ "y": 589,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "c575a6f8.585bd8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4296,
+ "y": 651,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "196f2286.5bda85",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3734,
+ "y": 444,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "1da34d03.94651b",
+ "c42b64ae.aaab8",
+ "25d5725f.b07fee"
+ ]
+ ]
+ },
+ {
+ "id": "1da34d03.94651b",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3980,
+ "y": 404,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "6e678297.9224ac"
+ ]
+ ]
+ },
+ {
+ "id": "c42b64ae.aaab8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3984,
+ "y": 444,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "96b16b61.297a58"
+ ]
+ ]
+ },
+ {
+ "id": "25d5725f.b07fee",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3976,
+ "y": 484,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "8951a2c3.b71c18"
+ ]
+ ]
+ },
+ {
+ "id": "8951a2c3.b71c18",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4134,
+ "y": 484,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "96b16b61.297a58",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4134,
+ "y": 444,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "6e678297.9224ac",
+ "type": "set",
+ "name": "set controller data",
+ "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",
+ "comments": "",
+ "x": 4150,
+ "y": 404,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "7ef0083.0af5478",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 3742,
+ "y": 404,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "3d0f709d.f526f8",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "How to know which domain's (A or B) controller is bein retrieved?",
+ "comments": "",
+ "x": 3674,
+ "y": 364,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "744d9a2e.8e773c",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "Set proper values to generate a good JSON body to be sent to PNC A for TN NSSI deletion.",
+ "comments": "",
+ "x": 3654,
+ "y": 528,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "e474491b.fe4e98",
+ "type": "save",
+ "name": "delete connectivity resource in AAI",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3711,
+ "y": 715,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "47618fca.ed7b18",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "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.",
+ "comments": "",
+ "x": 3646,
+ "y": 681,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "f4710eb9.81bb",
+ "type": "save",
+ "name": "delete vpn-binding resource in AAI",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='tmp.aai.vpn-bindingA = $tmp.aai.vpn-bindingA'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3707,
+ "y": 759,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "be4e9140.d69b68",
+ "type": "save",
+ "name": "get vpn-binding-B from aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3079,
+ "y": 1027,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "ef723c11.8ecf08",
+ "d24eb3b1.82784",
+ "d82f4ae7.ff1938"
+ ]
+ ]
+ },
+ {
+ "id": "ef723c11.8ecf08",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3286,
+ "y": 1030,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "db88eddf.0d68b8"
+ ]
+ ]
+ },
+ {
+ "id": "d24eb3b1.82784",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3286.490966796875,
+ "y": 1075.5740356445312,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "b2d386a0.34fcc8"
+ ]
+ ]
+ },
+ {
+ "id": "d82f4ae7.ff1938",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3284,
+ "y": 1119,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "fced2850.46c338"
+ ]
+ ]
+ },
+ {
+ "id": "fced2850.46c338",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3453,
+ "y": 1120,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "b2d386a0.34fcc8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3449.0623779296875,
+ "y": 1075.8597717285156,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "db88eddf.0d68b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3455,
+ "y": 1030,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "968b60ca.b919a8",
+ "4bf2b1b3.14be6",
+ "474863fb.23ac14",
+ "13714ee3.ae8141",
+ "408a0c32.404a4c"
+ ]
+ ]
+ },
+ {
+ "id": "968b60ca.b919a8",
+ "type": "set",
+ "name": "set attachment_param for TN NSSSI deleteion in PNC B",
+ "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",
+ "comments": "",
+ "x": 3816,
+ "y": 1131,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "cb725e7f.5dd5b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4075,
+ "y": 1158,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "8ff601d0.110ad8"
+ ]
+ ]
+ },
+ {
+ "id": "9cd7bc00.01b8a8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4090,
+ "y": 1223,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "f31755df.8bf058"
+ ]
+ ]
+ },
+ {
+ "id": "8ff601d0.110ad8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4259,
+ "y": 1154,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "f31755df.8bf058",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4257.5,
+ "y": 1217,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4bf2b1b3.14be6",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete TN NSSI",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3775.5,
+ "y": 1181,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "cb725e7f.5dd5b",
+ "9cd7bc00.01b8a8"
+ ]
+ ]
+ },
+ {
+ "id": "474863fb.23ac14",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3743,
+ "y": 1016,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "d06c3921.6cace",
+ "88d90a9f.091b3",
+ "12a460ba.ca9617"
+ ]
+ ]
+ },
+ {
+ "id": "d06c3921.6cace",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3989,
+ "y": 976,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "21d11018.7e29f8"
+ ]
+ ]
+ },
+ {
+ "id": "88d90a9f.091b3",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3993,
+ "y": 1016,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "863d5ed9.b49e18"
+ ]
+ ]
+ },
+ {
+ "id": "12a460ba.ca9617",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3985,
+ "y": 1056,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ [
+ "1cdaf293.72e3fd"
+ ]
+ ]
+ },
+ {
+ "id": "1cdaf293.72e3fd",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4143,
+ "y": 1056,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "863d5ed9.b49e18",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4143,
+ "y": 1016,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "21d11018.7e29f8",
+ "type": "set",
+ "name": "set controller data",
+ "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",
+ "comments": "",
+ "x": 4159,
+ "y": 976,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "ef8c4420.4b2328",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 3751,
+ "y": 976,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "e3821d69.5cd46",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "How to know which domain's (A or B) controller is bein retrieved?",
+ "comments": "",
+ "x": 3685.5,
+ "y": 936,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "e565282f.4ac74",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "Set proper values to generate a good JSON body to be sent to PNC A for TN NSSI deletion.",
+ "comments": "",
+ "x": 3682,
+ "y": 1080,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "13714ee3.ae8141",
+ "type": "save",
+ "name": "delete connectivity resource in AAI",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3733,
+ "y": 1273,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "36d49abc.7de96e",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "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.",
+ "comments": "",
+ "x": 3668,
+ "y": 1239,
+ "z": "b189bed1.bef5e8",
+ "wires": []
+ },
+ {
+ "id": "408a0c32.404a4c",
+ "type": "save",
+ "name": "delete vpn-binding resource in AAI",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='tmp.aai.vpn-bindingB = $tmp.aai.vpn-bindingB'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3729,
+ "y": 1317,
+ "z": "b189bed1.bef5e8",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml
index 9b8f9a0a..6ea99b64 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml
@@ -60,6 +60,9 @@
<outcome value='ActivateSOTNUnderlayInstance'>
<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync' ></call>
</outcome>
+ <outcome value='ActivateTransportSliceInstance'>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync' ></call>
+ </outcome>
<outcome value='Other'>
<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' ></call>
</outcome>
@@ -88,6 +91,12 @@
<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync' ></call>
</block>
</outcome>
+ <outcome value='DeactivateSOTNUnderlayInstance'>
+ <call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync' ></call>
+ </outcome>
+ <outcome value='DeactivateTransportSliceInstance'>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync' ></call>
+ </outcome>
<outcome value='Other'>
<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' ></call>
</outcome>
@@ -155,6 +164,9 @@
<outcome value='CreateSOTNUnderlayInstance'>
<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-create' mode='sync' ></call>
</outcome>
+ <outcome value='AllocateTransportSliceInstance'>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync' ></call>
+ </outcome>
<outcome value='Other'>
<block></block>
</outcome>
@@ -212,6 +224,9 @@
<outcome value='DeleteSOTNUnderlayInstance'>
<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync' ></call>
</outcome>
+ <outcome value='DeleteTransportSliceInstance'>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync' ></call>
+ </outcome>
<outcome value='Other'>
<block></block>
</outcome>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml
index d8e111c0..04395f27 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml
@@ -1,63 +1,65 @@
-<service-logic xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}">
- <method rpc="sotn-vf-operation-uni-activate" mode="sync">
+<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}'>
+ <method rpc='sotn-vf-operation-uni-activate' mode='sync'>
<block atomic="true">
- <switch test="`$service-data.vnfs.vnf_length`">
- <outcome value="">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data"/>
+ <switch test='`$service-data.vnfs.vnf_length`'>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
</return>
</outcome>
</switch>
- <for index="idx" start="0" end="`$service-data.vnfs.vnf_length`">
+ <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >
<switch test="`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`">
- <outcome value="true">
+ <outcome value='true'>
<block atomic="true">
<set>
- <parameter name="vnf-index" value="`$idx`"/>
+ <parameter name='vnf-index' value='`$idx`' />
</set>
<set>
- <parameter name="tmp.vnf-id" value="`$vf-module-topology-operation-input.vnf-information.vnf-id`"/>
+ <parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />
</set>
</block>
</outcome>
</switch>
</for>
- <execute plugin="org.onap.ccsdk.sli.plugins.prop.PropertiesNode" method="readProperties">
- <parameter name="fileName" value="%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties"/>
- <parameter name="contextPrefix" value="prop"/>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
</execute>
- <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`">
- <outcome value="0">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data"/>
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>
+ <outcome value='0'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
</return>
</outcome>
- <outcome value="">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data"/>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
</return>
</outcome>
- <outcome value="Other">
+ <outcome value='Other'>
<block atomic="true">
<set>
- <parameter name="vf-module-length" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`"/>
+ <parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />
</set>
- <for index="idx" start="0" end="`$vf-module-length`">
+ <for index='idx' start='0' end='`$vf-module-length`' >
<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`">
- <outcome value="true">
+ <outcome value='true'>
<block atomic="true">
<set>
- <parameter name="tmp.vidx" value="`$idx`"/>
- <parameter name="ctx.vf-module-data." value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`"/>
+ <parameter name='tmp.vidx' value='`$idx`' />
+ <parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />
</set>
<set>
- <parameter name="vf-module-request-input." value="`$ctx.vf-module-data.vf-module-request-input.`"/>
+ <parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />
</set>
</block>
</outcome>
@@ -66,78 +68,84 @@
</block>
</outcome>
</switch>
- <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">
+ <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' >
<!--AND depth = '0'"-->
- <outcome value="success">
+ <outcome value='success'>
<block>
- <for silentFailure="true" index="vidx" start="0" end="`$tmp.aai.generic-vnf.relationship-list.relationship_length`">
- <switch test="`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`">
- <outcome value="uni">
+ <for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`'>
+ <outcome value='uni'>
<block atomic="true">
- <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">
- <outcome value="success">
+ <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' >
+ <outcome value='success'>
<block>
<set>
- <!--
- <parameter name='`tmp.unis.uni[$vidx].tpId`' value="`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`" />
- -->
- <parameter name="`tmp.unis.uni[$vidx].`" value="`$tmp.aai.uni.`"/>
+ <!--<parameter name='`tmp.unis.uni[$vidx].tpId`' value="`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`" />-->
+ <parameter name='`tmp.unis.uni[$vidx].`' value="`$tmp.aai.uni.`" />
</set>
- <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split">
- <parameter name="original_string" value="`tmp.aai.uni.tp-id`"/>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.uni.tp-id`'/>
<parameter name="regex" value="[^-]+$"/>
<parameter name="ctx_memory_result_key" value="param-prefix"/>
- <outcome value="success">
+ <outcome value='success'>
<set>
- <parameter name="tmp.src.ltpId" value="`$param-prefix[$param-prefix_length -1]`"/>
+ <parameter name='tmp.src.ltpId' value='`$param-prefix[$param-prefix_length -1]`' />
</set>
</outcome>
- <outcome value="failure">
- <return status="failure">
- <parameter name="error-code" value=""/>
- <parameter name="error-message" value="An error occured while splitting sna1_route"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
</return>
</outcome>
</execute>
- <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">
- <!--
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- -->
+ <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' >
+ <!--<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'
- -->
+ <!-- key="'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' -->
<!-- AND depth = '0'"-->
- <!--
- pfx='tmp.aai.generic-vnf' local-only='false' >
- -->
- <outcome value="success">
+ <!-- pfx='tmp.aai.generic-vnf' local-only='false' >-->
+ <outcome value='success'>
<block>
<set>
- <parameter name="`$tmp.unis.uni[$vidx].node-id`" value="`$tmp.aai.pnf.pnf-id`"/>
+ <parameter name='`$tmp.unis.uni[$vidx].node-id`' value="`$tmp.aai.pnf.pnf-id`" />
</set>
- <for silentFailure="true" index="ridx" start="0" end="`$tmp.aai.pnf.relationship-list.relationship_length`">
- <switch test="`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`">
- <outcome value="thirdparty-controller">
+ <for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>
+ <outcome value='thirdparty-controller'>
<block atomic="true">
<set>
- <parameter name="`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`" value="`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`"/>
+ <parameter name='`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`' value="`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`" />
</set>
</block>
</outcome>
- <outcome value="network-resource">
+ <outcome value='network-resource'>
<block atomic="true">
<set>
- <parameter name="`$tmp.unis.uni[$vidx].network-id`" value="`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`"/>
+ <parameter name='`$tmp.unis.uni[$vidx].network-id`' value="`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`" />
</set>
- <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">
- <outcome value="success">
+ <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' >
+ <outcome value='success'>
<set>
- <parameter name="`$tmp.unis.uni[$vidx].network-id`" value="`$tmp.aai.network-resource.network-id`"/>
- <parameter name="`$tmp.unis.uni[$vidx].provider-id`" value="`$tmp.aai.network-resource.provider-id`"/>
- <parameter name="`$tmp.unis.uni[$vidx].client-id`" value="`$tmp.aai.network-resource.client-id`"/>
- <parameter name="`$tmp.unis.uni[$vidx].te-topo-id`" value="`$tmp.aai.network-resource.te-topo-id`"/>
- <parameter name="`$tmp.unis.uni[$vidx].network-type`" value="`$tmp.aai.network-resource.network-type`"/>
+ <parameter name="`$tmp.unis.uni[$vidx].network-id`" value="`$tmp.aai.network-resource.network-id`" />
+ <parameter name="`$tmp.unis.uni[$vidx].provider-id`" value="`$tmp.aai.network-resource.provider-id`" />
+ <parameter name="`$tmp.unis.uni[$vidx].client-id`" value="`$tmp.aai.network-resource.client-id`" />
+ <parameter name="`$tmp.unis.uni[$vidx].te-topo-id`" value="`$tmp.aai.network-resource.te-topo-id`" />
+ <parameter name="`$tmp.unis.uni[$vidx].network-type`" value="`$tmp.aai.network-resource.network-type`" />
</set>
</outcome>
</get-resource>
@@ -155,108 +163,97 @@
</outcome>
</switch>
</for>
- <switch test="`$tmp.unis.uni_length < 2`">
- <outcome value="true">
- <return status="success">
- <parameter name="ack-final-indicator" value="Y"/>
- <parameter name="error-code" value="200"/>
- <parameter name="error-message" value="`$error-message`"/>
+ <switch test='`$tmp.unis.uni_length &lt; 2`' >
+ <outcome value='true'>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
</return>
</outcome>
</switch>
</block>
</outcome>
</get-resource>
- <call module="GENERIC-RESOURCE-API" rpc="sotn-get-otn-tunnel-path-from-oof" mode="sync"/>
- <for index="vidx" start="0" end="`$tmp.unis.uni_length`">
+ <call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' ></call>
+ <for index='vidx' start='0' end='`$tmp.unis.uni_length`' >
<block atomic="true">
<set>
- <parameter name="oof.vpn." value="`$tmp.unis.uni[$vidx].`"/>
+ <parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />
</set>
- <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">
- <outcome value="success">
+ <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' >
+ <outcome value='success'>
<block>
- <for index="ridx" start="0" end="`$tmp.aai.network-resource.relationship-list.relationship_length`">
- <switch test="`$tmp.aai.network-resource.relationship-list.relationship[$ridx].related-to`">
- <outcome value="esr-thirdparty-sdnc">
+ <for index='ridx' start='0' end='`$tmp.aai.network-resource.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.network-resource.relationship-list.relationship[$ridx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
<set>
- <parameter name="prop.sdncRestApi.thirdpartySdnc.id" value="`$tmp.aai.network-resource.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`"/>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.id' value="`$tmp.aai.network-resource.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`" />
</set>
</outcome>
</switch>
</for>
</block>
</outcome>
- <outcome value="not-found">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`"/>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
</return>
</outcome>
- <outcome value="Other">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`"/>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
</return>
</outcome>
</get-resource>
- <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">
- <outcome value="success">
+ <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' >
+ <outcome value='success'>
<set>
- <parameter name="prop.sdncRestApi.thirdpartySdnc.url" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`"/>
- <parameter name="prop.sdncRestApi.thirdpartySdnc.user" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`"/>
- <parameter name="prop.sdncRestApi.thirdpartySdnc.password" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`"/>
- <!--
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- -->
- <!--
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />
- -->
- <!--
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
- -->
- <!--
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
- -->
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
<!--<parameter name="format" value="json"/>-->
<!--<parameter name="httpMethod" value="get"/>-->
- <!--
- <parameter name="responsePrefix" value="topology"/>
- -->
- <!--
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- -->
- <!--
- <parameter name="trustStorePassword" value="adminadmin"/>
- -->
- <!--
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- -->
- <!--
- <parameter name="keyStorePassword" value="adminadmin"/>
- -->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
</set>
</outcome>
- <outcome value="not-found">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`"/>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
</return>
</outcome>
- <outcome value="Other">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`"/>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
</return>
</outcome>
</get-resource>
- <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`"/>
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`"/>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`" />
<parameter name="format" value="json"/>
<parameter name="httpMethod" value="post"/>
<parameter name="responsePrefix" value="token-result"/>
@@ -264,99 +261,99 @@
<parameter name="trustStorePassword" value="adminadmin"/>
<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
<parameter name="keyStorePassword" value="adminadmin"/>
- <outcome value="success">
+ <outcome value='success'>
<set>
- <parameter name="prop.sdncRestApi.token_id" value="`$token-result.data.token_id`"/>
+ <parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />
</set>
</outcome>
- <outcome value="failure">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="Error executing get token rest api"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing get token rest api" />
</return>
</outcome>
</execute>
- <call module="GENERIC-RESOURCE-API" rpc="sotn-create-otn-tunnel" mode="sync"/>
+ <call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' ></call>
<set>
- <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"/>
- <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type" value="ietf-eth-tran-types:p2p-svc"/>
- <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status" value="ietf-te-types:tunnel-state-up"/>
- <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id" value="0"/>
- <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"/>
- <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id" value="1"/>
- <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"/>
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />
+ <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' />
</set>
<set>
- <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id" value="`$oof.vpn.access-provider-id`"/>
- <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id" value="`$oof.vpn.access-client-id`"/>
- <parameter name="ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id" value="`$oof.vpn.access-topology-id`"/>
- <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`"/>
- <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`"/>
- <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`"/>
- <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`"/>
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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`' />
</set>
<switch test="`$prop.sdncRestApi.token_id`">
- <outcome value="">
- <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode" method="sendRequest">
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`"/>
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`"/>
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`"/>
+ <outcome value=''>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
<parameter name="format" value="json"/>
<parameter name="httpMethod" value="patch"/>
- <parameter name="dirPath" value="/opt/onap/sdnc/restconfapi/yang"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
<parameter name="responsePrefix" value="vpn-result"/>
<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
<parameter name="trustStorePassword" value="adminadmin"/>
<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
<parameter name="keyStorePassword" value="adminadmin"/>
- <outcome value="failure">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="Error executing Create vpn rest api"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
</return>
</outcome>
- <outcome value="success">
- <block atomic="true"/>
+ <outcome value='success'>
+ <block atomic="true"></block>
</outcome>
</execute>
</outcome>
- <outcome value="Other">
- <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode" method="sendRequest">
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`"/>
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`"/>
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`"/>
+ <outcome value='Other'>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestApiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
<parameter name="format" value="json"/>
<parameter name="httpMethod" value="patch"/>
- <parameter name="dirPath" value="/opt/onap/sdnc/restconfapi/yang"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
<parameter name="responsePrefix" value="vpn-result"/>
<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
<parameter name="trustStorePassword" value="adminadmin"/>
<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
<parameter name="keyStorePassword" value="adminadmin"/>
- <parameter name="customHttpHeaders" value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`"/>
- <outcome value="failure">
- <return status="failure">
- <parameter name="ack-final" value="Y"/>
- <parameter name="error-code" value="500"/>
- <parameter name="error-message" value="Error executing Create vpn rest api"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
</return>
</outcome>
- <outcome value="success">
- <block atomic="true"/>
+ <outcome value='success'>
+ <block atomic="true"></block>
</outcome>
</execute>
</outcome>
</switch>
</block>
</for>
- <return status="success">
- <parameter name="ack-final-indicator" value="Y"/>
- <parameter name="error-code" value="200"/>
- <parameter name="error-message" value="`$error-message`"/>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
</return>
</block>
</method>
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
index 00000000..5d181c93
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml
@@ -0,0 +1,470 @@
+<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}'>
+ <method rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync'>
+ <block atomic="true">
+ <switch test='`$service-data.vnfs.vnf_length`'>
+ <outcome value='0'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
+ </return>
+ </outcome>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <block atomic="true">
+ <for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >
+ <block>
+ <switch test="`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.vidx' value='`$vidx`' />
+ <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ <switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>
+ <outcome value='Created'>
+ <block atomic="true"></block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <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`" />
+ </return>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />
+ <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />
+ <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />
+ </set>
+ <set>
+ <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
+ <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/'` " />
+ </set>
+ <set>
+ <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />
+ <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`' />
+ <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`' />
+ </set>
+ <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="generic-vnf"
+ key="generic-vnf.vnf-id = $vnfId" >
+ <parameter name="orchestration-status" value="Active" />
+ <parameter name="vnf-type" value="some vnf-type" />
+ </update>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
+ AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <outcome value='success'>
+ <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='connectivity'>
+ <switch test="`$rel-index == 0`">
+ <outcome value='true'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivityA" >
+ <outcome value='success'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivityA.relationship-list.relationship[0].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-bindingA" >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <!--<parameter name='dirPath' value="/opt/sdnc/restapi/yang" />-->
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <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' >
+ <outcome value='success'>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />
+ <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' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.vpnName' >
+ <parameter name='vpn-id' value='`$tmp.vpnName`' />
+ <parameter name='vpn-name' value='`$tmp.vpnName`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>
+ <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ <outcome value='false'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivityB" >
+ <outcome value='success'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivityB.relationship-list.relationship[0].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-bindingB" >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingB.dst-access-ltp-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <!--<parameter name='dirPath' value="/opt/sdnc/restapi/yang" />-->
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <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' >
+ <outcome value='success'>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />
+ <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' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.vpnName' >
+ <parameter name='vpn-id' value='`$tmp.vpnName`' />
+ <parameter name='vpn-name' value='`$tmp.vpnName`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>
+ <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</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
index 00000000..a0c46f57
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml
@@ -0,0 +1,528 @@
+<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}'>
+ <method rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync'>
+ <block atomic="true">
+ <switch test='`$service-data.vnfs.vnf_length`'>
+ <outcome value=''>
+ <set>
+ <parameter name='vnf-index' value='0' />
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <block>
+ <set>
+ <parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />
+ </set>
+ <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >
+ <switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>
+ <outcome value='true'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id
+ + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`" />
+ </return>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ <for index="idx" start="0" end="`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`">
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`'/>
+ <parameter name="regex" value="_"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix"/>
+ </execute>
+ <set>
+ <parameter name="`vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`" value='`$param-prefix[$param-prefix_length -1]`'/>
+ </set>
+ </block>
+ </for>
+ <set>
+ <parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />
+ </set>
+ <for index="idx" start="0" end="`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`">
+ <block>
+ <switch test="`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.vnfName' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <set>
+ <parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.vnf-id"/>
+ </execute>
+ <set>
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-id`' />
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />
+ </set>
+ <set>
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-id`' />
+ </set>
+ <set>
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />
+ <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`' />
+ <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`' />
+ </set>
+ <set>
+ <parameter name='vnfId' value='`$prop.vnf-id`' />
+ <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/'` " />
+ </set>
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="generic-vnf"
+ key='generic-vnf.vnf-id = $prop.vnf-id' >
+ <parameter name="orchestration-status" value="Created" />
+ <parameter name="in-maint" value = "true" />
+ <parameter name="vnf-type" value='`$prop.vnfName`' />
+ <parameter name="vnf-name" value = "`$prop.vnfName`"/>
+ <parameter name="model-invariant-id" value = "`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`"/>
+ <parameter name="model-version-id" value = "`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`"/>
+ <parameter name="model-customization-id" value = "`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`"/>
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
+ AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="generic-vnf" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-id`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="generic-vnf.vnf-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.vnf-id`" />
+ <!--key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!--key='service-instance.service-instance-id = $service-data.service-instance-id -->
+ </save>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
+ AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <outcome value='success'>
+ <switch test='`$tmp.aai.service-instance.allotted-resources_length != 0`'>
+ <outcome value='false'></outcome>
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='allotted-resource-id' value="`$tmp.aai.service-instance.allotted-resources[0]`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="allotted-resource"
+ key='allotted-resource.id = $allotted-resource-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.allotted-resource">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <switch test='`$tmp.aai.allotted-resource.logical-links_length != 0`'>
+ <outcome value='false'></outcome>
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='logical-link-name' value="`$tmp.aai.allotted-resource.logical-links[0]`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="logical-link"
+ key='logical-link.name = $logical-link-name'
+ local-only="false"
+ force="true" pfx="tmp.aai.logical-link">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='endpointA' value="`$tmp.aai.logical-link.name`" />
+ </set>
+ <set>
+ <parameter name='endpointB' value="`$tmp.aai.logical-link.name2`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="endpoint"
+ key='endpoint.endpoint-id = $endpointA'
+ local-only="false"
+ force="true" pfx="tmp.aai.endpointA">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <for index='rel-index' start='0' end='`$tmp.aai.endpointA.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.endpointA.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='p-interface'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="p-interface"
+ key="p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.endpointA.p-interface-src" >
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="p-interface"-->
+ <!-- key="pnf.pnf-name = $unique-src-node-Id-->
+ <!-- and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"-->
+ <!-- local-only="false" -->
+ <!-- pfx="tmp.aai.endpointA.p-interface-src" >-->
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.endpointA.p-interface-src`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[^-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainA"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ </set>
+ <set>
+ <parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.connectivity-domainA-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>
+ <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='access-provider-id' value='' />
+ <parameter name='access-client-id' value='' />
+ <parameter name='access-topology-id' value='' />
+ <parameter name='access-node-id' value='' />
+ <parameter name='access-ltp-id' value='' />
+ <parameter name='cvlan' value='' />
+ <parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />
+ <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />
+ <parameter name='CIR' value='`$prop.sotn.cir`' />
+ <parameter name='EIR' value='`$prop.sotn.eir`' />
+ <parameter name='CBS' value='`$prop.sotn.cbs`' />
+ <parameter name='EBS' value='`$prop.sotn.ebs`' />
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />
+ <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />
+ <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />
+ <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/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
+ AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainA-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainA-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="endpoint"
+ key='endpoint.endpoint-id = $endpointB'
+ local-only="false"
+ force="true" pfx="tmp.aai.endpointB">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <for index='rel-index' start='0' end='`$tmp.aai.endpointB.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.endpointB.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='p-interface'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="p-interface"
+ key="p-interface.interface-name = $tmp.aai.endpointB.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.endpointB.p-interface-dst" >
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="p-interface"-->
+ <!-- key="pnf.pnf-name = $unique-src-node-Id-->
+ <!-- and p-interface.interface-name = $tmp.aai.endpointB.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"-->
+ <!-- local-only="false" -->
+ <!-- pfx="tmp.aai.endpointB.p-interface-dst" >-->
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.endpointB.p-interface-dst`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[^-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainB"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ </set>
+ <set>
+ <parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.connectivity-domainB-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>
+ <parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='access-provider-id' value='' />
+ <parameter name='access-client-id' value='' />
+ <parameter name='access-topology-id' value='' />
+ <parameter name='access-node-id' value='' />
+ <parameter name='access-ltp-id' value='' />
+ <parameter name='cvlan' value='' />
+ <parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />
+ <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />
+ <parameter name='CIR' value='`$prop.sotn.cir`' />
+ <parameter name='EIR' value='`$prop.sotn.eir`' />
+ <parameter name='CBS' value='`$prop.sotn.cbs`' />
+ <parameter name='EBS' value='`$prop.sotn.ebs`' />
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />
+ <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />
+ <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />
+ <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/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
+ AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='prop.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='prop.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='prop.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <parameter name='prop.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />
+ <parameter name='prop.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />
+ <parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />
+ <parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />
+ </set>
+ <call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' ></call>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.vpnName' >
+ <parameter name='vpn-id' value='`$tmp.vpnName`' />
+ <parameter name='vpn-name' value='`$tmp.vpnName`' />
+ <parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />
+ <parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />
+ <parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />
+ <parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />
+ <parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />
+ <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />
+ <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $tmp.vpnName'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$mdsal-psd.service-data.networks.network[0].network-id`" />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.vpnName' >
+ <parameter name='vpn-id' value='`$tmp.vpnName`' />
+ <parameter name='vpn-name' value='`$tmp.vpnName`' />
+ <parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />
+ <parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />
+ <parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />
+ <parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />
+ <parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />
+ <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />
+ <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $tmp.vpnName'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$mdsal-psd.service-data.networks.network[0].network-id`" />
+ </save>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</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
index 00000000..0a853f13
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml
@@ -0,0 +1,350 @@
+<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}'>
+ <method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>
+ <block atomic="true">
+ <switch test='`$service-data.vnfs.vnf_length`'>
+ <outcome value='0'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
+ </return>
+ </outcome>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <block atomic="true">
+ <for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >
+ <block>
+ <switch test="`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.vidx' value='`$vidx`' />
+ <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <switch test="`$tmp.vidx`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>
+ <outcome value='Active'>
+ <block atomic="true"></block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <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`" />
+ </return>
+ </outcome>
+ </switch>
+ <set>
+ <!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->
+ <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />
+ <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />
+ <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />
+ </set>
+ <set>
+ <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
+ <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/'` " />
+ </set>
+ <set>
+ <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />
+ <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`' />
+ <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`' />
+ </set>
+ <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="generic-vnf"
+ key="generic-vnf.vnf-id = $vnfId" >
+ <parameter name="orchestration-status" value="PendingDelete" />
+ <parameter name="vnf-type" value="some vnf-type" />
+ </update>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
+ AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <outcome value='success'>
+ <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='connectivity'>
+ <switch test="`$rel-index == 0`">
+ <outcome value='true'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivityA" >
+ <outcome value='success'>
+ <block atomic="true">
+ <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' >
+ <outcome value='success'>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />
+ <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' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="delete"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.vpnName' >
+ <parameter name='vpn-id' value='`$tmp.vpnName`' />
+ <parameter name='vpn-name' value='`$tmp.vpnName`' />
+ <parameter name='operational-status' value='DeActivated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>
+ <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />
+ <parameter name='operational-status' value='DeActivated' />
+ </update>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ <outcome value='false'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivityB" >
+ <outcome value='success'>
+ <block atomic="true">
+ <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' >
+ <outcome value='success'>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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`' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />
+ <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' />
+ <parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />
+ <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' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="delete"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.vpnName' >
+ <parameter name='vpn-id' value='`$tmp.vpnName`' />
+ <parameter name='vpn-name' value='`$tmp.vpnName`' />
+ <parameter name='operational-status' value='DeActivated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>
+ <parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />
+ <parameter name='operational-status' value='DeActivated' />
+ </update>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</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
index 00000000..5c047638
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-delete.xml
@@ -0,0 +1,395 @@
+<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}'>
+ <method rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >
+ <parameter name="vnf-topology-operation-input.vnf-information.vnf-id" value="$vnf-topology-operation-input.vnf-information.vnf-id"/>
+ </execute>
+ <switch test='`$service-data.vnfs.vnf_length`'>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <block atomic="true">
+ <for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >
+ <switch test="`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.nidx' value='`$nidx`' />
+ <parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />
+ </set>
+ </outcome>
+ </switch>
+ </for>
+ <switch test="`$tmp.nidx`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>
+ <outcome value='PendingDelete'>
+ <block atomic="true"></block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <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`" />
+ </return>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='prop.vnfidxLen' value='`0`' />
+ </set>
+ <for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`">
+ <outcome value='false'>
+ <block atomic="true">
+ <set>
+ <parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />
+ <parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />
+ </set>
+ <set>
+ <parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <set>
+ <parameter name="service-data.vnfs.vnf_length" value='`$prop.vnfidxLen`'/>
+ </set>
+ <set>
+ <parameter name="service-data.vnfs.vnf[$prop.vnfidxLen]." value=""/>
+ </set>
+ <set>
+ <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
+ <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ + $vnf-topology-operation-input.service-information.service-instance-id
+ + '/service-data/service-topology/'` " />
+ </set>
+ <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="generic-vnf"
+ key="generic-vnf.vnf-id = $vnfId" >
+ <parameter name="orchestration-status" value="PendingDelete" />
+ <parameter name="vnf-type" value="some vnf-type" />
+ </delete>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
+ AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <outcome value='success'>
+ <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='connectivity'>
+ <switch test="`$rel-index == 0`">
+ <outcome value='true'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivityA" >
+ <outcome value='success'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivityA.relationship-list.relationship[0].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-bindingA" >
+ <outcome value='success'>
+ <block atomic="true">
+ <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' >
+ <outcome value='success'>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <!--<parameter name='dirPath' value="/opt/sdnc/restapi/yang" />-->
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'></delete>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='tmp.aai.vpn-bindingA = $tmp.aai.vpn-bindingA'></delete>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ <outcome value='false'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivityB" >
+ <outcome value='success'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivityB.relationship-list.relationship[0].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-bindingB" >
+ <outcome value='success'>
+ <block atomic="true">
+ <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' >
+ <outcome value='success'>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingB.dst-access-ltp-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />
+ <parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-otn-tunnel-service.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <!--<parameter name='dirPath' value="/opt/sdnc/restapi/yang" />-->
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'></delete>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='tmp.aai.vpn-bindingB = $tmp.aai.vpn-bindingB'></delete>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file