aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json941
1 files changed, 941 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json
new file mode 100644
index 00000000..074dee31
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json
@@ -0,0 +1,941 @@
+[
+ {
+ "id": "b9f06b07.f3a768",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 131,
+ "y": 70,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "56d70828.f50c48"
+ ]
+ ]
+ },
+ {
+ "id": "56d70828.f50c48",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 343.00000381469727,
+ "y": 142.0000171661377,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "8c1c122c.922b4"
+ ]
+ ]
+ },
+ {
+ "id": "8c1c122c.922b4",
+ "type": "method",
+ "name": "sdwan-attachment-topology-operation-delete",
+ "xml": "<method rpc='sdwan-attachment-topology-operation-delete' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 331.0001220703125,
+ "y": 230,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "b8453101.deebe"
+ ]
+ ]
+ },
+ {
+ "id": "b8453101.deebe",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 347.0001220703125,
+ "y": 785.0002446174622,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "57dbee5c.be95e",
+ "ca7d47f1.45f358",
+ "7673909c.5a2e3",
+ "ecea06e3.25a318",
+ "da0989a1.945518",
+ "ae3090d.67bd97",
+ "3ac1cb4a.bcc3b4",
+ "e3865992.7e3fc8",
+ "4734b343.474b9c",
+ "b32dbc09.e3051",
+ "d3caba2b.d332f8",
+ "cfc2e19e.1fcac",
+ "61e84275.3bc6fc",
+ "cc50854b.9b5d18",
+ "2036e77.af47618"
+ ]
+ ]
+ },
+ {
+ "id": "57dbee5c.be95e",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id,etc",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 743.9935607910156,
+ "y": 183.9934868812561,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "dd97f979.9eaae8",
+ "type": "comment",
+ "name": "set tmp ar-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 772.9538726806641,
+ "y": 148.02528285980225,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "ca7d47f1.45f358",
+ "type": "set",
+ "name": "set tmp.ar.self-link",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "comments": "",
+ "x": 697.9934997558594,
+ "y": 276.99349212646484,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "da0989a1.945518",
+ "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' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 704.2553901672363,
+ "y": 364.6602210998535,
+ "z": "4de23974.164008",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7673909c.5a2e3",
+ "type": "execute",
+ "name": "generate allotted-resource url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 736.2554168701172,
+ "y": 452.66020250320435,
+ "z": "4de23974.164008",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8315ba14.0dc648",
+ "type": "comment",
+ "name": "Used for setting output to API Handler",
+ "info": "",
+ "comments": "",
+ "x": 751.9935302734375,
+ "y": 243.993501663208,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "3c54e364.ade40c",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 769.9934959411621,
+ "y": 329.8823823928833,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "67f0dba1.ee0bc4",
+ "type": "comment",
+ "name": "Used to Get AR by id to MDSAL, same as self-link",
+ "info": "",
+ "comments": "",
+ "x": 795.9935150146484,
+ "y": 416.8823413848877,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "22c383eb.e7131c",
+ "type": "comment",
+ "name": "GET parent-service-data from mdsal to check existence of other End point",
+ "info": "",
+ "comments": "",
+ "x": 863.0003280639648,
+ "y": 871.5316228866577,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "810e2b6c.9f1de8",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1691.1849365234375,
+ "y": 1105.00425863266,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "690c4edc.5f401"
+ ]
+ ]
+ },
+ {
+ "id": "ecea06e3.25a318",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 842.1842956542969,
+ "y": 1111.718041419983,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "384921c2.c1fd6e",
+ "9a1aea32.687248"
+ ]
+ ]
+ },
+ {
+ "id": "e406b111.f8cad",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1292.4544582366943,
+ "y": 1151.7015271186829,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "810e2b6c.9f1de8",
+ "9caa2a43.39ddb8"
+ ]
+ ]
+ },
+ {
+ "id": "690c4edc.5f401",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2141.296142578125,
+ "y": 1103.0041165351868,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "e114982a.497cc8"
+ ]
+ ]
+ },
+ {
+ "id": "ae3090d.67bd97",
+ "type": "set",
+ "name": "set tmp.ar.parent-service-instance-id",
+ "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
+ "comments": "",
+ "x": 753.9687118530273,
+ "y": 907.0000677108765,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "7a941a2c.6b5534",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1133.968994140625,
+ "y": 985.0001826286316,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "f87fdce1.8f426"
+ ]
+ ]
+ },
+ {
+ "id": "616b8620.cffa38",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1125.8207969665527,
+ "y": 1020.066267490387,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "c66c8fc5.25841"
+ ]
+ ]
+ },
+ {
+ "id": "c66c8fc5.25841",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1300.969482421875,
+ "y": 1016.3336176872253,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "f87fdce1.8f426",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1284.968994140625,
+ "y": 983.0001826286316,
+ "z": "4de23974.164008",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ba29c90b.a2ba18",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 987.7307624816895,
+ "y": 1300.952815413475,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "a31d3239.91ffa"
+ ]
+ ]
+ },
+ {
+ "id": "a31d3239.91ffa",
+ "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=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 1154.2546424865723,
+ "y": 1312.57188642025,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "30824867.291518",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 994.8260498046875,
+ "y": 1333.7147830724716,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "a31d3239.91ffa"
+ ]
+ ]
+ },
+ {
+ "id": "a9de303.1918dd",
+ "type": "comment",
+ "name": "TODO: Rework after confirmation from AAI",
+ "info": "",
+ "comments": "",
+ "x": 1119.1374282836914,
+ "y": 1251.8732151985168,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "3ac1cb4a.bcc3b4",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "comments": "",
+ "x": 720.5461502075195,
+ "y": 1264.8276824951172,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "e3865992.7e3fc8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 689.9592666625977,
+ "y": 1371.4435625076294,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "4734b343.474b9c",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='Delete' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 769.6666641235352,
+ "y": 541.3333625793457,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "6ade3c12.7994f4",
+ "e1a0637a.9ebf2",
+ "b8627e78.eb192"
+ ]
+ ]
+ },
+ {
+ "id": "6ade3c12.7994f4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1009.3081665039062,
+ "y": 581.6649107933044,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "a87c397.af463c8"
+ ]
+ ]
+ },
+ {
+ "id": "e1a0637a.9ebf2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1006.3081665039062,
+ "y": 538.1649084091187,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "a87c397.af463c8"
+ ]
+ ]
+ },
+ {
+ "id": "b8627e78.eb192",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1013.0582466125488,
+ "y": 497.5220036506653,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "b1cd793e.5e9dc8"
+ ]
+ ]
+ },
+ {
+ "id": "a87c397.af463c8",
+ "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 updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1165.058334350586,
+ "y": 559.9149088859558,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "b1cd793e.5e9dc8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1150.7141780853271,
+ "y": 497.7141833305359,
+ "z": "4de23974.164008",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd3b6f56.caa65",
+ "type": "comment",
+ "name": "Delete Allotted Resource",
+ "info": "",
+ "comments": "",
+ "x": 717.0000457763672,
+ "y": 510.0000286102295,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "7503ea37.fd6c04",
+ "type": "for",
+ "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
+ "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1667.00390625,
+ "y": 747.00390625,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "f40e177b.0b9868"
+ ]
+ ]
+ },
+ {
+ "id": "b32dbc09.e3051",
+ "type": "switchNode",
+ "name": "switch service-data.consumed-allotted-resources_length",
+ "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 820.0032920837402,
+ "y": 707.71790766716,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "c43d45d0.725118",
+ "b1813741.d0a008"
+ ]
+ ]
+ },
+ {
+ "id": "c43d45d0.725118",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1144.1461563110352,
+ "y": 690.5753421783447,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "494b4b44.f09f14"
+ ]
+ ]
+ },
+ {
+ "id": "b1813741.d0a008",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1130.1461791992188,
+ "y": 753.5753309726715,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "a0d3a795.96d2a8"
+ ]
+ ]
+ },
+ {
+ "id": "a0d3a795.96d2a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1290.2732696533203,
+ "y": 751.7013075351715,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "7503ea37.fd6c04",
+ "8fef3486.f53f48"
+ ]
+ ]
+ },
+ {
+ "id": "d3caba2b.d332f8",
+ "type": "set",
+ "name": "set consumed allotted resources for deletion",
+ "xml": "<set>\n<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].\" value=\"\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`' />\n\n",
+ "comments": "",
+ "x": 776.8606262207031,
+ "y": 778.28955078125,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "f40e177b.0b9868",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2105.1155166625977,
+ "y": 743.0040283203125,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "5f3df777.af7b38"
+ ]
+ ]
+ },
+ {
+ "id": "5f3df777.af7b38",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2300.925338745117,
+ "y": 742.4683527946472,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "6d89866f.0d32c8"
+ ]
+ ]
+ },
+ {
+ "id": "e9496ef8.3a3c5",
+ "type": "set",
+ "name": "set tmp.cidx",
+ "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
+ "comments": "",
+ "x": 2616.2618713378906,
+ "y": 743.2246108055115,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "e2abacaf.782bf",
+ "type": "comment",
+ "name": "Delete consumed service consumed-allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 831.0045623779297,
+ "y": 640.0038724095793,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "e6fb5c22.b2976",
+ "type": "comment",
+ "name": "This set resource will be deleted in MDSAL by provider code",
+ "info": "",
+ "comments": "",
+ "x": 821.337345123291,
+ "y": 744.781964302063,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "e963214.b61b0e",
+ "type": "comment",
+ "name": "Obtain the index of conusumed AR",
+ "info": "",
+ "comments": "",
+ "x": 743.7817535400391,
+ "y": 671.8927326202393,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "494b4b44.f09f14",
+ "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=\"Resource to be deleted doesn't exist in MDSAL.\" />\n",
+ "comments": "",
+ "x": 1306.00390625,
+ "y": 691.00390625,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "6d89866f.0d32c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2450.003936767578,
+ "y": 743.2539558410645,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "e9496ef8.3a3c5"
+ ]
+ ]
+ },
+ {
+ "id": "851fd9bb.09d5f8",
+ "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=\"resource to be deleted is not available in mdsal\" />\n",
+ "comments": "",
+ "x": 1760.25390625,
+ "y": 800.25390625,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "d98b4681.77ed08",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1622.75390625,
+ "y": 800.25390625,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "851fd9bb.09d5f8"
+ ]
+ ]
+ },
+ {
+ "id": "8fef3486.f53f48",
+ "type": "switchNode",
+ "name": "switch tmp.cidx ",
+ "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1468.75390625,
+ "y": 800.25390625,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "d98b4681.77ed08"
+ ]
+ ]
+ },
+ {
+ "id": "3dd9973a.4ea7a8",
+ "type": "comment",
+ "name": "Delete provided service provided-allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 817.5039215087891,
+ "y": 836.00390625,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "9a1aea32.687248",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1145.5041770935059,
+ "y": 1150.7540984153748,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "e406b111.f8cad"
+ ]
+ ]
+ },
+ {
+ "id": "384921c2.c1fd6e",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1162.5040969848633,
+ "y": 1062.7539324760437,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "a35171cd.d90da"
+ ]
+ ]
+ },
+ {
+ "id": "a35171cd.d90da",
+ "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=\"Resource to be deleted doesn't exist in MDSAL.\" />\n",
+ "comments": "",
+ "x": 1326.3616943359375,
+ "y": 1063.1824774742126,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "702543f3.ec4a8c",
+ "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=\"resource to be deleted is not available in mdsal\" />\n",
+ "comments": "",
+ "x": 1757.7539501190186,
+ "y": 1180.753936290741,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "f0b84e69.39376",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1620.2539501190186,
+ "y": 1180.753936290741,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "702543f3.ec4a8c"
+ ]
+ ]
+ },
+ {
+ "id": "9caa2a43.39ddb8",
+ "type": "switchNode",
+ "name": "switch tmp.pidx ",
+ "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1466.2539501190186,
+ "y": 1180.753936290741,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "f0b84e69.39376"
+ ]
+ ]
+ },
+ {
+ "id": "e114982a.497cc8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2330.504367828369,
+ "y": 1100.7540946006775,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "5dc21145.7fddd"
+ ]
+ ]
+ },
+ {
+ "id": "9af67acf.f5f308",
+ "type": "set",
+ "name": "set tmp.pidx",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n",
+ "comments": "",
+ "x": 2398.8404846191406,
+ "y": 1235.5101914405823,
+ "z": "4de23974.164008",
+ "wires": []
+ },
+ {
+ "id": "5dc21145.7fddd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2390.582820892334,
+ "y": 1171.539580821991,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "9af67acf.f5f308"
+ ]
+ ]
+ },
+ {
+ "id": "2036e77.af47618",
+ "type": "update",
+ "name": "update AAI allotted-resource",
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='allotted-resource' \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 733.2227554321289,
+ "y": 1320.754346370697,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "ba29c90b.a2ba18",
+ "30824867.291518"
+ ]
+ ]
+ },
+ {
+ "id": "61e84275.3bc6fc",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 823.3334197998047,
+ "y": 1006.333366394043,
+ "z": "4de23974.164008",
+ "wires": [
+ [
+ "7a941a2c.6b5534",
+ "616b8620.cffa38"
+ ]
+ ]
+ },
+ {
+ "id": "cfc2e19e.1fcac",
+ "type": "execute",
+ "name": "get parent-service-data tmp.ar-url-psd",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 757.3333587646484,
+ "y": 964.3332056999207,
+ "z": "4de23974.164008",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cc50854b.9b5d18",
+ "type": "execute",
+ "name": "execute RestApiCallNode - delete-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value=\"`$prop.controller.url + $tmp.ar-url-psd + '/provided-allotted-resources/provided-allotted-resource/' + $tmp.ar.allotted-resource-id`\" />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd-delete\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 839.00390625,
+ "y": 1211.00390625,
+ "z": "4de23974.164008",
+ "wires": [
+ []
+ ]
+ }
+]