aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/json/optical-service_service-delete-msa.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/optical-service/src/main/json/optical-service_service-delete-msa.json')
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_service-delete-msa.json266
1 files changed, 111 insertions, 155 deletions
diff --git a/platform-logic/optical-service/src/main/json/optical-service_service-delete-msa.json b/platform-logic/optical-service/src/main/json/optical-service_service-delete-msa.json
index df94ddfb..039d9ee2 100644
--- a/platform-logic/optical-service/src/main/json/optical-service_service-delete-msa.json
+++ b/platform-logic/optical-service/src/main/json/optical-service_service-delete-msa.json
@@ -1,20 +1,20 @@
[
{
- "id": "53abb973.be3358",
+ "id": "cbaea85f.b8ead",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 320.566650390625,
- "y": 127.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 236.56666564941406,
+ "y": 102,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "a8f6adda.0744"
+ "cd2455f6.6e932"
]
]
},
{
- "id": "a8f6adda.0744",
+ "id": "cd2455f6.6e932",
"type": "service-logic",
"name": "optical-service ${project.version}",
"module": "optical-service",
@@ -22,344 +22,300 @@
"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": 333.566650390625,
- "y": 187.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 249.56666564941406,
+ "y": 162,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "18e37cee.ceb953"
+ "70c8e970.4db21"
]
]
},
{
- "id": "18e37cee.ceb953",
+ "id": "70c8e970.4db21",
"type": "method",
"name": "method service-delete-msa-sync",
"xml": "<method rpc='service-delete-msa' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 353.566650390625,
- "y": 267.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 269.56666564941406,
+ "y": 242,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "64d96c24.58677c"
+ "9c1f56f6.d00f38"
]
]
},
{
- "id": "64d96c24.58677c",
+ "id": "9c1f56f6.d00f38",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 601.066650390625,
- "y": 267.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 517.0666656494141,
+ "y": 242,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "d0c8eab9.2acb7",
- "7e4b0c6a.d80e4c"
+ "4dd86cf3.942054"
]
]
},
{
- "id": "d0c8eab9.2acb7",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='optical-service-create-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-MSA'`\"/>\n",
- "comments": "",
- "x": 783.566650390625,
- "y": 242.56666564941406,
- "z": "8588d9b2.517e38",
- "wires": []
- },
- {
- "id": "7e4b0c6a.d80e4c",
+ "id": "4dd86cf3.942054",
"type": "execute",
"name": "Call MSA Controller",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/optical-service-delete-msa.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$controller-ip + '/cxf/openroadm/openroadm-services/' + $optical-service-delete-input.payload.service-name`\"/>\n<parameter name='restapiUser' value='admin' />\n<parameter name='restapiPassword' value='admin' />\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"service-delete-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.msa.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\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 781.566650390625,
- "y": 344.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 697.5666656494141,
+ "y": 319,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "e8374b35.9489e8",
- "59601e7a.333fb8"
+ "682d86b8.05526",
+ "39c8d3c3.b62bfc"
]
]
},
{
- "id": "59601e7a.333fb8",
+ "id": "39c8d3c3.b62bfc",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 960.566650390625,
- "y": 415.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 876.5666656494141,
+ "y": 390,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "f7639000.8d09b"
+ "95d20785.38f27"
]
]
},
{
- "id": "e8374b35.9489e8",
+ "id": "682d86b8.05526",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 957.566650390625,
- "y": 301.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 873.5666656494141,
+ "y": 276,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "44136677.41a668"
+ "19ac1c74.d7d004"
]
]
},
{
- "id": "44136677.41a668",
+ "id": "19ac1c74.d7d004",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1119.566650390625,
- "y": 296.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 1035.566665649414,
+ "y": 271,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "656a3cd0.5027ec"
+ "a6253b3d.1d9918"
]
]
},
{
- "id": "f7639000.8d09b",
+ "id": "95d20785.38f27",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1133.566650390625,
- "y": 418.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 1049.566665649414,
+ "y": 393,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "6f5cb50c.47cb9c",
- "61d2d42e.74ce34"
+ "507025a0.559a4c",
+ "91af5694.a6f19"
]
]
},
{
- "id": "656a3cd0.5027ec",
+ "id": "a6253b3d.1d9918",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Error deleting the Service' />\n",
"comments": "",
- "x": 1287.566650390625,
- "y": 293.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 1203.566665649414,
+ "y": 268,
+ "z": "27c6cdb6.f4809a",
"wires": []
},
{
- "id": "6f5cb50c.47cb9c",
+ "id": "507025a0.559a4c",
"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=\"Successfully sent the request\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 1314.566650390625,
- "y": 377.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 1230.566665649414,
+ "y": 352,
+ "z": "27c6cdb6.f4809a",
"wires": [
[]
]
},
{
- "id": "61d2d42e.74ce34",
+ "id": "91af5694.a6f19",
"type": "switchNode",
"name": "switch",
"xml": "<switch test='`$service-delete-response.configuration-response-common.response-code`'>\n",
"comments": "",
"outputs": 1,
- "x": 1307.566650390625,
- "y": 468.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 1223.566665649414,
+ "y": 443,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "6a32e2cb.011efc",
- "126ef311.e5b135"
+ "91d16260.78483",
+ "b0a0d653.d2aad8"
]
]
},
{
- "id": "6a32e2cb.011efc",
+ "id": "91d16260.78483",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1450.566650390625,
- "y": 443.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 1366.566665649414,
+ "y": 418,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "20f6b725.7d2e3"
+ "d1f703a2.70624"
]
]
},
{
- "id": "20f6b725.7d2e3",
+ "id": "d1f703a2.70624",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='`$service-delete-response.configuration-response-common.response-code`' />\n<parameter name='error-message' value='`$service-delete-response.configuration-response-common.response-message`' />\n",
"comments": "",
- "x": 1647.566650390625,
- "y": 441.56666564941406,
- "z": "8588d9b2.517e38",
+ "x": 1563.566665649414,
+ "y": 416,
+ "z": "27c6cdb6.f4809a",
"wires": []
},
{
- "id": "126ef311.e5b135",
+ "id": "b0a0d653.d2aad8",
"type": "outcome",
"name": "200",
"xml": "<outcome value='200'>\n",
"comments": "",
"outputs": 1,
- "x": 1474.566650390625,
- "y": 557.5666656494141,
- "z": "8588d9b2.517e38",
+ "x": 1390.566665649414,
+ "y": 532,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "47d51f0e.38e19"
+ "2d1cf19b.b3a7b6"
]
]
},
{
- "id": "47d51f0e.38e19",
+ "id": "2d1cf19b.b3a7b6",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1638.566650390625,
- "y": 552.5666656494141,
- "z": "8588d9b2.517e38",
+ "x": 1554.566665649414,
+ "y": 527,
+ "z": "27c6cdb6.f4809a",
"wires": [
[
- "b9afc35f.499458",
- "f8b135a9.17c5d8",
- "70aa5b37.57ec94",
- "a77548a2.59db78",
- "ba4b7b38.d871e"
+ "b1a5c7e2.86fb38",
+ "4c41a47d.e30d04",
+ "fa335160.5d27e",
+ "108a94.a1ea956c",
+ "ad08b45b.6db4"
]
]
},
{
- "id": "b9afc35f.499458",
+ "id": "b1a5c7e2.86fb38",
"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=\"Inside controller\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 1810.566650390625,
- "y": 520.5666656494141,
- "z": "8588d9b2.517e38",
+ "x": 1726.566665649414,
+ "y": 495,
+ "z": "27c6cdb6.f4809a",
"wires": [
[]
]
},
{
- "id": "f8b135a9.17c5d8",
- "type": "save",
- "name": "save",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE REQUEST_DETAILS SET status = \"DELETING\" WHERE request_id = $optical-service-delete-input.request-id' \nforce='true' pfx='save-result'>\n\n\n\n\n\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1820.566650390625,
- "y": 607.5666656494141,
- "z": "8588d9b2.517e38",
- "wires": [
- []
- ]
- },
- {
- "id": "70aa5b37.57ec94",
+ "id": "4c41a47d.e30d04",
"type": "get-resource",
"name": "get-resource",
- "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='db.request-details'>\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n",
+ "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='output'>\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": 1826.566650390625,
- "y": 683.5666656494141,
- "z": "8588d9b2.517e38",
+ "x": 1771.566650390625,
+ "y": 574,
+ "z": "27c6cdb6.f4809a",
"wires": [
- [
- "84297f07.a526"
- ]
- ]
- },
- {
- "id": "84297f07.a526",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1984.566650390625,
- "y": 674.5666656494141,
- "z": "8588d9b2.517e38",
- "wires": [
- [
- "aff15672.da7fa8"
- ]
+ []
]
},
{
- "id": "aff15672.da7fa8",
+ "id": "fa335160.5d27e",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='instance-id' value='`$db.request-details.service-instance-id`' />\n<parameter name='customer-id' value='`$db.request-details.global-customer-id`' />\n<parameter name='service-id' value='`$db.request-details.service-type`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
+ "xml": "<set>\n<parameter name='final-response-code' value=\"200\" />\n",
"comments": "",
- "x": 2133.566650390625,
- "y": 677.5666656494141,
- "z": "8588d9b2.517e38",
+ "x": 1706.566665649414,
+ "y": 833.9999847412109,
+ "z": "27c6cdb6.f4809a",
"wires": []
},
{
- "id": "a77548a2.59db78",
- "type": "update",
- "name": "update",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true' \nresource='service-instance' \nkey = 'customer.global-customer-id = $customer-id AND\n service-subscription.service-type = $service-id AND\n service-instance.service-instance-id = $instance-id'\nlocal-only='false'>\n <parameter name='orchestration-status' value='DELETING' />\n\n \n \n \n\n",
+ "id": "108a94.a1ea956c",
+ "type": "call",
+ "name": "call aai-delete-service-handling",
+ "xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1799.566650390625,
- "y": 750.5666656494141,
- "z": "8588d9b2.517e38",
+ "x": 1807.13330078125,
+ "y": 699.566650390625,
+ "z": "27c6cdb6.f4809a",
"wires": [
[]
]
},
{
- "id": "ba4b7b38.d871e",
+ "id": "ad08b45b.6db4",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='final-response-code' value=\"200\" />\n",
+ "xml": "<set>\n<parameter name='request-id' value='`$optical-service-create-input.request-id`' />\n",
"comments": "",
- "x": 1790.566650390625,
- "y": 859.566650390625,
- "z": "8588d9b2.517e38",
+ "x": 1762.13330078125,
+ "y": 627.566650390625,
+ "z": "27c6cdb6.f4809a",
"wires": []
}
] \ No newline at end of file