diff options
author | 2020-10-30 03:29:17 +0000 | |
---|---|---|
committer | 2020-11-02 22:50:53 +0000 | |
commit | c84a5266fc2ab31cb2bb68927457f6cdbb40c0b3 (patch) | |
tree | 264834fc8f25c8b7720f7332ad39e411af6dfb30 /platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json | |
parent | a02477992c001d38cf09aaf5f458acb3325ba6d7 (diff) |
Completing the logic and the call flow for Transport Slicing operations:
- Allocate a Transport Slice
- Activate a Transport Slice
- DeActivate a Transport Slice
- Delete a Transport Slice
Bug Fixing and cleaning up the DGs.
Issue-ID: SDNC-1202
Issue-ID: SDNC-1404
Change-Id: Ib2eae06c543ae8277ee2014fda87ca2ca3a516af
Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com>
Former-commit-id: 37a6361877cd1b9cae35e94f4a0be3a19bd4d088
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json | 1334 |
1 files changed, 486 insertions, 848 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json index fa7b88c4..3584527b 100644 --- a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json @@ -1,20 +1,20 @@ [
{
- "id": "303f7566.d219ba",
+ "id": "fed3eb51.781ac8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 110,
- "y": 318,
- "z": "15891279.d6b57e",
+ "x": 131,
+ "y": 81,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "f39490a3.b09b28"
+ "d2a4ea36.881b68"
]
]
},
{
- "id": "f39490a3.b09b28",
+ "id": "d2a4ea36.881b68",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1339 +22,977 @@ "comments": "",
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs": 1,
- "x": 394.2856903076172,
- "y": 379.23810863494873,
- "z": "15891279.d6b57e",
+ "x": 262.2856903076172,
+ "y": 130.23810863494873,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "72c32dea.176324"
+ "7b1236d6.83c2c"
]
]
},
{
- "id": "72c32dea.176324",
+ "id": "7b1236d6.83c2c",
"type": "method",
"name": "method tsli-vnf-topology-operation-trans-slice-deactivate",
"xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 400.42860412597656,
- "y": 464.0000305175781,
- "z": "15891279.d6b57e",
+ "x": 265.4286193847656,
+ "y": 215.00003242492676,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "d12dc6f7.97bdd"
+ "8228a949.234f38"
]
]
},
{
- "id": "d12dc6f7.97bdd",
+ "id": "8228a949.234f38",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 596.2380447387695,
- "y": 622.6666681496426,
- "z": "15891279.d6b57e",
+ "x": 415.238037109375,
+ "y": 344.6666564941406,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "6aad2197.a72ef",
- "1be9220f.ba6ca6",
- "7fd5d3ea.13b334",
- "5cda8af7.9a0634",
- "225a4cf6.f0c67c",
- "a4c45de.b22e5a",
- "d2fb34de.34839",
- "2fc6eaae.5fdc7e"
+ "341b32a3.25428e",
+ "1a6e5da0.98eb02",
+ "e5c8285b.2b695"
]
]
},
{
- "id": "6aad2197.a72ef",
- "type": "set",
- "name": "set vnf-level-oper-status to PendingDelete",
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",
- "comments": "",
- "x": 1004.3849029541016,
- "y": 771.670627951622,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "1be9220f.ba6ca6",
+ "id": "341b32a3.25428e",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
"comments": "",
- "x": 916.5716552734375,
- "y": 1843.5970458984375,
- "z": "15891279.d6b57e",
+ "x": 689.5716552734375,
+ "y": 611.59716796875,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "7fd5d3ea.13b334",
- "type": "set",
- "name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
+ "id": "f743b3f1.72f9f",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
"comments": "",
- "x": 981.5716247558594,
- "y": 727.5968955755234,
- "z": "15891279.d6b57e",
+ "x": 721,
+ "y": 286,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "5cda8af7.9a0634",
- "type": "switchNode",
- "name": "switch service-data.vnfs.vnf_length",
- "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "id": "1a6e5da0.98eb02",
+ "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": 1026.0000610351562,
- "y": 512.000005456619,
- "z": "15891279.d6b57e",
+ "x": 741,
+ "y": 382,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "183040b7.7ccbff",
- "71cafe22.189b2",
- "b0ad485b.8627c"
+ "2976ce78.f07a42",
+ "de3912b8.6d67e",
+ "77b5fc18.2082a4"
]
]
},
{
- "id": "b0ad485b.8627c",
- "type": "outcome",
- "name": "0",
- "xml": "<outcome value='0'>\n",
+ "id": "2976ce78.f07a42",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1284.9689559936523,
- "y": 473.96876499336213,
- "z": "15891279.d6b57e",
+ "x": 960,
+ "y": 320,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "f9a51cd3.102398"
+ "7ee13e19.7c1348"
]
]
},
{
- "id": "f9a51cd3.102398",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
- "comments": "",
- "x": 1439.7778434753418,
- "y": 492.88903352897614,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "183040b7.7ccbff",
- "type": "other",
- "name": "Null",
- "xml": "<outcome value=''>\n",
+ "id": "de3912b8.6d67e",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1278.0000953674316,
- "y": 513.0000865189359,
- "z": "15891279.d6b57e",
+ "x": 969.490966796875,
+ "y": 362.57403564453125,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "f9a51cd3.102398"
+ "4a305009.90c32"
]
]
},
{
- "id": "71cafe22.189b2",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
+ "id": "77b5fc18.2082a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1271.000503540039,
- "y": 546.0000903336331,
- "z": "15891279.d6b57e",
+ "x": 958,
+ "y": 409,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "f6c4231c.6894e8"
+ "cd4775e4.2da96"
]
]
},
{
- "id": "f6c4231c.6894e8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1418.2700462341309,
- "y": 546.554735395126,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "541e7856.d1e2",
- "8337a3da.3c8e38"
- ]
- ]
+ "id": "4a305009.90c32",
+ "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": 365.8597717285156,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
},
{
- "id": "541e7856.d1e2",
- "type": "for",
- "name": "for vidx..service-data.vnfs.vnf_length[]",
- "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "id": "cd4775e4.2da96",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "outputs": 1,
- "x": 1664.2861633300781,
- "y": 553.4286558357999,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "ebbd7e9e.ba96c8"
- ]
- ]
+ "x": 1127,
+ "y": 410,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
},
{
- "id": "ebbd7e9e.ba96c8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "id": "7ee13e19.7c1348",
+ "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": 1883.6357955932617,
- "y": 552.9687359062955,
- "z": "15891279.d6b57e",
+ "x": 1157,
+ "y": 316,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "436917e7.e9b6a"
+ "bc03982b.15ba78"
]
]
},
{
- "id": "436917e7.e9b6a",
+ "id": "bc03982b.15ba78",
"type": "switchNode",
- "name": "switch vnfid found",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 2037.7153930664062,
- "y": 552.6788179604337,
- "z": "15891279.d6b57e",
+ "x": 1380.33349609375,
+ "y": 315.99993896484375,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "27314ab3.a1187e"
+ "aca4b74a.cb3118"
]
]
},
{
- "id": "27314ab3.a1187e",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "aca4b74a.cb3118",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
"comments": "",
"outputs": 1,
- "x": 2213.6675148010254,
- "y": 552.5715000359342,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "cf77593a.1343d8"
- ]
- ]
- },
- {
- "id": "cf77593a.1343d8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 2362.312973022461,
- "y": 540.97913000267,
- "z": "15891279.d6b57e",
+ "x": 1581.0001335144043,
+ "y": 317.00002098083496,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "f0ff74da.16b248"
+ "2544f612.eeddca"
]
]
},
{
- "id": "f0ff74da.16b248",
- "type": "set",
- "name": "set tmp.vidx and ctx.vnf-data",
- "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
- "comments": "",
- "x": 2624.1997680664062,
- "y": 518.3215563027188,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "8337a3da.3c8e38",
- "type": "switchNode",
- "name": "switch tmp.vidx ",
- "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
+ "id": "e5c8285b.2b695",
+ "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": 1607.0000228881836,
- "y": 607.99999353569,
- "z": "15891279.d6b57e",
+ "x": 707,
+ "y": 330,
+ "z": "fdc94a5e.7c86f8",
"wires": [
- [
- "1cd8ba9c.bf5235"
- ]
+ []
]
},
{
- "id": "1cd8ba9c.bf5235",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>\n",
+ "id": "2544f612.eeddca",
+ "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": 1762.4286499023438,
- "y": 607.5713770119473,
- "z": "15891279.d6b57e",
+ "x": 1819,
+ "y": 319,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "6dd6d49d.d00eec"
+ "75c7fde8.1d4a84",
+ "563ee44e.bd096c",
+ "bc425b5.1b1fba8"
]
]
},
{
- "id": "6dd6d49d.d00eec",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
- "comments": "",
- "x": 1907.8573913574219,
- "y": 607.7143146721646,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "225a4cf6.f0c67c",
- "type": "switchNode",
- "name": "switch vnf-level-oper-status",
- "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
+ "id": "75c7fde8.1d4a84",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 975.0000762939453,
- "y": 620.8890204429626,
- "z": "15891279.d6b57e",
+ "x": 2027,
+ "y": 283,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "e0bfe23d.068ad8",
- "3e0c4d79.12e802"
+ "e6a3b8f2.9e7b38"
]
]
},
{
- "id": "e0bfe23d.068ad8",
- "type": "outcome",
- "name": "outcome Active",
- "xml": "<outcome value='Active'>\n",
+ "id": "563ee44e.bd096c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1220.8333702087402,
- "y": 622.0001182556152,
- "z": "15891279.d6b57e",
+ "x": 2027.490966796875,
+ "y": 328.57403564453125,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "40413c0b.9420dc"
+ "ad15182e.154a8"
]
]
},
{
- "id": "40413c0b.9420dc",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1434.139762878418,
- "y": 631.3253078460693,
- "z": "15891279.d6b57e",
- "wires": [
- []
- ]
- },
- {
- "id": "3e0c4d79.12e802",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
+ "id": "bc425b5.1b1fba8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1198.8333892822266,
- "y": 672.000129699707,
- "z": "15891279.d6b57e",
+ "x": 2025,
+ "y": 372,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "fc734294.cf7788"
+ "8719a717.3cd9f8"
]
]
},
{
- "id": "fc734294.cf7788",
+ "id": "ad15182e.154a8",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
+ "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": 1358.3331565856934,
- "y": 675.0001287460327,
- "z": "15891279.d6b57e",
+ "x": 2190.0623779296875,
+ "y": 328.8597717285156,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "a4c45de.b22e5a",
- "type": "set",
- "name": "copy input data to service data",
- "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",
+ "id": "8719a717.3cd9f8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 984.0065612792969,
- "y": 680.010435461998,
- "z": "15891279.d6b57e",
+ "x": 2194,
+ "y": 373,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "d2fb34de.34839",
+ "id": "c776a79f.7f2db",
"type": "save",
- "name": "update AnAI - vnf-instance.orchestration-status",
- "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
+ "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": 1026.0064239501953,
- "y": 826.0105141401291,
- "z": "15891279.d6b57e",
+ "x": 2500,
+ "y": 372,
+ "z": "fdc94a5e.7c86f8",
"wires": [
- []
+ [
+ "b403a898.9fbc18",
+ "5d1a47a8.0dfe7",
+ "f3733135.d8a078"
+ ]
]
},
{
- "id": "5dd794c8.fb268c",
- "type": "comment",
- "name": "new for TransportSlicing",
- "info": "",
- "comments": "",
- "x": 967,
- "y": 898,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "2fc6eaae.5fdc7e",
- "type": "save",
- "name": "get service-instance from aai",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id\n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">",
- "comments": "",
+ "id": "c765be65.0f488",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 978,
- "y": 948,
- "z": "15891279.d6b57e",
+ "x": 2884,
+ "y": 372,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "aebcc6b7.4bd97",
- "534659e3.16c99",
- "4b75ad0e.b2264c"
+ "e9922fb9.764098",
+ "eef29d57.4c4228",
+ "952ea8f1.7bda",
+ "14a01812.a7d138"
]
]
},
{
- "id": "aebcc6b7.4bd97",
+ "id": "b403a898.9fbc18",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1194,
- "y": 913,
- "z": "15891279.d6b57e",
+ "x": 2711,
+ "y": 374,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "dfa58322.db6e7"
+ "c765be65.0f488"
]
]
},
{
- "id": "534659e3.16c99",
+ "id": "5d1a47a8.0dfe7",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1203.490966796875,
- "y": 955.5740356445312,
- "z": "15891279.d6b57e",
+ "x": 2711.490966796875,
+ "y": 419.57403564453125,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "7aae8b9.3267cf4"
+ "1295f1fa.69cac6"
]
]
},
{
- "id": "4b75ad0e.b2264c",
+ "id": "f3733135.d8a078",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1192,
- "y": 1002,
- "z": "15891279.d6b57e",
+ "x": 2709,
+ "y": 463,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "47847ce9.cdac14"
+ "6ac7a77b.f5232"
]
]
},
{
- "id": "7aae8b9.3267cf4",
+ "id": "6ac7a77b.f5232",
"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",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1357.0623779296875,
- "y": 958.8597717285156,
- "z": "15891279.d6b57e",
+ "x": 2876,
+ "y": 462,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "47847ce9.cdac14",
+ "id": "1295f1fa.69cac6",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "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": 1361,
- "y": 1003,
- "z": "15891279.d6b57e",
+ "x": 2874.0623779296875,
+ "y": 419.8597717285156,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "dfa58322.db6e7",
+ "id": "e6a3b8f2.9e7b38",
"type": "for",
"name": "for each relationship",
- "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
+ "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
"comments": "",
"outputs": 1,
- "x": 1391,
- "y": 909,
- "z": "15891279.d6b57e",
+ "x": 2228,
+ "y": 278,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "1fcd5169.0fe3ef"
+ "d8c7aa6c.9474d"
]
]
},
{
- "id": "1fcd5169.0fe3ef",
+ "id": "d8c7aa6c.9474d",
"type": "switchNode",
"name": "switch related-to",
- "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1614.33349609375,
- "y": 908.9999389648438,
- "z": "15891279.d6b57e",
+ "x": 2433,
+ "y": 278,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "b3fa3516.3c5f7"
+ "6afd9b1f.24ad3c"
]
]
},
{
- "id": "b3fa3516.3c5f7",
+ "id": "6afd9b1f.24ad3c",
"type": "outcome",
- "name": "connectivity",
- "xml": "<outcome value='connectivity'>\n",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
"comments": "",
"outputs": 1,
- "x": 1810,
- "y": 911,
- "z": "15891279.d6b57e",
+ "x": 2599,
+ "y": 278,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "8171ffc1.700ce8"
+ "489d615f.74d2b8"
]
]
},
{
- "id": "8171ffc1.700ce8",
- "type": "switchNode",
- "name": "switch $rel-index == 0",
- "xml": "<switch test=\"`$rel-index == 0`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1997.9998664855957,
- "y": 908.999979019165,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "4491f21f.012e44",
- "66fe8847.e5db68"
- ]
- ]
- },
- {
- "id": "4491f21f.012e44",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
+ "id": "489d615f.74d2b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 2220.9998664855957,
- "y": 798.999979019165,
- "z": "15891279.d6b57e",
+ "x": 2762,
+ "y": 278,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "50b3c107.0ef428"
+ "c776a79f.7f2db"
]
]
},
{
- "id": "66fe8847.e5db68",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "id": "e9922fb9.764098",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-binding.src-access-node-id`\" />\n",
"comments": "",
- "outputs": 1,
- "x": 2191.999755859375,
- "y": 1225,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "49f4be1a.dd4768"
- ]
- ]
+ "x": 3099,
+ "y": 82,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
},
{
- "id": "50b3c107.0ef428",
- "type": "save",
- "name": "get connectivityA from aai",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityA\" >\n",
+ "id": "eef29d57.4c4228",
+ "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.domain.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 2414.9998664855957,
- "y": 798.999979019165,
- "z": "15891279.d6b57e",
+ "x": 3125,
+ "y": 199,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "c5f57c4d.37656",
- "f8bc0153.3111b",
- "fd26821d.45f278"
+ "e1caf9b0.f16ef",
+ "8ba822ff.3c855",
+ "3e54396e.89bb66"
]
]
},
{
- "id": "c5f57c4d.37656",
+ "id": "e1caf9b0.f16ef",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2620.9998664855957,
- "y": 758.999979019165,
- "z": "15891279.d6b57e",
+ "x": 3320.5001220703125,
+ "y": 151,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "944973cd.969b48"
+ "12b4a6a1.bdd529"
]
]
},
{
- "id": "f8bc0153.3111b",
+ "id": "8ba822ff.3c855",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2621.4908332824707,
- "y": 804.5740146636963,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "4c56e2b6.ecbe4c"
- ]
- ]
- },
- {
- "id": "fd26821d.45f278",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2618.9998664855957,
- "y": 847.999979019165,
- "z": "15891279.d6b57e",
+ "x": 3312.5001220703125,
+ "y": 206,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "5f2713ec.fce9b4"
+ "6aa3fcb.c3a6c84"
]
]
},
{
- "id": "49f4be1a.dd4768",
- "type": "save",
- "name": "get connectivityB from aai",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[1].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityB\" >\n",
+ "id": "12b4a6a1.bdd529",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2387.999755859375,
- "y": 1225,
- "z": "15891279.d6b57e",
+ "x": 3464.8824462890625,
+ "y": 150.65567016601562,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "99901664.bef67",
- "fa356ad9.66e31",
- "3216507d.6f0df8"
+ "8559d2a.befa2b"
]
]
},
{
- "id": "99901664.bef67",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "8559d2a.befa2b",
+ "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": 2607.999755859375,
- "y": 1196,
- "z": "15891279.d6b57e",
+ "x": 3649,
+ "y": 149,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "b3f3fc8e.164aa8"
+ "a2c1ad39.50b17"
]
]
},
{
- "id": "fa356ad9.66e31",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
+ "id": "a2c1ad39.50b17",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 2609.49072265625,
- "y": 1241.5740356445312,
- "z": "15891279.d6b57e",
+ "x": 3844,
+ "y": 149,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "9c397b15.bf0e5"
+ "f7ee255a.8640e"
]
]
},
{
- "id": "3216507d.6f0df8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "3e54396e.89bb66",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 2605.999755859375,
- "y": 1287,
- "z": "15891279.d6b57e",
+ "x": 3317.5001220703125,
+ "y": 263,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "1f619a9f.fc34dd"
+ "ff13ab9d.2deb7"
]
]
},
{
- "id": "944973cd.969b48",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 2793.6663703918457,
- "y": 757.999979019165,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "905f3b23.ac61b8",
- "6125d5eb.a534c4",
- "b1bd9fc5.bac3a"
- ]
- ]
- },
- {
- "id": "4c56e2b6.ecbe4c",
+ "id": "ff13ab9d.2deb7",
"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",
+ "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": 2784.062244415283,
- "y": 804.8597507476807,
- "z": "15891279.d6b57e",
+ "x": 3469.5001220703125,
+ "y": 264,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "5f2713ec.fce9b4",
+ "id": "6aa3fcb.c3a6c84",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
- "comments": "",
- "x": 2787.9998664855957,
- "y": 848.999979019165,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "6125d5eb.a534c4",
- "type": "set",
- "name": "set sotn_value for ETH deletion",
- "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",
+ "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": 3081.4996452331543,
- "y": 849.000020980835,
- "z": "15891279.d6b57e",
+ "x": 3480.5001220703125,
+ "y": 207,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "b1bd9fc5.bac3a",
+ "id": "d85cad49.e7fe3",
"type": "execute",
- "name": "execute RestApiCallNode Delete ethernet Service without token",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "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.domain.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 3179.499755859375,
- "y": 894,
- "z": "15891279.d6b57e",
+ "x": 4432,
+ "y": 166,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "43014871.10916",
- "ef466a56.4961d8"
+ "5b32aba.7fc39d4",
+ "43d71291.c727fc",
+ "6b05861c.156668"
]
]
},
{
- "id": "43014871.10916",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3524.999755859375,
- "y": 875,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "b872830e.e33218"
- ]
- ]
- },
- {
- "id": "ef466a56.4961d8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
+ "id": "98badb93.a08c9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 3528.999755859375,
- "y": 915,
- "z": "15891279.d6b57e",
+ "x": 4226,
+ "y": 153,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "ecca88b1.05406"
+ "48966cee.55dba4",
+ "d85cad49.e7fe3",
+ "ee878ee.4f8847"
]
]
},
{
- "id": "53822d52.50003c",
- "type": "comment",
- "name": "TODO: FIXME:",
- "info": "put proper values based on connectivity resource retrieved from AAI",
+ "id": "48966cee.55dba4",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domain id",
+ "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 3022.999755859375,
- "y": 802,
- "z": "15891279.d6b57e",
+ "x": 4462,
+ "y": 114,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "905f3b23.ac61b8",
- "type": "get-resource",
- "name": "get-resource esr-thirdparty-sdnc",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3074.999755859375,
- "y": 728,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "7583aec3.33d84",
- "34076538.0ecf52",
- "5f6cfa0b.4be42c"
- ]
- ]
- },
- {
- "id": "7583aec3.33d84",
+ "id": "5b32aba.7fc39d4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3320.999755859375,
- "y": 688,
- "z": "15891279.d6b57e",
+ "x": 4642,
+ "y": 157,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "af220c19.d532d8"
+ "20fc8e76.a69222"
]
]
},
{
- "id": "34076538.0ecf52",
+ "id": "43d71291.c727fc",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3324.999755859375,
- "y": 728,
- "z": "15891279.d6b57e",
+ "x": 4634,
+ "y": 212,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "c8a27e43.a20b28"
+ "51e97aab.2d7044"
]
]
},
{
- "id": "5f6cfa0b.4be42c",
+ "id": "6b05861c.156668",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3316.999755859375,
- "y": 768,
- "z": "15891279.d6b57e",
+ "x": 4639,
+ "y": 269,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "d282616c.39fe68"
+ "ef0b1a78.fffea8"
]
]
},
{
- "id": "d282616c.39fe68",
+ "id": "ef0b1a78.fffea8",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "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": 3474.999755859375,
- "y": 768,
- "z": "15891279.d6b57e",
+ "x": 4791,
+ "y": 270,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "c8a27e43.a20b28",
+ "id": "51e97aab.2d7044",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "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": 3474.999755859375,
- "y": 728,
- "z": "15891279.d6b57e",
+ "x": 4802,
+ "y": 215,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "af220c19.d532d8",
- "type": "set",
- "name": "set controller data",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
- "comments": "",
- "x": 3490.999755859375,
- "y": 688,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "c61ae526.8c7cb8",
- "type": "comment",
- "name": "Get controller info and send request",
- "info": "",
- "comments": "",
- "x": 3082.999755859375,
- "y": 688,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "24a118da.312548",
- "type": "comment",
- "name": "TODO: FIXME:",
- "info": "How to know which domain's (A or B) controller is bein retrieved?",
- "comments": "",
- "x": 3014.999755859375,
- "y": 648,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "b3f3fc8e.164aa8",
+ "id": "20fc8e76.a69222",
"type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
"outputs": 1,
- "x": 2780.666259765625,
- "y": 1197,
- "z": "15891279.d6b57e",
+ "x": 4786.38232421875,
+ "y": 154.65567016601562,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "c56d5bdd.22466",
- "ba468b68.004d98",
- "8df38d4b.ee6e2"
+ "a8dfc05f.e2f018"
]
]
},
{
- "id": "9c397b15.bf0e5",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
+ "id": "f7ee255a.8640e",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
- "x": 2771.0621337890625,
- "y": 1243.8597717285156,
- "z": "15891279.d6b57e",
- "wires": []
+ "outputs": 1,
+ "x": 4047,
+ "y": 153,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "98badb93.a08c9"
+ ]
+ ]
},
{
- "id": "1f619a9f.fc34dd",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "id": "a8dfc05f.e2f018",
+ "type": "set",
+ "name": "set controller domain data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.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": 2774.999755859375,
- "y": 1288,
- "z": "15891279.d6b57e",
+ "x": 5001,
+ "y": 151,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "ba468b68.004d98",
- "type": "set",
- "name": "set sotn_value for ETH deletion",
- "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",
+ "id": "ee878ee.4f8847",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
"comments": "",
- "x": 3068.9995346069336,
- "y": 1274.00004196167,
- "z": "15891279.d6b57e",
+ "x": 4382,
+ "y": 230,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "8df38d4b.ee6e2",
+ "id": "952ea8f1.7bda",
"type": "execute",
"name": "execute RestApiCallNode Delete ethernet Service without token",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/eth-svc-instances=' + $tmp.aai.connectivity.connectivity-id`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",
"comments": "",
"outputs": 1,
- "x": 3173.9996452331543,
- "y": 1321.000020980835,
- "z": "15891279.d6b57e",
+ "x": 3255,
+ "y": 594,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "846e91eb.5fd658",
- "9847a507.3f69e"
+ "d9dc02b.5b9308",
+ "f01b6c55.209f38"
]
]
},
{
- "id": "846e91eb.5fd658",
+ "id": "d9dc02b.5b9308",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3519.4996452331543,
- "y": 1302.000020980835,
- "z": "15891279.d6b57e",
+ "x": 3601.5,
+ "y": 587,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "dcec496b.f92f38"
+ "174c3f65.a9f0e1"
]
]
},
{
- "id": "9847a507.3f69e",
+ "id": "f01b6c55.209f38",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3523.4996452331543,
- "y": 1342.000020980835,
- "z": "15891279.d6b57e",
+ "x": 3605.5,
+ "y": 627,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "43eceb78.82b2dc"
+ "de16161.028de68"
]
]
},
{
- "id": "de77a242.224c1",
- "type": "comment",
- "name": "TODO: FIXME:",
- "info": "put proper values based on connectivity resource retrieved from AAI",
- "comments": "",
- "x": 3017.4996452331543,
- "y": 1229.000020980835,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "c56d5bdd.22466",
- "type": "get-resource",
- "name": "get-resource esr-thirdparty-sdnc",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "id": "de16161.028de68",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3069.4996452331543,
- "y": 1155.000020980835,
- "z": "15891279.d6b57e",
+ "x": 3763,
+ "y": 627,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "c6d3e171.5193a",
- "9098a017.2895f8",
- "8e10fa0e.d0c448"
+ "1a3ebd6b.2a7953",
+ "30c3e280.4d41f6"
]
]
},
{
- "id": "c6d3e171.5193a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "174c3f65.a9f0e1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
"comments": "",
- "outputs": 1,
- "x": 3315.4996452331543,
- "y": 1115.000020980835,
- "z": "15891279.d6b57e",
- "wires": [
- [
- "ec0b6188.dc04e"
- ]
- ]
+ "x": 3759.5,
+ "y": 587,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
},
{
- "id": "9098a017.2895f8",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
+ "id": "1a3ebd6b.2a7953",
+ "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-id`' />\n\n<parameter name='operational-status' value='Deactivated' />\n",
"comments": "",
"outputs": 1,
- "x": 3319.4996452331543,
- "y": 1155.000020980835,
- "z": "15891279.d6b57e",
+ "x": 4091.5,
+ "y": 627,
+ "z": "fdc94a5e.7c86f8",
"wires": [
- [
- "8b3e7b4d.6376a"
- ]
+ []
]
},
{
- "id": "8e10fa0e.d0c448",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
+ "id": "30c3e280.4d41f6",
+ "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='Deactivated' />\n",
"comments": "",
"outputs": 1,
- "x": 3311.4996452331543,
- "y": 1195.000020980835,
- "z": "15891279.d6b57e",
+ "x": 4018.5,
+ "y": 673,
+ "z": "fdc94a5e.7c86f8",
"wires": [
- [
- "124616cb.e9eee9"
- ]
+ []
]
},
{
- "id": "124616cb.e9eee9",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 3469.4996452331543,
- "y": 1195.000020980835,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "8b3e7b4d.6376a",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 3469.4996452331543,
- "y": 1155.000020980835,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "ec0b6188.dc04e",
- "type": "set",
- "name": "set controller data",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
- "comments": "",
- "x": 3485.4996452331543,
- "y": 1115.000020980835,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "98e2fbb6.34e38",
- "type": "comment",
- "name": "Get controller info and send request",
- "info": "",
- "comments": "",
- "x": 3077.4996452331543,
- "y": 1115.000020980835,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "758d1f74.6d4218",
- "type": "comment",
- "name": "TODO: FIXME:",
- "info": "How to know which domain's (A or B) controller is bein retrieved?",
- "comments": "",
- "x": 3011.9996452331543,
- "y": 1075.000020980835,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "dcec496b.f92f38",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
- "comments": "",
- "x": 3677.4996452331543,
- "y": 1302.000020980835,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "43eceb78.82b2dc",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "14a01812.a7d138",
+ "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/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-id`\" />\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=\"delete\"/>\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": 3680.9996452331543,
- "y": 1342.000020980835,
- "z": "15891279.d6b57e",
+ "x": 3228,
+ "y": 466,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "a040c34e.71e608",
- "29ceb3fa.1e4b14"
+ "8e721e50.020db",
+ "8f6c71d1.f7e258"
]
]
},
{
- "id": "1acc213f.73169f",
- "type": "comment",
- "name": "TODO: FIXME",
- "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
- "comments": "",
- "x": 3878.9996452331543,
- "y": 1299.000020980835,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "a040c34e.71e608",
- "type": "save",
- "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n\n<parameter name='operational-status' value='DeActivated' />\n",
- "comments": "",
- "outputs": 1,
- "x": 4020.9996452331543,
- "y": 1341.000020980835,
- "z": "15891279.d6b57e",
- "wires": [
- []
- ]
- },
- {
- "id": "29ceb3fa.1e4b14",
- "type": "save",
- "name": "update connectivity resource in AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\n<parameter name='operational-status' value='DeActivated' />\n",
+ "id": "8e721e50.020db",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3949.9996452331543,
- "y": 1390.000020980835,
- "z": "15891279.d6b57e",
+ "x": 3560.5,
+ "y": 436,
+ "z": "fdc94a5e.7c86f8",
"wires": [
- []
+ [
+ "b94a74e8.509ec"
+ ]
]
},
{
- "id": "ecca88b1.05406",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "8f6c71d1.f7e258",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3686.499755859375,
- "y": 915,
- "z": "15891279.d6b57e",
+ "x": 3565.5,
+ "y": 501,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[
- "f3cb9aac.524828",
- "4b8d9e90.2bfc"
+ "e36acb2.364b538"
]
]
},
{
- "id": "b872830e.e33218",
+ "id": "b94a74e8.509ec",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
"comments": "",
- "x": 3682.999755859375,
- "y": 875,
- "z": "15891279.d6b57e",
+ "x": 3736.5,
+ "y": 436,
+ "z": "fdc94a5e.7c86f8",
"wires": []
},
{
- "id": "270674fa.6cafe4",
- "type": "comment",
- "name": "TODO: FIXME",
- "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
- "comments": "",
- "x": 3878.999755859375,
- "y": 874,
- "z": "15891279.d6b57e",
- "wires": []
- },
- {
- "id": "f3cb9aac.524828",
- "type": "save",
- "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n\n<parameter name='operational-status' value='DeActivated' />\n",
- "comments": "",
- "outputs": 1,
- "x": 4014.999755859375,
- "y": 915,
- "z": "15891279.d6b57e",
- "wires": [
- []
- ]
- },
- {
- "id": "4b8d9e90.2bfc",
- "type": "save",
- "name": "update connectivity resource in AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\n<parameter name='operational-status' value='DeActivated' />\n",
+ "id": "e36acb2.364b538",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3941.999755859375,
- "y": 961,
- "z": "15891279.d6b57e",
+ "x": 3732,
+ "y": 501,
+ "z": "fdc94a5e.7c86f8",
"wires": [
[]
]
|