summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/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/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json642
1 files changed, 321 insertions, 321 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json
index 49ba9cfe..074dee31 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json
@@ -1,20 +1,20 @@
[
{
- "id": "de2bb8e4.c4dbd8",
+ "id": "b9f06b07.f3a768",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 89,
- "y": 38,
- "z": "5256b6fe.7fc0a8",
+ "x": 131,
+ "y": 70,
+ "z": "4de23974.164008",
"wires": [
[
- "4df3844d.66920c"
+ "56d70828.f50c48"
]
]
},
{
- "id": "4df3844d.66920c",
+ "id": "56d70828.f50c48",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,918 +22,918 @@
"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": 301.00000381469727,
- "y": 110.0000171661377,
- "z": "5256b6fe.7fc0a8",
+ "x": 343.00000381469727,
+ "y": 142.0000171661377,
+ "z": "4de23974.164008",
"wires": [
[
- "defa06c2.08a958"
+ "8c1c122c.922b4"
]
]
},
{
- "id": "defa06c2.08a958",
+ "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": 289.0001220703125,
- "y": 198,
- "z": "5256b6fe.7fc0a8",
+ "x": 331.0001220703125,
+ "y": 230,
+ "z": "4de23974.164008",
"wires": [
[
- "6f0fe5c1.42509c"
+ "b8453101.deebe"
]
]
},
{
- "id": "6f0fe5c1.42509c",
+ "id": "b8453101.deebe",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 305.0001220703125,
- "y": 753.0002446174622,
- "z": "5256b6fe.7fc0a8",
+ "x": 347.0001220703125,
+ "y": 785.0002446174622,
+ "z": "4de23974.164008",
"wires": [
[
- "d4b618b3.e243f8",
- "daa2fd1c.e15f9",
- "98a0548f.d105b8",
- "4086ba28.5e7fb4",
- "3a054970.ddb4f6",
- "6a9e6940.dc60c8",
- "1dcc043a.41212c",
- "cfbf99ba.e9ea08",
- "a788afc2.3b764",
- "9bec45ba.823fc8",
- "295f039a.2c737c",
- "2676412c.7c20ee",
- "8b527b2a.81e648",
- "e2838697.661268",
- "d9f8d014.bcccd"
+ "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": "d4b618b3.e243f8",
+ "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": 701.9935607910156,
- "y": 151.9934868812561,
- "z": "5256b6fe.7fc0a8",
+ "x": 743.9935607910156,
+ "y": 183.9934868812561,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "2548027c.9fde3e",
+ "id": "dd97f979.9eaae8",
"type": "comment",
"name": "set tmp ar-id to fetch resource from MDSAL",
"info": "",
"comments": "",
- "x": 730.9538726806641,
- "y": 116.02528285980225,
- "z": "5256b6fe.7fc0a8",
+ "x": 772.9538726806641,
+ "y": 148.02528285980225,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "daa2fd1c.e15f9",
+ "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": 655.9934997558594,
- "y": 244.99349212646484,
- "z": "5256b6fe.7fc0a8",
+ "x": 697.9934997558594,
+ "y": 276.99349212646484,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "3a054970.ddb4f6",
+ "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": 662.2553901672363,
- "y": 332.6602210998535,
- "z": "5256b6fe.7fc0a8",
+ "x": 704.2553901672363,
+ "y": 364.6602210998535,
+ "z": "4de23974.164008",
"wires": [
[]
]
},
{
- "id": "98a0548f.d105b8",
+ "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": 694.2554168701172,
- "y": 420.66020250320435,
- "z": "5256b6fe.7fc0a8",
+ "x": 736.2554168701172,
+ "y": 452.66020250320435,
+ "z": "4de23974.164008",
"wires": [
[]
]
},
{
- "id": "7276eff0.df0a8",
+ "id": "8315ba14.0dc648",
"type": "comment",
"name": "Used for setting output to API Handler",
"info": "",
"comments": "",
- "x": 709.9935302734375,
- "y": 211.993501663208,
- "z": "5256b6fe.7fc0a8",
+ "x": 751.9935302734375,
+ "y": 243.993501663208,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "e3eaa523.b8fec8",
+ "id": "3c54e364.ade40c",
"type": "comment",
"name": "Obtain different URL, template location etc",
"info": "For saving resource information to MDSAL & for AAI",
"comments": "",
- "x": 727.9934959411621,
- "y": 297.8823823928833,
- "z": "5256b6fe.7fc0a8",
+ "x": 769.9934959411621,
+ "y": 329.8823823928833,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "94cc654b.383a58",
+ "id": "67f0dba1.ee0bc4",
"type": "comment",
"name": "Used to Get AR by id to MDSAL, same as self-link",
"info": "",
"comments": "",
- "x": 753.9935150146484,
- "y": 384.8823413848877,
- "z": "5256b6fe.7fc0a8",
+ "x": 795.9935150146484,
+ "y": 416.8823413848877,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "860c0bbd.079788",
+ "id": "22c383eb.e7131c",
"type": "comment",
"name": "GET parent-service-data from mdsal to check existence of other End point",
"info": "",
"comments": "",
- "x": 821.0003280639648,
- "y": 839.5316228866577,
- "z": "5256b6fe.7fc0a8",
+ "x": 863.0003280639648,
+ "y": 871.5316228866577,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "1bc8c1a0.e4996e",
+ "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": 1649.1849365234375,
- "y": 1073.00425863266,
- "z": "5256b6fe.7fc0a8",
+ "x": 1691.1849365234375,
+ "y": 1105.00425863266,
+ "z": "4de23974.164008",
"wires": [
[
- "389840a4.f6186"
+ "690c4edc.5f401"
]
]
},
{
- "id": "4086ba28.5e7fb4",
+ "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": 800.1842956542969,
- "y": 1079.718041419983,
- "z": "5256b6fe.7fc0a8",
+ "x": 842.1842956542969,
+ "y": 1111.718041419983,
+ "z": "4de23974.164008",
"wires": [
[
- "6019a57.13f705c",
- "4a21aa00.3b1ac8"
+ "384921c2.c1fd6e",
+ "9a1aea32.687248"
]
]
},
{
- "id": "30a78dd9.3c8b22",
+ "id": "e406b111.f8cad",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1250.4544582366943,
- "y": 1119.7015271186829,
- "z": "5256b6fe.7fc0a8",
+ "x": 1292.4544582366943,
+ "y": 1151.7015271186829,
+ "z": "4de23974.164008",
"wires": [
[
- "1bc8c1a0.e4996e",
- "e9fadefb.0c149"
+ "810e2b6c.9f1de8",
+ "9caa2a43.39ddb8"
]
]
},
{
- "id": "389840a4.f6186",
+ "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": 2099.296142578125,
- "y": 1071.0041165351868,
- "z": "5256b6fe.7fc0a8",
+ "x": 2141.296142578125,
+ "y": 1103.0041165351868,
+ "z": "4de23974.164008",
"wires": [
[
- "87f0a9d.62cd658"
+ "e114982a.497cc8"
]
]
},
{
- "id": "6a9e6940.dc60c8",
+ "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": 711.9687118530273,
- "y": 875.0000677108765,
- "z": "5256b6fe.7fc0a8",
+ "x": 753.9687118530273,
+ "y": 907.0000677108765,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "9c6dc3c.897554",
+ "id": "7a941a2c.6b5534",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1091.968994140625,
- "y": 953.0001826286316,
- "z": "5256b6fe.7fc0a8",
+ "x": 1133.968994140625,
+ "y": 985.0001826286316,
+ "z": "4de23974.164008",
"wires": [
[
- "1e4f6a7c.485c96"
+ "f87fdce1.8f426"
]
]
},
{
- "id": "f96c62b7.b194",
+ "id": "616b8620.cffa38",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1083.8207969665527,
- "y": 988.066267490387,
- "z": "5256b6fe.7fc0a8",
+ "x": 1125.8207969665527,
+ "y": 1020.066267490387,
+ "z": "4de23974.164008",
"wires": [
[
- "ecfe720a.b902e"
+ "c66c8fc5.25841"
]
]
},
{
- "id": "ecfe720a.b902e",
+ "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": 1258.969482421875,
- "y": 984.3336176872253,
- "z": "5256b6fe.7fc0a8",
+ "x": 1300.969482421875,
+ "y": 1016.3336176872253,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "1e4f6a7c.485c96",
+ "id": "f87fdce1.8f426",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1242.968994140625,
- "y": 951.0001826286316,
- "z": "5256b6fe.7fc0a8",
+ "x": 1284.968994140625,
+ "y": 983.0001826286316,
+ "z": "4de23974.164008",
"wires": [
[]
]
},
{
- "id": "5fa2362a.75f678",
+ "id": "ba29c90b.a2ba18",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 945.7307624816895,
- "y": 1268.952815413475,
- "z": "5256b6fe.7fc0a8",
+ "x": 987.7307624816895,
+ "y": 1300.952815413475,
+ "z": "4de23974.164008",
"wires": [
[
- "3cb41c0b.eae2b4"
+ "a31d3239.91ffa"
]
]
},
{
- "id": "3cb41c0b.eae2b4",
+ "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": 1112.2546424865723,
- "y": 1280.57188642025,
- "z": "5256b6fe.7fc0a8",
+ "x": 1154.2546424865723,
+ "y": 1312.57188642025,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "144dae97.c82161",
+ "id": "30824867.291518",
"type": "failure",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 952.8260498046875,
- "y": 1301.7147830724716,
- "z": "5256b6fe.7fc0a8",
+ "x": 994.8260498046875,
+ "y": 1333.7147830724716,
+ "z": "4de23974.164008",
"wires": [
[
- "3cb41c0b.eae2b4"
+ "a31d3239.91ffa"
]
]
},
{
- "id": "2d8a7679.e4417a",
+ "id": "a9de303.1918dd",
"type": "comment",
"name": "TODO: Rework after confirmation from AAI",
"info": "",
"comments": "",
- "x": 1077.1374282836914,
- "y": 1219.8732151985168,
- "z": "5256b6fe.7fc0a8",
+ "x": 1119.1374282836914,
+ "y": 1251.8732151985168,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "1dcc043a.41212c",
+ "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": 678.5461502075195,
- "y": 1232.8276824951172,
- "z": "5256b6fe.7fc0a8",
+ "x": 720.5461502075195,
+ "y": 1264.8276824951172,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "cfbf99ba.e9ea08",
+ "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": 647.9592666625977,
- "y": 1339.4435625076294,
- "z": "5256b6fe.7fc0a8",
+ "x": 689.9592666625977,
+ "y": 1371.4435625076294,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "a788afc2.3b764",
+ "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": 727.6666641235352,
- "y": 509.3333625793457,
- "z": "5256b6fe.7fc0a8",
+ "x": 769.6666641235352,
+ "y": 541.3333625793457,
+ "z": "4de23974.164008",
"wires": [
[
- "694caf54.7b798",
- "ae592dd1.c9cc1",
- "f4c65729.068fc8"
+ "6ade3c12.7994f4",
+ "e1a0637a.9ebf2",
+ "b8627e78.eb192"
]
]
},
{
- "id": "694caf54.7b798",
+ "id": "6ade3c12.7994f4",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 967.3081665039062,
- "y": 549.6649107933044,
- "z": "5256b6fe.7fc0a8",
+ "x": 1009.3081665039062,
+ "y": 581.6649107933044,
+ "z": "4de23974.164008",
"wires": [
[
- "cccfb0fc.4d54b"
+ "a87c397.af463c8"
]
]
},
{
- "id": "ae592dd1.c9cc1",
+ "id": "e1a0637a.9ebf2",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 964.3081665039062,
- "y": 506.16490840911865,
- "z": "5256b6fe.7fc0a8",
+ "x": 1006.3081665039062,
+ "y": 538.1649084091187,
+ "z": "4de23974.164008",
"wires": [
[
- "cccfb0fc.4d54b"
+ "a87c397.af463c8"
]
]
},
{
- "id": "f4c65729.068fc8",
+ "id": "b8627e78.eb192",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 971.0582466125488,
- "y": 465.5220036506653,
- "z": "5256b6fe.7fc0a8",
+ "x": 1013.0582466125488,
+ "y": 497.5220036506653,
+ "z": "4de23974.164008",
"wires": [
[
- "f5848024.451b6"
+ "b1cd793e.5e9dc8"
]
]
},
{
- "id": "cccfb0fc.4d54b",
+ "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": 1123.058334350586,
- "y": 527.9149088859558,
- "z": "5256b6fe.7fc0a8",
+ "x": 1165.058334350586,
+ "y": 559.9149088859558,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "f5848024.451b6",
+ "id": "b1cd793e.5e9dc8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1108.7141780853271,
- "y": 465.7141833305359,
- "z": "5256b6fe.7fc0a8",
+ "x": 1150.7141780853271,
+ "y": 497.7141833305359,
+ "z": "4de23974.164008",
"wires": [
[]
]
},
{
- "id": "ace0db7.0de1828",
+ "id": "bd3b6f56.caa65",
"type": "comment",
"name": "Delete Allotted Resource",
"info": "",
"comments": "",
- "x": 675.0000457763672,
- "y": 478.0000286102295,
- "z": "5256b6fe.7fc0a8",
+ "x": 717.0000457763672,
+ "y": 510.0000286102295,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "8845d317.b4499",
+ "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": 1625.00390625,
- "y": 715.00390625,
- "z": "5256b6fe.7fc0a8",
+ "x": 1667.00390625,
+ "y": 747.00390625,
+ "z": "4de23974.164008",
"wires": [
[
- "f7e8e6c4.e21498"
+ "f40e177b.0b9868"
]
]
},
{
- "id": "9bec45ba.823fc8",
+ "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": 778.0032920837402,
- "y": 675.71790766716,
- "z": "5256b6fe.7fc0a8",
+ "x": 820.0032920837402,
+ "y": 707.71790766716,
+ "z": "4de23974.164008",
"wires": [
[
- "105cf808.d9fc58",
- "5f964ad4.a47694"
+ "c43d45d0.725118",
+ "b1813741.d0a008"
]
]
},
{
- "id": "105cf808.d9fc58",
+ "id": "c43d45d0.725118",
"type": "other",
"name": "outcome Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1102.1461563110352,
- "y": 658.5753421783447,
- "z": "5256b6fe.7fc0a8",
+ "x": 1144.1461563110352,
+ "y": 690.5753421783447,
+ "z": "4de23974.164008",
"wires": [
[
- "c721eaa0.d90778"
+ "494b4b44.f09f14"
]
]
},
{
- "id": "5f964ad4.a47694",
+ "id": "b1813741.d0a008",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1088.1461791992188,
- "y": 721.5753309726715,
- "z": "5256b6fe.7fc0a8",
+ "x": 1130.1461791992188,
+ "y": 753.5753309726715,
+ "z": "4de23974.164008",
"wires": [
[
- "d487336b.5c21"
+ "a0d3a795.96d2a8"
]
]
},
{
- "id": "d487336b.5c21",
+ "id": "a0d3a795.96d2a8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1248.2732696533203,
- "y": 719.7013075351715,
- "z": "5256b6fe.7fc0a8",
+ "x": 1290.2732696533203,
+ "y": 751.7013075351715,
+ "z": "4de23974.164008",
"wires": [
[
- "8845d317.b4499",
- "2a5719f4.0daa06"
+ "7503ea37.fd6c04",
+ "8fef3486.f53f48"
]
]
},
{
- "id": "295f039a.2c737c",
+ "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": 734.8606262207031,
- "y": 746.28955078125,
- "z": "5256b6fe.7fc0a8",
+ "x": 776.8606262207031,
+ "y": 778.28955078125,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "f7e8e6c4.e21498",
+ "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": 2063.1155166625977,
- "y": 711.0040283203125,
- "z": "5256b6fe.7fc0a8",
+ "x": 2105.1155166625977,
+ "y": 743.0040283203125,
+ "z": "4de23974.164008",
"wires": [
[
- "129a19f.57049e6"
+ "5f3df777.af7b38"
]
]
},
{
- "id": "129a19f.57049e6",
+ "id": "5f3df777.af7b38",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2258.925338745117,
- "y": 710.4683527946472,
- "z": "5256b6fe.7fc0a8",
+ "x": 2300.925338745117,
+ "y": 742.4683527946472,
+ "z": "4de23974.164008",
"wires": [
[
- "e64da982.d670b8"
+ "6d89866f.0d32c8"
]
]
},
{
- "id": "a61544d0.afeca8",
+ "id": "e9496ef8.3a3c5",
"type": "set",
"name": "set tmp.cidx",
"xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
"comments": "",
- "x": 2574.2618713378906,
- "y": 711.2246108055115,
- "z": "5256b6fe.7fc0a8",
+ "x": 2616.2618713378906,
+ "y": 743.2246108055115,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "77efab9.9957c54",
+ "id": "e2abacaf.782bf",
"type": "comment",
"name": "Delete consumed service consumed-allotted-resources in mdsal",
"info": "",
"comments": "",
- "x": 789.0045623779297,
- "y": 608.0038724095793,
- "z": "5256b6fe.7fc0a8",
+ "x": 831.0045623779297,
+ "y": 640.0038724095793,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "78d83bc7.d44d54",
+ "id": "e6fb5c22.b2976",
"type": "comment",
"name": "This set resource will be deleted in MDSAL by provider code",
"info": "",
"comments": "",
- "x": 779.337345123291,
- "y": 712.781964302063,
- "z": "5256b6fe.7fc0a8",
+ "x": 821.337345123291,
+ "y": 744.781964302063,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "a9f71f74.85a1",
+ "id": "e963214.b61b0e",
"type": "comment",
"name": "Obtain the index of conusumed AR",
"info": "",
"comments": "",
- "x": 701.7817535400391,
- "y": 639.8927326202393,
- "z": "5256b6fe.7fc0a8",
+ "x": 743.7817535400391,
+ "y": 671.8927326202393,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "c721eaa0.d90778",
+ "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": 1264.00390625,
- "y": 659.00390625,
- "z": "5256b6fe.7fc0a8",
+ "x": 1306.00390625,
+ "y": 691.00390625,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "e64da982.d670b8",
+ "id": "6d89866f.0d32c8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2408.003936767578,
- "y": 711.2539558410645,
- "z": "5256b6fe.7fc0a8",
+ "x": 2450.003936767578,
+ "y": 743.2539558410645,
+ "z": "4de23974.164008",
"wires": [
[
- "a61544d0.afeca8"
+ "e9496ef8.3a3c5"
]
]
},
{
- "id": "15284a02.c01676",
+ "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": 1718.25390625,
- "y": 768.25390625,
- "z": "5256b6fe.7fc0a8",
+ "x": 1760.25390625,
+ "y": 800.25390625,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "3056effb.bf63e",
+ "id": "d98b4681.77ed08",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1580.75390625,
- "y": 768.25390625,
- "z": "5256b6fe.7fc0a8",
+ "x": 1622.75390625,
+ "y": 800.25390625,
+ "z": "4de23974.164008",
"wires": [
[
- "15284a02.c01676"
+ "851fd9bb.09d5f8"
]
]
},
{
- "id": "2a5719f4.0daa06",
+ "id": "8fef3486.f53f48",
"type": "switchNode",
"name": "switch tmp.cidx ",
"xml": "<switch test=\"`$tmp.cidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1426.75390625,
- "y": 768.25390625,
- "z": "5256b6fe.7fc0a8",
+ "x": 1468.75390625,
+ "y": 800.25390625,
+ "z": "4de23974.164008",
"wires": [
[
- "3056effb.bf63e"
+ "d98b4681.77ed08"
]
]
},
{
- "id": "7516e2f4.527d0c",
+ "id": "3dd9973a.4ea7a8",
"type": "comment",
"name": "Delete provided service provided-allotted-resources in mdsal",
"info": "",
"comments": "",
- "x": 775.5039215087891,
- "y": 804.00390625,
- "z": "5256b6fe.7fc0a8",
+ "x": 817.5039215087891,
+ "y": 836.00390625,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "4a21aa00.3b1ac8",
+ "id": "9a1aea32.687248",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1103.5041770935059,
- "y": 1118.7540984153748,
- "z": "5256b6fe.7fc0a8",
+ "x": 1145.5041770935059,
+ "y": 1150.7540984153748,
+ "z": "4de23974.164008",
"wires": [
[
- "30a78dd9.3c8b22"
+ "e406b111.f8cad"
]
]
},
{
- "id": "6019a57.13f705c",
+ "id": "384921c2.c1fd6e",
"type": "other",
"name": "outcome Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1120.5040969848633,
- "y": 1030.7539324760437,
- "z": "5256b6fe.7fc0a8",
+ "x": 1162.5040969848633,
+ "y": 1062.7539324760437,
+ "z": "4de23974.164008",
"wires": [
[
- "949446a8.12d2b8"
+ "a35171cd.d90da"
]
]
},
{
- "id": "949446a8.12d2b8",
+ "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": 1284.3616943359375,
- "y": 1031.1824774742126,
- "z": "5256b6fe.7fc0a8",
+ "x": 1326.3616943359375,
+ "y": 1063.1824774742126,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "f670e307.a2a7a",
+ "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": 1715.7539501190186,
- "y": 1148.753936290741,
- "z": "5256b6fe.7fc0a8",
+ "x": 1757.7539501190186,
+ "y": 1180.753936290741,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "66a217ce.0565f8",
+ "id": "f0b84e69.39376",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1578.2539501190186,
- "y": 1148.753936290741,
- "z": "5256b6fe.7fc0a8",
+ "x": 1620.2539501190186,
+ "y": 1180.753936290741,
+ "z": "4de23974.164008",
"wires": [
[
- "f670e307.a2a7a"
+ "702543f3.ec4a8c"
]
]
},
{
- "id": "e9fadefb.0c149",
+ "id": "9caa2a43.39ddb8",
"type": "switchNode",
"name": "switch tmp.pidx ",
"xml": "<switch test=\"`$tmp.pidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1424.2539501190186,
- "y": 1148.753936290741,
- "z": "5256b6fe.7fc0a8",
+ "x": 1466.2539501190186,
+ "y": 1180.753936290741,
+ "z": "4de23974.164008",
"wires": [
[
- "66a217ce.0565f8"
+ "f0b84e69.39376"
]
]
},
{
- "id": "87f0a9d.62cd658",
+ "id": "e114982a.497cc8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2288.504367828369,
- "y": 1068.7540946006775,
- "z": "5256b6fe.7fc0a8",
+ "x": 2330.504367828369,
+ "y": 1100.7540946006775,
+ "z": "4de23974.164008",
"wires": [
[
- "9a3770db.667c5"
+ "5dc21145.7fddd"
]
]
},
{
- "id": "30ce9227.a6174e",
+ "id": "9af67acf.f5f308",
"type": "set",
"name": "set tmp.pidx",
"xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n",
"comments": "",
- "x": 2356.8404846191406,
- "y": 1203.5101914405823,
- "z": "5256b6fe.7fc0a8",
+ "x": 2398.8404846191406,
+ "y": 1235.5101914405823,
+ "z": "4de23974.164008",
"wires": []
},
{
- "id": "9a3770db.667c5",
+ "id": "5dc21145.7fddd",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2348.582820892334,
- "y": 1139.539580821991,
- "z": "5256b6fe.7fc0a8",
+ "x": 2390.582820892334,
+ "y": 1171.539580821991,
+ "z": "4de23974.164008",
"wires": [
[
- "30ce9227.a6174e"
+ "9af67acf.f5f308"
]
]
},
{
- "id": "d9f8d014.bcccd",
+ "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.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\">\n",
+ "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": 691.2227554321289,
- "y": 1288.754346370697,
- "z": "5256b6fe.7fc0a8",
+ "x": 733.2227554321289,
+ "y": 1320.754346370697,
+ "z": "4de23974.164008",
"wires": [
[
- "5fa2362a.75f678",
- "144dae97.c82161"
+ "ba29c90b.a2ba18",
+ "30824867.291518"
]
]
},
{
- "id": "8b527b2a.81e648",
+ "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": 781.3334197998047,
- "y": 974.333366394043,
- "z": "5256b6fe.7fc0a8",
+ "x": 823.3334197998047,
+ "y": 1006.333366394043,
+ "z": "4de23974.164008",
"wires": [
[
- "9c6dc3c.897554",
- "f96c62b7.b194"
+ "7a941a2c.6b5534",
+ "616b8620.cffa38"
]
]
},
{
- "id": "2676412c.7c20ee",
+ "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": 715.3333587646484,
- "y": 932.3332056999207,
- "z": "5256b6fe.7fc0a8",
+ "x": 757.3333587646484,
+ "y": 964.3332056999207,
+ "z": "4de23974.164008",
"wires": [
[]
]
},
{
- "id": "e2838697.661268",
+ "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": 797.00390625,
- "y": 1179.00390625,
- "z": "5256b6fe.7fc0a8",
+ "x": 839.00390625,
+ "y": 1211.00390625,
+ "z": "4de23974.164008",
"wires": [
[]
]