aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/json/optical-service_optical-service-delete.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/optical-service/src/main/json/optical-service_optical-service-delete.json')
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_optical-service-delete.json1355
1 files changed, 524 insertions, 831 deletions
diff --git a/platform-logic/optical-service/src/main/json/optical-service_optical-service-delete.json b/platform-logic/optical-service/src/main/json/optical-service_optical-service-delete.json
index 8c2cfb86..bdcecb61 100644
--- a/platform-logic/optical-service/src/main/json/optical-service_optical-service-delete.json
+++ b/platform-logic/optical-service/src/main/json/optical-service_optical-service-delete.json
@@ -1,20 +1,20 @@
[
{
- "id": "c17df4ee.ad8458",
+ "id": "e0d62dfb.c4892",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 112.5,
- "y": 195,
- "z": "fd6341d7.d80b3",
+ "x": 171.67613220214844,
+ "y": 182.38332986831665,
+ "z": "23113e64.4c4872",
"wires": [
[
- "2f8ae227.f9075e"
+ "ed0e245d.a59e08"
]
]
},
{
- "id": "2f8ae227.f9075e",
+ "id": "ed0e245d.a59e08",
"type": "service-logic",
"name": "optical-service ${project.version}",
"module": "optical-service",
@@ -22,1511 +22,1204 @@
"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='optical-service' version='${project.version}'>",
"outputs": 1,
- "x": 221,
- "y": 273,
- "z": "fd6341d7.d80b3",
+ "x": 280.17613220214844,
+ "y": 260.38332986831665,
+ "z": "23113e64.4c4872",
"wires": [
[
- "34dadbb5.269934"
+ "5edee11.65d4d2"
]
]
},
{
- "id": "34dadbb5.269934",
+ "id": "5edee11.65d4d2",
"type": "method",
"name": "method",
"xml": "<method rpc='optical-service-delete' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 89.5,
- "y": 364,
- "z": "fd6341d7.d80b3",
+ "x": 148.67613220214844,
+ "y": 351.38332986831665,
+ "z": "23113e64.4c4872",
"wires": [
[
- "e6b811fb.e9938"
+ "30cfbd8.db7ed42"
]
]
},
{
- "id": "e6b811fb.e9938",
+ "id": "30cfbd8.db7ed42",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 275.5,
- "y": 360,
- "z": "fd6341d7.d80b3",
+ "x": 343.00946044921875,
+ "y": 390.7166624069214,
+ "z": "23113e64.4c4872",
"wires": [
[
- "60962f66.88821",
- "616349b4.624558",
- "4ec77896.6688b8",
- "f1e1cc05.18be2",
- "e639fab2.57e918",
- "2b88b50f.6d1f2a"
+ "5a0a00ba.7c221",
+ "21047af0.e45596",
+ "acfa1fdd.4f126",
+ "af71a4c0.67cbc8",
+ "15d56a2d.a7cc46",
+ "5666351c.3fed7c",
+ "1d36fe9a.5fdc81"
]
]
},
{
- "id": "60962f66.88821",
+ "id": "5a0a00ba.7c221",
"type": "execute",
"name": "execute",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n<parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\n<parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 545.9999771118164,
- "y": 32.61667013168335,
- "z": "fd6341d7.d80b3",
+ "x": 605.1761093139648,
+ "y": 20,
+ "z": "23113e64.4c4872",
"wires": [
[]
]
},
{
- "id": "616349b4.624558",
+ "id": "21047af0.e45596",
"type": "get-resource",
"name": "get resources from DB -controller_id",
"xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom REQUEST_DETAILS\nWHERE request_id = $optical-service-delete-input.request-id'\npfx='detail-db'>",
"comments": "",
"outputs": 1,
- "x": 659.4999542236328,
- "y": 126.9999942779541,
- "z": "fd6341d7.d80b3",
+ "x": 718.6760635375977,
+ "y": 112.71665000915527,
+ "z": "23113e64.4c4872",
"wires": [
[
- "b9be5065.25db9"
+ "63804231.b88b9c"
]
]
},
{
- "id": "b9be5065.25db9",
+ "id": "63804231.b88b9c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 887.0000114440918,
- "y": 118.9999942779541,
- "z": "fd6341d7.d80b3",
+ "x": 946.1761436462402,
+ "y": 106.38332414627075,
+ "z": "23113e64.4c4872",
"wires": [
[
- "1b12f198.60face"
+ "e6431c0d.bb995"
]
]
},
{
- "id": "4ec77896.6688b8",
+ "id": "acfa1fdd.4f126",
"type": "set",
"name": "set domain-services",
- "xml": "<set>\n<parameter name='notification-url' value=\"http://167.254.204.152:31817/asyncNotification\" />\n<parameter name='domain-service1' value='`$param-prefix1[0]`' />\n<parameter name='domain-service2' value='`$param-prefix1[1]`' />",
+ "xml": "<set>\n<parameter name='notification-url' value=\"notificationUrl\" />\n<parameter name='access-status' value=\"success\" />\n",
"comments": "",
- "x": 668.4999465942383,
- "y": 236.00000381469727,
- "z": "fd6341d7.d80b3",
+ "x": 731.0093307495117,
+ "y": 228.3833179473877,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "f1e1cc05.18be2",
+ "id": "af71a4c0.67cbc8",
"type": "execute",
"name": "split domain-requests for access services",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$domain-req`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix1\"/>\n",
"comments": "",
"outputs": 1,
- "x": 704.6166534423828,
- "y": 188.61665606498718,
- "z": "fd6341d7.d80b3",
+ "x": 763.7928161621094,
+ "y": 172.66664695739746,
+ "z": "23113e64.4c4872",
"wires": [
[]
]
},
{
- "id": "e639fab2.57e918",
+ "id": "15d56a2d.a7cc46",
"type": "for",
"name": "for",
"xml": "<for index='ppx' start='0' end='`$param-prefix1_length`' >\n \n \n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 527.5,
- "y": 354.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 591.6760711669922,
+ "y": 374.8332996368408,
+ "z": "23113e64.4c4872",
"wires": [
[
- "623884ec.5f3a8c"
+ "85a69e7e.7e74e"
]
]
},
{
- "id": "623884ec.5f3a8c",
+ "id": "85a69e7e.7e74e",
"type": "switchNode",
"name": "switch",
- "xml": "<switch test='`$param-prefix1_length`'>\n",
+ "xml": "<switch test='`$param-prefix1_length == 1`'>\n",
"comments": "",
"outputs": 1,
- "x": 681.5,
- "y": 352.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 740.6761322021484,
+ "y": 339.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "d5d414a3.d47da8",
- "b4f97507.a007b8"
+ "31b9f2de.b5872e",
+ "e0aaa8d0.545478"
]
]
},
{
- "id": "d5d414a3.d47da8",
- "type": "outcome",
- "name": "1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 864.5,
- "y": 346.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "e287faaa.f3da48"
- ]
- ]
- },
- {
- "id": "e287faaa.f3da48",
+ "id": "caa8b5a3.b36418",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1033.5,
- "y": 346.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1092.6761322021484,
+ "y": 333.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "ee746443.f75118",
- "7b7f945a.86e22c",
- "97c1a1ae.42a57",
- "f357d481.8e4f58"
+ "91ecfc44.f143a",
+ "719feef2.99781",
+ "238c69d1.2b6de6",
+ "c2baf636.474808"
]
]
},
{
- "id": "b4f97507.a007b8",
- "type": "outcome",
- "name": "2",
- "xml": "<outcome value='2'>\n",
- "comments": "",
- "outputs": 1,
- "x": 614.5,
- "y": 783.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "f4eb142b.f563f8"
- ]
- ]
- },
- {
- "id": "7b7f945a.86e22c",
+ "id": "719feef2.99781",
"type": "execute",
"name": "split node-id a-end retrieved from DB",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller-id1`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1305.5,
- "y": 351.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1364.6761322021484,
+ "y": 338.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[]
]
},
{
- "id": "ee746443.f75118",
+ "id": "91ecfc44.f143a",
"type": "get-resource",
"name": "get resources from DB -controller_id",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom REQUEST_DETAILS\nWHERE request_id = $domain-service1'\npfx='detail-db1'>",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom REQUEST_DETAILS\nWHERE request_id = $param-prefix1[$ppx]'\npfx='detail-db1'>",
"comments": "",
"outputs": 1,
- "x": 1309.61669921875,
- "y": 311.23333740234375,
- "z": "fd6341d7.d80b3",
+ "x": 1368.7925567626953,
+ "y": 288.6166639328003,
+ "z": "23113e64.4c4872",
"wires": [
[
- "657a4de1.7e7434"
+ "319883a4.a6298c"
]
]
},
{
- "id": "657a4de1.7e7434",
+ "id": "319883a4.a6298c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1554.61669921875,
- "y": 310.23333740234375,
- "z": "fd6341d7.d80b3",
+ "x": 1613.7928314208984,
+ "y": 297.6166672706604,
+ "z": "23113e64.4c4872",
"wires": [
[
- "2456ff5f.8ccfc"
+ "fa33f2b4.9586d"
]
]
},
{
- "id": "2456ff5f.8ccfc",
+ "id": "fa33f2b4.9586d",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='controller-id1' value='`$detail-db1.controller-id`' />\n\n\n\n\n\n\n\n\n\n\n",
"comments": "",
- "x": 1702.61669921875,
- "y": 312.23333740234375,
- "z": "fd6341d7.d80b3",
+ "x": 1761.7928314208984,
+ "y": 299.6166672706604,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "97c1a1ae.42a57",
+ "id": "238c69d1.2b6de6",
"type": "set",
"name": "set domain-services",
- "xml": "<set>\n<parameter name='domain-type' value='`$param-prefix[0]`' />\n<parameter name='controller-ip' value='`$param-prefix[1]`' />\n<parameter name='optical-service-delete-input.request-id' value=\"`$domain-service1`\" />\n<parameter name='optical-service-delete-input.payload.service-name' value=\"`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`\"/>",
+ "xml": "<set>\n<parameter name='domain-type' value='`$param-prefix[0]`' />\n<parameter name='controller-ip' value='`$param-prefix[1]`' />\n<parameter name='optical-service-delete-input.request-id' value=\"`$param-prefix1[$ppx]`\" />\n<parameter name='optical-service-delete-input.payload.service-name' value=\"`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`\"/>\n<parameter name='domain-service1' value=\"`$param-prefix1[$ppx]`\" />\n",
"comments": "",
- "x": 1257.61669921875,
- "y": 423.23333740234375,
- "z": "fd6341d7.d80b3",
+ "x": 1311.7928314208984,
+ "y": 410.6166763305664,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "f357d481.8e4f58",
+ "id": "c2baf636.474808",
"type": "switchNode",
"name": "switch domain-type",
"xml": "<switch test='`$domain-type`'>\n",
"comments": "",
"outputs": 1,
- "x": 1246.5,
- "y": 558.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1252.3428115844727,
+ "y": 543.8333339691162,
+ "z": "23113e64.4c4872",
"wires": [
[
- "fccd0b30.b9cbc8",
- "bef3609.dfed5a"
+ "c3c51e46.241cf",
+ "409a0484.8b3eec"
]
]
},
{
- "id": "fccd0b30.b9cbc8",
+ "id": "c3c51e46.241cf",
"type": "outcome",
"name": "MSA",
"xml": "<outcome value='MSA'>\n",
"comments": "",
"outputs": 1,
- "x": 1449.5,
- "y": 469.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1508.6761322021484,
+ "y": 456.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "a299e8ab.d4c218"
+ "f8fc18f7.4d8af8"
]
]
},
{
- "id": "bef3609.dfed5a",
+ "id": "409a0484.8b3eec",
"type": "outcome",
"name": "TAPI",
"xml": "<outcome value='TAPI'>\n",
"comments": "",
"outputs": 1,
- "x": 1452.5,
- "y": 649.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1511.6761322021484,
+ "y": 636.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "6037d29.154702c"
+ "cae5e210.d6395"
]
]
},
{
- "id": "a299e8ab.d4c218",
+ "id": "f8fc18f7.4d8af8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1589.5,
- "y": 466.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1648.6761322021484,
+ "y": 453.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "11bafb72.872785"
+ "c176f2f2.5fee2"
]
]
},
{
- "id": "11bafb72.872785",
+ "id": "c176f2f2.5fee2",
"type": "call",
"name": "call MSA DELETE DG",
"xml": "<call module='optical-service' rpc='service-delete-msa' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1777.5,
- "y": 467.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1836.6761322021484,
+ "y": 454.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "67a6d9a9.a380e8",
- "b6015380.84934"
+ "e405e5bb.3a20a8",
+ "4df16ad1.b6ecc4"
]
]
},
{
- "id": "67a6d9a9.a380e8",
+ "id": "e405e5bb.3a20a8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1962.5,
- "y": 423.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2021.6761322021484,
+ "y": 410.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "bea424de.48e7e8"
+ "8dfeea48.8664a8"
]
]
},
{
- "id": "b6015380.84934",
+ "id": "4df16ad1.b6ecc4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1964.5,
- "y": 515.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2023.6761322021484,
+ "y": 502.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "68e25a.54defda8"
+ "22cc809f.74d45"
]
]
},
{
- "id": "bea424de.48e7e8",
+ "id": "8dfeea48.8664a8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2133.5,
- "y": 414.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2192.6761322021484,
+ "y": 401.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "92667335.f399b"
+ "e0798c41.0c606"
]
]
},
{
- "id": "92667335.f399b",
+ "id": "e0798c41.0c606",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='service1-status' value='`$final-response-code`' />\n",
"comments": "",
- "x": 2276.5,
- "y": 389.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2335.6761322021484,
+ "y": 376.4999985694885,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "68e25a.54defda8",
+ "id": "22cc809f.74d45",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to call MSA DG' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
"comments": "",
- "x": 2133.5,
- "y": 545.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2192.6761322021484,
+ "y": 532.4999985694885,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "6037d29.154702c",
+ "id": "cae5e210.d6395",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1608.5,
- "y": 651.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1667.6761322021484,
+ "y": 638.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "c1da415.e052fc"
+ "65305f1a.cd63"
]
]
},
{
- "id": "c1da415.e052fc",
+ "id": "65305f1a.cd63",
"type": "call",
"name": "call TAPI DELETE DG",
"xml": "<call module='optical-service' rpc='service-delete-tapi' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1796.5,
- "y": 652.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1855.6761322021484,
+ "y": 639.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "c9ff3987.f9cc28",
- "32a118e.8eb39e8"
+ "10cb997f.2c1b67",
+ "e32d2f8.8429fd"
]
]
},
{
- "id": "c9ff3987.f9cc28",
+ "id": "10cb997f.2c1b67",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1981.5,
- "y": 608.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2040.6761322021484,
+ "y": 595.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "d0a6dc35.167bc"
+ "6c6dbee5.bd866"
]
]
},
{
- "id": "32a118e.8eb39e8",
+ "id": "e32d2f8.8429fd",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1983.5,
- "y": 700.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2042.6761322021484,
+ "y": 687.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "f15af963.5b5418"
+ "22c2bd5a.04a492"
]
]
},
{
- "id": "d0a6dc35.167bc",
+ "id": "6c6dbee5.bd866",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2152.5,
- "y": 599.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2211.6761322021484,
+ "y": 586.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "905a5288.1d934",
- "757c5587.8c047c"
+ "e23cf700.e51748",
+ "94cb4145.57c88"
]
]
},
{
- "id": "905a5288.1d934",
+ "id": "e23cf700.e51748",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='service1-status' value='`$final-response-code`' />\n",
"comments": "",
- "x": 2295.5,
- "y": 574.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2354.6761322021484,
+ "y": 561.4999985694885,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "f15af963.5b5418",
+ "id": "22c2bd5a.04a492",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to call MSA DG' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
"comments": "",
- "x": 2152.5,
- "y": 730.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2211.6761322021484,
+ "y": 717.4999985694885,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "e770f30c.f95fb",
+ "id": "ffbaf9e.fb0fb08",
"type": "call",
"name": "call TAPI DELETE DG",
"xml": "<call module='optical-service' rpc='service-delete-tapi' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1298.5,
- "y": 956.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "279a4131.3c50fe",
- "12daba39.e98ea6"
- ]
- ]
- },
- {
- "id": "66eb021.82f40fc",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='optical-service-delete-input.request-id' value=\"`$domain-service1`\" />\n<parameter name='optical-service-delete-input.payload.service-name' value=\"`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`\"/>\n<parameter name='domain-type' value='`$domain1[0]`' />\n<parameter name='controller-ip' value='`$domain1[1]`' />\n",
- "comments": "",
- "x": 1279.61669921875,
- "y": 880.2334289550781,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "f4eb142b.f563f8",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$ppx`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 754.6167602539062,
- "y": 788.2333679199219,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "e9f6b436.fcdbc8",
- "5bc45c8e.581fe4"
- ]
- ]
- },
- {
- "id": "e9f6b436.fcdbc8",
- "type": "outcome",
- "name": "0",
- "xml": "<outcome value='0'>\n",
- "comments": "",
- "outputs": 1,
- "x": 934.6167602539062,
- "y": 788.2333679199219,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "969523a9.6bb09"
- ]
- ]
- },
- {
- "id": "5bc45c8e.581fe4",
- "type": "outcome",
- "name": "1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 882.6167602539062,
- "y": 1162.2333679199219,
- "z": "fd6341d7.d80b3",
+ "x": 1357.6761322021484,
+ "y": 943.4999985694885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "293ec8e4.019748"
+ "d2fc4e32.19347"
]
]
},
{
- "id": "8c2a8c7c.a451",
+ "id": "fca311a3.3788e",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='optical-service-delete-input.request-id' value=\"`$domain-service2`\" />\n<parameter name='optical-service-delete-input.payload.service-name' value=\"`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`\"/>\n<parameter name='domain-type' value='`$domain2[0]`' />\n<parameter name='controller-ip' value='`$domain2[1]`' />\n\n\n",
+ "xml": "<set>\n<parameter name='optical-service-delete-input.request-id' value=\"`$param-prefix1[$ppx]`\" />\n<parameter name='optical-service-delete-input.payload.service-name' value=\"`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`\"/>\n\n",
"comments": "",
- "x": 1277.61669921875,
- "y": 1235.2333679199219,
- "z": "fd6341d7.d80b3",
+ "x": 1338.7928314208984,
+ "y": 867.6167588233948,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "ce3eac33.d1ef7",
- "type": "call",
- "name": "call TAPI DELETE DG",
- "xml": "<call module='optical-service' rpc='service-delete-tapi' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1284.61669921875,
- "y": 1308.2333679199219,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "c8833e1f.21b83",
- "d3120001.a70e1"
- ]
- ]
- },
- {
- "id": "969523a9.6bb09",
+ "id": "64b9ab4c.add954",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1074.61669921875,
- "y": 789.2333679199219,
- "z": "fd6341d7.d80b3",
+ "x": 1133.7928314208984,
+ "y": 776.6166977882385,
+ "z": "23113e64.4c4872",
"wires": [
[
- "66eb021.82f40fc",
- "e770f30c.f95fb",
- "54b2f238.cd48bc",
- "71435f69.1d588"
+ "fca311a3.3788e",
+ "ffbaf9e.fb0fb08",
+ "7dcb69ce.f66178",
+ "ac94d58e.2025e8"
]
]
},
{
- "id": "293ec8e4.019748",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1008.6167602539062,
- "y": 1171.2333679199219,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "8c2a8c7c.a451",
- "ce3eac33.d1ef7",
- "a41e1354.f17a4",
- "402c6221.29fbfc"
- ]
- ]
- },
- {
- "id": "279a4131.3c50fe",
+ "id": "d2fc4e32.19347",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1559.5,
- "y": 909.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "41399ce9.b1c0e4"
- ]
- ]
- },
- {
- "id": "12daba39.e98ea6",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1543.5,
- "y": 1038.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1557.009506225586,
+ "y": 939.8333444595337,
+ "z": "23113e64.4c4872",
"wires": [
[
- "1b2c47f4.41a498"
+ "b1d14962.f347a8"
]
]
},
{
- "id": "41399ce9.b1c0e4",
+ "id": "b1d14962.f347a8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1715.5,
- "y": 916.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1733.0094604492188,
+ "y": 940.1666679382324,
+ "z": "23113e64.4c4872",
"wires": [
[
- "c73df929.f6ae38",
- "91dcae30.1f35"
+ "37bfc4a8.eaaf0c",
+ "3ecbb172.0c334e"
]
]
},
{
- "id": "c73df929.f6ae38",
+ "id": "37bfc4a8.eaaf0c",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='service1-status' value='`$final-response-code`' />\n",
+ "xml": "<set>\n<parameter name='service-status' value='`$final-response-code`' />\n",
"comments": "",
- "x": 1882.4998779296875,
- "y": 829.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1861.6761283874512,
+ "y": 873.1666774749756,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "91dcae30.1f35",
+ "id": "3ecbb172.0c334e",
"type": "switchNode",
"name": "switch",
- "xml": "<switch test='`$service1-status == 200`'>\n",
+ "xml": "<switch test='`$service-status == 200`'>\n",
"comments": "",
"outputs": 1,
- "x": 1871.4998779296875,
- "y": 946.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1860.6760368347168,
+ "y": 1001.8333568572998,
+ "z": "23113e64.4c4872",
"wires": [
[
- "a76b03e3.6d946",
- "35234e07.f4ce22"
+ "421f5497.942c9c",
+ "686fcc2a.0dbf94"
]
]
},
{
- "id": "a76b03e3.6d946",
+ "id": "421f5497.942c9c",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2013.4998779296875,
- "y": 876.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2021.0092849731445,
+ "y": 913.499981880188,
+ "z": "23113e64.4c4872",
"wires": [
- [
- "3e585958.e262c6"
- ]
+ []
]
},
{
- "id": "35234e07.f4ce22",
+ "id": "686fcc2a.0dbf94",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2014.5,
- "y": 994.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2013.676040649414,
+ "y": 1063.1666793823242,
+ "z": "23113e64.4c4872",
"wires": [
[
- "dcda07af.655078"
+ "f3e4a24a.52e36"
]
]
},
{
- "id": "3e585958.e262c6",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='service1' value='success' />\n",
- "comments": "",
- "x": 2168.5,
- "y": 882.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "dcda07af.655078",
+ "id": "f3e4a24a.52e36",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='service1' value='failure' />\n",
+ "xml": "<set>\n<parameter name='access-status' value='failure' />\n",
"comments": "",
- "x": 2181.5,
- "y": 992.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2197.3425827026367,
+ "y": 1064.4999742507935,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "1b2c47f4.41a498",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Main Delete Dg not available' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
- "comments": "",
- "x": 1715.5,
- "y": 1039.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "c8833e1f.21b83",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "94cb4145.57c88",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-delete-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$service1-status`\"/>\n\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1526.5,
- "y": 1232.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 2349.5262298583984,
+ "y": 636.349974155426,
+ "z": "23113e64.4c4872",
"wires": [
- [
- "48e846a7.aa0238"
- ]
+ []
]
},
{
- "id": "d3120001.a70e1",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "5666351c.3fed7c",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$ppx == 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 1533.5,
- "y": 1371.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 408.20947647094727,
+ "y": 1499.1498394012451,
+ "z": "23113e64.4c4872",
"wires": [
[
- "6f442ba4.a9bd94"
+ "178292af.b017ad",
+ "791b18b2.1028c8"
]
]
},
{
- "id": "48e846a7.aa0238",
+ "id": "3314378c.27c9e8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1681.5,
- "y": 1240.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 783.0761566162109,
+ "y": 1405.8999619483948,
+ "z": "23113e64.4c4872",
"wires": [
[
- "e50cb4fe.0872a8",
- "d3d1dcfc.971ef"
+ "155d72bc.d68edd"
]
]
},
{
- "id": "e50cb4fe.0872a8",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='service2-status' value='`$final-response-code`' />\n",
- "comments": "",
- "x": 1877.5,
- "y": 1155.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "d3d1dcfc.971ef",
+ "id": "155d72bc.d68edd",
"type": "switchNode",
"name": "switch",
- "xml": "<switch test='`$service2-status == 200`'>\n",
+ "xml": "<switch test='`$service1-status`'>\n",
"comments": "",
"outputs": 1,
- "x": 1858.5,
- "y": 1280.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 925.4261322021484,
+ "y": 1411.0999131202698,
+ "z": "23113e64.4c4872",
"wires": [
[
- "c12b59f0.2b2a08",
- "1e2be21a.84b09e"
+ "d2a2c499.44f5d8",
+ "7b86389e.6c7b68"
]
]
},
{
- "id": "c12b59f0.2b2a08",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "b3c2e52b.63a388",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2020.5,
- "y": 1205.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1260.4261322021484,
+ "y": 1353.2999863624573,
+ "z": "23113e64.4c4872",
"wires": [
[
- "8a03b0aa.7cc6"
+ "79f9a1bf.52d0f",
+ "e7d0e65b.efbea8"
]
]
},
{
- "id": "1e2be21a.84b09e",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "id": "79f9a1bf.52d0f",
+ "type": "delete",
+ "name": "delete",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource=\"SQL\"\n key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $access-id\"> ",
"comments": "",
"outputs": 1,
- "x": 2026.5,
- "y": 1327.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1426.092716217041,
+ "y": 1348.6333484649658,
+ "z": "23113e64.4c4872",
"wires": [
- [
- "374b4547.8f703a"
- ]
+ []
]
},
{
- "id": "8a03b0aa.7cc6",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='service2' value='success' />\n",
- "comments": "",
- "x": 2175.5,
- "y": 1208.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "374b4547.8f703a",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='service2' value='failure' />\n",
- "comments": "",
- "x": 2188.5,
- "y": 1330.1166687011719,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "6f442ba4.a9bd94",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Main Delete Dg not available' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
+ "id": "e7d0e65b.efbea8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"Service Deleted Successfully\" />\n<parameter name='ack-final-indicator' value='Y' />",
"comments": "",
- "x": 1734.5,
- "y": 1371.1166687011719,
- "z": "fd6341d7.d80b3",
+ "x": 1466.4261322021484,
+ "y": 1534.3001084327698,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "757c5587.8c047c",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-delete-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$service1-status`\"/>\n\n\n\n\n\n",
+ "id": "d2a2c499.44f5d8",
+ "type": "outcome",
+ "name": "200",
+ "xml": "<outcome value='200'>\n",
"comments": "",
"outputs": 1,
- "x": 2290.35009765625,
- "y": 648.9666442871094,
- "z": "fd6341d7.d80b3",
+ "x": 1098.8760833740234,
+ "y": 1360.7499375343323,
+ "z": "23113e64.4c4872",
"wires": [
- []
+ [
+ "b3c2e52b.63a388"
+ ]
]
},
{
- "id": "2b88b50f.6d1f2a",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$ppx`'>\n",
+ "id": "7b86389e.6c7b68",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 345.70001220703125,
- "y": 1511.7665710449219,
- "z": "fd6341d7.d80b3",
+ "x": 1075.8760833740234,
+ "y": 1512.7499375343323,
+ "z": "23113e64.4c4872",
"wires": [
[
- "67345bfe.f921b4",
- "e5284e9a.754bb"
+ "c68df7b5.0b81e8"
]
]
},
{
- "id": "67345bfe.f921b4",
- "type": "outcome",
- "name": "0",
- "xml": "<outcome value='0'>\n",
+ "id": "e0ffad7.48b955",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Access service request entry cannot be deleted' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
+ "comments": "",
+ "x": 1254.1761322021484,
+ "y": 1524.8998398780823,
+ "z": "23113e64.4c4872",
+ "wires": []
+ },
+ {
+ "id": "7dcb69ce.f66178",
+ "type": "get-resource",
+ "name": "get resources from DB -controller_id",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom REQUEST_DETAILS\nWHERE request_id = $param-prefix1[$ppx]'\npfx='detail-db11'>",
"comments": "",
"outputs": 1,
- "x": 581.9000549316406,
- "y": 1414.5166320800781,
- "z": "fd6341d7.d80b3",
+ "x": 1420.342758178711,
+ "y": 733.166624546051,
+ "z": "23113e64.4c4872",
"wires": [
[
- "ae809859.8b1778"
+ "1aabb5e8.22157a"
]
]
},
{
- "id": "e5284e9a.754bb",
- "type": "outcome",
- "name": "1",
- "xml": "<outcome value='1'>\n",
+ "id": "1aabb5e8.22157a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 572.9000549316406,
- "y": 1587.5165710449219,
- "z": "fd6341d7.d80b3",
+ "x": 1666.342758178711,
+ "y": 737.166624546051,
+ "z": "23113e64.4c4872",
"wires": [
[
- "7df23ffd.b4b17"
+ "70d90830.02f658"
]
]
},
{
- "id": "ae809859.8b1778",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "id": "70d90830.02f658",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='controller-id11' value='`$detail-db11.controller-id`' />\n\n\n\n\n\n\n\n\n\n\n",
+ "comments": "",
+ "x": 1834.342758178711,
+ "y": 739.166624546051,
+ "z": "23113e64.4c4872",
+ "wires": []
+ },
+ {
+ "id": "ac94d58e.2025e8",
+ "type": "execute",
+ "name": "split node-id a-end retrieved from DB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller-id11`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"domain1\"/>\n",
"comments": "",
"outputs": 1,
- "x": 723.9000244140625,
- "y": 1418.5166320800781,
- "z": "fd6341d7.d80b3",
+ "x": 1441.342758178711,
+ "y": 809.166624546051,
+ "z": "23113e64.4c4872",
"wires": [
- [
- "c1901914.b04438"
- ]
+ []
]
},
{
- "id": "c1901914.b04438",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$service1-status`'>\n",
+ "id": "8fd18db8.4cb08",
+ "type": "update",
+ "name": "update",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='logical-link'\nkey = 'pnf.pnf-name = $a-end-pnf-name\n AND p-interface.interface-name = $optical-service-create-input.payload.service-aend.port-id'\n local-only='false'>\n<parameter name='available-capacity' value='`$available-bandwidth-aend`' />\n\n\n\n<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link'\nkey='logical-link.link-name = $tmp.link-id' >\n <parameter name='link-name' value='`$tmp.link-id`' />\n <parameter name='link-type' value='`$link.link-type`' />\n <parameter name='in-maint' value='true' />\n <parameter name='speed-value' value='100' />\n <parameter name='speed-units' value='Gbps' />\n <parameter name='operational-status' value='`$link.administrative-state`' />\n <parameter name='available-capacity' value='100' />\n\n\n\n\n\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 866.25,
- "y": 1423.7165832519531,
- "z": "fd6341d7.d80b3",
+ "x": 1461.3428039550781,
+ "y": 1438.1666703224182,
+ "z": "23113e64.4c4872",
"wires": [
- [
- "d5045cc6.1de7a",
- "2beb7d55.e9c492"
- ]
+ []
]
},
{
- "id": "3b5e2ea9.61d282",
+ "id": "c68df7b5.0b81e8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1201.25,
- "y": 1365.9166564941406,
- "z": "fd6341d7.d80b3",
+ "x": 1173.009506225586,
+ "y": 1465.8331894874573,
+ "z": "23113e64.4c4872",
"wires": [
[
- "e398c832.c96cf8",
- "5465b919.f201f8"
+ "e0ffad7.48b955"
]
]
},
{
- "id": "e398c832.c96cf8",
- "type": "delete",
- "name": "delete",
- "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource=\"SQL\"\n key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $access-id\"> ",
- "comments": "",
- "outputs": 1,
- "x": 1365.25,
- "y": 1362.9167785644531,
- "z": "fd6341d7.d80b3",
- "wires": [
- []
- ]
- },
- {
- "id": "5465b919.f201f8",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"Service Deleted Successfully\" />\n<parameter name='ack-final-indicator' value='Y' />",
+ "id": "e6431c0d.bb995",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='domain-req' value='`$detail-db.domain-requests`' />\n<parameter name='delete-acc-svc-id' value='`$detail-db.service-instance-id`' />\n<parameter name='access-id' value='`$optical-service-delete-input.request-id`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
"comments": "",
- "x": 1407.25,
- "y": 1546.9167785644531,
- "z": "fd6341d7.d80b3",
+ "x": 1109.1761474609375,
+ "y": 119.88333177566528,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "d5045cc6.1de7a",
- "type": "outcome",
- "name": "200",
- "xml": "<outcome value='200'>\n",
+ "id": "31b9f2de.b5872e",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1039.699951171875,
- "y": 1373.3666076660156,
- "z": "fd6341d7.d80b3",
+ "x": 906.6761627197266,
+ "y": 324.85795402526855,
+ "z": "23113e64.4c4872",
"wires": [
[
- "3b5e2ea9.61d282"
+ "caa8b5a3.b36418"
]
]
},
{
- "id": "2beb7d55.e9c492",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
+ "id": "e0aaa8d0.545478",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1016.699951171875,
- "y": 1525.3666076660156,
- "z": "fd6341d7.d80b3",
+ "x": 853.3427200317383,
+ "y": 773.1913871765137,
+ "z": "23113e64.4c4872",
"wires": [
[
- "887f6ab3.6fe378"
+ "64b9ab4c.add954"
]
]
},
{
- "id": "efea6422.1a8b28",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$service1-status == $service2-status == 200`'>\n",
+ "id": "178292af.b017ad",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 841.25,
- "y": 1594.7165222167969,
- "z": "fd6341d7.d80b3",
+ "x": 515.0094858805338,
+ "y": 1440.6155522664385,
+ "z": "23113e64.4c4872",
"wires": [
[
- "cad7c61d.e2a2d8",
- "4a80a00e.4cc7a"
+ "3314378c.27c9e8"
]
]
},
{
- "id": "cad7c61d.e2a2d8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "791b18b2.1028c8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 999.25,
- "y": 1603.7165222167969,
- "z": "fd6341d7.d80b3",
+ "x": 521.6761341094971,
+ "y": 1642.2822799682617,
+ "z": "23113e64.4c4872",
"wires": [
[
- "bb726b3c.e444e8"
+ "ccbb9a05.8b09d8"
]
]
},
{
- "id": "bb726b3c.e444e8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "id": "ccbb9a05.8b09d8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$access-status == success`'>\n",
"comments": "",
"outputs": 1,
- "x": 1139.25,
- "y": 1610.7165222167969,
- "z": "fd6341d7.d80b3",
+ "x": 741.6760864257812,
+ "y": 1670.7669677734375,
+ "z": "23113e64.4c4872",
"wires": [
[
- "f739490d.428058",
- "b63b3bcb.e95608",
- "fe0c4836.3d8508",
- "58672708.482528",
- "64dca83a.79a788",
- "d26a3044.53ce7"
+ "2c873361.6b8cec",
+ "29ad4b93.f97874"
]
]
},
{
- "id": "f739490d.428058",
- "type": "delete",
- "name": "delete",
- "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource=\"SQL\"\n key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $access-id\"> ",
+ "id": "2c873361.6b8cec",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1303.25,
- "y": 1610.7165222167969,
- "z": "fd6341d7.d80b3",
+ "x": 898.3426628112793,
+ "y": 1609.4031372070312,
+ "z": "23113e64.4c4872",
"wires": [
- []
+ [
+ "abeb4b39.e29ad8"
+ ]
]
},
{
- "id": "4a80a00e.4cc7a",
+ "id": "29ad4b93.f97874",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 949.7500152587891,
- "y": 1965.7165794372559,
- "z": "fd6341d7.d80b3",
+ "x": 898.3426780700684,
+ "y": 1771.069803237915,
+ "z": "23113e64.4c4872",
"wires": [
[
- "fa9da88e.4da0d8"
+ "b59bb9d9.ea7ce8"
]
]
},
{
- "id": "fa9da88e.4da0d8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "id": "6ec4d0d8.6e90a",
+ "type": "delete",
+ "name": "delete",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource=\"SQL\"\n key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $access-id\"> ",
"comments": "",
"outputs": 1,
- "x": 1098.750015258789,
- "y": 1963.7165794372559,
- "z": "fd6341d7.d80b3",
+ "x": 1174.5549240112305,
+ "y": 1607.4334983825684,
+ "z": "23113e64.4c4872",
"wires": [
- [
- "a9697233.3edb9"
- ]
+ []
]
},
{
- "id": "a9697233.3edb9",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Access service request entry cannot be deleted' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
- "comments": "",
- "x": 1276.2500228881836,
- "y": 1964.2165832519531,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "b63b3bcb.e95608",
+ "id": "61f3204d.d33e2",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"Service Deleted Successfully\" />\n<parameter name='ack-final-indicator' value='Y' />",
"comments": "",
- "x": 1271.2500228881836,
- "y": 1889.2165803909302,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "35501454.cf543c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Access service request entry cannot be deleted' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
- "comments": "",
- "x": 1195,
- "y": 1537.5165100097656,
- "z": "fd6341d7.d80b3",
+ "x": 1704.2214965820312,
+ "y": 1844.2668190002441,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "7df23ffd.b4b17",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 719.9000244140625,
- "y": 1588.5165710449219,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "efea6422.1a8b28"
- ]
- ]
- },
- {
- "id": "54b2f238.cd48bc",
+ "id": "a47c2756.f32468",
"type": "get-resource",
- "name": "get resources from DB -controller_id",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom REQUEST_DETAILS\nWHERE request_id = $domain-service1'\npfx='detail-db11'>",
- "comments": "",
- "outputs": 1,
- "x": 1361.1666259765625,
- "y": 745.7832946777344,
- "z": "fd6341d7.d80b3",
- "wires": [
- [
- "ba13f726.ec48a8"
- ]
- ]
- },
- {
- "id": "ba13f726.ec48a8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "name": "Get service from AAI",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\n key='customer.global-customer-id = $output.global-customer-id AND\n service-subscription.service-type = $output.service-type AND\n service-instance.service-instance-id = $delete-acc-svc-id' \npfx='acc-serv-dl' local-only='false'>\n\n",
"comments": "",
"outputs": 1,
- "x": 1607.1666259765625,
- "y": 749.7832946777344,
- "z": "fd6341d7.d80b3",
+ "x": 1212.971118927002,
+ "y": 1682.550464630127,
+ "z": "23113e64.4c4872",
"wires": [
- [
- "7f178723.eed2f8"
- ]
+ []
]
},
{
- "id": "7f178723.eed2f8",
+ "id": "9f2294b5.bcbfe8",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='controller-id11' value='`$detail-db11.controller-id`' />\n\n\n\n\n\n\n\n\n\n\n",
+ "xml": "<set>\n<parameter name='link-name' value='`$acc-serv-dl.relationship-list.relationship[$idl].relationship-data[0].relationship-value`' />\n",
"comments": "",
- "x": 1775.1666259765625,
- "y": 751.7832946777344,
- "z": "fd6341d7.d80b3",
+ "x": 1665.4713287353516,
+ "y": 1665.0501899719238,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "71435f69.1d588",
- "type": "execute",
- "name": "split node-id a-end retrieved from DB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller-id11`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"domain1\"/>\n",
+ "id": "a80e8726.f84408",
+ "type": "update",
+ "name": "update logical-link-status AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='logical-link'\n key='logical-link.link-name = $link-name '\n local-only='false'>\n<parameter name='operational-status' value='up' />\n\n\n\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n",
"comments": "",
"outputs": 1,
- "x": 1382.1666259765625,
- "y": 821.7832946777344,
- "z": "fd6341d7.d80b3",
+ "x": 1768.8047256469727,
+ "y": 1759.2170295715332,
+ "z": "23113e64.4c4872",
"wires": [
[]
]
},
{
- "id": "a41e1354.f17a4",
- "type": "get-resource",
- "name": "get resources from DB -controller_id",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom REQUEST_DETAILS\nWHERE request_id = $domain-service2'\npfx='detail-db22'>",
+ "id": "abeb4b39.e29ad8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1308.1666259765625,
- "y": 1121.7834167480469,
- "z": "fd6341d7.d80b3",
+ "x": 1022.8881912231445,
+ "y": 1610.7668838500977,
+ "z": "23113e64.4c4872",
"wires": [
[
- "20c8cbec.0b11d4"
+ "6ec4d0d8.6e90a",
+ "a47c2756.f32468",
+ "98787f37.a2ed6"
]
]
},
{
- "id": "20c8cbec.0b11d4",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "98787f37.a2ed6",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idl' start='0' end='`$acc-serv-dl.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1553.1666259765625,
- "y": 1125.7834167480469,
- "z": "fd6341d7.d80b3",
+ "x": 1112.8882637023926,
+ "y": 1737.4336795806885,
+ "z": "23113e64.4c4872",
"wires": [
[
- "70d195e8.9d4ccc"
+ "e4e22bae.fd2a68"
]
]
},
{
- "id": "70d195e8.9d4ccc",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='controller-id22' value='`$detail-db22.controller-id`' />\n\n\n\n\n\n\n\n\n\n\n",
- "comments": "",
- "x": 1702.1666259765625,
- "y": 1129.7834167480469,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "402c6221.29fbfc",
- "type": "execute",
- "name": "split node-id a-end retrieved from DB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller-id22`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"domain2\"/>\n",
+ "id": "e4e22bae.fd2a68",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test=\"`$acc-serv-dl.relationship-list.relationship[$idl].related-to == 'logical-link'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1311.1666259765625,
- "y": 1183.7834167480469,
- "z": "fd6341d7.d80b3",
+ "x": 1256.221492767334,
+ "y": 1730.6154251098633,
+ "z": "23113e64.4c4872",
"wires": [
- []
+ [
+ "55e7e053.a52d9"
+ ]
]
},
{
- "id": "912f5144.144e7",
- "type": "update",
- "name": "update",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='logical-link'\nkey = 'pnf.pnf-name = $a-end-pnf-name\n AND p-interface.interface-name = $optical-service-create-input.payload.service-aend.port-id'\n local-only='false'>\n<parameter name='available-capacity' value='`$available-bandwidth-aend`' />\n\n\n\n<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link'\nkey='logical-link.link-name = $tmp.link-id' >\n <parameter name='link-name' value='`$tmp.link-id`' />\n <parameter name='link-type' value='`$link.link-type`' />\n <parameter name='in-maint' value='true' />\n <parameter name='speed-value' value='100' />\n <parameter name='speed-units' value='Gbps' />\n <parameter name='operational-status' value='`$link.administrative-state`' />\n <parameter name='available-capacity' value='100' />\n\n\n\n\n\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n",
+ "id": "55e7e053.a52d9",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1402.1666717529297,
- "y": 1450.7833404541016,
- "z": "fd6341d7.d80b3",
+ "x": 1396.2214965820312,
+ "y": 1738.94873046875,
+ "z": "23113e64.4c4872",
"wires": [
- []
+ [
+ "cac797c.4727a68"
+ ]
]
},
{
- "id": "887f6ab3.6fe378",
+ "id": "cac797c.4727a68",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1113.8333740234375,
- "y": 1478.4498596191406,
- "z": "fd6341d7.d80b3",
+ "x": 1531.2214965820312,
+ "y": 1740.6153564453125,
+ "z": "23113e64.4c4872",
"wires": [
[
- "35501454.cf543c"
+ "9f2294b5.bcbfe8",
+ "a80e8726.f84408",
+ "61f3204d.d33e2"
]
]
},
{
- "id": "fe0c4836.3d8508",
- "type": "get-resource",
- "name": "Get service from AAI",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\n key='customer.global-customer-id = $output.global-customer-id AND\n service-subscription.service-type = $output.service-type AND\n service-instance.service-instance-id = $delete-acc-svc-id' \npfx='acc-serv-dl' local-only='false'>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1350.0000190734863,
- "y": 1747.5000267028809,
- "z": "fd6341d7.d80b3",
- "wires": [
- []
- ]
- },
- {
- "id": "b127a64f.fc83e8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1074.9999999999995,
- "y": 1872.4999999999993,
- "z": "fd6341d7.d80b3",
- "wires": [
- []
- ]
- },
- {
- "id": "d26a3044.53ce7",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='link-name' value='`$acc-serv-dl.relationship-list.relationship[0].relationship-data[0].relationship-value`' />\n",
+ "id": "b59bb9d9.ea7ce8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Access service request entry cannot be deleted' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
"comments": "",
- "x": 1297.5000190734863,
- "y": 1805.0000267028809,
- "z": "fd6341d7.d80b3",
+ "x": 1071.2214965820312,
+ "y": 1808.7972412109375,
+ "z": "23113e64.4c4872",
"wires": []
},
{
- "id": "58672708.482528",
- "type": "update",
- "name": "update logical-link-status AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='logical-link'\n key='logical-link.link-name = $link-name '\n local-only='false'>\n<parameter name='operational-status' value='available' />\n\n\n\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n",
+ "id": "1d36fe9a.5fdc81",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/new.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$domain-req`\"/>\n<parameter name=\"field2\" value=\"`$domain-service1`\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 1337.5,
- "y": 1852.5,
- "z": "fd6341d7.d80b3",
+ "x": 705.1609497070312,
+ "y": 265.00946044921875,
+ "z": "23113e64.4c4872",
"wires": [
[]
]
},
{
- "id": "1b12f198.60face",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='domain-req' value='`$detail-db.domain-requests`' />\n<parameter name='delete-acc-svc-id' value='`$detail-db.service-instance-id`' />\n\n\n\n\n\n\n\n\n\n\n\n",
- "comments": "",
- "x": 1050.000015258789,
- "y": 132.50000190734863,
- "z": "fd6341d7.d80b3",
- "wires": []
- },
- {
- "id": "64dca83a.79a788",
+ "id": "55028f82.4ab0c",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/optical-service-create.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`'domain rquest_' + $domain-requests`\"/>\n<parameter name=\"field2\" value=\"`'Access rquest_' + $as-request-id`\"/>\n\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/new.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Domain Details\"/>\n<parameter name=\"field2\" value=\"`$controller-ip`\"/>\n<parameter name=\"field3\" value=\"`$optical-service-delete-input.request-id`\"/>\n<parameter name=\"field4\" value=\"`$optical-service-delete-input.payload.service-name`\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 1525.0000228881836,
- "y": 1630.0000247955322,
- "z": "fd6341d7.d80b3",
+ "x": 1251.070011138916,
+ "y": 486.6761064529419,
+ "z": "23113e64.4c4872",
"wires": [
[]
]