summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json1445
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json259
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json1612
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json62
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json5578
-rwxr-xr-xplatform-logic/generic-resource-api/src/main/resources/graph.versions1
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml7
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.xml50
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml969
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml45
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml1416
11 files changed, 9421 insertions, 2023 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 a1327b1d..2ea8a47b 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": "65a7b5bd.b33c0c",
+ "id": "3a4b3d5a.f3581a",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 155,
- "y": 176.98507690429688,
- "z": "2eb85326.b33f34",
+ "x": 148,
+ "y": 181.98507690429688,
+ "z": "8a089d88.295188",
"wires": [
[
- "437f21d0.c52c4"
+ "6c9cdf9e.f76ce8"
]
]
},
{
- "id": "437f21d0.c52c4",
+ "id": "6c9cdf9e.f76ce8",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,2175 +22,2206 @@
"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": 238.28570556640625,
- "y": 238.22317504882812,
- "z": "2eb85326.b33f34",
+ "x": 231.28570556640625,
+ "y": 243.22317504882812,
+ "z": "8a089d88.295188",
"wires": [
[
- "7a4849d4.72ee48"
+ "8e0fbdfc.7757f"
]
]
},
{
- "id": "7a4849d4.72ee48",
+ "id": "8e0fbdfc.7757f",
"type": "method",
"name": "method vnf-topology-operation",
"xml": "<method rpc='vnf-topology-operation' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 230.42862701416016,
- "y": 300.985071182251,
- "z": "2eb85326.b33f34",
+ "x": 223.42862701416016,
+ "y": 305.985071182251,
+ "z": "8a089d88.295188",
"wires": [
[
- "45b98d95.e70a04"
+ "650bd855.dd73"
]
]
},
{
- "id": "4ded41b7.94d268",
+ "id": "f2df8a0c.97f79",
"type": "comment",
"name": "vnf-topology-operation",
"info": "",
"comments": "",
- "x": 554.9162979125977,
- "y": 20,
- "z": "2eb85326.b33f34",
+ "x": 547.9162979125977,
+ "y": 25,
+ "z": "8a089d88.295188",
"wires": []
},
{
- "id": "45b98d95.e70a04",
+ "id": "650bd855.dd73",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 254.16676330566406,
- "y": 630.6785974502563,
- "z": "2eb85326.b33f34",
+ "x": 247.16676330566406,
+ "y": 635.6785974502563,
+ "z": "8a089d88.295188",
"wires": [
[
- "8c37381a.3831a",
- "608a5f48.b70468",
- "eb593071.413eb"
+ "694def72.802cb",
+ "b7bf3fe5.90e648",
+ "ebc84d0f.7ffd4"
]
]
},
{
- "id": "8c37381a.3831a",
+ "id": "694def72.802cb",
"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": 546.6667175292969,
- "y": 785.8426303863525,
- "z": "2eb85326.b33f34",
+ "x": 539.6667175292969,
+ "y": 790.8426303863525,
+ "z": "8a089d88.295188",
"wires": []
},
{
- "id": "608a5f48.b70468",
+ "id": "b7bf3fe5.90e648",
"type": "switchNode",
"name": "switch svc-action",
"xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 549.5714340209961,
- "y": 628.8898410797119,
- "z": "2eb85326.b33f34",
+ "x": 542.5714340209961,
+ "y": 633.8898410797119,
+ "z": "8a089d88.295188",
"wires": [
[
- "81a7942.76def68",
- "57464d7.1c2e1b4",
- "2f654dff.7677ba",
- "622a548f.1d64c4",
- "584643fb.d9510c",
- "c1172b79.788dd",
- "6c127345.ce1dd4",
- "5ce4691c.c29e48"
+ "93e066f.075fa98",
+ "41aa4323.8c223c",
+ "c9cbb7de.54a7f",
+ "821831d2.aaac2",
+ "757274d3.67893c",
+ "841f42a4.c5aff8",
+ "acb1c0d2.3be27",
+ "e097aab2.2677e"
]
]
},
{
- "id": "81a7942.76def68",
+ "id": "93e066f.075fa98",
"type": "outcome",
"name": "assign",
"xml": "<outcome value='assign'>\n",
"comments": "",
"outputs": 1,
- "x": 884.3809814453125,
- "y": 456.5089511871338,
- "z": "2eb85326.b33f34",
+ "x": 877.3809814453125,
+ "y": 461.5089511871338,
+ "z": "8a089d88.295188",
"wires": [
[
- "4fafd3d6.e9c86c"
+ "1e1ee6bd.a12821"
]
]
},
{
- "id": "57464d7.1c2e1b4",
+ "id": "41aa4323.8c223c",
"type": "outcome",
"name": "unassign",
"xml": "<outcome value='unassign'>\n",
"comments": "",
"outputs": 1,
- "x": 946.4287996292114,
- "y": 1428.6997060775757,
- "z": "2eb85326.b33f34",
+ "x": 939.4287996292114,
+ "y": 1433.6997060775757,
+ "z": "8a089d88.295188",
"wires": [
[
- "2fde344e.576464"
+ "680ebd88.e7eccc"
]
]
},
{
- "id": "622a548f.1d64c4",
+ "id": "821831d2.aaac2",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 925.14306640625,
- "y": 2671.889892578125,
- "z": "2eb85326.b33f34",
+ "x": 918.14306640625,
+ "y": 2676.889892578125,
+ "z": "8a089d88.295188",
"wires": [
[
- "f361b2ad.38da28"
+ "b407995d.9d5a48"
]
]
},
{
- "id": "f361b2ad.38da28",
+ "id": "b407995d.9d5a48",
"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": 1148.33349609375,
- "y": 2670.889892578125,
- "z": "2eb85326.b33f34",
+ "x": 1141.33349609375,
+ "y": 2675.889892578125,
+ "z": "8a089d88.295188",
"wires": []
},
{
- "id": "eb593071.413eb",
+ "id": "ebc84d0f.7ffd4",
"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": 655.4166870117188,
- "y": 381.3661289215088,
- "z": "2eb85326.b33f34",
+ "x": 648.4166870117188,
+ "y": 386.3661289215088,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "4fee4a66.da80ec",
+ "id": "c991dc4c.d3d538",
"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": 1750.1906127929688,
- "y": 1360.7470703125,
- "z": "2eb85326.b33f34",
+ "x": 1743.1906127929688,
+ "y": 1365.7470703125,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "2fde344e.576464",
+ "id": "680ebd88.e7eccc",
"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": 1312.1905822753906,
- "y": 1450.0805206298828,
- "z": "2eb85326.b33f34",
+ "x": 1305.1905822753906,
+ "y": 1455.0805206298828,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "2f654dff.7677ba",
+ "id": "c9cbb7de.54a7f",
"type": "outcome",
"name": "deactivate",
"xml": "<outcome value='deactivate'>\n",
"comments": "",
"outputs": 1,
- "x": 929.5238800048828,
- "y": 965.080415725708,
- "z": "2eb85326.b33f34",
+ "x": 922.5238800048828,
+ "y": 970.080415725708,
+ "z": "8a089d88.295188",
"wires": [
[
- "8da629b7.7785d"
+ "6ccf58eb.093d6"
]
]
},
{
- "id": "87adbe9c.842b5",
+ "id": "2e110153.91031e",
"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": 1732.0001525878906,
- "y": 863.9850616455078,
- "z": "2eb85326.b33f34",
+ "x": 1725.0001525878906,
+ "y": 868.9850616455078,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "584643fb.d9510c",
+ "id": "757274d3.67893c",
"type": "outcome",
"name": "activate",
"xml": "<outcome value='activate'>\n",
"comments": "",
"outputs": 1,
- "x": 892.3333129882812,
- "y": 626.6517143249512,
- "z": "2eb85326.b33f34",
+ "x": 885.3333129882812,
+ "y": 631.6517143249512,
+ "z": "8a089d88.295188",
"wires": [
[
- "bb5ac7de.cbb54"
+ "ae3b26d8.2e802"
]
]
},
{
- "id": "c1172b79.788dd",
+ "id": "841f42a4.c5aff8",
"type": "outcome",
"name": "create",
"xml": "<outcome value='create'>\n",
"comments": "",
"outputs": 1,
- "x": 948.0002298355103,
- "y": 1561.0713729858398,
- "z": "2eb85326.b33f34",
+ "x": 941.0002298355103,
+ "y": 1566.0713729858398,
+ "z": "8a089d88.295188",
"wires": [
[
- "225b7efc.8fa52a"
+ "e142e7c6.c77bb"
]
]
},
{
- "id": "6c127345.ce1dd4",
+ "id": "acb1c0d2.3be27",
"type": "outcome",
"name": "delete",
"xml": "<outcome value='delete'>\n",
"comments": "",
"outputs": 1,
- "x": 952.000244140625,
- "y": 1791.0714111328125,
- "z": "2eb85326.b33f34",
+ "x": 945.000244140625,
+ "y": 1796.0714111328125,
+ "z": "8a089d88.295188",
"wires": [
[
- "81ec64a2.44c6"
+ "cb34f16f.df5498"
]
]
},
{
- "id": "6b0b37a0.9ca588",
+ "id": "9efd8586.def1b",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1134.0000839233398,
- "y": 682.0713911056519,
- "z": "2eb85326.b33f34",
+ "x": 1127.0000839233398,
+ "y": 687.0713911056519,
+ "z": "8a089d88.295188",
"wires": [
[
- "7fca8158.91f35",
- "9b59d855.a7acc8",
- "4755a794.0050b8",
- "2e56d91.79e7326",
- "d6b29a0.e7b84e8",
- "dd14e3b6.ed5b08",
- "1335f1cb.2420be",
- "396cf4fc.519af4"
+ "3a27087a.eed2b8",
+ "98a22bf8.80c23",
+ "5001540d.dc5184",
+ "99507021.c3127",
+ "230795db.ca1882",
+ "a47e6dba.2544d8",
+ "bcff3d5e.448328",
+ "d5f5c122.ae8be8"
]
]
},
{
- "id": "9b59d855.a7acc8",
+ "id": "98a22bf8.80c23",
"type": "outcome",
"name": "ActivateSiteInstance",
"xml": "<outcome value='ActivateSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1394.4763259887695,
- "y": 503.5506420135498,
- "z": "2eb85326.b33f34",
+ "x": 1387.4763259887695,
+ "y": 508.5506420135498,
+ "z": "8a089d88.295188",
"wires": [
[
- "7c431af.c7b6a64"
+ "b1d3d9a7.7df02"
]
]
},
{
- "id": "7fca8158.91f35",
+ "id": "3a27087a.eed2b8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1364.0476989746094,
- "y": 866.5953521728516,
- "z": "2eb85326.b33f34",
+ "x": 1357.0476989746094,
+ "y": 871.5953521728516,
+ "z": "8a089d88.295188",
"wires": [
[
- "87adbe9c.842b5"
+ "2e110153.91031e"
]
]
},
{
- "id": "bb5ac7de.cbb54",
+ "id": "ae3b26d8.2e802",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1073.0000839233398,
- "y": 627.0713911056519,
- "z": "2eb85326.b33f34",
+ "x": 1066.0000839233398,
+ "y": 632.0713911056519,
+ "z": "8a089d88.295188",
"wires": [
[
- "6b0b37a0.9ca588"
+ "9efd8586.def1b"
]
]
},
{
- "id": "7c431af.c7b6a64",
+ "id": "b1d3d9a7.7df02",
"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": 1761.000129699707,
- "y": 506.07142448425293,
- "z": "2eb85326.b33f34",
+ "x": 1754.000129699707,
+ "y": 511.07142448425293,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "3aedfea2.380c82",
+ "id": "6eabc2e6.9c07cc",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1192.0001983642578,
- "y": 998.071382522583,
- "z": "2eb85326.b33f34",
+ "x": 1185.0001983642578,
+ "y": 1003.071382522583,
+ "z": "8a089d88.295188",
"wires": [
[
- "4e5c2734.b4b4d8",
- "dc0e0143.6bd3c8",
- "a6a10b16.9db1a8",
- "4dadb200.cffd6c",
- "83a2f891.8b61e8",
- "7a11315c.08885",
- "d9d8a57.b489358",
- "4fb9c783.53cbd8"
+ "f5e55c13.9b4318",
+ "e8d4f4c0.996568",
+ "e553ae30.24cb58",
+ "dec6f60c.912358",
+ "55b31023.4a7df8",
+ "4f99c024.218c58",
+ "bfc4e77.1d06a18",
+ "2f120adf.034a9e"
]
]
},
{
- "id": "dc0e0143.6bd3c8",
+ "id": "e8d4f4c0.996568",
"type": "outcome",
"name": "DeactivateSiteInstance",
"xml": "<outcome value='DeactivateSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1435.4763946533203,
- "y": 949.5506310462952,
- "z": "2eb85326.b33f34",
+ "x": 1428.4763946533203,
+ "y": 954.5506310462952,
+ "z": "8a089d88.295188",
"wires": [
[
- "c4e83aa9.f0ea5"
+ "833dac1e.91b97"
]
]
},
{
- "id": "4e5c2734.b4b4d8",
+ "id": "f5e55c13.9b4318",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1387.0477294921875,
- "y": 1359.5953369140625,
- "z": "2eb85326.b33f34",
+ "x": 1380.0477294921875,
+ "y": 1364.5953369140625,
+ "z": "8a089d88.295188",
"wires": [
[
- "4fee4a66.da80ec"
+ "c991dc4c.d3d538"
]
]
},
{
- "id": "8da629b7.7785d",
+ "id": "6ccf58eb.093d6",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1131.0001983642578,
- "y": 943.071382522583,
- "z": "2eb85326.b33f34",
+ "x": 1124.0001983642578,
+ "y": 948.071382522583,
+ "z": "8a089d88.295188",
"wires": [
[
- "3aedfea2.380c82"
+ "6eabc2e6.9c07cc"
]
]
},
{
- "id": "c4e83aa9.f0ea5",
+ "id": "833dac1e.91b97",
"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": 1805.0001983642578,
- "y": 947.0714135169983,
- "z": "2eb85326.b33f34",
+ "x": 1798.0001983642578,
+ "y": 952.0714135169983,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "12bd2849.859b18",
+ "id": "9e90ddad.1f7ee",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1146.333625793457,
- "y": 1647.6576824188232,
- "z": "2eb85326.b33f34",
+ "x": 1139.333625793457,
+ "y": 1652.6576824188232,
+ "z": "8a089d88.295188",
"wires": [
[
- "a5546947.872828",
- "98d1ee64.a859d8",
- "b4652d97.1f82a",
- "d84e3d35.1b6498",
- "3c335fd3.49242",
- "f28f5d04.bb2268",
- "ab85e0c9.740d",
- "e984aa3b.a932c",
- "dded3789.e6b0f",
- "42d2af76.1ab5f8"
+ "55e3c01c.e1c8f",
+ "4d08042d.d7fbbc",
+ "671b4a3a.f972fc",
+ "146f2e29.b29282",
+ "f8c28ff4.c8e26",
+ "92a4b456.d3d5d8",
+ "66ba22f2.06c6ac",
+ "200396ca.da6dba",
+ "9b55c6a1.642138",
+ "9134a5a8.bc4e5"
]
]
},
{
- "id": "98d1ee64.a859d8",
+ "id": "4d08042d.d7fbbc",
"type": "outcome",
"name": "CreateSiteInstance",
"xml": "<outcome value='CreateSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1407.81005859375,
- "y": 1564.136962890625,
- "z": "2eb85326.b33f34",
+ "x": 1400.81005859375,
+ "y": 1569.136962890625,
+ "z": "8a089d88.295188",
"wires": [
[
- "19f9c8ad.fe3f3f"
+ "c143e3d3.13aa5"
]
]
},
{
- "id": "a5546947.872828",
+ "id": "55e3c01c.e1c8f",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1381.381103515625,
- "y": 1917.1815185546875,
- "z": "2eb85326.b33f34",
+ "x": 1374.381103515625,
+ "y": 1922.1815185546875,
+ "z": "8a089d88.295188",
"wires": [
[
- "8e9dbba2.9704c8"
+ "7fc59163.4956e8"
]
]
},
{
- "id": "225b7efc.8fa52a",
+ "id": "e142e7c6.c77bb",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1130.3337144851685,
- "y": 1558.6577405929565,
- "z": "2eb85326.b33f34",
+ "x": 1123.3337144851685,
+ "y": 1563.6577405929565,
+ "z": "8a089d88.295188",
"wires": [
[
- "12bd2849.859b18"
+ "9e90ddad.1f7ee"
]
]
},
{
- "id": "19f9c8ad.fe3f3f",
+ "id": "c143e3d3.13aa5",
"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": 1784.3337631225586,
- "y": 1562.6577215194702,
- "z": "2eb85326.b33f34",
+ "x": 1777.3337631225586,
+ "y": 1567.6577215194702,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "8e9dbba2.9704c8",
+ "id": "7fc59163.4956e8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1521.6666793823242,
- "y": 1918.2379417419434,
- "z": "2eb85326.b33f34",
+ "x": 1514.6666793823242,
+ "y": 1923.2379417419434,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "96d2109.f63b17",
+ "id": "d93816bc.b66f9",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1187.000244140625,
- "y": 2199.5714111328125,
- "z": "2eb85326.b33f34",
+ "x": 1180.000244140625,
+ "y": 2204.5714111328125,
+ "z": "8a089d88.295188",
"wires": [
[
- "26331c8c.278694",
- "abddd00e.2e5d78",
- "1199f718.5ce6e9",
- "b17cca78.ca71f8",
- "d90d8ec6.0e4c9",
- "2f773619.4af1ca",
- "58d57172.fc9ab",
- "58a075cd.2a28cc",
- "1ce03296.eacf2d",
- "f605d964.bf649"
+ "3617c3a0.ca936c",
+ "a9b0f47b.285ff8",
+ "83a18cb6.1873d8",
+ "d35e633f.bbae08",
+ "fa035729.45e3c",
+ "82fef141.f28ad",
+ "10da590d.98b947",
+ "fb6200c1.eb497",
+ "527d576.7230ea8",
+ "1ed033e6.f89f9c"
]
]
},
{
- "id": "abddd00e.2e5d78",
+ "id": "a9b0f47b.285ff8",
"type": "outcome",
"name": "DeleteSiteInstance",
"xml": "<outcome value='DeleteSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1427.476463317871,
- "y": 2145.050654888153,
- "z": "2eb85326.b33f34",
+ "x": 1420.476463317871,
+ "y": 2150.050654888153,
+ "z": "8a089d88.295188",
"wires": [
[
- "22011e48.f6c9ca"
+ "4372c282.d72afc"
]
]
},
{
- "id": "26331c8c.278694",
+ "id": "3617c3a0.ca936c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1388.38134765625,
- "y": 2521.095703125,
- "z": "2eb85326.b33f34",
+ "x": 1381.38134765625,
+ "y": 2526.095703125,
+ "z": "8a089d88.295188",
"wires": [
[
- "4db86e7c.83c3b8"
+ "530fbae0.1c905c"
]
]
},
{
- "id": "81ec64a2.44c6",
+ "id": "cb34f16f.df5498",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1126.000244140625,
- "y": 2144.5714111328125,
- "z": "2eb85326.b33f34",
+ "x": 1119.000244140625,
+ "y": 2149.5714111328125,
+ "z": "8a089d88.295188",
"wires": [
[
- "96d2109.f63b17"
+ "d93816bc.b66f9"
]
]
},
{
- "id": "22011e48.f6c9ca",
+ "id": "4372c282.d72afc",
"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": 1800.0002670288086,
- "y": 2142.571406841278,
- "z": "2eb85326.b33f34",
+ "x": 1793.0002670288086,
+ "y": 2147.571406841278,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "4db86e7c.83c3b8",
+ "id": "530fbae0.1c905c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1527.6668701171875,
- "y": 2514.818603515625,
- "z": "2eb85326.b33f34",
+ "x": 1520.6668701171875,
+ "y": 2519.818603515625,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "4755a794.0050b8",
+ "id": "5001540d.dc5184",
"type": "outcome",
"name": "ActivateSDWANDeviceInstance",
"xml": "<outcome value='ActivateSDWANDeviceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1425.6667556762695,
- "y": 554.571455001831,
- "z": "2eb85326.b33f34",
+ "x": 1418.6667556762695,
+ "y": 559.571455001831,
+ "z": "8a089d88.295188",
"wires": [
[
- "398a4a69.0e148e"
+ "2ce1f942.6d548e"
]
]
},
{
- "id": "398a4a69.0e148e",
+ "id": "2ce1f942.6d548e",
"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": 1865.1904373168945,
- "y": 553.092206954956,
- "z": "2eb85326.b33f34",
+ "x": 1858.1904373168945,
+ "y": 558.092206954956,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "a6a10b16.9db1a8",
+ "id": "e553ae30.24cb58",
"type": "outcome",
"name": "DeactivateSDWANDeviceInstance",
"xml": "<outcome value='DeactivateSDWANDeviceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1476.666633605957,
- "y": 997.571409702301,
- "z": "2eb85326.b33f34",
+ "x": 1469.666633605957,
+ "y": 1002.571409702301,
+ "z": "8a089d88.295188",
"wires": [
[
- "70544464.2f4a84"
+ "d64159ae.c7cdf"
]
]
},
{
- "id": "70544464.2f4a84",
+ "id": "d64159ae.c7cdf",
"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": 1933.190330505371,
- "y": 997.0922451019287,
- "z": "2eb85326.b33f34",
+ "x": 1926.190330505371,
+ "y": 1002.0922451019287,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "4240f71c.947248",
+ "id": "88f1a7e0.dc3b38",
"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": 1862.666633605957,
- "y": 593.5713939666748,
- "z": "2eb85326.b33f34",
+ "x": 1855.666633605957,
+ "y": 598.5713939666748,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "2e56d91.79e7326",
+ "id": "99507021.c3127",
"type": "outcome",
"name": "ActivateSDWANPortInstance",
"xml": "<outcome value='ActivateSDWANPortInstance'>",
"comments": "",
"outputs": 1,
- "x": 1419.142951965332,
- "y": 601.0506114959717,
- "z": "2eb85326.b33f34",
+ "x": 1412.142951965332,
+ "y": 606.0506114959717,
+ "z": "8a089d88.295188",
"wires": [
[
- "4240f71c.947248"
+ "88f1a7e0.dc3b38"
]
]
},
{
- "id": "4dadb200.cffd6c",
+ "id": "dec6f60c.912358",
"type": "outcome",
"name": "DeactivateSDWANPortInstance",
"xml": "<outcome value='DeactivateSDWANPortInstance'>",
"comments": "",
"outputs": 1,
- "x": 1468.6666793823242,
- "y": 1035.904725074768,
- "z": "2eb85326.b33f34",
+ "x": 1461.6666793823242,
+ "y": 1040.904725074768,
+ "z": "8a089d88.295188",
"wires": [
[
- "2225b71.ac2f148"
+ "346a35db.30b292"
]
]
},
{
- "id": "2225b71.ac2f148",
+ "id": "346a35db.30b292",
"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": 1943.190330505371,
- "y": 1052.4255270957947,
- "z": "2eb85326.b33f34",
+ "x": 1936.190330505371,
+ "y": 1057.4255270957947,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "b4652d97.1f82a",
+ "id": "671b4a3a.f972fc",
"type": "outcome",
"name": "CreateSDWANPortInstance",
"xml": "<outcome value='CreateSDWANPortInstance'>",
"comments": "",
"outputs": 1,
- "x": 1457.6669540405273,
- "y": 1652.9047973155975,
- "z": "2eb85326.b33f34",
+ "x": 1450.6669540405273,
+ "y": 1657.9047973155975,
+ "z": "8a089d88.295188",
"wires": [
[
- "7ae0670d.5e8368"
+ "4b47fc1.6314f04"
]
]
},
{
- "id": "7ae0670d.5e8368",
+ "id": "4b47fc1.6314f04",
"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": 1914.190574645996,
- "y": 1657.4255766868591,
- "z": "2eb85326.b33f34",
+ "x": 1907.190574645996,
+ "y": 1662.4255766868591,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "1199f718.5ce6e9",
+ "id": "83a18cb6.1873d8",
"type": "outcome",
"name": "DeleteSDWANPortInstance",
"xml": "<outcome value='DeleteSDWANPortInstance'>",
"comments": "",
"outputs": 1,
- "x": 1463.333480834961,
- "y": 2255.9047994613647,
- "z": "2eb85326.b33f34",
+ "x": 1456.333480834961,
+ "y": 2260.9047994613647,
+ "z": "8a089d88.295188",
"wires": [
[
- "30358e96.23d39a"
+ "9c8bc8aa.3a22f"
]
]
},
{
- "id": "30358e96.23d39a",
+ "id": "9c8bc8aa.3a22f",
"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": 1889.8572006225586,
- "y": 2255.425654888153,
- "z": "2eb85326.b33f34",
+ "x": 1882.8572006225586,
+ "y": 2260.425654888153,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "b17cca78.ca71f8",
+ "id": "d35e633f.bbae08",
"type": "outcome",
"name": "DeleteSDWANDeviceInstance",
"xml": "<outcome value='DeleteSDWANDeviceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1472.0316314697266,
- "y": 2196.1027059555054,
- "z": "2eb85326.b33f34",
+ "x": 1465.0316314697266,
+ "y": 2201.1027059555054,
+ "z": "8a089d88.295188",
"wires": [
[
- "35efb4d9.5a00f4"
+ "8a6b7677.238d58"
]
]
},
{
- "id": "35efb4d9.5a00f4",
+ "id": "8a6b7677.238d58",
"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": 1904.5552368164062,
- "y": 2195.6234192848206,
- "z": "2eb85326.b33f34",
+ "x": 1897.5552368164062,
+ "y": 2200.6234192848206,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "d84e3d35.1b6498",
+ "id": "146f2e29.b29282",
"type": "outcome",
"name": "CreateSDWANDeviceInstance",
"xml": "<outcome value='CreateSDWANDeviceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1473.0313034057617,
- "y": 1609.1027607917786,
- "z": "2eb85326.b33f34",
+ "x": 1466.0313034057617,
+ "y": 1614.1027607917786,
+ "z": "8a089d88.295188",
"wires": [
[
- "7d9159a3.db89c8"
+ "4c220d5f.f41df4"
]
]
},
{
- "id": "7d9159a3.db89c8",
+ "id": "4c220d5f.f41df4",
"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": 1929.5549697875977,
- "y": 1607.6235747337341,
- "z": "2eb85326.b33f34",
+ "x": 1922.5549697875977,
+ "y": 1612.6235747337341,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "d6b29a0.e7b84e8",
+ "id": "230795db.ca1882",
"type": "outcome",
"name": "ActivateSDWANVpnInstance",
"xml": "<outcome value='ActivateSDWANVpnInstance'>",
"comments": "",
"outputs": 1,
- "x": 1428.2961730957031,
- "y": 641.8151397705078,
- "z": "2eb85326.b33f34",
+ "x": 1421.2961730957031,
+ "y": 646.8151397705078,
+ "z": "8a089d88.295188",
"wires": [
[
- "80e5bb2b.aa015"
+ "5cc61cba.0493d4"
]
]
},
{
- "id": "dd14e3b6.ed5b08",
+ "id": "a47e6dba.2544d8",
"type": "outcome",
"name": "ActivateSDWANSiteInstance",
"xml": "<outcome value='ActivateSDWANSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1432.2961730957031,
- "y": 684.4815826416016,
- "z": "2eb85326.b33f34",
+ "x": 1425.2961730957031,
+ "y": 689.4815826416016,
+ "z": "8a089d88.295188",
"wires": [
[
- "80e5bb2b.aa015"
+ "5cc61cba.0493d4"
]
]
},
{
- "id": "80e5bb2b.aa015",
+ "id": "5cc61cba.0493d4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1703.2961654663086,
- "y": 662.4816343784332,
- "z": "2eb85326.b33f34",
+ "x": 1696.2961654663086,
+ "y": 667.4816343784332,
+ "z": "8a089d88.295188",
"wires": [
[
- "c89bb7c5.4c4e5"
+ "f4901264.697d98"
]
]
},
{
- "id": "c89bb7c5.4c4e5",
+ "id": "f4901264.697d98",
"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": 2081.296012878418,
- "y": 659.8152935504913,
- "z": "2eb85326.b33f34",
+ "x": 2074.296012878418,
+ "y": 664.8152935504913,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "235e503e.fa02e8",
+ "id": "6374db99.535b04",
"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": 2129.3332138061523,
- "y": 1107.9380941390991,
- "z": "2eb85326.b33f34",
+ "x": 2122.3332138061523,
+ "y": 1112.9380941390991,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "3e48634b.4b27b4",
+ "id": "81010330.b0fa3",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1732.3333053588867,
- "y": 1109.6044387817383,
- "z": "2eb85326.b33f34",
+ "x": 1725.3333053588867,
+ "y": 1114.6044387817383,
+ "z": "8a089d88.295188",
"wires": [
[
- "235e503e.fa02e8"
+ "6374db99.535b04"
]
]
},
{
- "id": "7a11315c.08885",
+ "id": "4f99c024.218c58",
"type": "outcome",
"name": "DeactivateSDWANSiteInstance",
"xml": "<outcome value='DeactivateSDWANSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1474.3332901000977,
- "y": 1131.6044034957886,
- "z": "2eb85326.b33f34",
+ "x": 1467.3332901000977,
+ "y": 1136.6044034957886,
+ "z": "8a089d88.295188",
"wires": [
[
- "3e48634b.4b27b4"
+ "81010330.b0fa3"
]
]
},
{
- "id": "83a2f891.8b61e8",
+ "id": "55b31023.4a7df8",
"type": "outcome",
"name": "DeactivateSDWANVpnInstance",
"xml": "<outcome value='DeactivateSDWANVpnInstance'>",
"comments": "",
"outputs": 1,
- "x": 1468.3332595825195,
- "y": 1088.9379558563232,
- "z": "2eb85326.b33f34",
+ "x": 1461.3332595825195,
+ "y": 1093.9379558563232,
+ "z": "8a089d88.295188",
"wires": [
[
- "3e48634b.4b27b4"
+ "81010330.b0fa3"
]
]
},
{
- "id": "3c335fd3.49242",
+ "id": "f8c28ff4.c8e26",
"type": "outcome",
"name": "CreateSDWANVpnInstance",
"xml": "<outcome value='CreateSDWANVpnInstance'>",
"comments": "",
"outputs": 1,
- "x": 1453.8516340255737,
- "y": 1707.5928702354431,
- "z": "2eb85326.b33f34",
+ "x": 1446.8516340255737,
+ "y": 1712.5928702354431,
+ "z": "8a089d88.295188",
"wires": [
[
- "d4c5177.5196768"
+ "816f717b.b608d"
]
]
},
{
- "id": "f28f5d04.bb2268",
+ "id": "92a4b456.d3d5d8",
"type": "outcome",
"name": "CreateSDWANSiteInstance",
"xml": "<outcome value='CreateSDWANSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1445.8516111373901,
- "y": 1749.2592587471008,
- "z": "2eb85326.b33f34",
+ "x": 1438.8516111373901,
+ "y": 1754.2592587471008,
+ "z": "8a089d88.295188",
"wires": [
[
- "d4c5177.5196768"
+ "816f717b.b608d"
]
]
},
{
- "id": "d4c5177.5196768",
+ "id": "816f717b.b608d",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1703.8516263961792,
- "y": 1727.2592940330505,
- "z": "2eb85326.b33f34",
+ "x": 1696.8516263961792,
+ "y": 1732.2592940330505,
+ "z": "8a089d88.295188",
"wires": [
[
- "a05703f3.26b69"
+ "c8697160.686d4"
]
]
},
{
- "id": "a05703f3.26b69",
+ "id": "c8697160.686d4",
"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": 2081.8514738082886,
- "y": 1724.5929532051086,
- "z": "2eb85326.b33f34",
+ "x": 2074.8514738082886,
+ "y": 1729.5929532051086,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "d90d8ec6.0e4c9",
+ "id": "fa035729.45e3c",
"type": "outcome",
"name": "DeleteSDWANVpnInstance",
"xml": "<outcome value='DeleteSDWANVpnInstance'>",
"comments": "",
"outputs": 1,
- "x": 1454.333396911621,
- "y": 2302.938106060028,
- "z": "2eb85326.b33f34",
+ "x": 1447.333396911621,
+ "y": 2307.938106060028,
+ "z": "8a089d88.295188",
"wires": [
[
- "f656e1fc.4af1b8"
+ "de394769.a28a"
]
]
},
{
- "id": "2f773619.4af1ca",
+ "id": "82fef141.f28ad",
"type": "outcome",
"name": "DeleteSDWANSiteInstance",
"xml": "<outcome value='DeleteSDWANSiteInstance'>",
"comments": "",
"outputs": 1,
- "x": 1454.333396911621,
- "y": 2343.6046710014343,
- "z": "2eb85326.b33f34",
+ "x": 1447.333396911621,
+ "y": 2348.6046710014343,
+ "z": "8a089d88.295188",
"wires": [
[
- "f656e1fc.4af1b8"
+ "de394769.a28a"
]
]
},
{
- "id": "f656e1fc.4af1b8",
+ "id": "de394769.a28a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1704.3333892822266,
- "y": 2322.6045298576355,
- "z": "2eb85326.b33f34",
+ "x": 1697.3333892822266,
+ "y": 2327.6045298576355,
+ "z": "8a089d88.295188",
"wires": [
[
- "ba7745e3.6b0038"
+ "f9c3425f.bdcf5"
]
]
},
{
- "id": "ba7745e3.6b0038",
+ "id": "f9c3425f.bdcf5",
"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": 2082.333236694336,
- "y": 2319.9381890296936,
- "z": "2eb85326.b33f34",
+ "x": 2075.333236694336,
+ "y": 2324.9381890296936,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "c4652243.2cd31",
+ "id": "6a298a32.90484c",
"type": "set",
"name": "set skip-mdsal-update to Y",
"xml": "<set>\n<parameter name='skip-mdsal-update' value='Y' />\n",
"comments": "",
- "x": 2245.0318908691406,
- "y": 347.4920959472656,
- "z": "2eb85326.b33f34",
+ "x": 2238.0318908691406,
+ "y": 352.4920959472656,
+ "z": "8a089d88.295188",
"wires": []
},
{
- "id": "1ab73b94.dc63c4",
+ "id": "238df719.c2d83",
"type": "set",
"name": "set ack-final to 'N'",
"xml": "<set>\n<parameter name='ack-final' value='N' />\n",
"comments": "",
- "x": 2216.841583251953,
- "y": 411.8401184082031,
- "z": "2eb85326.b33f34",
+ "x": 2209.841583251953,
+ "y": 416.8401184082031,
+ "z": "8a089d88.295188",
"wires": []
},
{
- "id": "3482a769.667ab",
+ "id": "dc9fe65c.767c5",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2008.3811340332031,
- "y": 350.4126281738281,
- "z": "2eb85326.b33f34",
+ "x": 2001.3811340332031,
+ "y": 355.4126281738281,
+ "z": "8a089d88.295188",
"wires": [
[
- "c4652243.2cd31",
- "1ab73b94.dc63c4"
+ "6a298a32.90484c",
+ "238df719.c2d83"
]
]
},
{
- "id": "e62becbd.74017",
+ "id": "4af9f52e.68b0ac",
"type": "comment",
"name": "ack-final=N triggers Provider to call vnf-topology-operation-aysnc DG",
"info": "",
"comments": "",
- "x": 2429.158966064453,
- "y": 452.8094787597656,
- "z": "2eb85326.b33f34",
+ "x": 2422.158966064453,
+ "y": 457.8094787597656,
+ "z": "8a089d88.295188",
"wires": []
},
{
- "id": "fe882fb9.dd7f48",
+ "id": "3f3504ae.321654",
"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": 1114.2857971191406,
- "y": 197.28570556640625,
- "z": "2eb85326.b33f34",
+ "x": 1107.2857971191406,
+ "y": 202.28570556640625,
+ "z": "8a089d88.295188",
"wires": [
[
- "baa70abd.0fd63",
- "686c7efb.0e9a6"
+ "594230be.69b1d8",
+ "2f05f0b.8ea6c9"
]
]
},
{
- "id": "baa70abd.0fd63",
+ "id": "594230be.69b1d8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1339.2857971191406,
- "y": 153.28570556640625,
- "z": "2eb85326.b33f34",
+ "x": 1332.2857971191406,
+ "y": 158.28570556640625,
+ "z": "8a089d88.295188",
"wires": [
[
- "a4fab659.b0a56"
+ "bfba585a.37b9d"
]
]
},
{
- "id": "686c7efb.0e9a6",
+ "id": "2f05f0b.8ea6c9",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1329.2857971191406,
- "y": 245.28570556640625,
- "z": "2eb85326.b33f34",
+ "x": 1322.2857971191406,
+ "y": 250.28570556640625,
+ "z": "8a089d88.295188",
"wires": [
[
- "8c77358e.ed8228"
+ "476f4a1c.17fa44"
]
]
},
{
- "id": "8c77358e.ed8228",
+ "id": "476f4a1c.17fa44",
"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": 1551.2857971191406,
- "y": 246.28570556640625,
- "z": "2eb85326.b33f34",
+ "x": 1544.2857971191406,
+ "y": 251.28570556640625,
+ "z": "8a089d88.295188",
"wires": [
[
- "11d3b338.9e5c8d",
- "200ae17a.0a95c6"
+ "6b44719f.c3edd",
+ "a5b8b9b3.d20088"
]
]
},
{
- "id": "a4fab659.b0a56",
+ "id": "bfba585a.37b9d",
"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": 2015.2857971191406,
- "y": 154.28570556640625,
- "z": "2eb85326.b33f34",
+ "x": 2008.2857971191406,
+ "y": 159.28570556640625,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "11d3b338.9e5c8d",
+ "id": "6b44719f.c3edd",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1791.2857971191406,
- "y": 245.28570556640625,
- "z": "2eb85326.b33f34",
+ "x": 1784.2857971191406,
+ "y": 250.28570556640625,
+ "z": "8a089d88.295188",
"wires": [
[
- "a4fab659.b0a56"
+ "bfba585a.37b9d"
]
]
},
{
- "id": "200ae17a.0a95c6",
+ "id": "a5b8b9b3.d20088",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1799.2857971191406,
- "y": 346.28570556640625,
- "z": "2eb85326.b33f34",
+ "x": 1792.2857971191406,
+ "y": 351.28570556640625,
+ "z": "8a089d88.295188",
"wires": [
[
- "3482a769.667ab"
+ "dc9fe65c.767c5"
]
]
},
{
- "id": "b2848e24.03a05",
+ "id": "ea6e1c18.d5a048",
"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": 1127.6622619628906,
- "y": 87.54547119140625,
- "z": "2eb85326.b33f34",
+ "x": 1120.6622619628906,
+ "y": 92.54547119140625,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "4fafd3d6.e9c86c",
+ "id": "1e1ee6bd.a12821",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 936.7533264160156,
- "y": 85.727294921875,
- "z": "2eb85326.b33f34",
+ "x": 929.7533264160156,
+ "y": 90.727294921875,
+ "z": "8a089d88.295188",
"wires": [
[
- "fe882fb9.dd7f48",
- "b2848e24.03a05"
+ "3f3504ae.321654",
+ "ea6e1c18.d5a048"
]
]
},
{
- "id": "ab85e0c9.740d",
+ "id": "66ba22f2.06c6ac",
"type": "outcome",
"name": "CreateSOTNUnderlayInstance",
"xml": "<outcome value='CreateSOTNUnderlayInstance'>",
"comments": "",
"outputs": 1,
- "x": 1453.6665983200073,
- "y": 1786.999900341034,
- "z": "2eb85326.b33f34",
+ "x": 1446.6665983200073,
+ "y": 1791.999900341034,
+ "z": "8a089d88.295188",
"wires": [
[
- "57558677.681798"
+ "ad6e6b0b.369c1"
]
]
},
{
- "id": "57558677.681798",
+ "id": "ad6e6b0b.369c1",
"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": 1910.190218925476,
- "y": 1791.5206797122955,
- "z": "2eb85326.b33f34",
+ "x": 1903.190218925476,
+ "y": 1796.5206797122955,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "1335f1cb.2420be",
+ "id": "bcff3d5e.448328",
"type": "outcome",
"name": "ActivateSOTNUnderlayInstance",
"xml": "<outcome value='ActivateSOTNUnderlayInstance'>",
"comments": "",
"outputs": 1,
- "x": 1444.9999694824219,
- "y": 723.3332703113556,
- "z": "2eb85326.b33f34",
+ "x": 1437.9999694824219,
+ "y": 728.3332703113556,
+ "z": "8a089d88.295188",
"wires": [
[
- "f5e7fd9c.42866"
+ "78a59d2a.b40f04"
]
]
},
{
- "id": "f5e7fd9c.42866",
+ "id": "78a59d2a.b40f04",
"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": 1904.8569641113281,
- "y": 717.8540802001953,
- "z": "2eb85326.b33f34",
+ "x": 1897.8569641113281,
+ "y": 722.8540802001953,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "d9d8a57.b489358",
+ "id": "bfc4e77.1d06a18",
"type": "outcome",
"name": "DeactivateSOTNUnderlayInstance",
"xml": "<outcome value='DeactivateSOTNUnderlayInstance'>",
"comments": "",
"outputs": 1,
- "x": 1476.6666564941406,
- "y": 1167.6665802001953,
- "z": "2eb85326.b33f34",
+ "x": 1469.6666564941406,
+ "y": 1172.6665802001953,
+ "z": "8a089d88.295188",
"wires": [
[
- "24872c71.c379b4"
+ "e763b4f8.edbd88"
]
]
},
{
- "id": "24872c71.c379b4",
+ "id": "e763b4f8.edbd88",
"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": 1944.8569641113281,
- "y": 1170.520523071289,
- "z": "2eb85326.b33f34",
+ "x": 1937.8569641113281,
+ "y": 1175.520523071289,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "58d57172.fc9ab",
+ "id": "10da590d.98b947",
"type": "outcome",
"name": "DeleteSOTNUnderlayInstance",
"xml": "<outcome value='DeleteSOTNUnderlayInstance'>",
"comments": "",
"outputs": 1,
- "x": 1462.6666717529297,
- "y": 2377.3333563804626,
- "z": "2eb85326.b33f34",
+ "x": 1455.6666717529297,
+ "y": 2382.3333563804626,
+ "z": "8a089d88.295188",
"wires": [
[
- "fc2f8c01.3ad288"
+ "acd9ad25.c317a8"
]
]
},
{
- "id": "fc2f8c01.3ad288",
+ "id": "acd9ad25.c317a8",
"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": 1900.8571014404297,
- "y": 2373.52073431015,
- "z": "2eb85326.b33f34",
+ "x": 1893.8571014404297,
+ "y": 2378.52073431015,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "e984aa3b.a932c",
+ "id": "200396ca.da6dba",
"type": "outcome",
"name": "CreateAccessConnectivityInstance",
"xml": "<outcome value='CreateAccessConnectivityInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1467.5,
- "y": 1490.75,
- "z": "2eb85326.b33f34",
+ "x": 1460.5,
+ "y": 1495.75,
+ "z": "8a089d88.295188",
"wires": [
[
- "ebf3fb46.44d4c8"
+ "e4480788.84b37"
]
]
},
{
- "id": "ebf3fb46.44d4c8",
+ "id": "e4480788.84b37",
"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": 1753.432861328125,
- "y": 1488.033447265625,
- "z": "2eb85326.b33f34",
+ "x": 1746.432861328125,
+ "y": 1493.033447265625,
+ "z": "8a089d88.295188",
"wires": [
[
- "22ea9454.058e1c"
+ "19c6ac9b.0ef423"
]
]
},
{
- "id": "22ea9454.058e1c",
+ "id": "19c6ac9b.0ef423",
"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": 1990.599365234375,
- "y": 1482.033447265625,
- "z": "2eb85326.b33f34",
+ "x": 1983.599365234375,
+ "y": 1487.033447265625,
+ "z": "8a089d88.295188",
"wires": [
[
- "d9ddd0af.b69c08"
+ "14f5be.82719a42"
]
]
},
{
- "id": "d9ddd0af.b69c08",
+ "id": "14f5be.82719a42",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2184.599365234375,
- "y": 1483.03369140625,
- "z": "2eb85326.b33f34",
+ "x": 2177.599365234375,
+ "y": 1488.03369140625,
+ "z": "8a089d88.295188",
"wires": [
[
- "15707209.859e26"
+ "96037c5b.5b0df8"
]
]
},
{
- "id": "dded3789.e6b0f",
+ "id": "9b55c6a1.642138",
"type": "outcome",
"name": "CreateInternetProfileInstance",
"xml": "<outcome value='CreateInternetProfileInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1445.283203125,
- "y": 1527.616455078125,
- "z": "2eb85326.b33f34",
+ "x": 1438.283203125,
+ "y": 1532.616455078125,
+ "z": "8a089d88.295188",
"wires": [
[
- "6b82d221.0cf264"
+ "7bbf0471.c32844"
]
]
},
{
- "id": "6b82d221.0cf264",
+ "id": "7bbf0471.c32844",
"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": 1730.439453125,
- "y": 1526.60595703125,
- "z": "2eb85326.b33f34",
+ "x": 1723.439453125,
+ "y": 1531.60595703125,
+ "z": "8a089d88.295188",
"wires": [
[
- "4637bf92.809598"
+ "8eac794b.4ff3d8"
]
]
},
{
- "id": "4637bf92.809598",
+ "id": "8eac794b.4ff3d8",
"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": 1983.6058349609375,
- "y": 1523.60595703125,
- "z": "2eb85326.b33f34",
+ "x": 1976.6058349609375,
+ "y": 1528.60595703125,
+ "z": "8a089d88.295188",
"wires": [
[
- "ea561129.ba7158"
+ "b984ed9a.eddd08"
]
]
},
{
- "id": "ea561129.ba7158",
+ "id": "b984ed9a.eddd08",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2179.605712890625,
- "y": 1539.606201171875,
- "z": "2eb85326.b33f34",
+ "x": 2172.605712890625,
+ "y": 1544.606201171875,
+ "z": "8a089d88.295188",
"wires": [
[
- "eb33a1df.b27988"
+ "8159d690.0c41a8"
]
]
},
{
- "id": "eb33a1df.b27988",
+ "id": "8159d690.0c41a8",
"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": 2402.606201171875,
- "y": 1549.6064453125,
- "z": "2eb85326.b33f34",
+ "x": 2395.606201171875,
+ "y": 1554.6064453125,
+ "z": "8a089d88.295188",
"wires": [
[
- "94514c5c.b09aa"
+ "eaffd771.eac41"
]
]
},
{
- "id": "15707209.859e26",
+ "id": "96037c5b.5b0df8",
"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": 2416.599853515625,
- "y": 1483.033935546875,
- "z": "2eb85326.b33f34",
+ "x": 2409.599853515625,
+ "y": 1488.033935546875,
+ "z": "8a089d88.295188",
"wires": [
[
- "3bc9e881.210f6",
- "1e5debbd.1cc0bc"
+ "3c81fedb.0be4da",
+ "72ea67d8.8d2068"
]
]
},
{
- "id": "3bc9e881.210f6",
+ "id": "3c81fedb.0be4da",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2648.433349609375,
- "y": 1485.03369140625,
- "z": "2eb85326.b33f34",
+ "x": 2641.433349609375,
+ "y": 1490.03369140625,
+ "z": "8a089d88.295188",
"wires": [
[
- "d86bc2c0.93fa8"
+ "ceb29836.0408d8"
]
]
},
{
- "id": "1e5debbd.1cc0bc",
+ "id": "72ea67d8.8d2068",
"type": "other",
"name": "Other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 2642.833251953125,
- "y": 1516.75,
- "z": "2eb85326.b33f34",
+ "x": 2635.833251953125,
+ "y": 1521.75,
+ "z": "8a089d88.295188",
"wires": [
[
- "55dea9c1.ebbe88"
+ "3ef298a3.b4b2f"
]
]
},
{
- "id": "94514c5c.b09aa",
+ "id": "eaffd771.eac41",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2630.439453125,
- "y": 1579.606201171875,
- "z": "2eb85326.b33f34",
+ "x": 2623.439453125,
+ "y": 1584.606201171875,
+ "z": "8a089d88.295188",
"wires": [
[
- "d09ca34a.b65f98"
+ "8974e065.42cf68"
]
]
},
{
- "id": "d86bc2c0.93fa8",
+ "id": "ceb29836.0408d8",
"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": 3145.2769165039062,
- "y": 1485.044189453125,
- "z": "2eb85326.b33f34",
+ "x": 3138.2769165039062,
+ "y": 1490.044189453125,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "55dea9c1.ebbe88",
+ "id": "3ef298a3.b4b2f",
"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": 2891.166259765625,
- "y": 1528.4166259765625,
- "z": "2eb85326.b33f34",
+ "x": 2884.166259765625,
+ "y": 1533.4166259765625,
+ "z": "8a089d88.295188",
"wires": []
},
{
- "id": "d09ca34a.b65f98",
+ "id": "8974e065.42cf68",
"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": 3131.283447265625,
- "y": 1581.616943359375,
- "z": "2eb85326.b33f34",
+ "x": 3124.283447265625,
+ "y": 1586.616943359375,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "58a075cd.2a28cc",
+ "id": "fb6200c1.eb497",
"type": "outcome",
"name": "DeleteAccessConnectivityInstance",
"xml": "<outcome value='DeleteAccessConnectivityInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1478.75,
- "y": 2053.75,
- "z": "2eb85326.b33f34",
+ "x": 1471.75,
+ "y": 2058.75,
+ "z": "8a089d88.295188",
"wires": [
[
- "2fe8fc2c.9e18c4"
+ "4579a656.ff8dd8"
]
]
},
{
- "id": "2fe8fc2c.9e18c4",
+ "id": "4579a656.ff8dd8",
"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": 1791.5732421875,
- "y": 2044.73974609375,
- "z": "2eb85326.b33f34",
+ "x": 1784.5732421875,
+ "y": 2049.73974609375,
+ "z": "8a089d88.295188",
"wires": [
[
- "2ff99d94.7a38aa"
+ "24d33b4e.2021f4"
]
]
},
{
- "id": "2ff99d94.7a38aa",
+ "id": "24d33b4e.2021f4",
"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": 2062.7393798828125,
- "y": 2038.73974609375,
- "z": "2eb85326.b33f34",
+ "x": 2055.7393798828125,
+ "y": 2043.73974609375,
+ "z": "8a089d88.295188",
"wires": [
[
- "9d28a15.cb4fb6"
+ "2a6c48b.af53938"
]
]
},
{
- "id": "9d28a15.cb4fb6",
+ "id": "2a6c48b.af53938",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2262.739501953125,
- "y": 2038.7396240234375,
- "z": "2eb85326.b33f34",
+ "x": 2255.739501953125,
+ "y": 2043.7396240234375,
+ "z": "8a089d88.295188",
"wires": [
[
- "da625743.b6b9"
+ "316a2818.d2249"
]
]
},
{
- "id": "1ce03296.eacf2d",
+ "id": "527d576.7230ea8",
"type": "outcome",
"name": "DeleteInternetProfileInstance",
"xml": "<outcome value='DeleteInternetProfileInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1460.316650390625,
- "y": 2093.800048828125,
- "z": "2eb85326.b33f34",
+ "x": 1453.316650390625,
+ "y": 2098.800048828125,
+ "z": "8a089d88.295188",
"wires": [
[
- "e0e2140.cef7d7"
+ "c75e1f48.570c8"
]
]
},
{
- "id": "e0e2140.cef7d7",
+ "id": "c75e1f48.570c8",
"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": 1737.6500244140625,
- "y": 2105.5167236328125,
- "z": "2eb85326.b33f34",
+ "x": 1730.6500244140625,
+ "y": 2110.5167236328125,
+ "z": "8a089d88.295188",
"wires": [
[
- "282b6105.2ce956"
+ "76730627.802e4"
]
]
},
{
- "id": "282b6105.2ce956",
+ "id": "76730627.802e4",
"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.8163528442383,
- "y": 2094.516764640808,
- "z": "2eb85326.b33f34",
+ "x": 1958.8163528442383,
+ "y": 2099.516764640808,
+ "z": "8a089d88.295188",
"wires": [
[
- "7a75ccaa.45800c"
+ "cd073b6.c768fc8"
]
]
},
{
- "id": "7a75ccaa.45800c",
+ "id": "cd073b6.c768fc8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2155.816230773926,
- "y": 2094.517008781433,
- "z": "2eb85326.b33f34",
+ "x": 2148.816230773926,
+ "y": 2099.517008781433,
+ "z": "8a089d88.295188",
"wires": [
[
- "bc8cb901.156488"
+ "693da3bc.719dd4"
]
]
},
{
- "id": "bc8cb901.156488",
+ "id": "693da3bc.719dd4",
"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.816719055176,
- "y": 2090.517252922058,
- "z": "2eb85326.b33f34",
+ "x": 2362.816719055176,
+ "y": 2095.517252922058,
+ "z": "8a089d88.295188",
"wires": [
[
- "6506ce79.c7ee4"
+ "989e3e19.ec1b3"
]
]
},
{
- "id": "da625743.b6b9",
+ "id": "316a2818.d2249",
"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": 2521.7398986816406,
- "y": 2031.739761352539,
- "z": "2eb85326.b33f34",
+ "x": 2514.7398986816406,
+ "y": 2036.739761352539,
+ "z": "8a089d88.295188",
"wires": [
[
- "9eeed2b2.ffa65"
+ "ed96987b.eb92f"
]
]
},
{
- "id": "9eeed2b2.ffa65",
+ "id": "ed96987b.eb92f",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2724.5732421875,
- "y": 2040.7396240234375,
- "z": "2eb85326.b33f34",
+ "x": 2717.5732421875,
+ "y": 2045.7396240234375,
+ "z": "8a089d88.295188",
"wires": [
[
- "74318d61.eabaac"
+ "c27ef8a5.eaf72"
]
]
},
{
- "id": "6506ce79.c7ee4",
+ "id": "989e3e19.ec1b3",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2557.6497802734375,
- "y": 2086.5169677734375,
- "z": "2eb85326.b33f34",
+ "x": 2550.6497802734375,
+ "y": 2091.5169677734375,
+ "z": "8a089d88.295188",
"wires": [
[
- "1d65720a.ff1cbe"
+ "6cdbeeec.cd0338"
]
]
},
{
- "id": "1d65720a.ff1cbe",
+ "id": "6cdbeeec.cd0338",
"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": 2900.493896484375,
- "y": 2146.527587890625,
- "z": "2eb85326.b33f34",
+ "x": 2893.493896484375,
+ "y": 2151.527587890625,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "74318d61.eabaac",
+ "id": "c27ef8a5.eaf72",
"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": 3165.750732421875,
- "y": 2089.7506103515625,
- "z": "2eb85326.b33f34",
+ "x": 3158.750732421875,
+ "y": 2094.7506103515625,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "5ce4691c.c29e48",
+ "id": "e097aab2.2677e",
"type": "outcome",
"name": "update",
"xml": "<outcome value='update'>\n",
"comments": "",
"outputs": 1,
- "x": 943.499942779541,
- "y": 2514.00008392334,
- "z": "2eb85326.b33f34",
+ "x": 936.499942779541,
+ "y": 2519.00008392334,
+ "z": "8a089d88.295188",
"wires": [
[
- "7808856d.04e4ac"
+ "e09113a.c56c7f"
]
]
},
{
- "id": "7808856d.04e4ac",
+ "id": "e09113a.c56c7f",
"type": "switchNode",
"name": "switch request-action",
"xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 1146.4999732971191,
- "y": 2607.50008392334,
- "z": "2eb85326.b33f34",
+ "x": 1139.4999732971191,
+ "y": 2612.50008392334,
+ "z": "8a089d88.295188",
"wires": [
[
- "acb579b0.a5157"
+ "b6ed3a36.59e06",
+ "58994378.ac8fb4"
]
]
},
{
- "id": "acb579b0.a5157",
+ "id": "b6ed3a36.59e06",
"type": "outcome",
"name": "ChangeInternetProfileInstance",
"xml": "<outcome value='ChangeInternetProfileInstance'>\n",
"comments": "",
"outputs": 1,
- "x": 1419.499912261963,
- "y": 2604.00008392334,
- "z": "2eb85326.b33f34",
+ "x": 1412.499912261963,
+ "y": 2609.00008392334,
+ "z": "8a089d88.295188",
"wires": [
[
- "4bd1e7d2.287198"
+ "ad17451.58d3cb8"
]
]
},
{
- "id": "4bd1e7d2.287198",
+ "id": "ad17451.58d3cb8",
"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": 1743.6561279296875,
- "y": 2602.98974609375,
- "z": "2eb85326.b33f34",
+ "x": 1736.6561279296875,
+ "y": 2607.98974609375,
+ "z": "8a089d88.295188",
"wires": [
[
- "56a21b47.885b94"
+ "6a825308.0265a4"
]
]
},
{
- "id": "56a21b47.885b94",
+ "id": "6a825308.0265a4",
"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": 2004.822509765625,
- "y": 2600.98974609375,
- "z": "2eb85326.b33f34",
+ "x": 1997.822509765625,
+ "y": 2605.98974609375,
+ "z": "8a089d88.295188",
"wires": [
[
- "759ecbfa.1b9c8c"
+ "7e2629d.b42f5d8"
]
]
},
{
- "id": "759ecbfa.1b9c8c",
+ "id": "7e2629d.b42f5d8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2192.822395324707,
- "y": 2602.989908218384,
- "z": "2eb85326.b33f34",
+ "x": 2185.822395324707,
+ "y": 2607.989908218384,
+ "z": "8a089d88.295188",
"wires": [
[
- "8126afba.fba1b8"
+ "a7970042.cda818"
]
]
},
{
- "id": "8126afba.fba1b8",
+ "id": "a7970042.cda818",
"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": 2403.8230361938477,
- "y": 2602.9902334213257,
- "z": "2eb85326.b33f34",
+ "x": 2396.8230361938477,
+ "y": 2607.9902334213257,
+ "z": "8a089d88.295188",
"wires": [
[
- "110da833.5c065"
+ "318d0243.9afc36"
]
]
},
{
- "id": "110da833.5c065",
+ "id": "318d0243.9afc36",
"type": "outcomeTrue",
"name": "HUAWEI",
"xml": "<outcome value='HUAWEI'>\n",
"comments": "",
"outputs": 1,
- "x": 2655.6562690734863,
- "y": 2528.989896774292,
- "z": "2eb85326.b33f34",
+ "x": 2648.6562690734863,
+ "y": 2533.989896774292,
+ "z": "8a089d88.295188",
"wires": [
[
- "b3b76bdf.09e3e"
+ "e89018af.6420d"
]
]
},
{
- "id": "b3b76bdf.09e3e",
+ "id": "e89018af.6420d",
"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": 3119.5008239746094,
- "y": 2530.000228881836,
- "z": "2eb85326.b33f34",
+ "x": 3112.5008239746094,
+ "y": 2535.000228881836,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "396cf4fc.519af4",
+ "id": "d5f5c122.ae8be8",
"type": "outcome",
"name": "ActivateTransportSliceInstance",
"xml": "<outcome value='ActivateTransportSliceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1441,
- "y": 787,
- "z": "2eb85326.b33f34",
+ "x": 1434,
+ "y": 792,
+ "z": "8a089d88.295188",
"wires": [
[
- "98abb5bf.a53b2"
+ "8223237b.e7a338"
]
]
},
{
- "id": "98abb5bf.a53b2",
+ "id": "8223237b.e7a338",
"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",
+ "x": 1893.8569946289062,
+ "y": 786.5208098888397,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "f605d964.bf649",
+ "id": "1ed033e6.f89f9c",
"type": "outcome",
"name": "DeleteTransportSliceInstance",
"xml": "<outcome value='DeleteTransportSliceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1457,
- "y": 2445,
- "z": "2eb85326.b33f34",
+ "x": 1450,
+ "y": 2450,
+ "z": "8a089d88.295188",
"wires": [
[
- "68ebe508.81cc9c"
+ "dbf8a40f.0e189"
]
]
},
{
- "id": "68ebe508.81cc9c",
+ "id": "dbf8a40f.0e189",
"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",
+ "x": 1888.1904296875,
+ "y": 2446.1873779296875,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "42d2af76.1ab5f8",
+ "id": "9134a5a8.bc4e5",
"type": "outcome",
"name": "AllocateTransportSliceInstance",
"xml": "<outcome value='AllocateTransportSliceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1450,
- "y": 1855,
- "z": "2eb85326.b33f34",
+ "x": 1443,
+ "y": 1860,
+ "z": "8a089d88.295188",
"wires": [
[
- "d6261b88.e8ce"
+ "adba3298.28a47"
]
]
},
{
- "id": "d6261b88.e8ce",
+ "id": "adba3298.28a47",
"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",
+ "x": 1895.523681640625,
+ "y": 1854.520751953125,
+ "z": "8a089d88.295188",
"wires": [
[]
]
},
{
- "id": "4fb9c783.53cbd8",
+ "id": "2f120adf.034a9e",
"type": "outcome",
"name": "DeactivateTransportSliceInstance",
"xml": "<outcome value='DeactivateTransportSliceInstance'>",
"comments": "",
"outputs": 1,
- "x": 1475,
- "y": 1240,
- "z": "2eb85326.b33f34",
+ "x": 1468,
+ "y": 1245,
+ "z": "8a089d88.295188",
"wires": [
[
- "366804fb.ac0b14"
+ "173b2976.ff4bff"
]
]
},
{
- "id": "366804fb.ac0b14",
+ "id": "173b2976.ff4bff",
"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",
+ "x": 1936.1903076171875,
+ "y": 1247.8539428710938,
+ "z": "8a089d88.295188",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "58994378.ac8fb4",
+ "type": "outcome",
+ "name": "ModifyTransportSliceInstance",
+ "xml": "<outcome value='DeleteTransportSliceInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1407,
+ "y": 2666,
+ "z": "8a089d88.295188",
+ "wires": [
+ [
+ "278d780.1be9f88"
+ ]
+ ]
+ },
+ {
+ "id": "278d780.1be9f88",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-trans-slice-modify",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-modify' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1845.1904296875,
+ "y": 2662.1873779296875,
+ "z": "8a089d88.295188",
"wires": [
[]
]
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json
index bc919426..6d4c48ff 100644
--- a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.json
@@ -54,8 +54,8 @@
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url + '?ethsrvType=' + $prop.ethsrvType`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 849.9730834960938,
- "y": 178.99600219726562,
+ "x": 879.9730682373047,
+ "y": 71.99600028991699,
"z": "97fec48c.8eada",
"wires": [
[
@@ -71,8 +71,8 @@
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1089.9732246398926,
- "y": 202.9959716796875,
+ "x": 1119.9732093811035,
+ "y": 95.99596977233887,
"z": "97fec48c.8eada",
"wires": [
[
@@ -86,8 +86,8 @@
"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 OOF api\" />\n",
"comments": "",
- "x": 1259.97314453125,
- "y": 142.99606323242188,
+ "x": 1289.973129272461,
+ "y": 35.99606132507324,
"z": "97fec48c.8eada",
"wires": []
},
@@ -98,8 +98,8 @@
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1088.9730110168457,
- "y": 151.99606227874756,
+ "x": 1118.9729957580566,
+ "y": 44.996060371398926,
"z": "97fec48c.8eada",
"wires": [
[
@@ -113,8 +113,8 @@
"name": "OTN tunnel path computation",
"info": "TODO: check input parameters -- they should be\nthe source and destination of ETH node+tp.",
"comments": "",
- "x": 821.4768829345703,
- "y": 135.00000190734863,
+ "x": 851.4768676757812,
+ "y": 28,
"z": "97fec48c.8eada",
"wires": []
},
@@ -281,8 +281,8 @@
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1235.0002708435059,
- "y": 200.74145698547363,
+ "x": 1265.0002555847168,
+ "y": 93.741455078125,
"z": "97fec48c.8eada",
"wires": [
[]
@@ -302,7 +302,8 @@
[
"9cfd026a.5e4728",
"6bdd3c50.e0d3d4",
- "3d2e0b8f.457abc"
+ "3d2e0b8f.457abc",
+ "27ac90d.484a9f"
]
]
},
@@ -1786,8 +1787,8 @@
"name": "unset parameters",
"xml": "<set>\n<parameter name='`tmp.otninfo.`' value='' />\n<parameter name='`tmp.otninfo_length`' value='0' />",
"comments": "",
- "x": 829,
- "y": 402,
+ "x": 824,
+ "y": 429,
"z": "97fec48c.8eada",
"wires": []
},
@@ -1797,9 +1798,233 @@
"name": "May not be necessary",
"info": "",
"comments": "",
- "x": 841,
- "y": 370,
+ "x": 836,
+ "y": 397,
"z": "97fec48c.8eada",
"wires": []
+ },
+ {
+ "id": "27ac90d.484a9f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 825,
+ "y": 265,
+ "z": "97fec48c.8eada",
+ "wires": [
+ [
+ "b00cf456.1fcfd8",
+ "22917417.40dffc",
+ "9d01bdd0.0fc258"
+ ]
+ ]
+ },
+ {
+ "id": "b00cf456.1fcfd8",
+ "type": "get-resource",
+ "name": "get-resource pnfs-list",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v21/network/pnfs?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopo.pnfs\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1072,
+ "y": 218,
+ "z": "97fec48c.8eada",
+ "wires": [
+ [
+ "e9ef8fc5.a18d1",
+ "701f5a59.c009ac",
+ "88137b8e.f20ce"
+ ]
+ ]
+ },
+ {
+ "id": "22917417.40dffc",
+ "type": "get-resource",
+ "name": "get-resource logical-links",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v21/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopo.logicalLinks\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1082,
+ "y": 275,
+ "z": "97fec48c.8eada",
+ "wires": [
+ [
+ "701f5a59.c009ac",
+ "88137b8e.f20ce",
+ "f79f6d93.33fad8"
+ ]
+ ]
+ },
+ {
+ "id": "9d01bdd0.0fc258",
+ "type": "execute",
+ "name": "execute PCE in ccsdk/sli/core",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.slitopologyutils.SliTopologyUtils' method='computePath' >\n<parameter name=\"pnfs-pfx\" value='`$ccsdkTopo.pnfs`'/>\n<parameter name=\"links-pfx\" value=\"`$ccsdkTopo.logicalLinks`\"/>\n<parameter name=\"response-pfx\" value=\"otn-oof\"/>\n<parameter name=\"output-end-to-end-path\" value=\"true\"/>\n<parameter name=\"src-node\" value=\"`$tmp.src.domainA.pnf-name`\"/>\n<parameter name=\"dst-node\" value=\"`$tmp.src.domainB.pnf-name`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1095,
+ "y": 327,
+ "z": "97fec48c.8eada",
+ "wires": [
+ [
+ "d13c5cda.e31cf8",
+ "75643e28.77914"
+ ]
+ ]
+ },
+ {
+ "id": "701f5a59.c009ac",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1329,
+ "y": 163,
+ "z": "97fec48c.8eada",
+ "wires": [
+ [
+ "2909bfef.cce208"
+ ]
+ ]
+ },
+ {
+ "id": "e9ef8fc5.a18d1",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1337,
+ "y": 240,
+ "z": "97fec48c.8eada",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d0a238b.9b0514",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Pnfs retrieved!\"/>\n<parameter name=\"field2\" value=\"`$ccsdkTopo.pnfs.pnf_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1496,
+ "y": 237,
+ "z": "97fec48c.8eada",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2909bfef.cce208",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1515,
+ "y": 163,
+ "z": "97fec48c.8eada",
+ "wires": []
+ },
+ {
+ "id": "88137b8e.f20ce",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1340,
+ "y": 201,
+ "z": "97fec48c.8eada",
+ "wires": [
+ [
+ "5baa421f.eeaaec"
+ ]
+ ]
+ },
+ {
+ "id": "5baa421f.eeaaec",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1512,
+ "y": 201,
+ "z": "97fec48c.8eada",
+ "wires": []
+ },
+ {
+ "id": "f79f6d93.33fad8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1341,
+ "y": 275,
+ "z": "97fec48c.8eada",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8cc43261.20f998",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Logical-links retrieved!\"/>\n<parameter name=\"field2\" value=\"`$ccsdkTopo.logicalLinks.logical-link_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1502,
+ "y": 275,
+ "z": "97fec48c.8eada",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d13c5cda.e31cf8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1336,
+ "y": 314,
+ "z": "97fec48c.8eada",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "75643e28.77914",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1328,
+ "y": 361,
+ "z": "97fec48c.8eada",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "117e8dda.79f3d2",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Path computation succeed!\"/>\n<parameter name=\"field2\" value=\"`$ccsdkTopo.resp.solutions_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1503,
+ "y": 320,
+ "z": "97fec48c.8eada",
+ "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-activate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
index 5681c261..d6eb6865 100644
--- 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
@@ -1,20 +1,20 @@
[
{
- "id": "c170e1ed.7b781",
+ "id": "eb07fd3d.499fe",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 137,
- "y": 82,
- "z": "bc289cb4.31b288",
+ "x": 142,
+ "y": 92,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "9970ac63.cab4e"
+ "39c5ac20.45e1d4"
]
]
},
{
- "id": "9970ac63.cab4e",
+ "id": "39c5ac20.45e1d4",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,2248 +22,2328 @@
"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": 268.2856903076172,
- "y": 131.23810863494873,
- "z": "bc289cb4.31b288",
+ "x": 273.2856903076172,
+ "y": 141.23810863494873,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "d984e08f.709ec8"
+ "2ea16900.365168"
]
]
},
{
- "id": "d984e08f.709ec8",
+ "id": "2ea16900.365168",
"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": 271.4286193847656,
- "y": 216.00003242492676,
- "z": "bc289cb4.31b288",
+ "x": 276.4286193847656,
+ "y": 226.00003242492676,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "8e4db78f.c5ff38"
+ "65a4788.f116c88"
]
]
},
{
- "id": "8e4db78f.c5ff38",
+ "id": "65a4788.f116c88",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 421.238037109375,
- "y": 345.6666564941406,
- "z": "bc289cb4.31b288",
+ "x": 426.238037109375,
+ "y": 355.6666564941406,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "6bde1442.84f93c",
- "d81cbe5a.85cea",
- "2a368168.cab60e"
+ "57f656d8.02c09",
+ "6ee54bdc.2fdd5c",
+ "4cf7ab90.c1f3ec"
]
]
},
{
- "id": "6bde1442.84f93c",
+ "id": "57f656d8.02c09",
"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": 689.5716552734375,
- "y": 732.59716796875,
- "z": "bc289cb4.31b288",
+ "x": 694.5716552734375,
+ "y": 742.59716796875,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "233d87e5.a24f7",
+ "id": "d36cebd.8be9418",
"type": "comment",
"name": "new for TransportSlicing",
"info": "",
"comments": "",
- "x": 721,
- "y": 407,
- "z": "bc289cb4.31b288",
+ "x": 726,
+ "y": 417,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "d81cbe5a.85cea",
+ "id": "6ee54bdc.2fdd5c",
"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.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--$vnf-topology-operation-input.service-information.service-instance-id-->",
"comments": "",
"outputs": 1,
- "x": 741,
- "y": 503,
- "z": "bc289cb4.31b288",
+ "x": 746,
+ "y": 513,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "b0036e6b.1878c8",
- "7901c2f.e699b3c",
- "120c06e4.dff209"
+ "4321e029.b0b21",
+ "df857197.b37508",
+ "caa9bf62.bc7768"
]
]
},
{
- "id": "b0036e6b.1878c8",
+ "id": "4321e029.b0b21",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 960,
- "y": 441,
- "z": "bc289cb4.31b288",
+ "x": 965,
+ "y": 451,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "9167ffc3.5d91a"
+ "1399e348.49a41d"
]
]
},
{
- "id": "7901c2f.e699b3c",
+ "id": "df857197.b37508",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 969.490966796875,
- "y": 483.57403564453125,
- "z": "bc289cb4.31b288",
+ "x": 974.490966796875,
+ "y": 493.57403564453125,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "fe34f5d.3d31308"
+ "9c66f3b5.ba5a"
]
]
},
{
- "id": "120c06e4.dff209",
+ "id": "caa9bf62.bc7768",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 958,
- "y": 530,
- "z": "bc289cb4.31b288",
+ "x": 963,
+ "y": 540,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "6d39868f.7f25c8"
+ "83f89a00.0c0e7"
]
]
},
{
- "id": "fe34f5d.3d31308",
+ "id": "9c66f3b5.ba5a",
"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": 1123.0623779296875,
- "y": 486.8597717285156,
- "z": "bc289cb4.31b288",
+ "x": 1128.0623779296875,
+ "y": 496.8597717285156,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "6d39868f.7f25c8",
+ "id": "83f89a00.0c0e7",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1127,
- "y": 531,
- "z": "bc289cb4.31b288",
+ "x": 1132,
+ "y": 541,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "9167ffc3.5d91a",
+ "id": "1399e348.49a41d",
"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": 1157,
- "y": 437,
- "z": "bc289cb4.31b288",
+ "x": 1162,
+ "y": 447,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "5c1ddd56.ddffa4"
+ "8c655e36.efa51"
]
]
},
{
- "id": "5c1ddd56.ddffa4",
+ "id": "8c655e36.efa51",
"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": 1380.33349609375,
- "y": 436.99993896484375,
- "z": "bc289cb4.31b288",
+ "x": 1385.33349609375,
+ "y": 446.99993896484375,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "aeacbf90.6ab9e"
+ "dae7ff66.9b9c6"
]
]
},
{
- "id": "aeacbf90.6ab9e",
+ "id": "dae7ff66.9b9c6",
"type": "outcome",
"name": "connectivity",
"xml": "<outcome value='connectivity'>\n",
"comments": "",
"outputs": 1,
- "x": 1581.0001335144043,
- "y": 438.00002098083496,
- "z": "bc289cb4.31b288",
+ "x": 1586.0001335144043,
+ "y": 448.00002098083496,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "7ea091c4.73eb6"
+ "5afc15bc.b14b2c"
]
]
},
{
- "id": "fd4d27b6.bd205",
+ "id": "73d91f0d.979448",
"type": "set",
"name": "set attachment_param for OTN A",
"xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n",
"comments": "",
- "x": 4400,
- "y": 154,
- "z": "bc289cb4.31b288",
+ "x": 4405,
+ "y": 164,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "7648091a.a03898",
+ "id": "53d5aef.e4ebbd",
"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 + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 4481,
- "y": 469,
- "z": "bc289cb4.31b288",
+ "x": 4486,
+ "y": 479,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "9edc273d.67b87",
- "9c60eb24.47f378"
+ "ecc00da.2c7107",
+ "8ec5d396.327df"
]
]
},
{
- "id": "9edc273d.67b87",
+ "id": "ecc00da.2c7107",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4790.5,
- "y": 438,
- "z": "bc289cb4.31b288",
+ "x": 4795.5,
+ "y": 448,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "9905c30a.05be"
+ "30cb0de4.d526fa"
]
]
},
{
- "id": "9c60eb24.47f378",
+ "id": "8ec5d396.327df",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4795.5,
- "y": 503,
- "z": "bc289cb4.31b288",
+ "x": 4800.5,
+ "y": 513,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "8e92f9d2.75f4a8"
+ "d98d92f9.c81fa"
]
]
},
{
- "id": "9905c30a.05be",
+ "id": "30cb0de4.d526fa",
"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 OTN tunnel rest api\" />\n",
"comments": "",
- "x": 4966.5,
- "y": 438,
- "z": "bc289cb4.31b288",
+ "x": 4971.5,
+ "y": 448,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "8e92f9d2.75f4a8",
+ "id": "d98d92f9.c81fa",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4962,
- "y": 503,
- "z": "bc289cb4.31b288",
+ "x": 4967,
+ "y": 513,
+ "z": "f351885d.7dcd3",
"wires": [
[]
]
},
{
- "id": "7974f996.7603f8",
+ "id": "b72def38.869578",
"type": "set",
"name": "set sotn_value",
"xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />\n",
"comments": "",
- "x": 4347.5,
- "y": 657,
- "z": "bc289cb4.31b288",
+ "x": 4352.5,
+ "y": 667,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "1460b865.7cff48",
+ "id": "61d206ce.c84cc",
"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=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='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",
"comments": "",
"outputs": 1,
- "x": 4501.5,
- "y": 705,
- "z": "bc289cb4.31b288",
+ "x": 4506.5,
+ "y": 715,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "d6a6995b.244f78",
- "3058a60d.1382f2"
+ "4c218232.9ff344",
+ "70cfc429.d9d73c"
]
]
},
{
- "id": "d6a6995b.244f78",
+ "id": "4c218232.9ff344",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4847,
- "y": 686,
- "z": "bc289cb4.31b288",
+ "x": 4852,
+ "y": 696,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "9008a0fb.361338"
+ "508ab9bd.6f59b"
]
]
},
{
- "id": "3058a60d.1382f2",
+ "id": "70cfc429.d9d73c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4851,
- "y": 726,
- "z": "bc289cb4.31b288",
+ "x": 4856,
+ "y": 736,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "5c04d202.902b9c"
+ "4484b215.bd52a4"
]
]
},
{
- "id": "9008a0fb.361338",
+ "id": "508ab9bd.6f59b",
"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 ethernet service rest api\" />\n",
"comments": "",
- "x": 5005,
- "y": 686,
- "z": "bc289cb4.31b288",
+ "x": 5010,
+ "y": 696,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "5c04d202.902b9c",
+ "id": "4484b215.bd52a4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 5008.5,
- "y": 726,
- "z": "bc289cb4.31b288",
+ "x": 5013.5,
+ "y": 736,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "ec17d55b.a0804",
- "144849a3.b4133e"
+ "d5eb1314.bae0c8",
+ "10b6b358.4dd2d5"
]
]
},
{
- "id": "471d2a77.3a42ac",
+ "id": "1158b528.feaadb",
"type": "comment",
"name": "TODO: FIXME:",
"info": "put proper values based on connectivity resource retrieved from AAI",
"comments": "",
- "x": 4345,
- "y": 613,
- "z": "bc289cb4.31b288",
+ "x": 4350,
+ "y": 623,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "ec17d55b.a0804",
+ "id": "d5eb1314.bae0c8",
"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.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 5339,
- "y": 691,
- "z": "bc289cb4.31b288",
+ "x": 5344,
+ "y": 701,
+ "z": "f351885d.7dcd3",
"wires": [
[]
]
},
{
- "id": "4e9eb117.9357d",
+ "id": "4e452bee.48e2ac",
"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": 5203,
- "y": 650,
- "z": "bc289cb4.31b288",
+ "x": 5208,
+ "y": 660,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "144849a3.b4133e",
+ "id": "10b6b358.4dd2d5",
"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 = $tmp.aai.connectivityA.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 5266,
- "y": 737,
- "z": "bc289cb4.31b288",
+ "x": 5271,
+ "y": 747,
+ "z": "f351885d.7dcd3",
"wires": [
[]
]
},
{
- "id": "4f40e2d1.4262ec",
+ "id": "cdb19fe7.3fcc18",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingA.src-access-node-id`\" />\n",
"comments": "",
- "x": 4338,
- "y": 202,
- "z": "bc289cb4.31b288",
+ "x": 4343,
+ "y": 212,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "8abcb98.e721cc8",
+ "id": "83225463.070fc",
"type": "get-resource",
"name": "get-resource src pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 4364,
- "y": 319,
- "z": "bc289cb4.31b288",
+ "x": 4369,
+ "y": 329,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "3115ae28.00936a",
- "34440f82.2778b8",
- "5e322ae1.288484"
+ "c77a135e.0cf11",
+ "733c4b21.b0276c",
+ "dfbdc2b7.10d7d"
]
]
},
{
- "id": "3115ae28.00936a",
+ "id": "c77a135e.0cf11",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4559.5001220703125,
- "y": 271,
- "z": "bc289cb4.31b288",
+ "x": 4564.5001220703125,
+ "y": 281,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "5640c3a4.e53454"
+ "fc1575d4.07ce9"
]
]
},
{
- "id": "34440f82.2778b8",
+ "id": "733c4b21.b0276c",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 4551.5001220703125,
- "y": 326,
- "z": "bc289cb4.31b288",
+ "x": 4556.5001220703125,
+ "y": 336,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "b5a71ca6.0ed8a"
+ "2d634f91.a839c8"
]
]
},
{
- "id": "5640c3a4.e53454",
+ "id": "fc1575d4.07ce9",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4703.8824462890625,
- "y": 270.6556701660156,
- "z": "bc289cb4.31b288",
+ "x": 4708.8824462890625,
+ "y": 280.6556701660156,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "4125afdc.dc7c38"
+ "26c3005d.c41c58"
]
]
},
{
- "id": "e2a3abe6.94632",
+ "id": "fb614f2c.314568",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 5286,
- "y": 273,
- "z": "bc289cb4.31b288",
+ "x": 5291,
+ "y": 283,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "e7a85e47.2ddf5"
+ "5511aade.71874c"
]
]
},
{
- "id": "4125afdc.dc7c38",
+ "id": "26c3005d.c41c58",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 4888,
- "y": 269,
- "z": "bc289cb4.31b288",
+ "x": 4893,
+ "y": 279,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "7289fd85.50ab7c"
+ "d1afc9f2.3db068"
]
]
},
{
- "id": "7289fd85.50ab7c",
+ "id": "d1afc9f2.3db068",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 5083,
- "y": 269,
- "z": "bc289cb4.31b288",
+ "x": 5088,
+ "y": 279,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "e2a3abe6.94632"
+ "fb614f2c.314568"
]
]
},
{
- "id": "5e322ae1.288484",
+ "id": "dfbdc2b7.10d7d",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 4556.5001220703125,
- "y": 383,
- "z": "bc289cb4.31b288",
+ "x": 4561.5001220703125,
+ "y": 393,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "a5591b6a.a340a8"
+ "1874b649.d37aaa"
]
]
},
{
- "id": "a5591b6a.a340a8",
+ "id": "1874b649.d37aaa",
"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": 4708.5001220703125,
- "y": 384,
- "z": "bc289cb4.31b288",
+ "x": 4713.5001220703125,
+ "y": 394,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "b5a71ca6.0ed8a",
+ "id": "2d634f91.a839c8",
"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": 4719.5001220703125,
- "y": 327,
- "z": "bc289cb4.31b288",
+ "x": 4724.5001220703125,
+ "y": 337,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "ca9f1df7.d822c",
+ "id": "37df0014.a385b",
"type": "execute",
"name": "get 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 = $tmp.domainA.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 5671,
- "y": 286,
- "z": "bc289cb4.31b288",
+ "x": 5676,
+ "y": 296,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "d6fa81cb.78d2d",
- "bcf1b063.c95248",
- "109a3661.2bbbd2"
+ "43de30da.db75e8",
+ "e5ad5cbe.572928",
+ "12e2c219.e2a25e"
]
]
},
{
- "id": "e7a85e47.2ddf5",
+ "id": "5511aade.71874c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 5465,
- "y": 273,
- "z": "bc289cb4.31b288",
+ "x": 5470,
+ "y": 283,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "211b93a9.ce5f0c",
- "ca9f1df7.d822c"
+ "29681795.e63f18",
+ "37df0014.a385b"
]
]
},
{
- "id": "211b93a9.ce5f0c",
+ "id": "29681795.e63f18",
"type": "set",
"name": "set esr-thirdparty-sdnc domainA id",
"xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 5701,
- "y": 234,
- "z": "bc289cb4.31b288",
+ "x": 5706,
+ "y": 244,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "d6fa81cb.78d2d",
+ "id": "43de30da.db75e8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5881,
- "y": 277,
- "z": "bc289cb4.31b288",
+ "x": 5886,
+ "y": 287,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "bf2e4f3b.81ed8"
+ "9fb5e37f.eaa9f"
]
]
},
{
- "id": "bcf1b063.c95248",
+ "id": "e5ad5cbe.572928",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5873,
- "y": 332,
- "z": "bc289cb4.31b288",
+ "x": 5878,
+ "y": 342,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "bfa4b512.849248"
+ "24f5f29e.218576"
]
]
},
{
- "id": "109a3661.2bbbd2",
+ "id": "12e2c219.e2a25e",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5878,
- "y": 389,
- "z": "bc289cb4.31b288",
+ "x": 5883,
+ "y": 399,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "76f805.e622cffc"
+ "cd568772.16e428"
]
]
},
{
- "id": "76f805.e622cffc",
+ "id": "cd568772.16e428",
"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": 6030,
- "y": 390,
- "z": "bc289cb4.31b288",
+ "x": 6035,
+ "y": 400,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "bfa4b512.849248",
+ "id": "24f5f29e.218576",
"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": 6041,
- "y": 335,
- "z": "bc289cb4.31b288",
+ "x": 6046,
+ "y": 345,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "bf2e4f3b.81ed8",
+ "id": "9fb5e37f.eaa9f",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 6025.38232421875,
- "y": 274.6556701660156,
- "z": "bc289cb4.31b288",
+ "x": 6030.38232421875,
+ "y": 284.6556701660156,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "76b40334.8bd094"
+ "2b11e0ba.ac6cd8"
]
]
},
{
- "id": "76b40334.8bd094",
+ "id": "2b11e0ba.ac6cd8",
"type": "set",
"name": "set controller domainA data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
"comments": "",
- "x": 6240,
- "y": 271,
- "z": "bc289cb4.31b288",
+ "x": 6245,
+ "y": 281,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "2a368168.cab60e",
+ "id": "4cf7ab90.c1f3ec",
"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' />",
"comments": "",
"outputs": 1,
- "x": 707,
- "y": 451,
- "z": "bc289cb4.31b288",
+ "x": 712,
+ "y": 461,
+ "z": "f351885d.7dcd3",
"wires": [
[]
]
},
{
- "id": "3bea0429.f0ebac",
+ "id": "fec1365a.907b4",
"type": "set",
"name": "set attachment_param for OTN B",
"xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<!--<parameter name='src-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n",
"comments": "",
- "x": 3807,
- "y": 1611,
- "z": "bc289cb4.31b288",
+ "x": 3812,
+ "y": 1621,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "d501f859.eecd18",
+ "id": "eb21cc8f.003df8",
"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 + '/' + $prop.restapi.ts-otn-dst-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 3870,
- "y": 1940,
- "z": "bc289cb4.31b288",
+ "x": 3875,
+ "y": 1950,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "8a516999.f983f8",
- "e1e3477c.cb45b"
+ "fc655ff.669232",
+ "dfbdc395.b4aa"
]
]
},
{
- "id": "8a516999.f983f8",
+ "id": "fc655ff.669232",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4165.5,
- "y": 1907,
- "z": "bc289cb4.31b288",
+ "x": 4170.5,
+ "y": 1917,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "1f32cbd.2007fb4"
+ "d2ad58a1.dbb57"
]
]
},
{
- "id": "e1e3477c.cb45b",
+ "id": "dfbdc395.b4aa",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4170.5,
- "y": 1972,
- "z": "bc289cb4.31b288",
+ "x": 4175.5,
+ "y": 1982,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "5be15aea.63aa2c"
+ "43fba27a.3e8bd4"
]
]
},
{
- "id": "1f32cbd.2007fb4",
+ "id": "d2ad58a1.dbb57",
"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 OTN tunnel rest api\" />\n",
"comments": "",
- "x": 4333.5,
- "y": 1907,
- "z": "bc289cb4.31b288",
+ "x": 4338.5,
+ "y": 1917,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "5be15aea.63aa2c",
+ "id": "43fba27a.3e8bd4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4344,
- "y": 1972,
- "z": "bc289cb4.31b288",
+ "x": 4349,
+ "y": 1982,
+ "z": "f351885d.7dcd3",
"wires": [
[]
]
},
{
- "id": "32f45e6c.4d0bea",
+ "id": "a7e92939.08a52",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingB.dst-access-node-id`\" />\n",
"comments": "",
- "x": 3746,
- "y": 1668,
- "z": "bc289cb4.31b288",
+ "x": 3751,
+ "y": 1678,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "e8ca7925.e0f8c",
+ "id": "25024bed.781cdc",
"type": "get-resource",
"name": "get-resource dst pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n pfx='tmp.aai.destination-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 3766,
- "y": 1765,
- "z": "bc289cb4.31b288",
+ "x": 3771,
+ "y": 1775,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "9bb092a5.d05b48",
- "221dd2f3.9ac236",
- "26d51b0f.5d004c"
+ "17a289eb.8378c6",
+ "4e86abed.341d6c",
+ "9944c222.7ecb4"
]
]
},
{
- "id": "9bb092a5.d05b48",
+ "id": "17a289eb.8378c6",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3968.5001220703125,
- "y": 1718,
- "z": "bc289cb4.31b288",
+ "x": 3973.5001220703125,
+ "y": 1728,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "b690bac2.55724"
+ "2250bf3f.3fcd88"
]
]
},
{
- "id": "221dd2f3.9ac236",
+ "id": "4e86abed.341d6c",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3960.5001220703125,
- "y": 1773,
- "z": "bc289cb4.31b288",
+ "x": 3965.5001220703125,
+ "y": 1783,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "b19648bb.51984"
+ "7fe7998e.7db16"
]
]
},
{
- "id": "b690bac2.55724",
+ "id": "2250bf3f.3fcd88",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4112.8824462890625,
- "y": 1715.6556701660156,
- "z": "bc289cb4.31b288",
+ "x": 4117.8824462890625,
+ "y": 1725.6556701660156,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "bc889fde.13a798"
+ "19367b54.5d4395"
]
]
},
{
- "id": "bc889fde.13a798",
+ "id": "19367b54.5d4395",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 4297,
- "y": 1730,
- "z": "bc289cb4.31b288",
+ "x": 4302,
+ "y": 1740,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "6cdbe20d.6924d4"
+ "e137d17b.53afd"
]
]
},
{
- "id": "26d51b0f.5d004c",
+ "id": "9944c222.7ecb4",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3965.5001220703125,
- "y": 1830,
- "z": "bc289cb4.31b288",
+ "x": 3970.5001220703125,
+ "y": 1840,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "5f4cb2c4.11fb94"
+ "c7e8bb41.e69fc8"
]
]
},
{
- "id": "5f4cb2c4.11fb94",
+ "id": "c7e8bb41.e69fc8",
"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": 4117.5001220703125,
- "y": 1831,
- "z": "bc289cb4.31b288",
+ "x": 4122.5001220703125,
+ "y": 1841,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "b19648bb.51984",
+ "id": "7fe7998e.7db16",
"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": 4128.5001220703125,
- "y": 1776,
- "z": "bc289cb4.31b288",
+ "x": 4133.5001220703125,
+ "y": 1786,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "73a1b393.2e09c4",
+ "id": "18a3ba34.8443fe",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 4695,
- "y": 1734,
- "z": "bc289cb4.31b288",
+ "x": 4700,
+ "y": 1744,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "ab9ee354.2292b"
+ "cca686b1.a86b48"
]
]
},
{
- "id": "6cdbe20d.6924d4",
+ "id": "e137d17b.53afd",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 4492,
- "y": 1730,
- "z": "bc289cb4.31b288",
+ "x": 4497,
+ "y": 1740,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "73a1b393.2e09c4"
+ "18a3ba34.8443fe"
]
]
},
{
- "id": "1f5d9d19.39869b",
+ "id": "ec259c93.12e46",
"type": "execute",
"name": "get 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 = $tmp.domainB.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 5080,
- "y": 1733,
- "z": "bc289cb4.31b288",
+ "x": 5085,
+ "y": 1743,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "9355225.5c1536",
- "66c76394.d1fea4",
- "2e8b8501.9ee95a"
+ "cf9d2f3.18e805",
+ "1901d45c.9387cc",
+ "86a361e1.5f9008"
]
]
},
{
- "id": "ab9ee354.2292b",
+ "id": "cca686b1.a86b48",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4872,
- "y": 1726,
- "z": "bc289cb4.31b288",
+ "x": 4877,
+ "y": 1736,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "28e5278d.3f4238",
- "1f5d9d19.39869b"
+ "2d219530.71913a",
+ "ec259c93.12e46"
]
]
},
{
- "id": "28e5278d.3f4238",
+ "id": "2d219530.71913a",
"type": "set",
"name": "set esr-thirdparty-sdnc domainB id",
"xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 5110,
- "y": 1681,
- "z": "bc289cb4.31b288",
+ "x": 5115,
+ "y": 1691,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "8616ea00.2e5968",
+ "id": "bb17bcb1.afece8",
"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": 5439,
- "y": 1837,
- "z": "bc289cb4.31b288",
+ "x": 5444,
+ "y": 1847,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "8ef11dae.da91",
+ "id": "e71302c9.0e3fc8",
"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": 5450,
- "y": 1782,
- "z": "bc289cb4.31b288",
+ "x": 5455,
+ "y": 1792,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "d4ab39c.829a8c8",
+ "id": "c367d2df.137348",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5434.38232421875,
- "y": 1721.6556701660156,
- "z": "bc289cb4.31b288",
+ "x": 5439.38232421875,
+ "y": 1731.6556701660156,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "4d0c934c.0c9114"
+ "bfc16252.e05aa"
]
]
},
{
- "id": "4d0c934c.0c9114",
+ "id": "bfc16252.e05aa",
"type": "set",
"name": "set controller domainB data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
"comments": "",
- "x": 5649,
- "y": 1718,
- "z": "bc289cb4.31b288",
+ "x": 5654,
+ "y": 1728,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "9355225.5c1536",
+ "id": "cf9d2f3.18e805",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5290,
- "y": 1724,
- "z": "bc289cb4.31b288",
+ "x": 5295,
+ "y": 1734,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "d4ab39c.829a8c8"
+ "c367d2df.137348"
]
]
},
{
- "id": "66c76394.d1fea4",
+ "id": "1901d45c.9387cc",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5282,
- "y": 1779,
- "z": "bc289cb4.31b288",
+ "x": 5287,
+ "y": 1789,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "8ef11dae.da91"
+ "e71302c9.0e3fc8"
]
]
},
{
- "id": "2e8b8501.9ee95a",
+ "id": "86a361e1.5f9008",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5287,
- "y": 1836,
- "z": "bc289cb4.31b288",
+ "x": 5292,
+ "y": 1846,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "8616ea00.2e5968"
+ "bb17bcb1.afece8"
]
]
},
{
- "id": "7ea091c4.73eb6",
+ "id": "5afc15bc.b14b2c",
"type": "save",
"name": "get connectivity 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[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
"comments": "",
"outputs": 1,
- "x": 1819,
- "y": 440,
- "z": "bc289cb4.31b288",
+ "x": 1824,
+ "y": 450,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "cf96a339.12fc08",
- "ebf1abf2.c0a2b8",
- "a6813928.711c6"
+ "c4ea2f12.0682f8",
+ "89ba984f.fbff08",
+ "4c31ddac.b140a4"
]
]
},
{
- "id": "cf96a339.12fc08",
+ "id": "c4ea2f12.0682f8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2027,
- "y": 404,
- "z": "bc289cb4.31b288",
+ "x": 2032,
+ "y": 414,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "7e9b774d.9e8c28"
+ "207f18a3.1780c8"
]
]
},
{
- "id": "ebf1abf2.c0a2b8",
+ "id": "89ba984f.fbff08",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2027.490966796875,
- "y": 449.57403564453125,
- "z": "bc289cb4.31b288",
+ "x": 2032.490966796875,
+ "y": 459.57403564453125,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "b2e1099a.08fc3"
+ "db0bb70b.5af75"
]
]
},
{
- "id": "a6813928.711c6",
+ "id": "4c31ddac.b140a4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2025,
- "y": 493,
- "z": "bc289cb4.31b288",
+ "x": 2030,
+ "y": 503,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "8f5ccf37.c152"
+ "34efc961.392a36"
]
]
},
{
- "id": "b2e1099a.08fc3",
+ "id": "db0bb70b.5af75",
"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": 2190.0623779296875,
- "y": 449.8597717285156,
- "z": "bc289cb4.31b288",
+ "x": 2195.0623779296875,
+ "y": 459.8597717285156,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "8f5ccf37.c152",
+ "id": "34efc961.392a36",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2194,
- "y": 494,
- "z": "bc289cb4.31b288",
+ "x": 2199,
+ "y": 504,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "2f04c146.0a3af6",
+ "id": "da2f8124.076ab8",
"type": "save",
"name": "get vpn-binding 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.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",
"comments": "",
"outputs": 1,
- "x": 2500,
- "y": 493,
- "z": "bc289cb4.31b288",
+ "x": 2505,
+ "y": 503,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "675654a6.d7ff34",
- "15ae8ffb.52d9c8",
- "5de62fdc.3f5a78"
+ "28f88824.b7c4b8",
+ "d6ad8583.7ca128",
+ "c9e967f5.e899f8"
]
]
},
{
- "id": "c4252359.e0b548",
+ "id": "f459c148.932bf8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2884,
- "y": 493,
- "z": "bc289cb4.31b288",
+ "x": 2885,
+ "y": 591,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "cf117e36.f49698",
- "9e15ad66.cb5638"
+ "1c6e3351.8ccb0d"
]
]
},
{
- "id": "675654a6.d7ff34",
+ "id": "28f88824.b7c4b8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2711,
- "y": 495,
- "z": "bc289cb4.31b288",
+ "x": 2716,
+ "y": 592,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "c4252359.e0b548"
+ "f459c148.932bf8"
]
]
},
{
- "id": "15ae8ffb.52d9c8",
+ "id": "d6ad8583.7ca128",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2711.490966796875,
- "y": 540.5740356445312,
- "z": "bc289cb4.31b288",
+ "x": 2718.490966796875,
+ "y": 487.57403564453125,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "1c0c1f66.646011"
+ "ef5820a6.09d9d"
]
]
},
{
- "id": "5de62fdc.3f5a78",
+ "id": "c9e967f5.e899f8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2709,
- "y": 584,
- "z": "bc289cb4.31b288",
+ "x": 2714,
+ "y": 532,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "96b5913.ff6507"
+ "bd9d5fad.2d262"
]
]
},
{
- "id": "96b5913.ff6507",
+ "id": "bd9d5fad.2d262",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2876,
- "y": 583,
- "z": "bc289cb4.31b288",
+ "x": 2882,
+ "y": 532,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "1c0c1f66.646011",
+ "id": "ef5820a6.09d9d",
"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": 2874.0623779296875,
- "y": 540.8597717285156,
- "z": "bc289cb4.31b288",
+ "x": 2881.0625,
+ "y": 486.8597412109375,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "7e9b774d.9e8c28",
+ "id": "207f18a3.1780c8",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
"comments": "",
"outputs": 1,
- "x": 2228,
- "y": 399,
- "z": "bc289cb4.31b288",
+ "x": 2233,
+ "y": 409,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "a33b5641.550dd8"
+ "208bed02.1187fa"
]
]
},
{
- "id": "a33b5641.550dd8",
+ "id": "208bed02.1187fa",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 2433,
- "y": 399,
- "z": "bc289cb4.31b288",
+ "x": 2438,
+ "y": 409,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "dcc9c2f.bdc72c"
+ "f005e0a8.cc7dc8"
]
]
},
{
- "id": "dcc9c2f.bdc72c",
+ "id": "f005e0a8.cc7dc8",
"type": "outcome",
"name": "vpn-binding",
"xml": "<outcome value='vpn-binding'>\n",
"comments": "",
"outputs": 1,
- "x": 2599,
- "y": 399,
- "z": "bc289cb4.31b288",
+ "x": 2604,
+ "y": 409,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "b86471e.744979"
+ "51d187ad.ad3078"
]
]
},
{
- "id": "b86471e.744979",
+ "id": "51d187ad.ad3078",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2762,
- "y": 399,
- "z": "bc289cb4.31b288",
+ "x": 2767,
+ "y": 409,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "2f04c146.0a3af6",
- "65e4f8bf.6cf8f"
+ "da2f8124.076ab8",
+ "1e447cc1.915cb3"
]
]
},
{
- "id": "cf117e36.f49698",
+ "id": "aecb0c53.70b3e8",
"type": "switchNode",
"name": "switch vpn-binding has dst-access-ltp",
"xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 3138,
- "y": 492,
- "z": "bc289cb4.31b288",
+ "x": 3326,
+ "y": 692,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "965ac3c2.a1d608",
- "6bf420f8.6129c8"
+ "45f40514.0a111c",
+ "e5457af4.842818"
]
]
},
{
- "id": "965ac3c2.a1d608",
+ "id": "45f40514.0a111c",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3391,
- "y": 526,
- "z": "bc289cb4.31b288",
+ "x": 3540,
+ "y": 729,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "f82e8947.2d7ce8"
+ "4c5d5e83.4b55d8"
]
]
},
{
- "id": "6bf420f8.6129c8",
+ "id": "e5457af4.842818",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3391,
- "y": 470,
- "z": "bc289cb4.31b288",
+ "x": 3542,
+ "y": 667,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "aacf39c3.b541a"
+ "d204a9f5.cb1f"
]
]
},
{
- "id": "f82e8947.2d7ce8",
+ "id": "4c5d5e83.4b55d8",
"type": "switchNode",
"name": "switch vpn-binding has src-access-ltp",
"xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 3115,
- "y": 1962,
- "z": "bc289cb4.31b288",
+ "x": 3120,
+ "y": 1972,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "10da65e0.f509ca",
- "73ba091f.6ce2a"
+ "e25a0aae.dc3b6",
+ "5811aab2.c9cdb4"
]
]
},
{
- "id": "10da65e0.f509ca",
+ "id": "e25a0aae.dc3b6",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3368,
- "y": 1996,
- "z": "bc289cb4.31b288",
+ "x": 3373,
+ "y": 2006,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "d3f311e2.47dc9"
+ "e2283676.c05cf8"
]
]
},
{
- "id": "73ba091f.6ce2a",
+ "id": "5811aab2.c9cdb4",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3368,
- "y": 1940,
- "z": "bc289cb4.31b288",
+ "x": 3373,
+ "y": 1950,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "4a6141b6.6b0c98"
+ "5f1f11a6.4b622"
]
]
},
{
- "id": "d3f311e2.47dc9",
+ "id": "e2283676.c05cf8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 3519,
- "y": 1996,
- "z": "bc289cb4.31b288",
+ "x": 3524,
+ "y": 2006,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "fb92b32f.578d9",
+ "id": "ef6002a3.a9265",
"type": "set",
"name": "set vpn-bindingA and connectivityA",
"xml": "<set>\n<parameter name='tmp.aai.vpn-bindingA.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityA.' value=\"`$tmp.aai.connectivity.`\" />\n",
"comments": "",
- "x": 4395,
- "y": 94,
- "z": "bc289cb4.31b288",
+ "x": 4400,
+ "y": 104,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "16b6eb5a.c037cd",
+ "id": "d11d0786.01d8c8",
"type": "set",
"name": "set vpn-bindingB and connectivityB",
"xml": "<set>\n<parameter name='tmp.aai.vpn-bindingB.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityB.' value=\"`$tmp.aai.connectivity.`\" />\n\n",
"comments": "",
- "x": 3803,
- "y": 1553,
- "z": "bc289cb4.31b288",
+ "x": 3808,
+ "y": 1563,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "b5fbea6d.693118",
+ "id": "4923e79.d3d2a98",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4086,
- "y": 351,
- "z": "bc289cb4.31b288",
+ "x": 4091,
+ "y": 361,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "fb92b32f.578d9",
- "fd4d27b6.bd205",
- "4f40e2d1.4262ec",
- "8abcb98.e721cc8",
- "7974f996.7603f8",
- "1460b865.7cff48",
- "7648091a.a03898"
+ "ef6002a3.a9265",
+ "73d91f0d.979448",
+ "cdb19fe7.3fcc18",
+ "83225463.070fc",
+ "b72def38.869578",
+ "61d206ce.c84cc",
+ "53d5aef.e4ebbd"
]
]
},
{
- "id": "4a6141b6.6b0c98",
+ "id": "5f1f11a6.4b622",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 3519,
- "y": 1939,
- "z": "bc289cb4.31b288",
+ "x": 3524,
+ "y": 1949,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "16b6eb5a.c037cd",
- "3bea0429.f0ebac",
- "32f45e6c.4d0bea",
- "e8ca7925.e0f8c",
- "d501f859.eecd18",
- "dfc89384.6f3b98",
- "7e08fa79.0c018c"
+ "d11d0786.01d8c8",
+ "fec1365a.907b4",
+ "a7e92939.08a52",
+ "25024bed.781cdc",
+ "eb21cc8f.003df8",
+ "1be8ac25.0620fc",
+ "6fb79d87.420834"
]
]
},
{
- "id": "dfc89384.6f3b98",
+ "id": "1be8ac25.0620fc",
"type": "set",
"name": "set sotn_value",
"xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",
"comments": "",
- "x": 3748,
- "y": 2082,
- "z": "bc289cb4.31b288",
+ "x": 3753,
+ "y": 2092,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "7e08fa79.0c018c",
+ "id": "6fb79d87.420834",
"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=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='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",
"comments": "",
"outputs": 1,
- "x": 3902,
- "y": 2130,
- "z": "bc289cb4.31b288",
+ "x": 3907,
+ "y": 2140,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "dd71fa1b.6e05f",
- "23079c35.06b53c"
+ "6175c964.8889d",
+ "add709ae.0740f"
]
]
},
{
- "id": "dd71fa1b.6e05f",
+ "id": "6175c964.8889d",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4247.5,
- "y": 2111,
- "z": "bc289cb4.31b288",
+ "x": 4252.5,
+ "y": 2121,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "531e9904.6c0cf"
+ "7caa2ba7.6bf4dc"
]
]
},
{
- "id": "23079c35.06b53c",
+ "id": "add709ae.0740f",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4251.5,
- "y": 2151,
- "z": "bc289cb4.31b288",
+ "x": 4256.5,
+ "y": 2161,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "ca751a91.a1fc5"
+ "43eb2ee.41b33d"
]
]
},
{
- "id": "531e9904.6c0cf",
+ "id": "7caa2ba7.6bf4dc",
"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 ethernet service rest api\" />\n",
"comments": "",
- "x": 4405.5,
- "y": 2111,
- "z": "bc289cb4.31b288",
+ "x": 4410.5,
+ "y": 2121,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "ca751a91.a1fc5",
+ "id": "43eb2ee.41b33d",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4409,
- "y": 2151,
- "z": "bc289cb4.31b288",
+ "x": 4414,
+ "y": 2161,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "acce8a06.32f9",
- "300cb80e.add27"
+ "30f33337.055d14",
+ "948532eb.e6c7c"
]
]
},
{
- "id": "ed3d8ab7.5da83",
+ "id": "bc6f9b2b.7321f",
"type": "comment",
"name": "TODO: FIXME:",
"info": "put proper values based on connectivity resource retrieved from AAI",
"comments": "",
- "x": 3745.5,
- "y": 2038,
- "z": "bc289cb4.31b288",
+ "x": 3750.5,
+ "y": 2048,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "acce8a06.32f9",
+ "id": "30f33337.055d14",
"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.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 4749,
- "y": 2150,
- "z": "bc289cb4.31b288",
+ "x": 4754,
+ "y": 2160,
+ "z": "f351885d.7dcd3",
"wires": [
[]
]
},
{
- "id": "dd0732a8.6dcd38",
+ "id": "227afae6.b4c94e",
"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": 4607,
- "y": 2108,
- "z": "bc289cb4.31b288",
+ "x": 4612,
+ "y": 2118,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "300cb80e.add27",
+ "id": "948532eb.e6c7c",
"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 = $tmp.aai.connectivityB.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 4678,
- "y": 2199,
- "z": "bc289cb4.31b288",
+ "x": 4683,
+ "y": 2209,
+ "z": "f351885d.7dcd3",
"wires": [
[]
]
},
{
- "id": "9e15ad66.cb5638",
+ "id": "55624da8.df976c",
"type": "set",
"name": "set attachment_param (gfp-n) for OTN",
"xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",
"comments": "",
- "x": 3125,
- "y": 398,
- "z": "bc289cb4.31b288",
+ "x": 3317,
+ "y": 632,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "65e4f8bf.6cf8f",
+ "id": "1e447cc1.915cb3",
"type": "set",
"name": "unset tmp.aai.vpn-binding",
"xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
"comments": "",
- "x": 2946,
- "y": 270,
- "z": "bc289cb4.31b288",
+ "x": 2951,
+ "y": 280,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "198fcdf8.1e22c2",
+ "id": "f396e52b.35559",
"type": "comment",
"name": "only dst ttp exists. No src",
"info": "",
"comments": "",
- "x": 3907,
- "y": 308,
- "z": "bc289cb4.31b288",
+ "x": 3912,
+ "y": 318,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "ca0cd7a2.5ca728",
+ "id": "72b06eec.578eb8",
"type": "comment",
"name": "only src ttp exists. No dst",
"info": "",
"comments": "",
- "x": 3464,
- "y": 1886,
- "z": "bc289cb4.31b288",
+ "x": 3469,
+ "y": 1896,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "aacf39c3.b541a",
+ "id": "d204a9f5.cb1f",
"type": "switchNode",
"name": "switch vpn-binding has src-access-ltp",
"xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 3615,
- "y": 468,
- "z": "bc289cb4.31b288",
+ "x": 3648,
+ "y": 480,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "df2281b1.f49f38",
- "aea11bc2.879238"
+ "7da55af.10937a4",
+ "d30ba4e8.997a68"
]
]
},
{
- "id": "aea11bc2.879238",
+ "id": "d30ba4e8.997a68",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3885,
- "y": 1059,
- "z": "bc289cb4.31b288",
+ "x": 3890,
+ "y": 1069,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "f4291584.31d5f8"
+ "b0909b7a.d37638"
]
]
},
{
- "id": "df2281b1.f49f38",
+ "id": "7da55af.10937a4",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3879,
- "y": 350,
- "z": "bc289cb4.31b288",
+ "x": 3884,
+ "y": 360,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "b5fbea6d.693118"
+ "4923e79.d3d2a98"
]
]
},
{
- "id": "f4291584.31d5f8",
+ "id": "b0909b7a.d37638",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4043,
- "y": 1058,
- "z": "bc289cb4.31b288",
+ "x": 4048,
+ "y": 1068,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "507acb8a.026844",
- "328f5ebe.d2c3f2",
- "282b55f0.c4b452",
- "f1d5dfc2.902f38",
- "e32fad74.744d"
+ "aadf2b5c.a1838",
+ "8fb5b52a.4e2ae",
+ "a006da1c.c23038",
+ "7e67d000.77abb",
+ "23d1e7d8.976258"
]
]
},
{
- "id": "328f5ebe.d2c3f2",
+ "id": "8fb5b52a.4e2ae",
"type": "set",
"name": "set attachment_param for OTN G",
"xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />\n",
"comments": "",
- "x": 4307,
- "y": 941,
- "z": "bc289cb4.31b288",
+ "x": 4312,
+ "y": 951,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "e32fad74.744d",
+ "id": "23d1e7d8.976258",
"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 + '/' + $prop.restapi.ts-otn-domainG-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 4388,
- "y": 1256,
- "z": "bc289cb4.31b288",
+ "x": 4393,
+ "y": 1266,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "4fa7d7bd.5a2ab",
- "f472be3.5d0074"
+ "c8d598bd.cbc8e",
+ "c93ae11e.1c54c8"
]
]
},
{
- "id": "4fa7d7bd.5a2ab",
+ "id": "c8d598bd.cbc8e",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4697.5,
- "y": 1225,
- "z": "bc289cb4.31b288",
+ "x": 4702.5,
+ "y": 1235,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "1f127e35.6d237a"
+ "a086276f.4222f8"
]
]
},
{
- "id": "f472be3.5d0074",
+ "id": "c93ae11e.1c54c8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4702.5,
- "y": 1290,
- "z": "bc289cb4.31b288",
+ "x": 4707.5,
+ "y": 1300,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "5d6567d4.56edf"
+ "51323b7.caecec4"
]
]
},
{
- "id": "1f127e35.6d237a",
+ "id": "a086276f.4222f8",
"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 OTN tunnel rest api\" />\n",
"comments": "",
- "x": 4873.5,
- "y": 1225,
- "z": "bc289cb4.31b288",
+ "x": 4878.5,
+ "y": 1235,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "5d6567d4.56edf",
+ "id": "51323b7.caecec4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4869,
- "y": 1290,
- "z": "bc289cb4.31b288",
+ "x": 4874,
+ "y": 1300,
+ "z": "f351885d.7dcd3",
"wires": [
[]
]
},
{
- "id": "282b55f0.c4b452",
+ "id": "a006da1c.c23038",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.domainG.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingG.src-access-node-id`\" />\n",
"comments": "",
- "x": 4245,
- "y": 989,
- "z": "bc289cb4.31b288",
+ "x": 4250,
+ "y": 999,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "f1d5dfc2.902f38",
+ "id": "7e67d000.77abb",
"type": "get-resource",
"name": "get-resource src pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domainG.pnf-name\"\n pfx='tmp.aai.domainG-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 4271,
- "y": 1106,
- "z": "bc289cb4.31b288",
+ "x": 4276,
+ "y": 1116,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "b1abc6d5.732f1",
- "5f6c0c85.ca44ac",
- "386d37a9.f48098"
+ "ec2bb2c1.50dad",
+ "6fe2c398.ccd7b4",
+ "2cf209f9.a94e2e"
]
]
},
{
- "id": "b1abc6d5.732f1",
+ "id": "ec2bb2c1.50dad",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4466.5001220703125,
- "y": 1058,
- "z": "bc289cb4.31b288",
+ "x": 4471.5001220703125,
+ "y": 1068,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "7b990f0b.20c288"
+ "e5c84b9e.98975"
]
]
},
{
- "id": "5f6c0c85.ca44ac",
+ "id": "6fe2c398.ccd7b4",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 4458.5001220703125,
- "y": 1113,
- "z": "bc289cb4.31b288",
+ "x": 4463.5001220703125,
+ "y": 1123,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "315f8841.f40a1"
+ "be59a3.0881066"
]
]
},
{
- "id": "7b990f0b.20c288",
+ "id": "e5c84b9e.98975",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4610.8824462890625,
- "y": 1057.6556701660156,
- "z": "bc289cb4.31b288",
+ "x": 4615.8824462890625,
+ "y": 1067.6556701660156,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "c8fb728b.2dc648"
+ "40635ccb.0881a4"
]
]
},
{
- "id": "c8fb728b.2dc648",
+ "id": "40635ccb.0881a4",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 4795,
- "y": 1056,
- "z": "bc289cb4.31b288",
+ "x": 4800,
+ "y": 1066,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "d59f0b39.d31cc8"
+ "ff02a9b.ff8ffd8"
]
]
},
{
- "id": "d59f0b39.d31cc8",
+ "id": "ff02a9b.ff8ffd8",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 4990,
- "y": 1056,
- "z": "bc289cb4.31b288",
+ "x": 4995,
+ "y": 1066,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "7e05c38e.6d5cbc"
+ "d3d180f4.36fa68"
]
]
},
{
- "id": "386d37a9.f48098",
+ "id": "2cf209f9.a94e2e",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 4463.5001220703125,
- "y": 1170,
- "z": "bc289cb4.31b288",
+ "x": 4468.5001220703125,
+ "y": 1180,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "46492ab4.cb6c04"
+ "2b5a1252.216fe6"
]
]
},
{
- "id": "46492ab4.cb6c04",
+ "id": "2b5a1252.216fe6",
"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": 4615.5001220703125,
- "y": 1171,
- "z": "bc289cb4.31b288",
+ "x": 4620.5001220703125,
+ "y": 1181,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "315f8841.f40a1",
+ "id": "be59a3.0881066",
"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": 4626.5001220703125,
- "y": 1114,
- "z": "bc289cb4.31b288",
+ "x": 4631.5001220703125,
+ "y": 1124,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "507acb8a.026844",
+ "id": "aadf2b5c.a1838",
"type": "set",
"name": "set vpn-bindingG and connectivityG",
"xml": "<set>\n<parameter name='tmp.aai.vpn-bindingG.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityG.' value=\"`$tmp.aai.connectivity.`\" />\n",
"comments": "",
- "x": 4302,
- "y": 881,
- "z": "bc289cb4.31b288",
+ "x": 4307,
+ "y": 891,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "7e05c38e.6d5cbc",
+ "id": "d3d180f4.36fa68",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 5193,
- "y": 1060,
- "z": "bc289cb4.31b288",
+ "x": 5198,
+ "y": 1070,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "436389a3.57fb78"
+ "8355bb98.2142e8"
]
]
},
{
- "id": "6a766cec.04fc1c",
+ "id": "d998285a.8338c",
"type": "execute",
"name": "get 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 = $tmp.domainG.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 5578,
- "y": 1073,
- "z": "bc289cb4.31b288",
+ "x": 5583,
+ "y": 1083,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "985e5e77.801e6",
- "a10da0b1.afaa18",
- "4e466bf1.fc05c4"
+ "38daac86.dbf464",
+ "21dc6947.7d9bae",
+ "a47aca30.5160e"
]
]
},
{
- "id": "436389a3.57fb78",
+ "id": "8355bb98.2142e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 5372,
- "y": 1060,
- "z": "bc289cb4.31b288",
+ "x": 5377,
+ "y": 1070,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "507f9c6b.ef2c2c",
- "6a766cec.04fc1c"
+ "583e9682.750428",
+ "d998285a.8338c"
]
]
},
{
- "id": "507f9c6b.ef2c2c",
+ "id": "583e9682.750428",
"type": "set",
"name": "set esr-thirdparty-sdnc domainG id",
"xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 5608,
- "y": 1021,
- "z": "bc289cb4.31b288",
+ "x": 5613,
+ "y": 1031,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "985e5e77.801e6",
+ "id": "38daac86.dbf464",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5788,
- "y": 1064,
- "z": "bc289cb4.31b288",
+ "x": 5793,
+ "y": 1074,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "37e160ea.8f86d8"
+ "10b34ad5.e58d9d"
]
]
},
{
- "id": "a10da0b1.afaa18",
+ "id": "21dc6947.7d9bae",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5780,
- "y": 1119,
- "z": "bc289cb4.31b288",
+ "x": 5785,
+ "y": 1129,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "81ccddb5.3e1b1"
+ "6ce9bc65.05009c"
]
]
},
{
- "id": "4e466bf1.fc05c4",
+ "id": "a47aca30.5160e",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5785,
- "y": 1176,
- "z": "bc289cb4.31b288",
+ "x": 5790,
+ "y": 1186,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "c4f4a10b.e46a6"
+ "18239e9b.852729"
]
]
},
{
- "id": "c4f4a10b.e46a6",
+ "id": "18239e9b.852729",
"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": 5937,
- "y": 1177,
- "z": "bc289cb4.31b288",
+ "x": 5942,
+ "y": 1187,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "81ccddb5.3e1b1",
+ "id": "6ce9bc65.05009c",
"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": 5948,
- "y": 1122,
- "z": "bc289cb4.31b288",
+ "x": 5953,
+ "y": 1132,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "37e160ea.8f86d8",
+ "id": "10b34ad5.e58d9d",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5932.38232421875,
- "y": 1061.6556701660156,
- "z": "bc289cb4.31b288",
+ "x": 5937.38232421875,
+ "y": 1071.6556701660156,
+ "z": "f351885d.7dcd3",
"wires": [
[
- "4cbb09e8.a29488"
+ "d4058b68.bd8818"
]
]
},
{
- "id": "4cbb09e8.a29488",
+ "id": "d4058b68.bd8818",
"type": "set",
"name": "set controller domainG data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
"comments": "",
- "x": 6147,
- "y": 1058,
- "z": "bc289cb4.31b288",
+ "x": 6152,
+ "y": 1068,
+ "z": "f351885d.7dcd3",
"wires": []
},
{
- "id": "28d376a3.473102",
+ "id": "3a09f359.556f04",
"type": "comment",
"name": "both src and dst exist",
"info": "",
"comments": "",
- "x": 3921,
- "y": 999,
- "z": "bc289cb4.31b288",
+ "x": 3926,
+ "y": 1009,
+ "z": "f351885d.7dcd3",
"wires": []
+ },
+ {
+ "id": "1c6e3351.8ccb0d",
+ "type": "switchNode",
+ "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",
+ "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2488,
+ "y": 736,
+ "z": "f351885d.7dcd3",
+ "wires": [
+ [
+ "91c41639.2357b",
+ "5aa31f25.4b2718"
+ ]
+ ]
+ },
+ {
+ "id": "5aa31f25.4b2718",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2895,
+ "y": 754,
+ "z": "f351885d.7dcd3",
+ "wires": [
+ [
+ "49ef7599.6e682c"
+ ]
+ ]
+ },
+ {
+ "id": "91c41639.2357b",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2895,
+ "y": 699,
+ "z": "f351885d.7dcd3",
+ "wires": [
+ [
+ "c7ffb45b.775578"
+ ]
+ ]
+ },
+ {
+ "id": "c7ffb45b.775578",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3051,
+ "y": 697,
+ "z": "f351885d.7dcd3",
+ "wires": [
+ [
+ "55624da8.df976c",
+ "aecb0c53.70b3e8"
+ ]
+ ]
+ },
+ {
+ "id": "49ef7599.6e682c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3028,
+ "y": 755,
+ "z": "f351885d.7dcd3",
+ "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
index 158e8174..6585de84 100644
--- 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
@@ -246,7 +246,7 @@
"id": "4b515bec.7b07fc",
"type": "set",
"name": "set network-route-A",
- "xml": "<set>\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",
+ "xml": "<set>\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />-->\n\n\n",
"comments": "",
"x": 2636,
"y": 824,
@@ -971,7 +971,7 @@
"id": "ac8bf04e.ff247",
"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 = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3930,
@@ -1120,7 +1120,7 @@
"id": "22f952b9.882086",
"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='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3920,
@@ -1162,8 +1162,8 @@
"xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",
"comments": "",
"outputs": 1,
- "x": 2848,
- "y": 2278,
+ "x": 2846,
+ "y": 2389,
"z": "b31344e1.6b9228",
"wires": [
[]
@@ -1175,8 +1175,8 @@
"name": "set attachment_param",
"xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",
"comments": "",
- "x": 2642,
- "y": 2179,
+ "x": 2644,
+ "y": 2268,
"z": "b31344e1.6b9228",
"wires": []
},
@@ -1186,8 +1186,8 @@
"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": 2616,
- "y": 2132,
+ "x": 2610,
+ "y": 2202,
"z": "b31344e1.6b9228",
"wires": []
},
@@ -2969,8 +2969,8 @@
"name": "set query_param",
"xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",
"comments": "",
- "x": 2631,
- "y": 2231,
+ "x": 2625,
+ "y": 2321,
"z": "b31344e1.6b9228",
"wires": []
},
@@ -2989,7 +2989,7 @@
"id": "3323f682.f60c3a",
"type": "set",
"name": "set new ethernet-service-name",
- "xml": "<set>\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />\n\n\n",
+ "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",
"comments": "",
"x": 2672,
"y": 767,
@@ -3003,8 +3003,8 @@
"xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",
"comments": "",
"outputs": 1,
- "x": 2666,
- "y": 2351,
+ "x": 2663,
+ "y": 2459,
"z": "b31344e1.6b9228",
"wires": [
[
@@ -3016,7 +3016,7 @@
"id": "647d2436.140504",
"type": "save",
"name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
"comments": "",
"outputs": 1,
"x": 3789,
@@ -3082,8 +3082,8 @@
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",
"comments": "",
"outputs": 1,
- "x": 3825,
- "y": 2383,
+ "x": 3822,
+ "y": 2398,
"z": "b31344e1.6b9228",
"wires": [
[]
@@ -3219,7 +3219,7 @@
"id": "ddd52155.f542e8",
"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 = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='dummy' />\n<!--<parameter name='CIR' value='`$prop.sotn.cir`' />-->\n<!--<parameter name='EIR' value='`$prop.sotn.eir`' />-->\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
"comments": "",
"outputs": 1,
"x": 4672,
@@ -3297,8 +3297,8 @@
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2918,
- "y": 2412,
+ "x": 2925,
+ "y": 2465,
"z": "b31344e1.6b9228",
"wires": [
[
@@ -4153,8 +4153,8 @@
"xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 3528,
- "y": 2442,
+ "x": 3536,
+ "y": 2488,
"z": "b31344e1.6b9228",
"wires": [
[
@@ -4170,8 +4170,8 @@
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 3917,
- "y": 2420,
+ "x": 3902,
+ "y": 2449,
"z": "b31344e1.6b9228",
"wires": [
[
@@ -4186,8 +4186,8 @@
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 3918,
- "y": 2466,
+ "x": 3903,
+ "y": 2495,
"z": "b31344e1.6b9228",
"wires": [
[
@@ -4201,8 +4201,8 @@
"name": "set access-provider-id and client-id",
"xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",
"comments": "",
- "x": 4131,
- "y": 2419,
+ "x": 4116,
+ "y": 2448,
"z": "b31344e1.6b9228",
"wires": []
},
@@ -4212,8 +4212,8 @@
"name": "set access-provider-id and client-id",
"xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",
"comments": "",
- "x": 4129,
- "y": 2464,
+ "x": 4114,
+ "y": 2493,
"z": "b31344e1.6b9228",
"wires": []
},
@@ -4775,7 +4775,7 @@
"id": "9baaaca4.d54a4",
"type": "switchNode",
"name": "switch vpnuuid is for this slice",
- "xml": "<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">\n",
+ "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n\n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `\">\n\n",
"comments": "",
"outputs": 1,
"x": 3051,
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json
new file mode 100644
index 00000000..7f5f0f6d
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json
@@ -0,0 +1,5578 @@
+[
+ {
+ "id": "ac624e71.e83e6",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 171,
+ "y": 64,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "64be4f08.6aea"
+ ]
+ ]
+ },
+ {
+ "id": "64be4f08.6aea",
+ "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": 396.2856903076172,
+ "y": 138.23810863494873,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "f27e10ce.472c98"
+ ]
+ ]
+ },
+ {
+ "id": "f27e10ce.472c98",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-modify",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-modify' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 402.42860412597656,
+ "y": 223.00003051757812,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "816a022.ba1e5"
+ ]
+ ]
+ },
+ {
+ "id": "816a022.ba1e5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 772.238037109375,
+ "y": 247.66668701171875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7291ffac.f47d98",
+ "5b16d7f3.f39658",
+ "984b7b53.1aa03"
+ ]
+ ]
+ },
+ {
+ "id": "7291ffac.f47d98",
+ "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": 1027.571533203125,
+ "y": 401.59698486328125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "5b16d7f3.f39658",
+ "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.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 1095,
+ "y": 221,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8db3edad.5b6268",
+ "958fc136.3797b8",
+ "401f18c4.3af048"
+ ]
+ ]
+ },
+ {
+ "id": "8db3edad.5b6268",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1320,
+ "y": 79,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8cab1f9e.65c1d"
+ ]
+ ]
+ },
+ {
+ "id": "958fc136.3797b8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1315.490966796875,
+ "y": 148.57403564453125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "cfcd4dd6.dea03"
+ ]
+ ]
+ },
+ {
+ "id": "401f18c4.3af048",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1304,
+ "y": 195,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "d5a10454.2e80c"
+ ]
+ ]
+ },
+ {
+ "id": "8cab1f9e.65c1d",
+ "type": "switchNode",
+ "name": "switch allotted-resources_length != 0",
+ "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1559,
+ "y": 76,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "70da458e.fda3bc",
+ "6f3a2217.99f894"
+ ]
+ ]
+ },
+ {
+ "id": "cfcd4dd6.dea03",
+ "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": 1469.0623779296875,
+ "y": 151.85977172851562,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "d5a10454.2e80c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1473,
+ "y": 196,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "70da458e.fda3bc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1772,
+ "y": 100,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "bd2fd8a5.f00818"
+ ]
+ ]
+ },
+ {
+ "id": "6f3a2217.99f894",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1774,
+ "y": 40,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "37ce0108.16d956",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 1074,
+ "y": 109,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "bd2fd8a5.f00818",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1757,
+ "y": 188,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ec9312e3.eb3ca",
+ "9b47cb2b.81e09",
+ "adac8296.d1b27",
+ "77439122.61f0b"
+ ]
+ ]
+ },
+ {
+ "id": "e730d63c.e66e38",
+ "type": "set",
+ "name": "set network-route-A",
+ "xml": "<set>\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />-->\n\n\n",
+ "comments": "",
+ "x": 4286,
+ "y": 789,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "c64bfbc6.879f7",
+ "type": "set",
+ "name": "set network-route-B",
+ "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",
+ "comments": "",
+ "x": 4287,
+ "y": 844,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ff867076.ee06e",
+ "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='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!-- AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2243,
+ "y": 239,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "5403527b.88731c",
+ "8f1044d7.262e1",
+ "fca4f411.30d608"
+ ]
+ ]
+ },
+ {
+ "id": "5403527b.88731c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2459,
+ "y": 306,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c2edf5fc.e5137"
+ ]
+ ]
+ },
+ {
+ "id": "8f1044d7.262e1",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2459.490966796875,
+ "y": 205.573974609375,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "3217fee.d348a02"
+ ]
+ ]
+ },
+ {
+ "id": "fca4f411.30d608",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2455,
+ "y": 255,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "f1099938.4bc92"
+ ]
+ ]
+ },
+ {
+ "id": "3217fee.d348a02",
+ "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": 2637.0625,
+ "y": 205.8597412109375,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "f1099938.4bc92",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2637,
+ "y": 255,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "f5428168.15427",
+ "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.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 3512,
+ "y": 760,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "1fed7fd6.0c4fe",
+ "f8799fe1.4abef8",
+ "d188d9ec.71606"
+ ]
+ ]
+ },
+ {
+ "id": "1fed7fd6.0c4fe",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3803.490966796875,
+ "y": 738.573974609375,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ffec4368.f8ba48"
+ ]
+ ]
+ },
+ {
+ "id": "f8799fe1.4abef8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3792,
+ "y": 783,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "151cf988.8ad956"
+ ]
+ ]
+ },
+ {
+ "id": "ffec4368.f8ba48",
+ "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": 3952.0625,
+ "y": 738.8597412109375,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "151cf988.8ad956",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3951,
+ "y": 783,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "d188d9ec.71606",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3798,
+ "y": 830,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8fff13f1.763be8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3952,
+ "y": 869,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e730d63c.e66e38",
+ "c64bfbc6.879f7",
+ "c69cbeca.4faa",
+ "2b820704.044208",
+ "beecbbd2.7ea1a8",
+ "a8912b98.c24c78",
+ "9445731f.f1b8",
+ "beaf21fd.396d98",
+ "2829cd3e.73ff62",
+ "7826fce9.171054",
+ "b9213dab.6d883"
+ ]
+ ]
+ },
+ {
+ "id": "c69cbeca.4faa",
+ "type": "save",
+ "name": "get network-route-A from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-A'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-A\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 4299,
+ "y": 912,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "d9da27fc.f85c4",
+ "3045193c.0d7bae",
+ "76f3dd2f.3c28d4"
+ ]
+ ]
+ },
+ {
+ "id": "2b820704.044208",
+ "type": "save",
+ "name": "get network-route-B from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-B'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-B\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 4278,
+ "y": 1513.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "25feaffc.acded8",
+ "26743549.dc4b22",
+ "ff50bd0e.ddbd08"
+ ]
+ ]
+ },
+ {
+ "id": "d9da27fc.f85c4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4500,
+ "y": 796,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ba59ec84.99ac68"
+ ]
+ ]
+ },
+ {
+ "id": "3045193c.0d7bae",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4495.509033203125,
+ "y": 845.426025390625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ad41c558.00f2a8"
+ ]
+ ]
+ },
+ {
+ "id": "76f3dd2f.3c28d4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4499.509033203125,
+ "y": 896.426025390625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ebc4d333.c786a8"
+ ]
+ ]
+ },
+ {
+ "id": "ba59ec84.99ac68",
+ "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": 4648.571533203125,
+ "y": 795.2857666015625,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ad41c558.00f2a8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4638.509033203125,
+ "y": 845.426025390625,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "25feaffc.acded8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4501,
+ "y": 1483.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "2bc46d17.93cc82"
+ ]
+ ]
+ },
+ {
+ "id": "26743549.dc4b22",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4496.509033203125,
+ "y": 1533.4259033203125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a64784dd.690338"
+ ]
+ ]
+ },
+ {
+ "id": "ff50bd0e.ddbd08",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4500.509033203125,
+ "y": 1584.4259033203125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "931306d1.d3283"
+ ]
+ ]
+ },
+ {
+ "id": "2bc46d17.93cc82",
+ "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": 4649.571533203125,
+ "y": 1483.28564453125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "a64784dd.690338",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4639.509033203125,
+ "y": 1533.4259033203125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "1aed53b.116f82c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5313.66650390625,
+ "y": 940,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "619a05cb.adfe5c",
+ "5b58ea0d.24a54c",
+ "905e3d50.55dc98",
+ "dd052d48.cba96",
+ "b7a8cd0a.a295c8"
+ ]
+ ]
+ },
+ {
+ "id": "ea57ed7c.15442",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5141,
+ "y": 941,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "1aed53b.116f82c"
+ ]
+ ]
+ },
+ {
+ "id": "8edf59fc.a82d48",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5150.490966796875,
+ "y": 983.5740356445312,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "570ecccd.bd6704"
+ ]
+ ]
+ },
+ {
+ "id": "e1f5e0a7.fbe22",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5139,
+ "y": 1030,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "255c623d.471bfe"
+ ]
+ ]
+ },
+ {
+ "id": "570ecccd.bd6704",
+ "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": 5304.0623779296875,
+ "y": 986.8597717285156,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "255c623d.471bfe",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 5308,
+ "y": 1031,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ebc4d333.c786a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4661,
+ "y": 898,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ea10d538.727c98",
+ "4657b647.55f63"
+ ]
+ ]
+ },
+ {
+ "id": "931306d1.d3283",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4651,
+ "y": 1585.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "43662fc0.4ec678",
+ "e3b7ca54.9f27e"
+ ]
+ ]
+ },
+ {
+ "id": "2f410c53.a9f8cc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5281.66650390625,
+ "y": 1776,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "70aaa8b7.fc83",
+ "935d2e0c.b95b5",
+ "a91261bc.f4013",
+ "f0d8d3fe.456d88",
+ "4a4ba10e.425478"
+ ]
+ ]
+ },
+ {
+ "id": "c5b9dba7.8bb408",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5109,
+ "y": 1777,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "2f410c53.a9f8cc"
+ ]
+ ]
+ },
+ {
+ "id": "6fce8e3b.c6c098",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5118.490966796875,
+ "y": 1819.5740356445312,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "67bae243.7edff4"
+ ]
+ ]
+ },
+ {
+ "id": "f5f65108.ccf83",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5107,
+ "y": 1866,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ec2da4a6.84f478"
+ ]
+ ]
+ },
+ {
+ "id": "67bae243.7edff4",
+ "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": 5272.0623779296875,
+ "y": 1822.8597717285156,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ec2da4a6.84f478",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 5276,
+ "y": 1867,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "619a05cb.adfe5c",
+ "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.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5578,
+ "y": 924,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "5ef97752.07d688",
+ "c9edb813.b2e9a8"
+ ]
+ ]
+ },
+ {
+ "id": "c9edb813.b2e9a8",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5801,
+ "y": 879,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c390e3ab.84675"
+ ]
+ ]
+ },
+ {
+ "id": "5ef97752.07d688",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5803,
+ "y": 943,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "32a44f9b.55b96"
+ ]
+ ]
+ },
+ {
+ "id": "c9427e8e.5d7928",
+ "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": 6136,
+ "y": 834,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "32a44f9b.55b96",
+ "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": 5965,
+ "y": 939,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "c390e3ab.84675",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5966,
+ "y": 876,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "bdd6ab52.9ce23",
+ "c9427e8e.5d7928"
+ ]
+ ]
+ },
+ {
+ "id": "bdd6ab52.9ce23",
+ "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": 6137,
+ "y": 942,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "23e97c61.f4450c",
+ "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": 6138,
+ "y": 891,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "905e3d50.55dc98",
+ "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 = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5580,
+ "y": 1083,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5b58ea0d.24a54c",
+ "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=\"uuid.connectivity-domainA-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5625,
+ "y": 993,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b5028671.057418",
+ "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": 5514,
+ "y": 1034,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "70aaa8b7.fc83",
+ "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.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5568,
+ "y": 1780.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "2f13a37c.a92d4c",
+ "1f784ca.d54b3b3"
+ ]
+ ]
+ },
+ {
+ "id": "1f784ca.d54b3b3",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5791,
+ "y": 1735.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e1b624d9.9bbf38"
+ ]
+ ]
+ },
+ {
+ "id": "2f13a37c.a92d4c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5793,
+ "y": 1799.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "4e43e07a.4a4518"
+ ]
+ ]
+ },
+ {
+ "id": "c9a078dc.2502f",
+ "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": 6126,
+ "y": 1693.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "4e43e07a.4a4518",
+ "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": 5952,
+ "y": 1818.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "e1b624d9.9bbf38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5956,
+ "y": 1732.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c9a078dc.2502f",
+ "99d11d48.4d4eb"
+ ]
+ ]
+ },
+ {
+ "id": "99d11d48.4d4eb",
+ "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": 6127,
+ "y": 1798.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "9eaecf4d.e4667",
+ "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": 6122,
+ "y": 1747.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "a91261bc.f4013",
+ "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='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5570,
+ "y": 1939.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "935d2e0c.b95b5",
+ "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": 5615,
+ "y": 1849.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "469c34a1.af89cc",
+ "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": 5504,
+ "y": 1887.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "beecbbd2.7ea1a8",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4498,
+ "y": 2243,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a8912b98.c24c78",
+ "type": "set",
+ "name": "set attachment_param",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",
+ "comments": "",
+ "x": 4292,
+ "y": 2144,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "af47af84.110af8",
+ "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": 4266,
+ "y": 2097,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "dd052d48.cba96",
+ "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 = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 5708,
+ "y": 1131,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f0d8d3fe.456d88",
+ "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 = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 5697,
+ "y": 2004.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ae94a833.e2ef38",
+ "type": "execute",
+ "name": "get 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 = $tmp.domainA.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 6752,
+ "y": 651,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c451b700.662738",
+ "ee68b795.c2a168",
+ "ace90efd.77ffe"
+ ]
+ ]
+ },
+ {
+ "id": "c2edf5fc.e5137",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2639,
+ "y": 306,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "1ff347ef.e7b2e8"
+ ]
+ ]
+ },
+ {
+ "id": "7a5b73c3.f0d28c",
+ "type": "outcome",
+ "name": "logical-link",
+ "xml": "<outcome value='logical-link'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1036.0001220703125,
+ "y": 701.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ccbf1140.19585"
+ ]
+ ]
+ },
+ {
+ "id": "b1e2d1e5.6e9708",
+ "type": "switchNode",
+ "name": "switch allotted-resource.relationship-list not empty",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2202,
+ "y": 400,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7c767dcf.19dfdc",
+ "d51662bd.168b2"
+ ]
+ ]
+ },
+ {
+ "id": "d51662bd.168b2",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2523,
+ "y": 382,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7c767dcf.19dfdc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2505,
+ "y": 480,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8418b8d3.470188"
+ ]
+ ]
+ },
+ {
+ "id": "44cccb98.9e0bdc",
+ "type": "set",
+ "name": "set the current logical-link-name",
+ "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n<parameter name='currLinkIsFound' value=\"false\" />\n\n\n",
+ "comments": "",
+ "x": 1459,
+ "y": 604,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ccbf1140.19585",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1213,
+ "y": 694,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "44cccb98.9e0bdc",
+ "320f3490.61a614",
+ "32833f1a.e66008"
+ ]
+ ]
+ },
+ {
+ "id": "98d74c6b.7ea498",
+ "type": "comment",
+ "name": "Question?",
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
+ "comments": "",
+ "x": 4841,
+ "y": 903,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ea10d538.727c98",
+ "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=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4884,
+ "y": 968,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ea57ed7c.15442",
+ "8edf59fc.a82d48",
+ "e1f5e0a7.fbe22"
+ ]
+ ]
+ },
+ {
+ "id": "43662fc0.4ec678",
+ "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=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4881,
+ "y": 1812,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c5b9dba7.8bb408",
+ "6fce8e3b.c6c098",
+ "f5f65108.ccf83"
+ ]
+ ]
+ },
+ {
+ "id": "c2ae8d1a.02bb38",
+ "type": "comment",
+ "name": "Question?",
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
+ "comments": "",
+ "x": 4842,
+ "y": 1756,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "1ff347ef.e7b2e8",
+ "type": "save",
+ "name": "get allotted-resource relationship from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2932,
+ "y": 253,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "71f13357.4b37e4",
+ "12669306.d1641d",
+ "413b010a.53c048"
+ ]
+ ]
+ },
+ {
+ "id": "12669306.d1641d",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3205.490966796875,
+ "y": 145.573974609375,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "d85757cb.be9398"
+ ]
+ ]
+ },
+ {
+ "id": "d85757cb.be9398",
+ "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": 3383.0625,
+ "y": 145.8597412109375,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "413b010a.53c048",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3201,
+ "y": 195,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "5076f4c7.aca6dc"
+ ]
+ ]
+ },
+ {
+ "id": "5076f4c7.aca6dc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3383,
+ "y": 195,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "71f13357.4b37e4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3205,
+ "y": 246,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "bf1d01a6.50c2b8"
+ ]
+ ]
+ },
+ {
+ "id": "bf1d01a6.50c2b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3385,
+ "y": 246,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b1e2d1e5.6e9708"
+ ]
+ ]
+ },
+ {
+ "id": "23de1461.f7fad4",
+ "type": "for",
+ "name": "for each allotted-resource relationship",
+ "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 811,
+ "y": 630,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "93fa809a.f8471"
+ ]
+ ]
+ },
+ {
+ "id": "93fa809a.f8471",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1082,
+ "y": 626,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7a5b73c3.f0d28c"
+ ]
+ ]
+ },
+ {
+ "id": "9f0e5f06.ee06a8",
+ "type": "outcome",
+ "name": "network-policy",
+ "xml": "<outcome value='network-policy'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3361,
+ "y": 444,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b98b1343.e21bb8"
+ ]
+ ]
+ },
+ {
+ "id": "b98b1343.e21bb8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3537.9998779296875,
+ "y": 436.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "9e9361de.0c104",
+ "8294dd76.04b2e8"
+ ]
+ ]
+ },
+ {
+ "id": "9e9361de.0c104",
+ "type": "set",
+ "name": "set the 1st network-policy-id",
+ "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",
+ "comments": "",
+ "x": 3780.9998779296875,
+ "y": 393.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "8294dd76.04b2e8",
+ "type": "save",
+ "name": "get network-policy from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 3769.9998779296875,
+ "y": 448.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "95cd2e3f.fb2aa8",
+ "693c717a.beef58",
+ "f0a71170.4750e"
+ ]
+ ]
+ },
+ {
+ "id": "f0a71170.4750e",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4023,
+ "y": 335,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "db1f3e72.2f054"
+ ]
+ ]
+ },
+ {
+ "id": "db1f3e72.2f054",
+ "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": 4171.571533203125,
+ "y": 335.2857666015625,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "7ea2a2fb.50ff6c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4170.509033203125,
+ "y": 379.426025390625,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "693c717a.beef58",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4011.509033203125,
+ "y": 379.426025390625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7ea2a2fb.50ff6c"
+ ]
+ ]
+ },
+ {
+ "id": "95cd2e3f.fb2aa8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4018.509033203125,
+ "y": 458.426025390625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "bd36bdff.e88188"
+ ]
+ ]
+ },
+ {
+ "id": "bd36bdff.e88188",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4157.509033203125,
+ "y": 458.426025390625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "643f567.bba5728",
+ "283fdbf8.9648a4"
+ ]
+ ]
+ },
+ {
+ "id": "643f567.bba5728",
+ "type": "set",
+ "name": "set the max bandwidth",
+ "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",
+ "comments": "",
+ "x": 4363,
+ "y": 456,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "4657b647.55f63",
+ "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.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4885,
+ "y": 638,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "6871172e.d637a",
+ "b2977d1.b21a28"
+ ]
+ ]
+ },
+ {
+ "id": "b2977d1.b21a28",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5108,
+ "y": 624,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "825034c4.107dc"
+ ]
+ ]
+ },
+ {
+ "id": "6871172e.d637a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5110,
+ "y": 657,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "82e08e87.8dd7f"
+ ]
+ ]
+ },
+ {
+ "id": "82e08e87.8dd7f",
+ "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": 5253,
+ "y": 654,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "825034c4.107dc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5256,
+ "y": 617,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c1e0b1e8.e0a1e",
+ "d9b3786f.e4ed38"
+ ]
+ ]
+ },
+ {
+ "id": "c1e0b1e8.e0a1e",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n $param-prefix-domainA-pnfName[1] + '-' +\n $param-prefix-domainA-pnfName[2] + '-' +\n $param-prefix-domainA-pnfName[3] + '-' +\n $param-prefix-domainA-pnfName[4] + '-' +\n $param-prefix-domainA-pnfName[5] + '-' +\n $param-prefix-domainA-pnfName[6] + '-' +\n $param-prefix-domainA-pnfName[7] + '-' +\n $param-prefix-domainA-pnfName[8]`\" />\n",
+ "comments": "",
+ "x": 5418,
+ "y": 612,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "e3b7ca54.9f27e",
+ "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.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4899,
+ "y": 1474.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "f845da67.b2281",
+ "e9edfbfb.6ae668"
+ ]
+ ]
+ },
+ {
+ "id": "e9edfbfb.6ae668",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5122,
+ "y": 1460.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "be966044.873a98"
+ ]
+ ]
+ },
+ {
+ "id": "f845da67.b2281",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5124,
+ "y": 1493.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "11abed66.7180bb"
+ ]
+ ]
+ },
+ {
+ "id": "11abed66.7180bb",
+ "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": 5267,
+ "y": 1490.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "be966044.873a98",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5270,
+ "y": 1453.9998779296875,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "79f40934.57e7e8",
+ "cf727f02.7a65a"
+ ]
+ ]
+ },
+ {
+ "id": "79f40934.57e7e8",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n $param-prefix-domainB-pnfName[1] + '-' +\n $param-prefix-domainB-pnfName[2] + '-' +\n $param-prefix-domainB-pnfName[3] + '-' +\n $param-prefix-domainB-pnfName[4] + '-' +\n $param-prefix-domainB-pnfName[5] + '-' +\n $param-prefix-domainB-pnfName[6] + '-' +\n $param-prefix-domainB-pnfName[7] + '-' +\n $param-prefix-domainB-pnfName[8]`\" />\n",
+ "comments": "",
+ "x": 5464,
+ "y": 1457,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "984b7b53.1aa03",
+ "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' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1062,
+ "y": 161,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b7a8cd0a.a295c8",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5532,
+ "y": 1208,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e798551d.3d9488"
+ ]
+ ]
+ },
+ {
+ "id": "e798551d.3d9488",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5738,
+ "y": 1208,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ac96ab38.3de338"
+ ]
+ ]
+ },
+ {
+ "id": "ac96ab38.3de338",
+ "type": "outcome",
+ "name": "tunnel-termination-point",
+ "xml": "<outcome value='tunnel-termination-point'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5953.28564453125,
+ "y": 1207.82177734375,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "5414c400.9dc3ac"
+ ]
+ ]
+ },
+ {
+ "id": "5414c400.9dc3ac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6160.1171875,
+ "y": 1208.34033203125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "81a82367.d6151",
+ "2f9bf799.a13628",
+ "18b69352.36c53d"
+ ]
+ ]
+ },
+ {
+ "id": "81a82367.d6151",
+ "type": "set",
+ "name": "set source ttp-id",
+ "xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6375.1171875,
+ "y": 1170.34033203125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "2f9bf799.a13628",
+ "type": "get-resource",
+ "name": "get-resource src TTP",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.source.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6372.1171875,
+ "y": 1209.34033203125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ab674828.77dd8"
+ ]
+ ]
+ },
+ {
+ "id": "18b69352.36c53d",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 6327.6171875,
+ "y": 1251.34033203125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ab674828.77dd8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6552.6171875,
+ "y": 1208.34033203125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "2908f068.502838"
+ ]
+ ]
+ },
+ {
+ "id": "2908f068.502838",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6710.6171875,
+ "y": 1208.34033203125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "81bd3643.b73a3"
+ ]
+ ]
+ },
+ {
+ "id": "81bd3643.b73a3",
+ "type": "set",
+ "name": "set source tunnel tp ip",
+ "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",
+ "comments": "",
+ "x": 6917.6171875,
+ "y": 1208.34033203125,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "4a4ba10e.425478",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5529,
+ "y": 2077.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a847aa00.dd7a08"
+ ]
+ ]
+ },
+ {
+ "id": "a847aa00.dd7a08",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5735,
+ "y": 2077.0001220703125,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "49e71e1.8d9866"
+ ]
+ ]
+ },
+ {
+ "id": "49e71e1.8d9866",
+ "type": "outcome",
+ "name": "tunnel-termination-point",
+ "xml": "<outcome value='tunnel-termination-point'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5950.28564453125,
+ "y": 2076.8218994140625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "5b5e6199.c314a"
+ ]
+ ]
+ },
+ {
+ "id": "5b5e6199.c314a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6157.1171875,
+ "y": 2077.3404541015625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "278051a2.c31a16",
+ "9a637a3a.0233e8",
+ "2850c206.2136fe"
+ ]
+ ]
+ },
+ {
+ "id": "278051a2.c31a16",
+ "type": "set",
+ "name": "set destination ttp-id",
+ "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6372.1171875,
+ "y": 2039.3404541015625,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "9a637a3a.0233e8",
+ "type": "get-resource",
+ "name": "get-resource src TTP",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6369.1171875,
+ "y": 2078.3404541015625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ac430b92.d43478"
+ ]
+ ]
+ },
+ {
+ "id": "2850c206.2136fe",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 6324.6171875,
+ "y": 2120.3404541015625,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ac430b92.d43478",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6549.6171875,
+ "y": 2077.3404541015625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8753e537.7fd47"
+ ]
+ ]
+ },
+ {
+ "id": "8753e537.7fd47",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6707.6171875,
+ "y": 2077.3404541015625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "24ab912c.86e4be"
+ ]
+ ]
+ },
+ {
+ "id": "24ab912c.86e4be",
+ "type": "set",
+ "name": "set destination tunnel tp ip",
+ "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",
+ "comments": "",
+ "x": 6914.6171875,
+ "y": 2077.3404541015625,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "d9b3786f.e4ed38",
+ "type": "get-resource",
+ "name": "get-resource src pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5445,
+ "y": 684,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8b5e8581.37f4d8",
+ "8910508f.b898c",
+ "40d489be.0b4bf"
+ ]
+ ]
+ },
+ {
+ "id": "8b5e8581.37f4d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5640.5001220703125,
+ "y": 636,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "687e1d5.e5b1be4"
+ ]
+ ]
+ },
+ {
+ "id": "8910508f.b898c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5632.5001220703125,
+ "y": 691,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "cb7280d2.6c252"
+ ]
+ ]
+ },
+ {
+ "id": "40d489be.0b4bf",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5637.5001220703125,
+ "y": 748,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ed16936d.de3ee8"
+ ]
+ ]
+ },
+ {
+ "id": "ed16936d.de3ee8",
+ "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": 5789.5001220703125,
+ "y": 749,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "cb7280d2.6c252",
+ "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": 5800.5001220703125,
+ "y": 694,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "687e1d5.e5b1be4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5784.8824462890625,
+ "y": 633.6556701660156,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "38f57278.43482e"
+ ]
+ ]
+ },
+ {
+ "id": "a206cef4.960698",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6367,
+ "y": 652,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7575a6f9.99a6d8"
+ ]
+ ]
+ },
+ {
+ "id": "7575a6f9.99a6d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6544,
+ "y": 644,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "54e418fd.7d6af",
+ "ae94a833.e2ef38"
+ ]
+ ]
+ },
+ {
+ "id": "38f57278.43482e",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5969,
+ "y": 648,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "465a8b8c.5405ac"
+ ]
+ ]
+ },
+ {
+ "id": "465a8b8c.5405ac",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6164,
+ "y": 648,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a206cef4.960698",
+ "59e7f171.2fe93"
+ ]
+ ]
+ },
+ {
+ "id": "54e418fd.7d6af",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domainA id",
+ "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6782,
+ "y": 599,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "c451b700.662738",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6962,
+ "y": 642,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b48ed50b.bbbc98"
+ ]
+ ]
+ },
+ {
+ "id": "ee68b795.c2a168",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6954,
+ "y": 697,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "4b320cb9.f09b9c"
+ ]
+ ]
+ },
+ {
+ "id": "ace90efd.77ffe",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6959,
+ "y": 754,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7a2345cb.238a24"
+ ]
+ ]
+ },
+ {
+ "id": "7a2345cb.238a24",
+ "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": 7111,
+ "y": 755,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "4b320cb9.f09b9c",
+ "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": 7122,
+ "y": 700,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "b48ed50b.bbbc98",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 7106.38232421875,
+ "y": 639.6556701660156,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "fd510eb.0c6ebf"
+ ]
+ ]
+ },
+ {
+ "id": "fd510eb.0c6ebf",
+ "type": "set",
+ "name": "set controller domainA data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
+ "comments": "",
+ "x": 7321,
+ "y": 636,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "cf727f02.7a65a",
+ "type": "get-resource",
+ "name": "get-resource src pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n pfx='tmp.aai.destination-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5486,
+ "y": 1525,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e6203203.c9d8",
+ "a4f2c6e3.35c098",
+ "b06c15b4.6714f8"
+ ]
+ ]
+ },
+ {
+ "id": "e6203203.c9d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5681.5001220703125,
+ "y": 1477,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "3120e335.92d50c"
+ ]
+ ]
+ },
+ {
+ "id": "a4f2c6e3.35c098",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5673.5001220703125,
+ "y": 1532,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "2b2ce729.3eb29"
+ ]
+ ]
+ },
+ {
+ "id": "b06c15b4.6714f8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5678.5001220703125,
+ "y": 1589,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "372a7e76.6eb402"
+ ]
+ ]
+ },
+ {
+ "id": "372a7e76.6eb402",
+ "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": 5830.5001220703125,
+ "y": 1590,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "2b2ce729.3eb29",
+ "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": 5841.5001220703125,
+ "y": 1535,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "3120e335.92d50c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5825.8824462890625,
+ "y": 1474.6556701660156,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "4dd7dbd3.a1fbd4"
+ ]
+ ]
+ },
+ {
+ "id": "92a891f6.14f2f8",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6408,
+ "y": 1493,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e81d0130.9f5398"
+ ]
+ ]
+ },
+ {
+ "id": "e81d0130.9f5398",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6585,
+ "y": 1485,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "43e58e9.258b1f",
+ "f320f01a.c0cb68"
+ ]
+ ]
+ },
+ {
+ "id": "4dd7dbd3.a1fbd4",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6010,
+ "y": 1489,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ef34bdf9.86d6a"
+ ]
+ ]
+ },
+ {
+ "id": "ef34bdf9.86d6a",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6205,
+ "y": 1489,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "92a891f6.14f2f8",
+ "15f68679.004ff2"
+ ]
+ ]
+ },
+ {
+ "id": "f320f01a.c0cb68",
+ "type": "execute",
+ "name": "get 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 = $tmp.domainB.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 6793,
+ "y": 1492,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "21d26d09.bf8d42",
+ "e79de436.351eb",
+ "42168163.8f503"
+ ]
+ ]
+ },
+ {
+ "id": "43e58e9.258b1f",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domainB id",
+ "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6823,
+ "y": 1440,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "21d26d09.bf8d42",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 7003,
+ "y": 1483,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8f151e48.516da8"
+ ]
+ ]
+ },
+ {
+ "id": "e79de436.351eb",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6995,
+ "y": 1538,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "43ccb9c7.d7ad"
+ ]
+ ]
+ },
+ {
+ "id": "42168163.8f503",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 7000,
+ "y": 1595,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "d86c14ab.73faf8"
+ ]
+ ]
+ },
+ {
+ "id": "d86c14ab.73faf8",
+ "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": 7152,
+ "y": 1596,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "43ccb9c7.d7ad",
+ "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": 7163,
+ "y": 1541,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "8f151e48.516da8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 7147.38232421875,
+ "y": 1480.6556701660156,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "48915602.68268"
+ ]
+ ]
+ },
+ {
+ "id": "48915602.68268",
+ "type": "set",
+ "name": "set controller domainB data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
+ "comments": "",
+ "x": 7362,
+ "y": 1477,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "8418b8d3.470188",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 359,
+ "y": 606,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "3e42f499.a0a45c",
+ "23de1461.f7fad4"
+ ]
+ ]
+ },
+ {
+ "id": "3e42f499.a0a45c",
+ "type": "for",
+ "name": "for each allotted-resource relationship",
+ "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 805,
+ "y": 465,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "61c833be.b9761c"
+ ]
+ ]
+ },
+ {
+ "id": "61c833be.b9761c",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3170,
+ "y": 447,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "9f0e5f06.ee06a8"
+ ]
+ ]
+ },
+ {
+ "id": "59e7f171.2fe93",
+ "type": "outcome",
+ "name": "network-resource",
+ "xml": "<outcome value='network-resource'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 6370,
+ "y": 726,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "db4451ce.036298"
+ ]
+ ]
+ },
+ {
+ "id": "db4451ce.036298",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6547,
+ "y": 718,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "3b56e152.cb5dfe"
+ ]
+ ]
+ },
+ {
+ "id": "3b56e152.cb5dfe",
+ "type": "set",
+ "name": "set domainA ethernet layer network-id",
+ "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6782,
+ "y": 842,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "8d9dc5d1.6f53b",
+ "type": "set",
+ "name": "set domainB ethernet layer network-id",
+ "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6822,
+ "y": 1682,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "b9cc1a89.57ad48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6587,
+ "y": 1558,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8d9dc5d1.6f53b"
+ ]
+ ]
+ },
+ {
+ "id": "15f68679.004ff2",
+ "type": "outcome",
+ "name": "network-resource",
+ "xml": "<outcome value='network-resource'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 6410,
+ "y": 1566,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b9cc1a89.57ad48"
+ ]
+ ]
+ },
+ {
+ "id": "283fdbf8.9648a4",
+ "type": "set",
+ "name": "set the max bandwidth",
+ "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",
+ "comments": "",
+ "x": 4362,
+ "y": 502,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "53d902b0.393754",
+ "type": "execute",
+ "name": "execute UUID generator for ethernet-service-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4384,
+ "y": 637,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2829cd3e.73ff62",
+ "type": "execute",
+ "name": "execute UUID generator for otn-tunnel-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4365,
+ "y": 687,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ec9312e3.eb3ca",
+ "type": "for",
+ "name": "for each allotted-resource",
+ "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1956,
+ "y": 188,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "f47a653.ec6e298",
+ "ff867076.ee06e"
+ ]
+ ]
+ },
+ {
+ "id": "f47a653.ec6e298",
+ "type": "set",
+ "name": "set the current allotted-resource-id",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",
+ "comments": "",
+ "x": 2240,
+ "y": 158,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "9445731f.f1b8",
+ "type": "set",
+ "name": "set query_param",
+ "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",
+ "comments": "",
+ "x": 4281,
+ "y": 2196,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "beaf21fd.396d98",
+ "type": "set",
+ "name": "unset parameters",
+ "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",
+ "comments": "",
+ "x": 4265,
+ "y": 3895,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "7826fce9.171054",
+ "type": "set",
+ "name": "set new ethernet-service-name",
+ "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",
+ "comments": "",
+ "x": 4322,
+ "y": 732,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "b9213dab.6d883",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 4316,
+ "y": 2316,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "20d68f86.366a48"
+ ]
+ ]
+ },
+ {
+ "id": "d817cc51.57c43",
+ "type": "save",
+ "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5439,
+ "y": 2884,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "19683517.67ac63"
+ ]
+ ]
+ },
+ {
+ "id": "ca454382.6438b8",
+ "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 = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 6011.5,
+ "y": 2988,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "19683517.67ac63",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5745,
+ "y": 2883,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7b5a7467.79786c"
+ ]
+ ]
+ },
+ {
+ "id": "7b5a7467.79786c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5954.5,
+ "y": 2883.25390625,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "d5f9f3e8.876da8"
+ ]
+ ]
+ },
+ {
+ "id": "cfeb42d5.8f30e",
+ "type": "execute",
+ "name": "execute UUID generator for vpn-binding $otnidx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5475,
+ "y": 2348,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80314abc.ea1038",
+ "type": "switchNode",
+ "name": "switch otnidx == 0",
+ "xml": "<switch test='`$otnidx == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5348,
+ "y": 3001,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "42510192.4150d",
+ "e04d6920.7d592"
+ ]
+ ]
+ },
+ {
+ "id": "42510192.4150d",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5531,
+ "y": 3001,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c6dc5f2e.5970a8"
+ ]
+ ]
+ },
+ {
+ "id": "e04d6920.7d592",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5356,
+ "y": 3148,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e39528c5.00341"
+ ]
+ ]
+ },
+ {
+ "id": "d4bb1111.25cff",
+ "type": "switchNode",
+ "name": "switch otnidx == last",
+ "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5697,
+ "y": 3229,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "63cb7082.8783",
+ "18ee91c9.b3e6fe"
+ ]
+ ]
+ },
+ {
+ "id": "63cb7082.8783",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5882,
+ "y": 3230,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "629d009e.881158"
+ ]
+ ]
+ },
+ {
+ "id": "18ee91c9.b3e6fe",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5901,
+ "y": 3496,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "78cc4d6b.9a20e4"
+ ]
+ ]
+ },
+ {
+ "id": "72b6f676.a7eaa",
+ "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 = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 6312,
+ "y": 3231,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d690add.7eb056",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domain otnidx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6386,
+ "y": 3529,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7eb9bec5.6b496",
+ "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 = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6322,
+ "y": 3580,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e4bf0eff.3ff878",
+ "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 = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 6451,
+ "y": 3630,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44296fc3.86d838",
+ "type": "comment",
+ "name": "connectivity has not been created for middle domains, so we have to create one",
+ "info": "",
+ "comments": "",
+ "x": 6461,
+ "y": 3473,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "dde77510.01e358",
+ "type": "save",
+ "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 6419,
+ "y": 3689,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "78cc4d6b.9a20e4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 6058,
+ "y": 3497,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "2d690add.7eb056",
+ "7eb9bec5.6b496",
+ "e4bf0eff.3ff878",
+ "dde77510.01e358",
+ "cf8ac1fc.c141"
+ ]
+ ]
+ },
+ {
+ "id": "20d68f86.366a48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4568,
+ "y": 2377,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "cfeb42d5.8f30e",
+ "d817cc51.57c43",
+ "80314abc.ea1038",
+ "7c37f4eb.58f484",
+ "c24bf6c5.fa73c8",
+ "1dbe2057.a5e62",
+ "94fd6991.78fda"
+ ]
+ ]
+ },
+ {
+ "id": "72da75b4.4b328c",
+ "type": "set",
+ "name": "set attachment_param domain A",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",
+ "comments": "",
+ "x": 5936,
+ "y": 3045,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "9684161c.06ddd",
+ "type": "execute",
+ "name": "execute RestApiCallNode domainA UNI Coloring",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 5989,
+ "y": 3089,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "efb749b0.733a",
+ "783ce4ab.fbf424"
+ ]
+ ]
+ },
+ {
+ "id": "783ce4ab.fbf424",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6260,
+ "y": 3074,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ddad2f88.846408"
+ ]
+ ]
+ },
+ {
+ "id": "efb749b0.733a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6258.000213623047,
+ "y": 3131.99990940094,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "d912d706.5a251"
+ ]
+ ]
+ },
+ {
+ "id": "ddad2f88.846408",
+ "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 UNI Coloring for domain A\" />\n",
+ "comments": "",
+ "x": 6400.000247955322,
+ "y": 3074.0000009536743,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "d912d706.5a251",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6406.02725982666,
+ "y": 3122.745394706726,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c6dc5f2e.5970a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5672,
+ "y": 2991,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ca454382.6438b8",
+ "9684161c.06ddd",
+ "72da75b4.4b328c"
+ ]
+ ]
+ },
+ {
+ "id": "629d009e.881158",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6016,
+ "y": 3231,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "72b6f676.a7eaa",
+ "14aebcc4.f7f7cb",
+ "46bbee51.f68868"
+ ]
+ ]
+ },
+ {
+ "id": "46bbee51.f68868",
+ "type": "set",
+ "name": "set attachment_param domain B",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 6236,
+ "y": 3275,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "14aebcc4.f7f7cb",
+ "type": "execute",
+ "name": "execute RestApiCallNode domainB UNI Coloring",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 6287,
+ "y": 3319,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "2a75572.a50f028",
+ "b6918e5c.ab31"
+ ]
+ ]
+ },
+ {
+ "id": "b6918e5c.ab31",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6550,
+ "y": 3299,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "18902915.6118d7"
+ ]
+ ]
+ },
+ {
+ "id": "2a75572.a50f028",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6551.000213623047,
+ "y": 3349.99990940094,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "6d64d1d4.bfd958"
+ ]
+ ]
+ },
+ {
+ "id": "18902915.6118d7",
+ "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 UNI coloring for domain B\" />\n",
+ "comments": "",
+ "x": 6690.000247955322,
+ "y": 3299.0000009536743,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "6d64d1d4.bfd958",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6696.02725982666,
+ "y": 3347.745394706726,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cf8ac1fc.c141",
+ "type": "set",
+ "name": "set attachment_param domain otnidx",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
+ "comments": "",
+ "x": 6333,
+ "y": 3749,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "77439122.61f0b",
+ "type": "save",
+ "name": "get all-vpn-bindings from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3652,
+ "y": 4096,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a916ce6e.3a2dd8",
+ "8ea0214a.83c",
+ "1e283443.a11834"
+ ]
+ ]
+ },
+ {
+ "id": "a916ce6e.3a2dd8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3840,
+ "y": 4109,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "34b3b115.5888ce"
+ ]
+ ]
+ },
+ {
+ "id": "8ea0214a.83c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3840.490966796875,
+ "y": 4154.574035644531,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "389d2b9f.8874d4"
+ ]
+ ]
+ },
+ {
+ "id": "1e283443.a11834",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3838,
+ "y": 4198,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8afc42fa.281da"
+ ]
+ ]
+ },
+ {
+ "id": "34b3b115.5888ce",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4013,
+ "y": 4107,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "9cfe8596.af4768"
+ ]
+ ]
+ },
+ {
+ "id": "389d2b9f.8874d4",
+ "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": 4003.0623779296875,
+ "y": 4154.859771728516,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "8afc42fa.281da",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4005,
+ "y": 4197,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "adac8296.d1b27",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3641,
+ "y": 4287,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a0b78348.a09218"
+ ]
+ ]
+ },
+ {
+ "id": "a5b6bb26.da9ec8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4451,
+ "y": 4287,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "45429cd9.5d7224"
+ ]
+ ]
+ },
+ {
+ "id": "d9387db0.98ab68",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4223,
+ "y": 4287,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a5b6bb26.da9ec8"
+ ]
+ ]
+ },
+ {
+ "id": "e7eee5b6.16e978",
+ "type": "set",
+ "name": "set providerValue",
+ "xml": "<set>\n<parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />\n<parameter name='found' value='false' />\n\n\n",
+ "comments": "",
+ "x": 5343,
+ "y": 4054,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "e4dd1d5b.f089e8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",
+ "comments": "",
+ "x": 5645,
+ "y": 3180,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "e39528c5.00341",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5480,
+ "y": 3155,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e4dd1d5b.f089e8",
+ "d4bb1111.25cff"
+ ]
+ ]
+ },
+ {
+ "id": "9b47cb2b.81e09",
+ "type": "set",
+ "name": "set tmp.arr",
+ "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<parameter name='tmp.slicevpns' value='' />\n<parameter name='tmp.slicevpns_length' value='0' />\n\n<parameter name='tmp.slicevpnuuids' value='' />\n<parameter name='tmp.slicevpnuuids.' value='' />\n\n<parameter name='bwModified' value='false' />\n\n\n",
+ "comments": "",
+ "x": 1938,
+ "y": 134,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "9cfe8596.af4768",
+ "type": "for",
+ "name": "for vpnidx in all-vpn-bindings",
+ "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4242,
+ "y": 4108,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "9ba3a7c0.b0cb88"
+ ]
+ ]
+ },
+ {
+ "id": "9ba3a7c0.b0cb88",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4457,
+ "y": 4109,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "45048a47.3aa5fc"
+ ]
+ ]
+ },
+ {
+ "id": "30ee7ab9.1c084e",
+ "type": "for",
+ "name": "for arridx in tmp.arr",
+ "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5910,
+ "y": 4029,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "53d8a5a4.d4c3ac"
+ ]
+ ]
+ },
+ {
+ "id": "b5b6b6e5.2bc768",
+ "type": "switchNode",
+ "name": "switch $tmp.arr_length != 0",
+ "xml": "<switch test='`$tmp.arr_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5376,
+ "y": 4109,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "1acbae51.13627a",
+ "b78197f0.7f231"
+ ]
+ ]
+ },
+ {
+ "id": "1acbae51.13627a",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5572,
+ "y": 4079,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "4305d70.41fb128"
+ ]
+ ]
+ },
+ {
+ "id": "b78197f0.7f231",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5573,
+ "y": 4150,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "513cbe42.5f9f78"
+ ]
+ ]
+ },
+ {
+ "id": "4305d70.41fb128",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5723,
+ "y": 4077,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "30ee7ab9.1c084e",
+ "2ee86607.39702a"
+ ]
+ ]
+ },
+ {
+ "id": "53d8a5a4.d4c3ac",
+ "type": "switchNode",
+ "name": "switch tmp.arr[$arridx] == $providerValue",
+ "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6201,
+ "y": 4029,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "f8741b2b.9feaa8",
+ "d4cbae1e.f8339"
+ ]
+ ]
+ },
+ {
+ "id": "f8741b2b.9feaa8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6476,
+ "y": 3998,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8f2d4eac.99e5f8"
+ ]
+ ]
+ },
+ {
+ "id": "d4cbae1e.f8339",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6477,
+ "y": 4069,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "5e18e353.3a05ac"
+ ]
+ ]
+ },
+ {
+ "id": "8f2d4eac.99e5f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 6627,
+ "y": 3996,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8b8a8ce1.3ddff",
+ "9358083a.54b3b8",
+ "842d4e41.428d6",
+ "c78fe39c.41c76",
+ "78c705fa.24e9dc"
+ ]
+ ]
+ },
+ {
+ "id": "8b8a8ce1.3ddff",
+ "type": "set",
+ "name": "set found to true",
+ "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",
+ "comments": "",
+ "x": 6815,
+ "y": 3956,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "9358083a.54b3b8",
+ "type": "save",
+ "name": "store $arridx somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx`' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6887,
+ "y": 4001,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "78c705fa.24e9dc",
+ "type": "set",
+ "name": "set twoD arr",
+ "xml": "<set>\n\n<!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->\n<!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->\n<parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />\n\n",
+ "comments": "",
+ "x": 6802,
+ "y": 4128,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "c78fe39c.41c76",
+ "type": "set",
+ "name": "set sizeOfSliceList",
+ "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",
+ "comments": "",
+ "x": 6823,
+ "y": 4064,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "513cbe42.5f9f78",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5725,
+ "y": 4150,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "56c68e45.b909e",
+ "62724f29.35ed9"
+ ]
+ ]
+ },
+ {
+ "id": "56c68e45.b909e",
+ "type": "save",
+ "name": "store $arridx somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='0' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5980,
+ "y": 4143,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "62724f29.35ed9",
+ "type": "set",
+ "name": "set twoD array",
+ "xml": "<set>\n<parameter name='tmp.arr[0]' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='1' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='1' />\n<parameter name='otn-tunnel-slice[0].list_length' value='1' />\n\n",
+ "comments": "",
+ "x": 5908,
+ "y": 4190,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "2ee86607.39702a",
+ "type": "switchNode",
+ "name": "switch found?",
+ "xml": "<switch test='`$found`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5901,
+ "y": 4074,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "57630af9.c71c94",
+ "27468ceb.58bbcc"
+ ]
+ ]
+ },
+ {
+ "id": "57630af9.c71c94",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6061,
+ "y": 4066,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "55618a59.0218f4"
+ ]
+ ]
+ },
+ {
+ "id": "27468ceb.58bbcc",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6059,
+ "y": 4103,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "dbf50489.ec13e"
+ ]
+ ]
+ },
+ {
+ "id": "55618a59.0218f4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6186,
+ "y": 4066,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "54fbb2b4.70fc04",
+ "type": "save",
+ "name": "store $arridx+1 somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx + 1`' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6493,
+ "y": 4124,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dbf50489.ec13e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 6219,
+ "y": 4111,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "54fbb2b4.70fc04",
+ "7e39f539.ebf16c"
+ ]
+ ]
+ },
+ {
+ "id": "7e39f539.ebf16c",
+ "type": "set",
+ "name": "set twoD array",
+ "xml": "<set>\n<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />\n\n",
+ "comments": "",
+ "x": 6410,
+ "y": 4170,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "5e18e353.3a05ac",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6610,
+ "y": 4068,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "842d4e41.428d6",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 6781,
+ "y": 4195,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "7c37f4eb.58f484",
+ "type": "switchNode",
+ "name": "switch dstPort == NULL",
+ "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5178,
+ "y": 2407,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "16caf8de.d229e7",
+ "54697afc.bd57bc"
+ ]
+ ]
+ },
+ {
+ "id": "16caf8de.d229e7",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5567,
+ "y": 2385,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "6d8c7c43.cb932c"
+ ]
+ ]
+ },
+ {
+ "id": "54697afc.bd57bc",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5568,
+ "y": 2431,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "92ed67c7.8c7a"
+ ]
+ ]
+ },
+ {
+ "id": "6d8c7c43.cb932c",
+ "type": "set",
+ "name": "set access-provider-id and client-id",
+ "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",
+ "comments": "",
+ "x": 5781,
+ "y": 2384,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "92ed67c7.8c7a",
+ "type": "set",
+ "name": "set access-provider-id and client-id",
+ "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",
+ "comments": "",
+ "x": 5779,
+ "y": 2429,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "45429cd9.5d7224",
+ "type": "set",
+ "name": "set attachment_param sliceG",
+ "xml": "<set>\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`\" />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />\n\n\n<parameter name=\"tmp.domainG.restapiUrl\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`\" />\n<parameter name=\"tmp.domainG.restapiUser\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`\" />\n<parameter name=\"tmp.domainG.restapiPassword\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`\" />",
+ "comments": "",
+ "x": 4704,
+ "y": 4285,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "8c979de9.c09378",
+ "type": "execute",
+ "name": "execute RestApiCallNode sliceG creation domainG",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.domainG.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`tmp.domainG.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4289,
+ "y": 4393,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e196ec28.ce397",
+ "9ae42505.217cf8"
+ ]
+ ]
+ },
+ {
+ "id": "9ae42505.217cf8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4572,
+ "y": 4373,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "bf5b9f50.921198"
+ ]
+ ]
+ },
+ {
+ "id": "e196ec28.ce397",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4573.000213623047,
+ "y": 4423.99990940094,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ca17658e.a8462"
+ ]
+ ]
+ },
+ {
+ "id": "bf5b9f50.921198",
+ "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 slice creation api for domain A\" />\n",
+ "comments": "",
+ "x": 4712.000247955322,
+ "y": 4373.000000953674,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ca17658e.a8462",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4718.02725982666,
+ "y": 4421.745394706726,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c24bf6c5.fa73c8",
+ "type": "set",
+ "name": "set srcdstpnf-name",
+ "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n $tmp.access-provider-id + '-clientId-' +\n $tmp.access-client-id + '-topologyId-' + \n $tmp.access-topology-id + '-nodeId-' + \n $tmp.srcdstpnf-id`\" />\n\n",
+ "comments": "",
+ "x": 5362,
+ "y": 2527,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "1dbe2057.a5e62",
+ "type": "get-resource",
+ "name": "get-resource tmp.srcdstpnf-name",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5406,
+ "y": 2575,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b817832b.d2bf5",
+ "fd3a55f8.c9d638",
+ "b887d27c.b753c8"
+ ]
+ ]
+ },
+ {
+ "id": "b817832b.d2bf5",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5618.5,
+ "y": 2522,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ad57831e.648c8"
+ ]
+ ]
+ },
+ {
+ "id": "fd3a55f8.c9d638",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5630.5,
+ "y": 2572,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b93496a6.69adc"
+ ]
+ ]
+ },
+ {
+ "id": "b887d27c.b753c8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5621.5,
+ "y": 2627,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b15272b2.6a6078"
+ ]
+ ]
+ },
+ {
+ "id": "b15272b2.6a6078",
+ "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": 5766.5,
+ "y": 2626,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "b93496a6.69adc",
+ "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": 5777.5,
+ "y": 2569,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "ad57831e.648c8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5743.8824462890625,
+ "y": 2515.6556701660156,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "de6a0737.bde95"
+ ]
+ ]
+ },
+ {
+ "id": "8779930e.acaac",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6303,
+ "y": 2534,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "eb5cb5f4.6dd96"
+ ]
+ ]
+ },
+ {
+ "id": "eb5cb5f4.6dd96",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6480,
+ "y": 2526,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c49affc6.c8c2f",
+ "d02c8535.9950a"
+ ]
+ ]
+ },
+ {
+ "id": "de6a0737.bde95",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5905,
+ "y": 2530,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "38bf0267.963d4e"
+ ]
+ ]
+ },
+ {
+ "id": "38bf0267.963d4e",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6100,
+ "y": 2530,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8779930e.acaac"
+ ]
+ ]
+ },
+ {
+ "id": "d02c8535.9950a",
+ "type": "execute",
+ "name": "get 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 = $tmp.domainG.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 6688,
+ "y": 2533,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "cdad79e0.120d78",
+ "28e812c3.6536fe",
+ "4be09c5b.0037ec"
+ ]
+ ]
+ },
+ {
+ "id": "c49affc6.c8c2f",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domainG id",
+ "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6718,
+ "y": 2481,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "cdad79e0.120d78",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6898,
+ "y": 2524,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "131587f4.87c8f8"
+ ]
+ ]
+ },
+ {
+ "id": "28e812c3.6536fe",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6890,
+ "y": 2579,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "f025d314.592c4"
+ ]
+ ]
+ },
+ {
+ "id": "4be09c5b.0037ec",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6895,
+ "y": 2636,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ca734be9.796a3"
+ ]
+ ]
+ },
+ {
+ "id": "ca734be9.796a3",
+ "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": 7047,
+ "y": 2637,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "f025d314.592c4",
+ "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": 7058,
+ "y": 2582,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "131587f4.87c8f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 7042.38232421875,
+ "y": 2521.6556701660156,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b10b1934.5f3698"
+ ]
+ ]
+ },
+ {
+ "id": "b10b1934.5f3698",
+ "type": "set",
+ "name": "set controller domainA data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
+ "comments": "",
+ "x": 7257,
+ "y": 2518,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "a0b78348.a09218",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3873,
+ "y": 4285,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "d9387db0.98ab68",
+ "8c979de9.c09378"
+ ]
+ ]
+ },
+ {
+ "id": "94fd6991.78fda",
+ "type": "switchNode",
+ "name": "switch dmnsidx == 0 (domainA)",
+ "xml": "<switch test='`$otnidx == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5376,
+ "y": 2744,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a8dd9104.b00cc8",
+ "a5fa454e.c7391"
+ ]
+ ]
+ },
+ {
+ "id": "a8dd9104.b00cc8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5577,
+ "y": 2742,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "bde911bd.4178d"
+ ]
+ ]
+ },
+ {
+ "id": "bde911bd.4178d",
+ "type": "set",
+ "name": "set attachment_param domain A",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",
+ "comments": "",
+ "x": 5791,
+ "y": 2744,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "99bcb408.94c238",
+ "type": "switchNode",
+ "name": "switch dmnsidx == last (domainB)",
+ "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5794,
+ "y": 2793,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ba84b2ac.820f48",
+ "f2bc6a9d.359a1"
+ ]
+ ]
+ },
+ {
+ "id": "ba84b2ac.820f48",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6024,
+ "y": 2789,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7b7412c.2c058ec"
+ ]
+ ]
+ },
+ {
+ "id": "7b7412c.2c058ec",
+ "type": "set",
+ "name": "set attachment_param domain B",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",
+ "comments": "",
+ "x": 6238,
+ "y": 2792,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "a5fa454e.c7391",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5577,
+ "y": 2791,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "99bcb408.94c238"
+ ]
+ ]
+ },
+ {
+ "id": "f2bc6a9d.359a1",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6025,
+ "y": 2835,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "97f6382c.08a66"
+ ]
+ ]
+ },
+ {
+ "id": "97f6382c.08a66",
+ "type": "set",
+ "name": "set attachment_param domain G",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",
+ "comments": "",
+ "x": 6239,
+ "y": 2835,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "d5f9f3e8.876da8",
+ "type": "set",
+ "name": "set tmp.slicevpns",
+ "xml": "<set>\n<parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n<parameter name='tmp.slicevpns_length' value=\"`$tmp.slicevpns_length + 1`\" />\n\n<parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n\n",
+ "comments": "",
+ "x": 6137,
+ "y": 2884,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "45048a47.3aa5fc",
+ "type": "switchNode",
+ "name": "switch vpnuuid is for this slice",
+ "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n \n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4701,
+ "y": 4108,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "34a9fd7.c9a0402",
+ "a146c972.fd19c"
+ ]
+ ]
+ },
+ {
+ "id": "34a9fd7.c9a0402",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4918,
+ "y": 4087,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7c5ab1e1.aaf1f8"
+ ]
+ ]
+ },
+ {
+ "id": "a146c972.fd19c",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4918,
+ "y": 4136,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7c5ab1e1.aaf1f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5086,
+ "y": 4087,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e7eee5b6.16e978",
+ "b5b6b6e5.2bc768"
+ ]
+ ]
+ },
+ {
+ "id": "320f3490.61a614",
+ "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.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1426,
+ "y": 718,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "653e0797.1d827",
+ "db86f5c5.803548",
+ "a788197d.0ee218"
+ ]
+ ]
+ },
+ {
+ "id": "653e0797.1d827",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1638.490966796875,
+ "y": 684.573974609375,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a3fdac41.0f5208"
+ ]
+ ]
+ },
+ {
+ "id": "db86f5c5.803548",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1627,
+ "y": 729,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "6b3d987f.3963e8"
+ ]
+ ]
+ },
+ {
+ "id": "a3fdac41.0f5208",
+ "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": 1787.0625,
+ "y": 684.8597412109375,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "6b3d987f.3963e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1786,
+ "y": 729,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "a788197d.0ee218",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1632,
+ "y": 772,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "6f79cb60.ba682c"
+ ]
+ ]
+ },
+ {
+ "id": "6f79cb60.ba682c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 778,
+ "y": 1111,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b6c5466.cef2ab8"
+ ]
+ ]
+ },
+ {
+ "id": "b6c5466.cef2ab8",
+ "type": "for",
+ "name": "for each svc-instance relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1052,
+ "y": 1111,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "db0349a.25c5f38"
+ ]
+ ]
+ },
+ {
+ "id": "db0349a.25c5f38",
+ "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": 1287.33349609375,
+ "y": 1112,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e2db5406.ea53a8"
+ ]
+ ]
+ },
+ {
+ "id": "e2db5406.ea53a8",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 571.000244140625,
+ "y": 1265,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "4dfa6aad.834ec4"
+ ]
+ ]
+ },
+ {
+ "id": "a29cb5bb.c12f3",
+ "type": "save",
+ "name": "get connectivity 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[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 960,
+ "y": 1270,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "c355a2e8.7aaf9",
+ "bfa7f0cb.443038",
+ "86dae01c.e8a7d8"
+ ]
+ ]
+ },
+ {
+ "id": "c355a2e8.7aaf9",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1156,
+ "y": 1235,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "1f5a660e.de0452"
+ ]
+ ]
+ },
+ {
+ "id": "bfa7f0cb.443038",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1156.490966796875,
+ "y": 1280.5740356445312,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "f567d172.d846a8"
+ ]
+ ]
+ },
+ {
+ "id": "86dae01c.e8a7d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1121,
+ "y": 1326,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "3f353c11.763704"
+ ]
+ ]
+ },
+ {
+ "id": "f567d172.d846a8",
+ "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": 1316.0625,
+ "y": 1277.8597412109375,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "3f353c11.763704",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1274,
+ "y": 1328,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "11174c12.9e5084",
+ "type": "switchNode",
+ "name": "switch loglink-id exists in conn",
+ "xml": "<switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1549,
+ "y": 1218,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "b3297b62.15a2f",
+ "5b8a7e9c.a8c0b8"
+ ]
+ ]
+ },
+ {
+ "id": "b3297b62.15a2f",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1760,
+ "y": 1183,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "1488db49.ce832d"
+ ]
+ ]
+ },
+ {
+ "id": "5b8a7e9c.a8c0b8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1757,
+ "y": 1244,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3dd67f85.457d6",
+ "type": "set",
+ "name": "set currLinkIsFound",
+ "xml": "<set>\n<parameter name='currLinkIsFound' value=\"true\" />\n\n\n",
+ "comments": "",
+ "x": 2098,
+ "y": 1156,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "1488db49.ce832d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1912,
+ "y": 1184,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "3dd67f85.457d6"
+ ]
+ ]
+ },
+ {
+ "id": "17fda0a8.543d27",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2065,
+ "y": 1212,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "9e795c2b.8794b8",
+ "type": "comment",
+ "name": "currLinkIsFound. Go to the next logical-link",
+ "info": "",
+ "comments": "",
+ "x": 2070,
+ "y": 1106,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "32833f1a.e66008",
+ "type": "switchNode",
+ "name": "switch currLinkIsFound",
+ "xml": "<switch test='`$currLinkIsFound`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1352,
+ "y": 836,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "89a54b3d.dce24",
+ "e0be93c4.ec1bf"
+ ]
+ ]
+ },
+ {
+ "id": "89a54b3d.dce24",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1538,
+ "y": 815,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "73540b39.f320f4"
+ ]
+ ]
+ },
+ {
+ "id": "e0be93c4.ec1bf",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1535,
+ "y": 951,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8fff13f1.763be8"
+ ]
+ ]
+ },
+ {
+ "id": "73540b39.f320f4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1780,
+ "y": 810,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "71783690.9edfa",
+ "type": "comment",
+ "name": "A new logical-link has been found: modify process should be triggered",
+ "info": "",
+ "comments": "",
+ "x": 1726,
+ "y": 914,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "1f5a660e.de0452",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1320,
+ "y": 1219,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "11174c12.9e5084",
+ "28a678cf.73375"
+ ]
+ ]
+ },
+ {
+ "id": "28a678cf.73375",
+ "type": "switchNode",
+ "name": "switch connectivityBW == gfp",
+ "xml": "<switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1550,
+ "y": 1309,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "7593ee23.7a5fc8",
+ "f472c4e4.19eb4"
+ ]
+ ]
+ },
+ {
+ "id": "7593ee23.7a5fc8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1755,
+ "y": 1305,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f472c4e4.19eb4",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1757,
+ "y": 1355,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a1ad62a5.377c38"
+ ]
+ ]
+ },
+ {
+ "id": "dbf4dd89.edfbf8",
+ "type": "set",
+ "name": "set bwModified",
+ "xml": "<set>\n<parameter name='bwModified' value=\"true\" />\n\n\n",
+ "comments": "",
+ "x": 2106,
+ "y": 1333,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "a1ad62a5.377c38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1911,
+ "y": 1354,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "dbf4dd89.edfbf8",
+ "8b32fc44.9a74b"
+ ]
+ ]
+ },
+ {
+ "id": "8b32fc44.9a74b",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 931,
+ "y": 1559,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "3a2b0e4e.390f2a"
+ ]
+ ]
+ },
+ {
+ "id": "3a2b0e4e.390f2a",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1136,
+ "y": 1559,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "8cc489a8.1663e8"
+ ]
+ ]
+ },
+ {
+ "id": "8cc489a8.1663e8",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1302,
+ "y": 1559,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "39440cdd.73e4a4"
+ ]
+ ]
+ },
+ {
+ "id": "39440cdd.73e4a4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1465,
+ "y": 1559,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "e3ceb0b1.0227c",
+ "837372e0.8cfe9"
+ ]
+ ]
+ },
+ {
+ "id": "837372e0.8cfe9",
+ "type": "set",
+ "name": "unset tmp.aai.vpn-binding",
+ "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
+ "comments": "",
+ "x": 1694,
+ "y": 1499,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "e3ceb0b1.0227c",
+ "type": "save",
+ "name": "get vpn-binding 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.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1203,
+ "y": 1653,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "53bbab14.df656c",
+ "656ddda.68726a4",
+ "3942f2bd.5b5c6e"
+ ]
+ ]
+ },
+ {
+ "id": "ee3fab4d.b900c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1587,
+ "y": 1653,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "27f47760.daaf38",
+ "8574ddfc.4f71a8"
+ ]
+ ]
+ },
+ {
+ "id": "53bbab14.df656c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1414,
+ "y": 1655,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "ee3fab4d.b900c8"
+ ]
+ ]
+ },
+ {
+ "id": "656ddda.68726a4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1414.490966796875,
+ "y": 1700.5740356445312,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a14bcd53.80dad"
+ ]
+ ]
+ },
+ {
+ "id": "3942f2bd.5b5c6e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1412,
+ "y": 1744,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "3d036bfb.d96184"
+ ]
+ ]
+ },
+ {
+ "id": "3d036bfb.d96184",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1579,
+ "y": 1761,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "a14bcd53.80dad",
+ "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": 1577.0623779296875,
+ "y": 1700.8597717285156,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "4dfa6aad.834ec4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 743,
+ "y": 1265,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ [
+ "a29cb5bb.c12f3",
+ "ff2edf17.9b8f3"
+ ]
+ ]
+ },
+ {
+ "id": "ff2edf17.9b8f3",
+ "type": "set",
+ "name": "unset tmp.aai.connectivity",
+ "xml": "<set>\n<parameter name='tmp.aai.connectivity.' value='' />\n",
+ "comments": "",
+ "x": 963,
+ "y": 1213,
+ "z": "df5c2cef.29f798",
+ "wires": []
+ },
+ {
+ "id": "27f47760.daaf38",
+ "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.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1937.5,
+ "y": 1648,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8574ddfc.4f71a8",
+ "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 = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1864.5,
+ "y": 1712,
+ "z": "df5c2cef.29f798",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/resources/graph.versions b/platform-logic/generic-resource-api/src/main/resources/graph.versions
index cfae11c1..51f2e1c2 100755
--- a/platform-logic/generic-resource-api/src/main/resources/graph.versions
+++ b/platform-logic/generic-resource-api/src/main/resources/graph.versions
@@ -285,5 +285,6 @@ GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-allocate ${project.
GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-activate ${project.version} sync
GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-deactivate ${project.version} sync
GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-deallocate ${project.version} sync
+GENERIC-RESOURCE-API tsli-vnf-topology-operation-trans-slice-modify ${project.version} sync
GENERIC-RESOURCE-API tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof ${project.version} sync
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 6ea99b64..9958212c 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
@@ -1,6 +1,6 @@
<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}'>
+ 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='vnf-topology-operation' mode='sync'>
<block atomic="true">
<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' ></call>
@@ -248,6 +248,9 @@
</switch>
</for>
</outcome>
+ <outcome value='DeleteTransportSliceInstance'>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-trans-slice-modify' mode='sync' ></call>
+ </outcome>
</switch>
</outcome>
<outcome value='Other'>
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.xml
index 9faaccd7..82210c16 100644
--- a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof.xml
@@ -27,6 +27,56 @@
<block></block>
</outcome>
</execute>
+ <block atomic='true'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnfs"
+ key="selflink = 'https://aai.onap:8443/aai/v21/network/pnfs?depth=0'"
+ local-only="false"
+ pfx="ccsdkTopo.pnfs" >
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'></outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="logical-links"
+ key="selflink = 'https://aai.onap:8443/aai/v21/network/logical-links?depth=0'"
+ local-only="false"
+ pfx="ccsdkTopo.logicalLinks" >
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'></outcome>
+ </get-resource>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.slitopologyutils.SliTopologyUtils' method='computePath' >
+ <parameter name="pnfs-pfx" value='`$ccsdkTopo.pnfs`'/>
+ <parameter name="links-pfx" value="`$ccsdkTopo.logicalLinks`"/>
+ <parameter name="response-pfx" value="otn-oof"/>
+ <parameter name="output-end-to-end-path" value="true"/>
+ <parameter name="src-node" value="`$tmp.src.domainA.pnf-name`"/>
+ <parameter name="dst-node" value="`$tmp.src.domainB.pnf-name`"/>
+ <outcome value='success'></outcome>
+ <outcome value='Other'></outcome>
+ </execute>
+ </block>
<set>
<parameter name='`tmp.otninfo.`' value='' />
<parameter name='`tmp.otninfo_length`' value='0' />
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
index 34a70490..787741e9 100644
--- 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
@@ -44,528 +44,537 @@
key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"
local-only="false"
pfx="tmp.aai.vpn-binding" >
+ <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">
- <set>
- <parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />
- </set>
- <switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>
- <outcome value='Other'>
- <switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>
- <outcome value=''>
- <block atomic="true">
- <set>
- <parameter name='tmp.aai.vpn-bindingA.' value="`$tmp.aai.vpn-binding.`" />
- <parameter name='tmp.aai.connectivityA.' value="`$tmp.aai.connectivity.`" />
- </set>
- <set>
- <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />
- <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />
- <!--<parameter name='dst-tpn-id' value='1' />-->
- <parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />
- <parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- <parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
- <parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />
- <parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />
- <parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />
- </set>
- <set>
- <parameter name='tmp.src.domainA.pnf-name' value="`'networkId-providerId-' +
+ <switch test="`$tmp.aai.vpn-binding.operational-status != 'Activated' `">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />
+ </set>
+ <switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>
+ <outcome value='Other'>
+ <switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>
+ <outcome value=''>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-bindingA.' value="`$tmp.aai.vpn-binding.`" />
+ <parameter name='tmp.aai.connectivityA.' value="`$tmp.aai.connectivity.`" />
+ </set>
+ <set>
+ <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />
+ <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />
+ <!--<parameter name='dst-tpn-id' value='1' />-->
+ <parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />
+ <parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />
+ </set>
+ <set>
+ <parameter name='tmp.src.domainA.pnf-name' value="`'networkId-providerId-' +
$tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +
$tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +
$tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +
$tmp.aai.vpn-bindingA.src-access-node-id`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="pnf"
- key="pnf.pnf-name = $tmp.src.domainA.pnf-name"
- pfx='tmp.aai.source-pnf' local-only='false' >
- <!--AND depth = '0'"-->
- <outcome value='success'>
- <block>
- <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
- <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
- <outcome value='esr-thirdparty-sdnc'>
- <block atomic="true">
- <set>
- <parameter name='tmp.domainA.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND
- depth = '1'"
- pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >
- <outcome value='success'>
- <block>
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.src.domainA.pnf-name"
+ pfx='tmp.aai.source-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
<set>
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value="`$tmp.aai.domainA.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='tmp.domainA.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
</set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value="`$tmp.aai.domainA.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>
+ </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`" />
+ </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`" />
+ </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.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`" />
- </return>
- </outcome>
- </get-resource>
- </block>
- </outcome>
- </switch>
- </for>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <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 OTN tunnel rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ <set>
+ <!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->
+ <parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />
+ <parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />
+ <parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />
+ <parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />
+ <parameter name='index-number' value='0' />
+ <parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />
+ <parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />
+ <parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />
+ <parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />
+ <parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <!--<parameter name="restapiUrl" value="`$prop.restapi.connection-oof-url`" />-->
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.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 ethernet service 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.aai.vpn-bindingA.vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />
+ <parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>
+ <parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />
+ <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.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`" />
- </return>
- </outcome>
- </get-resource>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="patch"/>
- <parameter name="responsePrefix" value="otn-oof"/>
- <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 OTN tunnel rest api" />
- </return>
- </outcome>
- <outcome value='success'>
- <block atomic="true"></block>
- </outcome>
- </execute>
- <set>
- <!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->
- <parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />
- <parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />
- <parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />
- <parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />
- <parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />
- <parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
- <parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />
- <parameter name='index-number' value='0' />
- <parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />
- <parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />
- <parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />
- <parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />
- <parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
- <!--<parameter name="restapiUrl" value="`$prop.restapi.connection-oof-url`" />-->
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.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 ethernet service 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.aai.vpn-bindingA.vpn-id' >
- <parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />
- <parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
- <parameter name='operational-status' value='Activated' />
- </update>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
- key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>
- <parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />
- <parameter name='operational-status' value='Activated' />
- </update>
- </block>
- </outcome>
- </execute>
- </block>
- </outcome>
- <outcome value='Other'>
- <block atomic="true">
- <set>
- <parameter name='tmp.aai.vpn-bindingG.' value="`$tmp.aai.vpn-binding.`" />
- <parameter name='tmp.aai.connectivityG.' value="`$tmp.aai.connectivity.`" />
- </set>
- <set>
- <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />
- <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />
- <!--<parameter name='dst-tpn-id' value='1' />-->
- <parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />
- <parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />
- <parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />
- <parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- <parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />
- <parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />
- <parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />
- <parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />
- </set>
- <set>
- <parameter name='tmp.domainG.pnf-name' value="`'networkId-providerId-' +
+ <set>
+ <parameter name='tmp.aai.vpn-bindingG.' value="`$tmp.aai.vpn-binding.`" />
+ <parameter name='tmp.aai.connectivityG.' value="`$tmp.aai.connectivity.`" />
+ </set>
+ <set>
+ <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />
+ <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />
+ <!--<parameter name='dst-tpn-id' value='1' />-->
+ <parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />
+ <parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />
+ <parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />
+ <parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />
+ <parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />
+ </set>
+ <set>
+ <parameter name='tmp.domainG.pnf-name' value="`'networkId-providerId-' +
$tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +
$tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +
$tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +
$tmp.aai.vpn-bindingG.src-access-node-id`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="pnf"
- key="pnf.pnf-name = $tmp.domainG.pnf-name"
- pfx='tmp.aai.domainG-pnf' local-only='false' >
- <!--AND depth = '0'"-->
- <outcome value='success'>
- <block>
- <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >
- <switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>
- <outcome value='esr-thirdparty-sdnc'>
- <block atomic="true">
- <set>
- <parameter name='tmp.domainG.esr-thirdparty-id' value="`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND
- depth = '1'"
- pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >
- <outcome value='success'>
- <block>
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.domainG.pnf-name"
+ pfx='tmp.aai.domainG-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
<set>
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value="`$tmp.aai.domainG.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='tmp.domainG.esr-thirdparty-id' value="`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
</set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value="`$tmp.aai.domainG.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>
+ </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`" />
+ </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`" />
+ </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.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`" />
- </return>
- </outcome>
- </get-resource>
- </block>
- </outcome>
- </switch>
- </for>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-domainG-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <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 OTN tunnel 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.connection-attachement.access-node-id`" />
- </return>
- </outcome>
+ </switch>
+ </outcome>
+ <outcome value=''>
+ <switch test='`$tmp.aai.vpn-binding.src-access-ltp-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>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-domainG-creation.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="patch"/>
- <parameter name="responsePrefix" value="otn-oof"/>
- <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 OTN tunnel rest api" />
- </return>
- </outcome>
- <outcome value='success'>
- <block atomic="true"></block>
- </outcome>
- </execute>
- </block>
- </outcome>
- </switch>
- </outcome>
- <outcome value=''>
- <switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>
- <outcome value='Other'>
- <block atomic="true">
- <set>
- <parameter name='tmp.aai.vpn-bindingB.' value="`$tmp.aai.vpn-binding.`" />
- <parameter name='tmp.aai.connectivityB.' value="`$tmp.aai.connectivity.`" />
- </set>
- <set>
- <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />
- <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />
- <!--<parameter name='src-tpn-id' value='1' />-->
- <parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />
- <parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- <parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
- <parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />
- <parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />
- <parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />
- </set>
- <set>
- <parameter name='tmp.dst.domainB.pnf-name' value="`'networkId-providerId-' +
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-bindingB.' value="`$tmp.aai.vpn-binding.`" />
+ <parameter name='tmp.aai.connectivityB.' value="`$tmp.aai.connectivity.`" />
+ </set>
+ <set>
+ <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />
+ <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />
+ <!--<parameter name='src-tpn-id' value='1' />-->
+ <parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />
+ <parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />
+ </set>
+ <set>
+ <parameter name='tmp.dst.domainB.pnf-name' value="`'networkId-providerId-' +
$tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +
$tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +
$tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +
$tmp.aai.vpn-bindingB.dst-access-node-id`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="pnf"
- key="pnf.pnf-name = $tmp.dst.domainB.pnf-name"
- pfx='tmp.aai.destination-pnf' local-only='false' >
- <!--AND depth = '0'"-->
- <outcome value='success'>
- <block>
- <for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >
- <switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>
- <outcome value='esr-thirdparty-sdnc'>
- <block atomic="true">
- <set>
- <parameter name='tmp.domainB.esr-thirdparty-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND
- depth = '1'"
- pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >
- <outcome value='success'>
- <block>
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.dst.domainB.pnf-name"
+ pfx='tmp.aai.destination-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
<set>
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value="`$tmp.aai.domainB.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='tmp.domainB.esr-thirdparty-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
</set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value="`$tmp.aai.domainB.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>
+ </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`" />
+ </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`" />
+ </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.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`" />
- </return>
- </outcome>
- </get-resource>
- </block>
- </outcome>
- </switch>
- </for>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-dst-domain-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <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 OTN tunnel rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ <set>
+ <!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->
+ <parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />
+ <parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />
+ <parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />
+ <parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />
+ <parameter name='index-number' value='0' />
+ <parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />
+ <parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />
+ <parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />
+ <parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />
+ <parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <!--<parameter name="restapiUrl" value="`$prop.restapi.connection-oof-url`" />-->
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.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 ethernet service 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.aai.vpn-bindingB.vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />
+ <parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>
+ <parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />
+ <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.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`" />
- </return>
- </outcome>
- </get-resource>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-dst-domain-creation.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="patch"/>
- <parameter name="responsePrefix" value="otn-oof"/>
- <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 OTN tunnel rest api" />
- </return>
- </outcome>
- <outcome value='success'>
- <block atomic="true"></block>
- </outcome>
- </execute>
- <set>
- <!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->
- <parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />
- <parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />
- <parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />
- <parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />
- <parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />
- <parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
- <parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />
- <parameter name='index-number' value='0' />
- <parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />
- <parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />
- <parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />
- <parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />
- <parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
- <!--<parameter name="restapiUrl" value="`$prop.restapi.connection-oof-url`" />-->
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.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'>
+ <outcome value=''>
<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing Create ethernet service rest api" />
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
</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.aai.vpn-bindingB.vpn-id' >
- <parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />
- <parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
- <parameter name='operational-status' value='Activated' />
- </update>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
- key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>
- <parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />
- <parameter name='operational-status' value='Activated' />
- </update>
- </block>
- </outcome>
- </execute>
- </block>
- </outcome>
- <outcome value=''>
- <return status='failure'>
- <parameter name='error-code' value='' />
- <parameter name='error-message' value='' />
- </return>
- </outcome>
- </switch>
+ </switch>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block></block>
</outcome>
</switch>
</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>
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
index b2bf06ce..d61c494b 100644
--- 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
@@ -178,11 +178,12 @@
<parameter name="ctx-destination" value="prop.otn-tunnel-name"/>
</execute>
<set>
- <parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-name`" />
+ <!--<parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-name`" />-->
+ <parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-id`" />
</set>
<set>
- <!--<parameter name='network-route-A' value="`$tmp.aai.logical-link.link-name`" />-->
- <parameter name='network-route-A' value="`$tmp.aai.logical-link.link-id`" />
+ <parameter name='network-route-A' value="`$tmp.aai.logical-link.link-name`" />
+ <!--<parameter name='network-route-A' value="`$tmp.aai.logical-link.link-id`" />-->
</set>
<set>
<parameter name='network-route-B' value="`$tmp.aai.logical-link.link-name2`" />
@@ -366,12 +367,12 @@
<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />
- <parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
<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='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <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`' />-->
@@ -622,12 +623,12 @@
<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />
- <parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
<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='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <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`' />-->
@@ -867,7 +868,6 @@
<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />
<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />
<parameter name='route-distinguisher' value='`$gfp`' />
- <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`' />
@@ -875,6 +875,8 @@
<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />
<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />
<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />
+ <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->
+ <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />
<outcome value='success'>
<block>
<set>
@@ -986,12 +988,13 @@
<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
<!--<parameter name='access-ltp-id' value='``' />-->
<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->
- <parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />
+ <!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
<parameter name='vpn-type' value='dummy' />
- <!--<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='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <!--<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`' />-->
@@ -1096,7 +1099,9 @@
<block atomic="true">
<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >
<block atomic='true'>
- <switch test="`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `">
+ <!--<switch test="`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `">-->
+ <!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->
+ <switch test="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `">
<outcome value='true'>
<block atomic='true'>
<set>
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml
new file mode 100644
index 00000000..1205c97a
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml
@@ -0,0 +1,1416 @@
+<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-modify' mode='sync'>
+ <block atomic="true">
+ <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>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-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">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <!--<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.allotted-resource_length != 0`'>
+ <outcome value='false'></outcome>
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmp.arr' value='' />
+ <parameter name='tmp.arridx' value='0' />
+ <parameter name='tmp.arr_length' value='0' />
+ <parameter name='otn-tunnel-slice' value='' />
+ <parameter name='otn-tunnel-slice_length' value='0' />
+ <parameter name='tmp.slicevpns' value='' />
+ <parameter name='tmp.slicevpns_length' value='0' />
+ <parameter name='tmp.slicevpnuuids' value='' />
+ <parameter name='tmp.slicevpnuuids.' value='' />
+ <parameter name='bwModified' value='false' />
+ </set>
+ <for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >
+ <set>
+ <parameter name='allotted-resource-id' value="`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`" />
+ </set>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="allotted-resource"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-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-->
+ <!-- AND allotted-resource.id = $allotted-resource-id'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.allotted-resource">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="allotted-resource"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type
+ AND 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'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="allotted-resource:relationship-list"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type
+ AND allotted-resource.id = $allotted-resource-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.allotted-resource.relationship-list">
+ <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">
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>
+ <outcome value='false'></outcome>
+ <outcome value='true'>
+ <block atomic="true">
+ <for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>
+ <outcome value='network-policy'>
+ <block atomic="true">
+ <set>
+ <parameter name='network-policy-id' value="`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-policy"
+ key='network-policy.network-policy-id = $network-policy-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-policy">
+ <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='maximum-bandwidth' value="`$tmp.aai.network-policy.max-bandwidth`" />
+ <parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />
+ </set>
+ <set>
+ <parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ <for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>
+ <outcome value='logical-link'>
+ <block atomic="true">
+ <set>
+ <parameter name='logical-link-name' value="`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`" />
+ <parameter name='currLinkIsFound' value="false" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="logical-link"
+ key='logical-link.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 atomic='true'>
+ <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'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.connectivity.' value='' />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivity" >
+ <outcome value='success'>
+ <block atomic="true">
+ <switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='currLinkIsFound' value="true" />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='false'></outcome>
+ </switch>
+ <switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>
+ <outcome value='true'></outcome>
+ <outcome value='false'>
+ <block atomic="true">
+ <set>
+ <parameter name='bwModified' value="true" />
+ </set>
+ <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>
+ <outcome value='vpn-binding'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-binding.' value='' />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-binding" >
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />
+ <parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />
+ <parameter name='route-distinguisher' value='`$gfp`' />
+ <parameter name='operational-status' value='Modified' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>
+ <parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />
+ <parameter name='operational-status' value='Modified' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ </update>
+ </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>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </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>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </get-resource>
+ <switch test='`$currLinkIsFound`'>
+ <outcome value='true'>
+ <block atomic="true"></block>
+ </outcome>
+ <outcome value='false'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.otn-tunnel-name"/>
+ </execute>
+ <set>
+ <!--<parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-name`" />-->
+ <parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-id`" />
+ </set>
+ <set>
+ <parameter name='network-route-A' value="`$tmp.aai.logical-link.link-name`" />
+ <!--<parameter name='network-route-A' value="`$tmp.aai.logical-link.link-id`" />-->
+ </set>
+ <set>
+ <parameter name='network-route-B' value="`$tmp.aai.logical-link.link-name2`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-route"
+ key='network-route.route-id = $network-route-A'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-route-A">
+ <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">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-A.next-hop`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainA-pnfName"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.src.domainA.pnf-name' value="`$param-prefix-domainA-pnfName[0] + '-' +
+ $param-prefix-domainA-pnfName[1] + '-' +
+ $param-prefix-domainA-pnfName[2] + '-' +
+ $param-prefix-domainA-pnfName[3] + '-' +
+ $param-prefix-domainA-pnfName[4] + '-' +
+ $param-prefix-domainA-pnfName[5] + '-' +
+ $param-prefix-domainA-pnfName[6] + '-' +
+ $param-prefix-domainA-pnfName[7] + '-' +
+ $param-prefix-domainA-pnfName[8]`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.src.domainA.pnf-name"
+ pfx='tmp.aai.source-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainA.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value="`$tmp.aai.domainA.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>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='network-resource'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainA.eth-network-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ </block>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </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>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="p-interface"
+ key="pnf.pnf-name = $tmp.src.domainA.pnf-name
+ AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop"
+ local-only="false"
+ pfx="tmp.aai.network-route-A.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.network-route-A.p-interface-src.interface-name`'/>
+ <!--<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="uuid.connectivity-domainA-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>
+ <parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />
+ <parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />
+ <parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />
+ <parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />
+ <parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <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 = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.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/' + $uuid.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="`$uuid.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>
+ <for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>
+ <outcome value='tunnel-termination-point'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.source.ttp-id' value="`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="tunnel-termination-point"
+ key="tunnel-termination-point.ttp-id = $tmp.source.ttp-id
+ AND depth = '0'"
+ pfx='tmp.aai.source-ttp' local-only='false' >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='source.tunnel-tp-id' value="`$tmp.aai.source-ttp.tunnel-tp-id`" />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </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.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>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-route"
+ key='network-route.route-id = $network-route-B'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-route-B">
+ <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">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-B.next-hop`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainB-pnfName"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.dst.domainB.pnf-name' value="`$param-prefix-domainB-pnfName[0] + '-' +
+ $param-prefix-domainB-pnfName[1] + '-' +
+ $param-prefix-domainB-pnfName[2] + '-' +
+ $param-prefix-domainB-pnfName[3] + '-' +
+ $param-prefix-domainB-pnfName[4] + '-' +
+ $param-prefix-domainB-pnfName[5] + '-' +
+ $param-prefix-domainB-pnfName[6] + '-' +
+ $param-prefix-domainB-pnfName[7] + '-' +
+ $param-prefix-domainB-pnfName[8]`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.dst.domainB.pnf-name"
+ pfx='tmp.aai.destination-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainB.esr-thirdparty-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value="`$tmp.aai.domainB.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>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='network-resource'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainB.eth-network-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
+ </set>
+ </block>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </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>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="p-interface"
+ key="pnf.pnf-name = $tmp.dst.domainB.pnf-name
+ AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop"
+ local-only="false"
+ pfx="tmp.aai.network-route-B.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.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.network-route-B.p-interface-dst.interface-name`'/>
+ <!--<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='etht-svc-name' value='`$prop.ethernet-service-name`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />
+ <parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />
+ <parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />
+ <parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ <parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ <parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <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 = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.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>
+ <for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>
+ <outcome value='tunnel-termination-point'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.destination.ttp-id' value="`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="tunnel-termination-point"
+ key="tunnel-termination-point.ttp-id = $tmp.destination.ttp-id
+ AND depth = '0'"
+ pfx='tmp.aai.destination-ttp' local-only='false' >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='destination.tunnel-tp-id' value="`$tmp.aai.destination-ttp.tunnel-tp-id`" />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </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.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>
+ </get-resource>
+ <set>
+ <parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />
+ <parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />
+ <parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />
+ <parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ <parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />
+ <parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />
+ <parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />
+ <parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ <parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ <!--<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>
+ <set>
+ <parameter name='prop.ethsrvType' value='`$network-route-A`' />
+ </set>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' ></call>
+ <for index='otnidx' start='0' end='`$tmp.otninfo_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.vpn-binding-otnidx-uuid"/>
+ </execute>
+ <switch test="`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`">
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />
+ <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />
+ <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />
+ <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <set>
+ <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />
+ <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />
+ <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />
+ <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='tmp.srcdstpnf-name' value="`'networkId-providerId-' +
+ $tmp.access-provider-id + '-clientId-' +
+ $tmp.access-client-id + '-topologyId-' +
+ $tmp.access-topology-id + '-nodeId-' +
+ $tmp.srcdstpnf-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.srcdstpnf-name"
+ pfx='tmp.aai.srcdst-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainG.esr-thirdparty-id' value="`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value="`$tmp.aai.domainG.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>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </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`" />
+ </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`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <switch test='`$otnidx == 0`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >
+ <parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />
+ <parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />
+ <parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <parameter name='access-provider-id' value='`$tmp.access-provider-id`' />
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <parameter name='access-client-id' value='`$tmp.access-client-id`' />
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <parameter name='access-topology-id' value='`$tmp.access-topology-id`' />
+ <!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />
+ <parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />
+ <!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->
+ <parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />
+ <parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />
+ <parameter name='route-distinguisher' value='`$gfp`' />
+ <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`' />
+ <parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />
+ <parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />
+ <parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />
+ <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->
+ <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value="`$prop.vpn-binding-otnidx-uuid`" />
+ <parameter name='tmp.slicevpns_length' value="`$tmp.slicevpns_length + 1`" />
+ <parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value="`$prop.vpn-binding-otnidx-uuid`" />
+ </set>
+ </block>
+ </outcome>
+ </save>
+ <switch test='`$otnidx == 0`'>
+ <outcome value='true'>
+ <block>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ 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/' + $uuid.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="`$uuid.connectivity-domainA-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <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 UNI Coloring for domain A" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block>
+ <set>
+ <parameter name='testingvalue' value='$tmp.otninfo_length -1' />
+ </set>
+ <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
+ <outcome value='true'>
+ <block>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ 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>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <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 UNI coloring for domain B" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="uuid.connectivity-otnidx-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>
+ <parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />
+ <!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <!--<parameter name='access-ltp-id' value='``' />-->
+ <!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='dummy' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <!--<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 = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.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/' + $uuid.connectivity-otnidx-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="`$uuid.connectivity-otnidx-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>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ 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/' + $uuid.connectivity-otnidx-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="`$uuid.connectivity-otnidx-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <set>
+ <parameter name='domain-A.tunnel-tp-id' value='' />
+ <parameter name='domain-A.node-id' value='' />
+ <parameter name='domain-A.network-id' value="" />
+ <parameter name='domain-A.provider-id' value="" />
+ <parameter name='domain-A.client-id' value="" />
+ <parameter name='domain-A.te-topo-id' value="" />
+ <parameter name='domain-A.network-type' value="" />
+ <parameter name='domain-A.ltpId' value="" />
+ <parameter name='tmp.domain-A.network-id' value="" />
+ <parameter name='tmp.domain-A.ttp-id' value="" />
+ <parameter name='network-route-A' value="" />
+ <!--<parameter name='domain-A.' value="" />-->
+ <parameter name='request-id' value='' />
+ <parameter name='otn-source-node' value='' />
+ <parameter name='otn-dest-node' value='' />
+ <parameter name='bw-odu' value="" />
+ <parameter name='src-ttp-id' value='' />
+ <parameter name='dst-ttp-id' value='' />
+ <parameter name='domain-B.tunnel-tp-id' value='' />
+ <parameter name='domain-B.node-id' value='' />
+ <parameter name='domain-B.network-id' value="" />
+ <parameter name='domain-B.provider-id' value="" />
+ <parameter name='domain-B.client-id' value="" />
+ <parameter name='domain-B.te-topo-id' value="" />
+ <parameter name='domain-B.network-type' value="" />
+ <parameter name='domain-B.ltpId' value="" />
+ <parameter name='tmp.domain-B.network-id' value="" />
+ <parameter name='tmp.domain-B.ttp-id' value="" />
+ <parameter name='network-route-B' value="" />
+ <!--<parameter name='domain-B.' value="" />-->
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </get-resource>
+ </for>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-bindings"
+ key="selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings"
+ local-only="false"
+ pfx="tmp.aai.all-vpn-bindings" >
+ <outcome value='success'>
+ <block atomic="true">
+ <for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >
+ <block atomic='true'>
+ <!--<switch test="`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `">-->
+ <!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->
+ <switch test="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `">
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />
+ <parameter name='found' value='false' />
+ </set>
+ <switch test='`$tmp.arr_length != 0`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <for index='arridx' start='0' end='`$tmp.arr_length`' >
+ <switch test='`$tmp.arr[$arridx] == $providerValue`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='found' value='true' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='vpn-type' value='`$arridx`' />
+ </update>
+ <set>
+ <parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />
+ </set>
+ <set>
+ <!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->
+ <!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value="`'0,' + $gfp`" />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
+ <!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->
+ <parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />
+ </set>
+ <break/>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block></block>
+ </outcome>
+ </switch>
+ </for>
+ <switch test='`$found`'>
+ <outcome value='true'>
+ <block></block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='vpn-type' value='`$arridx + 1`' />
+ </update>
+ <set>
+ <parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />
+ <parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value="`'0,' + $gfp`" />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
+ <parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='vpn-type' value='0' />
+ </update>
+ <set>
+ <parameter name='tmp.arr[0]' value='`$providerValue`' />
+ <parameter name='tmp.arr_length' value='1' />
+ <parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value="`'0,' + $gfp`" />
+ <parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
+ <parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
+ <parameter name='otn-tunnel-slice_length' value='1' />
+ <parameter name='otn-tunnel-slice[0].list_length' value='1' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'></outcome>
+ </switch>
+ </block>
+ </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.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>
+ <for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >
+ <block atomic='true'>
+ <for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >
+ <block atomic='true'>
+ <set>
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`" />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />
+ <parameter name="tmp.domainG.restapiUrl" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`" />
+ <parameter name="tmp.domainG.restapiUser" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`" />
+ <parameter name="tmp.domainG.restapiPassword" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`" />
+ </set>
+ </block>
+ </for>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`" />
+ <parameter name="restapiUser" value="`$tmp.domainG.restapiUser`" />
+ <parameter name="restapiPassword" value="`tmp.domainG.restapiPassword`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="post"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <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 slice creation api for domain A" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </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