aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json')
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json208
1 files changed, 120 insertions, 88 deletions
diff --git a/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json b/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json
index 86ae420f..82703571 100644
--- a/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json
+++ b/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json
@@ -1,20 +1,20 @@
[
{
- "id": "dc8e74bc.6b0e6",
+ "id": "c59cd7ed.c18398",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 201.5,
- "y": 89.5,
- "z": "78cee624.48d318",
+ "x": 296.6761169433594,
+ "y": 220.00946044921875,
+ "z": "21304dc.3a53bb2",
"wires": [
[
- "793fbbb8.688d0c"
+ "7775f962.7d1d48"
]
]
},
{
- "id": "793fbbb8.688d0c",
+ "id": "7775f962.7d1d48",
"type": "service-logic",
"name": "optical-service ${project.version}",
"module": "optical-service",
@@ -22,237 +22,269 @@
"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": 388.5,
- "y": 38.5,
- "z": "78cee624.48d318",
+ "x": 483.6761169433594,
+ "y": 169.00946044921875,
+ "z": "21304dc.3a53bb2",
"wires": [
[
- "fac8c114.6a11a"
+ "b8012816.18beb8"
]
]
},
{
- "id": "fac8c114.6a11a",
+ "id": "b8012816.18beb8",
"type": "method",
"name": "method",
"xml": "<method rpc='aai-delete-service-handling' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 242.5,
- "y": 212.5,
- "z": "78cee624.48d318",
+ "x": 337.6761169433594,
+ "y": 343.00946044921875,
+ "z": "21304dc.3a53bb2",
"wires": [
[
- "af5e3982.ec86d8"
+ "196e7dad.1c2812"
]
]
},
{
- "id": "af5e3982.ec86d8",
+ "id": "196e7dad.1c2812",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 415.5,
- "y": 211.5,
- "z": "78cee624.48d318",
+ "x": 510.6761169433594,
+ "y": 342.00946044921875,
+ "z": "21304dc.3a53bb2",
"wires": [
[
- "47ce9b8c.699c64",
- "532ef147.e30af8",
- "d5300514.b84e18",
- "e3be8795.085c9",
- "31c5321a.c7540e",
- "137b4c1c.0ee49c"
+ "a6739c0e.92be6",
+ "f1965e9d.262ad",
+ "683ccc80.4a0d74",
+ "2d2c4969.e00236",
+ "25b8985d.2f67f8",
+ "5ffac464.a53b7c"
]
]
},
{
- "id": "47ce9b8c.699c64",
+ "id": "a6739c0e.92be6",
"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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n",
"comments": "",
"outputs": 1,
- "x": 646.5,
- "y": 98.5,
- "z": "78cee624.48d318",
+ "x": 741.6761169433594,
+ "y": 229.00946044921875,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
},
{
- "id": "532ef147.e30af8",
+ "id": "f1965e9d.262ad",
"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 = $output.service-instance-id' \npfx='aai.service' local-only='false'>\n\n",
"comments": "",
"outputs": 1,
- "x": 665.5,
- "y": 214.5,
- "z": "78cee624.48d318",
+ "x": 760.6761169433594,
+ "y": 345.00946044921875,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
},
{
- "id": "d5300514.b84e18",
+ "id": "683ccc80.4a0d74",
"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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n<parameter name=\"field2\" value=\"`$aai.service.orchestration-status`\"/>\n<parameter name=\"field3\" value=\"`$aai.service.relationship-list.relationship_length`\"/>\n\n\n",
"comments": "",
"outputs": 1,
- "x": 675.5,
- "y": 280.5,
- "z": "78cee624.48d318",
+ "x": 770.6761169433594,
+ "y": 411.00946044921875,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
},
{
- "id": "e3be8795.085c9",
+ "id": "2d2c4969.e00236",
"type": "for",
"name": "for",
- "xml": "<for index='idx' start='1' end='`$aai.service.relationship-list.relationship_length`' >\n",
+ "xml": "<for index='idx' start='0' end='`$aai.service.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 648.5,
- "y": 343.5,
- "z": "78cee624.48d318",
+ "x": 743.6761169433594,
+ "y": 474.00946044921875,
+ "z": "21304dc.3a53bb2",
"wires": [
[
- "3755c730.096448"
+ "8c2d23c8.832ee"
]
]
},
{
- "id": "9620ad1b.3b5ab",
+ "id": "9ec6b9b8.0d7588",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\n<parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\n\n",
"comments": "",
- "x": 1058.5,
- "y": 30.5,
- "z": "78cee624.48d318",
+ "x": 1322.0094909667969,
+ "y": 134.34279251098633,
+ "z": "21304dc.3a53bb2",
"wires": []
},
{
- "id": "7afe7104.170b88",
+ "id": "9554b44d.e6e5c8",
"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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n<parameter name=\"field2\" value=\"`$pnf-name`\"/>\n<parameter name=\"field3\" value=\"`$pinterface-name`\"/>\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1081.5,
- "y": 99.5,
- "z": "78cee624.48d318",
+ "x": 1315.0093841552734,
+ "y": 213.34278774261475,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
},
{
- "id": "31c5321a.c7540e",
+ "id": "25b8985d.2f67f8",
"type": "delete",
"name": "delete service instance AAI",
"xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $output.global-customer-id AND\nservice-subscription.service-type = $output.service-type AND\nservice-instance.service-instance-id = $output.service-instance-id'>\n",
"comments": "",
"outputs": 1,
- "x": 668.5,
- "y": 419.5,
- "z": "78cee624.48d318",
+ "x": 763.6761169433594,
+ "y": 550.0094604492188,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
},
{
- "id": "3755c730.096448",
+ "id": "4840f1f2.10ca4",
"type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 832.5,
- "y": 347.5,
- "z": "78cee624.48d318",
+ "x": 1097.6760864257812,
+ "y": 408.00942039489746,
+ "z": "21304dc.3a53bb2",
"wires": [
[
- "9620ad1b.3b5ab",
- "7afe7104.170b88",
- "d6286179.01c048",
- "651efb55.9daa24",
- "24dec78d.b7fd48",
- "3e61b022.837b4"
+ "9ec6b9b8.0d7588",
+ "9554b44d.e6e5c8",
+ "c93b81e9.ed754",
+ "1719f86d.9ee9a8",
+ "d599af84.718a",
+ "e87968c4.4c12d8"
]
]
},
{
- "id": "137b4c1c.0ee49c",
+ "id": "5ffac464.a53b7c",
"type": "delete",
"name": "delete from db",
"xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource=\"SQL\"\n key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id\">",
"comments": "",
"outputs": 1,
- "x": 605.5,
- "y": 476.5,
- "z": "78cee624.48d318",
+ "x": 700.6761169433594,
+ "y": 607.0094604492188,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
},
{
- "id": "24dec78d.b7fd48",
+ "id": "d599af84.718a",
"type": "get-resource",
"name": "get p-interface total capacity",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key='pnf.pnf-name = $pnf-name AND\n p-interface.interface-name = $pinterface-name ' \npfx='p.in.details' local-only='false'>\n\n",
"comments": "",
"outputs": 1,
- "x": 1178.3887939453125,
- "y": 155.61111450195312,
- "z": "78cee624.48d318",
+ "x": 1403.5649185180664,
+ "y": 284.45390129089355,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
},
{
- "id": "3e61b022.837b4",
+ "id": "e87968c4.4c12d8",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='new-rate' value='`$p.in.details.speed-value`' />\n",
"comments": "",
- "x": 1118.611083984375,
- "y": 245.83334350585938,
- "z": "78cee624.48d318",
+ "x": 1330.4538688659668,
+ "y": 359.6761236190796,
+ "z": "21304dc.3a53bb2",
"wires": []
},
{
- "id": "d6286179.01c048",
+ "id": "c93b81e9.ed754",
"type": "update",
"name": "update p-interface capacity AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='p-interface'\n key='pnf.pnf-name = $pnf-name AND\n p-interface.interface-name = $pinterface-name '\n local-only='false'>\n<parameter name='available-capacity' value='`$new-rate`' />\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": 1085.5,
- "y": 351.5,
- "z": "78cee624.48d318",
+ "x": 1357.3428497314453,
+ "y": 425.34275674819946,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
},
{
- "id": "651efb55.9daa24",
+ "id": "1719f86d.9ee9a8",
"type": "save",
"name": "update pinterface rate DB",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET rate = $new-rate WHERE interface_name = $pinterface-name '\nforce='true' pfx='save-result'>",
"comments": "",
"outputs": 1,
- "x": 1076.5,
- "y": 419.5,
- "z": "78cee624.48d318",
+ "x": 1360.009407043457,
+ "y": 503.34279108047485,
+ "z": "21304dc.3a53bb2",
"wires": [
[]
]
+ },
+ {
+ "id": "8c2d23c8.832ee",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test=\"`$aai.service.relationship-list.relationship[$idx].related-to == 'p-interface'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 918.9488182067871,
+ "y": 410.0094404220581,
+ "z": "21304dc.3a53bb2",
+ "wires": [
+ [
+ "161999ff.507a66"
+ ]
+ ]
+ },
+ {
+ "id": "161999ff.507a66",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1015.6155395507811,
+ "y": 348.3428064982096,
+ "z": "21304dc.3a53bb2",
+ "wires": [
+ [
+ "4840f1f2.10ca4"
+ ]
+ ]
}
] \ No newline at end of file