diff options
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json | 835 |
1 files changed, 380 insertions, 455 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json index ca5ca898..3204bd86 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json @@ -1,20 +1,20 @@ [ { - "id": "40d74cd7.316a14", + "id": "4b30503e.867f2", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 101, - "y": 40, - "z": "344982e2.7dca5e", + "x": 116.00390625, + "y": 47.999999046325684, + "z": "5c846185.ea888", "wires": [ [ - "f8cb9b5e.038868" + "37e77520.ee3cba" ] ] }, { - "id": "f8cb9b5e.038868", + "id": "37e77520.ee3cba", "type": "service-logic", "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", @@ -22,992 +22,917 @@ "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": 313.00000381469727, - "y": 112.0000171661377, - "z": "344982e2.7dca5e", + "x": 328.00391006469727, + "y": 120.00001621246338, + "z": "5c846185.ea888", "wires": [ [ - "a82adde1.bdf47" + "5677b71b.5fb328" ] ] }, { - "id": "a82adde1.bdf47", + "id": "5677b71b.5fb328", "type": "method", "name": "sotn-attachment-topology-operation-delete", "xml": "<method rpc='sotn-attachment-topology-operation-delete' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 301.0001220703125, - "y": 200, - "z": "344982e2.7dca5e", + "x": 316.0040283203125, + "y": 207.99999904632568, + "z": "5c846185.ea888", "wires": [ [ - "949cc74.207fe38" + "9d2f20f7.d7e57" ] ] }, { - "id": "949cc74.207fe38", + "id": "9d2f20f7.d7e57", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 317.0001220703125, - "y": 755.0002446174622, - "z": "344982e2.7dca5e", + "x": 332.0040283203125, + "y": 763.0002436637878, + "z": "5c846185.ea888", "wires": [ [ - "e8c0ed11.a9ee2", - "acbb646b.d77cc8", - "fd6eb40b.cdb328", - "9e6bdd2.2396b2", - "b1c2a911.f82f08", - "90800e39.89524", - "3735d68f.ab66da", - "c9fb1b0b.8e8c48", - "3438f4ce.6e83dc", - "8443751c.74bd98", - "4de78821.6f3c58", - "bcd52af9.df1738", - "9273699a.4d08c8", - "85ce8a7e.f20d58" + "ed51ef95.ae803", + "88df7f3c.6dcf", + "3f1b61e1.0ac49e", + "e2fe8873.3a2848", + "d8fe29bc.d00d68", + "4903f6e1.1eeb68", + "f2266740.3e9f68", + "a2240e65.e6034", + "1742ced6.939601", + "8b97d92c.0d63e8", + "4eb557ec.96c928", + "608b88dd.e3a5a8", + "12cd17c5.66c948", + "9eb3dfae.f51c4", + "cf61b833.d96918" ] ] }, { - "id": "e8c0ed11.a9ee2", + "id": "ed51ef95.ae803", "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", + "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": 713.9935607910156, - "y": 153.9934868812561, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 728.9974670410156, + "y": 161.9934859275818, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "43da58d7.610758", + "id": "d21298fe.289dd8", "type": "comment", "name": "set tmp ar-id to fetch resource from MDSAL", "info": "", "comments": "", - "x": 742.9538726806641, - "y": 118.02528285980225, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 757.9577789306641, + "y": 126.02528190612793, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "acbb646b.d77cc8", + "id": "88df7f3c.6dcf", "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": 667.9934997558594, - "y": 246.99349212646484, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 682.9974060058594, + "y": 254.99349117279053, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "90800e39.89524", + "id": "d8fe29bc.d00d68", "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": 674.2553901672363, - "y": 334.6602210998535, - "z": "344982e2.7dca5e", + "x": 689.2592964172363, + "y": 342.6602201461792, + "z": "5c846185.ea888", "wires": [ - [ - - ] + [] ] }, { - "id": "fd6eb40b.cdb328", + "id": "3f1b61e1.0ac49e", "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": 706.2554168701172, - "y": 422.66020250320435, - "z": "344982e2.7dca5e", + "x": 721.2593231201172, + "y": 430.66020154953003, + "z": "5c846185.ea888", "wires": [ - [ - - ] + [] ] }, { - "id": "1905b8ab.ca3847", + "id": "c43edf3b.dcbac", "type": "comment", "name": "Used for setting output to API Handler", "info": "", "comments": "", - "x": 721.9935302734375, - "y": 213.993501663208, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 736.9974365234375, + "y": 221.9935007095337, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "472b5b53.359df4", + "id": "10733905.283097", "type": "comment", "name": "Obtain different URL, template location etc", "info": "For saving resource information to MDSAL & for AAI", "comments": "", - "x": 739.9934959411621, - "y": 299.8823823928833, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 754.9974021911621, + "y": 307.882381439209, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "e758b3f.c00a45", + "id": "62545852.867ec8", "type": "comment", "name": "Used to Get AR by id to MDSAL, same as self-link", "info": "", "comments": "", - "x": 765.9935150146484, - "y": 386.8823413848877, - "z": "344982e2.7dca5e", - "wires": [ - - ] - }, - { - "id": "9e6bdd2.2396b2", - "type": "get-resource", - "name": "get-resource parent-service-data", - "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='services/service/$tmp.ar.parent-service-instance-id/service-data' pfx='mdsal-psd' >\n", - "comments": "", - "outputs": 1, - "x": 713.0003890991211, - "y": 912.531683921814, - "z": "344982e2.7dca5e", - "wires": [ - [ - "376a6931.f70fe6", - "344c3669.3f542a" - ] - ] + "x": 780.9974212646484, + "y": 394.8823404312134, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "7df855f0.47079c", + "id": "ed0a2645.640ef8", "type": "comment", "name": "GET parent-service-data from mdsal to check existence of other End point", "info": "", "comments": "", - "x": 833.0003280639648, - "y": 841.5316228866577, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 848.0042343139648, + "y": 849.5316219329834, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "3af49e65.969612", + "id": "a950273c.9f66a8", "type": "for", - "name": "for pidx..mdsal-psd.provided-allotted-resources.provided-allotted-resource[]", - "xml": "<for index='pidx' start='0' end='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`' >\n", + "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": 1644.1849060058594, - "y": 1017.0042171478271, - "z": "344982e2.7dca5e", + "x": 1676.1888427734375, + "y": 1083.0042576789856, + "z": "5c846185.ea888", "wires": [ [ - "c4ca63d9.fd59d" + "e88ff344.a2353" ] ] }, { - "id": "b1c2a911.f82f08", + "id": "e2fe8873.3a2848", "type": "switchNode", - "name": "switch mdsal-psd.provided-allotted-resources_length", - "xml": "<switch test='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`'>\n", + "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": 772.1841125488281, - "y": 1001.7180595397949, - "z": "344982e2.7dca5e", + "x": 827.1882019042969, + "y": 1089.7180404663086, + "z": "5c846185.ea888", "wires": [ [ - "af927d7b.49dce", - "fc0125f.d3b43d8" + "7dbb67ae.29f3f8", + "dea01091.d8b15" ] ] }, { - "id": "97446eab.09441", + "id": "2fdb27fa.f6ac38", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1258.4543991088867, - "y": 1057.7015590667725, - "z": "344982e2.7dca5e", + "x": 1277.4583644866943, + "y": 1129.7015261650085, + "z": "5c846185.ea888", "wires": [ [ - "3af49e65.969612", - "7aae58e1.7b18c8" + "a950273c.9f66a8", + "19cf7741.613499" ] ] }, { - "id": "c4ca63d9.fd59d", + "id": "e88ff344.a2353", "type": "switchNode", "name": "switch allotted-resource-id", - "xml": "<switch test=\"`$mdsal-psd.provided-allotted-resources.provided-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n", + "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": 2063.2962188720703, - "y": 1017.0040645599365, - "z": "344982e2.7dca5e", + "x": 2126.300048828125, + "y": 1081.0041155815125, + "z": "5c846185.ea888", "wires": [ [ - "637d9cfe.cdf994" + "c87ef19e.e93cf" ] ] }, { - "id": "3735d68f.ab66da", + "id": "4903f6e1.1eeb68", "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": 723.9687118530273, - "y": 877.0000677108765, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 738.9726181030273, + "y": 885.0000667572021, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "376a6931.f70fe6", + "id": "9023749d.2a65a8", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 959.9687118530273, - "y": 905.0000677108765, - "z": "344982e2.7dca5e", + "x": 1118.972900390625, + "y": 963.0001816749573, + "z": "5c846185.ea888", "wires": [ [ - "eee1cf23.532fa" + "85ec274.d7380d8" ] ] }, { - "id": "344c3669.3f542a", + "id": "13a32c23.faaff4", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 951.8205146789551, - "y": 940.0661525726318, - "z": "344982e2.7dca5e", + "x": 1110.8247032165527, + "y": 998.0662665367126, + "z": "5c846185.ea888", "wires": [ [ - "38d98c77.5a5dc4" + "61460fc5.a222" ] ] }, { - "id": "38d98c77.5a5dc4", + "id": "61460fc5.a222", "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": 1126.9692001342773, - "y": 936.3335027694702, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 1285.973388671875, + "y": 994.333616733551, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "eee1cf23.532fa", + "id": "85ec274.d7380d8", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1110.9687118530273, - "y": 903.0000677108765, - "z": "344982e2.7dca5e", + "x": 1269.972900390625, + "y": 961.0001816749573, + "z": "5c846185.ea888", "wires": [ - [ - - ] + [] ] }, { - "id": "fd82a90d.c15198", + "id": "2a315011.b7952", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 952.7306861877441, - "y": 1186.9527963399887, - "z": "344982e2.7dca5e", + "x": 972.7346687316895, + "y": 1278.9528144598007, + "z": "5c846185.ea888", "wires": [ [ - "a5f6bd09.ffa1d" + "398739b4.01afc6" ] ] }, { - "id": "a5f6bd09.ffa1d", + "id": "398739b4.01afc6", "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": 1119.254566192627, - "y": 1198.5718673467636, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 1139.2585487365723, + "y": 1290.5718854665756, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "399e5f25.1d673", + "id": "2e78e3b1.a4cadc", "type": "failure", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 959.8259735107422, - "y": 1219.7147639989853, - "z": "344982e2.7dca5e", + "x": 979.8299560546875, + "y": 1311.7147821187973, + "z": "5c846185.ea888", "wires": [ [ - "a5f6bd09.ffa1d" + "398739b4.01afc6" ] ] }, { - "id": "c1db391c.684108", + "id": "3f6ffe96.e0bda2", "type": "comment", "name": "TODO: Rework after confirmation from AAI", "info": "", "comments": "", - "x": 1084.137351989746, - "y": 1137.8731961250305, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 1104.1413345336914, + "y": 1229.8732142448425, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "c9fb1b0b.8e8c48", + "id": "f2266740.3e9f68", "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": 685.5460739135742, - "y": 1150.8276634216309, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 705.5500564575195, + "y": 1242.8276815414429, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "3438f4ce.6e83dc", + "id": "a2240e65.e6034", "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": 654.9591789245605, - "y": 1251.4434180259705, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 674.9631614685059, + "y": 1343.4434361457825, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "8443751c.74bd98", + "id": "1742ced6.939601", "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": 739.6666641235352, - "y": 511.3333625793457, - "z": "344982e2.7dca5e", + "x": 754.6705703735352, + "y": 519.3333616256714, + "z": "5c846185.ea888", "wires": [ [ - "800033f.1bbe0d", - "b5b39fe4.c4cab", - "11a37ef9.11cf81" + "597f085a.f89fd8", + "c3fb7b14.ff60a8", + "e4c15d29.0e847" ] ] }, { - "id": "800033f.1bbe0d", + "id": "597f085a.f89fd8", "type": "not-found", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 1008.3080406188965, - "y": 562.6647743210196, - "z": "344982e2.7dca5e", + "x": 994.3120727539062, + "y": 559.6649098396301, + "z": "5c846185.ea888", "wires": [ [ - "84c30bf1.79ce98" + "67fdc38f.4e65cc" ] ] }, { - "id": "b5b39fe4.c4cab", + "id": "c3fb7b14.ff60a8", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 999.3080902099609, - "y": 531.1648000702262, - "z": "344982e2.7dca5e", + "x": 991.3120727539062, + "y": 516.1649074554443, + "z": "5c846185.ea888", "wires": [ [ - "84c30bf1.79ce98" + "67fdc38f.4e65cc" ] ] }, { - "id": "11a37ef9.11cf81", + "id": "e4c15d29.0e847", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1003.0581283569336, - "y": 501.52190494537354, - "z": "344982e2.7dca5e", + "x": 998.0621528625488, + "y": 475.52200269699097, + "z": "5c846185.ea888", "wires": [ [ - "b7efe17a.65f42" + "50ef93e6.56ad3c" ] ] }, { - "id": "84c30bf1.79ce98", + "id": "67fdc38f.4e65cc", "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": 1169.0581283569336, - "y": 531.9148239120841, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 1150.062240600586, + "y": 537.9149079322815, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "b7efe17a.65f42", + "id": "50ef93e6.56ad3c", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1144.714096069336, - "y": 497.71407413482666, - "z": "344982e2.7dca5e", + "x": 1135.7180843353271, + "y": 475.7141823768616, + "z": "5c846185.ea888", "wires": [ - [ - - ] + [] ] }, { - "id": "67cf0e71.e946f", + "id": "c4e5f3c2.475ed", "type": "comment", "name": "Delete Allotted Resource", "info": "", "comments": "", - "x": 687.0000457763672, - "y": 480.0000286102295, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 702.0039520263672, + "y": 488.0000276565552, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "c1be7c26.8538e", + "id": "de43dad6.d53448", "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": 1637.00390625, - "y": 717.00390625, - "z": "344982e2.7dca5e", + "x": 1652.0078125, + "y": 725.0039052963257, + "z": "5c846185.ea888", "wires": [ [ - "b702145d.d12dd8" + "584a4c5d.3639a4" ] ] }, { - "id": "4de78821.6f3c58", + "id": "8b97d92c.0d63e8", "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": 790.0032920837402, - "y": 677.71790766716, - "z": "344982e2.7dca5e", + "x": 805.0071983337402, + "y": 685.7179067134857, + "z": "5c846185.ea888", "wires": [ [ - "9fcadeb2.7ddd3", - "f277a541.5d4da8" + "3433f8dc.aa0358", + "d35e52b4.a3e33" ] ] }, { - "id": "9fcadeb2.7ddd3", + "id": "3433f8dc.aa0358", "type": "other", "name": "outcome Null", "xml": "<outcome value=''>\n", "comments": "", "outputs": 1, - "x": 1114.1461563110352, - "y": 660.5753421783447, - "z": "344982e2.7dca5e", + "x": 1129.1500625610352, + "y": 668.5753412246704, + "z": "5c846185.ea888", "wires": [ [ - "6ed5686.b9f1498" + "e9cfa004.3e1db" ] ] }, { - "id": "f277a541.5d4da8", + "id": "d35e52b4.a3e33", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 1100.1461791992188, - "y": 723.5753309726715, - "z": "344982e2.7dca5e", + "x": 1115.1500854492188, + "y": 731.5753300189972, + "z": "5c846185.ea888", "wires": [ [ - "a167b159.d1f0a" + "27f778ec.7e6108" ] ] }, { - "id": "a167b159.d1f0a", + "id": "27f778ec.7e6108", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1260.2732696533203, - "y": 721.7013075351715, - "z": "344982e2.7dca5e", + "x": 1275.2771759033203, + "y": 729.7013065814972, + "z": "5c846185.ea888", "wires": [ [ - "c1be7c26.8538e", - "a14b9903.574488" + "de43dad6.d53448", + "c89d5c3.bdcfea" ] ] }, { - "id": "bcd52af9.df1738", + "id": "4eb557ec.96c928", "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": 746.8606262207031, - "y": 748.28955078125, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 761.8645324707031, + "y": 756.2895498275757, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "b702145d.d12dd8", + "id": "584a4c5d.3639a4", "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": 2075.1155166625977, - "y": 713.0040283203125, - "z": "344982e2.7dca5e", + "x": 2090.1194229125977, + "y": 721.0040273666382, + "z": "5c846185.ea888", "wires": [ [ - "5f8fbf17.00afa" + "c6c0a37e.c2dab" ] ] }, { - "id": "5f8fbf17.00afa", + "id": "c6c0a37e.c2dab", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 2270.925338745117, - "y": 712.4683527946472, - "z": "344982e2.7dca5e", + "x": 2285.929244995117, + "y": 720.4683518409729, + "z": "5c846185.ea888", "wires": [ [ - "c51401e.55444" + "980eb324.1f10c" ] ] }, { - "id": "43e9034f.c4ea2c", + "id": "b3956a96.0877a8", "type": "set", "name": "set tmp.cidx", "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n", "comments": "", - "x": 2582.26171875, - "y": 672.2246131896973, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 2601.2657775878906, + "y": 721.2246098518372, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "cdccd47e.bede38", + "id": "f7015fdd.73e0f", "type": "comment", "name": "Delete consumed service consumed-allotted-resources in mdsal", "info": "", "comments": "", - "x": 801.0045623779297, - "y": 610.0038724095793, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 816.0084686279297, + "y": 618.003871455905, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "d296b738.04dcc8", + "id": "1b9b1c3c.959814", "type": "comment", "name": "This set resource will be deleted in MDSAL by provider code", "info": "", "comments": "", - "x": 791.337345123291, - "y": 714.781964302063, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 806.341251373291, + "y": 722.7819633483887, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "8922e52b.01caf8", + "id": "4ceb1c8.5e02ee4", "type": "comment", "name": "Obtain the index of conusumed AR", "info": "", "comments": "", - "x": 713.7817535400391, - "y": 641.8927326202393, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 728.7856597900391, + "y": 649.8927316665649, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "6ed5686.b9f1498", + "id": "e9cfa004.3e1db", "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": 1276.00390625, - "y": 661.00390625, - "z": "344982e2.7dca5e", - "wires": [ - - ] - }, - { - "id": "e0029499.0fe808", - "type": "break", - "name": "break", - "xml": "<break>\n", - "comments": "", - "x": 2574.003875732422, - "y": 732.2540216445923, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 1291.0078125, + "y": 669.0039052963257, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "c51401e.55444", + "id": "980eb324.1f10c", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 2420.003936767578, - "y": 713.2539558410645, - "z": "344982e2.7dca5e", + "x": 2435.007843017578, + "y": 721.2539548873901, + "z": "5c846185.ea888", "wires": [ [ - "43e9034f.c4ea2c", - "e0029499.0fe808" + "b3956a96.0877a8" ] ] }, { - "id": "f81fb204.590a8", + "id": "157c6d55.8b7213", "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": 1730.25390625, - "y": 770.25390625, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 1745.2578125, + "y": 778.2539052963257, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "1a2d8fc2.146df", + "id": "2c9e34da.91de0c", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>\n", "comments": "", "outputs": 1, - "x": 1592.75390625, - "y": 770.25390625, - "z": "344982e2.7dca5e", + "x": 1607.7578125, + "y": 778.2539052963257, + "z": "5c846185.ea888", "wires": [ [ - "f81fb204.590a8" + "157c6d55.8b7213" ] ] }, { - "id": "a14b9903.574488", + "id": "c89d5c3.bdcfea", "type": "switchNode", "name": "switch tmp.cidx ", "xml": "<switch test=\"`$tmp.cidx`\">\n\n", "comments": "", "outputs": 1, - "x": 1438.75390625, - "y": 770.25390625, - "z": "344982e2.7dca5e", + "x": 1453.7578125, + "y": 778.2539052963257, + "z": "5c846185.ea888", "wires": [ [ - "1a2d8fc2.146df" + "2c9e34da.91de0c" ] ] }, { - "id": "a2784c5c.f26de", + "id": "c4252e31.dbb43", "type": "comment", "name": "Delete provided service provided-allotted-resources in mdsal", "info": "", "comments": "", - "x": 787.5039215087891, - "y": 806.00390625, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 802.5078277587891, + "y": 814.0039052963257, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "fc0125f.d3b43d8", + "id": "dea01091.d8b15", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 1081.5039596557617, - "y": 1054.7539730072021, - "z": "344982e2.7dca5e", + "x": 1130.5080833435059, + "y": 1128.7540974617004, + "z": "5c846185.ea888", "wires": [ [ - "97446eab.09441" + "2fdb27fa.f6ac38" ] ] }, { - "id": "af927d7b.49dce", + "id": "7dbb67ae.29f3f8", "type": "other", "name": "outcome Null", "xml": "<outcome value=''>\n", "comments": "", "outputs": 1, - "x": 1093.5038833618164, - "y": 991.7539174556732, - "z": "344982e2.7dca5e", + "x": 1147.5080032348633, + "y": 1040.7539315223694, + "z": "5c846185.ea888", "wires": [ [ - "29d2e8ba.860218" + "f54472a.345109" ] ] }, { - "id": "29d2e8ba.860218", + "id": "f54472a.345109", "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": 1255.3616333007812, - "y": 992.1824815273285, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 1311.3656005859375, + "y": 1041.1824765205383, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "8fbe7fb5.2044c", + "id": "e1824da6.1f214", "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": 1752.75390625, - "y": 1088.75390625, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 1742.7578563690186, + "y": 1158.7539353370667, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "99d40761.083518", + "id": "8205df8d.8ddee", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>\n", "comments": "", "outputs": 1, - "x": 1615.25390625, - "y": 1088.75390625, - "z": "344982e2.7dca5e", + "x": 1605.2578563690186, + "y": 1158.7539353370667, + "z": "5c846185.ea888", "wires": [ [ - "8fbe7fb5.2044c" + "e1824da6.1f214" ] ] }, { - "id": "7aae58e1.7b18c8", + "id": "19cf7741.613499", "type": "switchNode", "name": "switch tmp.pidx ", "xml": "<switch test=\"`$tmp.pidx`\">\n\n", "comments": "", "outputs": 1, - "x": 1461.25390625, - "y": 1088.75390625, - "z": "344982e2.7dca5e", + "x": 1451.2578563690186, + "y": 1158.7539353370667, + "z": "5c846185.ea888", "wires": [ [ - "99d40761.083518" + "8205df8d.8ddee" ] ] }, { - "id": "637d9cfe.cdf994", + "id": "c87ef19e.e93cf", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 2262.503963470459, - "y": 1014.7539739608765, - "z": "344982e2.7dca5e", + "x": 2315.508274078369, + "y": 1078.7540936470032, + "z": "5c846185.ea888", "wires": [ [ - "240168eb.ef4528" + "27e8796d.045376" ] ] }, { - "id": "fb4a1e64.0992d", + "id": "33e9010b.6c835e", "type": "set", "name": "set tmp.pidx", "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n", "comments": "", - "x": 2580.8404235839844, - "y": 973.5101690292358, - "z": "344982e2.7dca5e", - "wires": [ - - ] - }, - { - "id": "a63547e2.d5edc8", - "type": "break", - "name": "break", - "xml": "<break>\n", - "comments": "", - "x": 2572.5825805664062, - "y": 1033.5395774841309, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 2383.8443908691406, + "y": 1213.510190486908, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "240168eb.ef4528", + "id": "27e8796d.045376", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 2418.5826416015625, - "y": 1014.539511680603, - "z": "344982e2.7dca5e", + "x": 2375.586727142334, + "y": 1149.5395798683167, + "z": "5c846185.ea888", "wires": [ [ - "fb4a1e64.0992d", - "a63547e2.d5edc8" + "33e9010b.6c835e" ] ] }, { - "id": "9273699a.4d08c8", + "id": "608b88dd.e3a5a8", "type": "set", "name": "set provided allotted resources for deletion", - "xml": "<set>\n<parameter name=\"service-data.provided-allotted-resources.consumed-allotted-resource[$pidx].\" value=\"\" />\n<parameter name='service-data.provided-allotted-resources.consumed-allotted-resource_length' value='`$service-data.provided-allotted-resources.consumed-allotted-resource_length - 1`' />\n\n", + "xml": "<set>\n<parameter name=\"service-data.provided-allotted-resources.consumed-allotted-resource[$pidx].\" value=\"\" />\n<parameter name=\"service-data.provided-allotted-resources.consumed-allotted-resource_length\" value='`$service-data.provided-allotted-resources.consumed-allotted-resource_length - 1`' />\n\n", "comments": "", - "x": 741.0039215087891, - "y": 1052.003957748413, - "z": "344982e2.7dca5e", - "wires": [ - - ] + "x": 761.0079040527344, + "y": 1144.003975868225, + "z": "5c846185.ea888", + "wires": [] }, { - "id": "85ce8a7e.f20d58", + "id": "12cd17c5.66c948", "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", "comments": "", "outputs": 1, - "x": 698.2226791381836, - "y": 1206.7543272972107, - "z": "344982e2.7dca5e", + "x": 718.2266616821289, + "y": 1298.7543454170227, + "z": "5c846185.ea888", + "wires": [ + [ + "2a315011.b7952", + "2e78e3b1.a4cadc" + ] + ] + }, + { + "id": "cf61b833.d96918", + "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": 808.3373260498047, + "y": 984.3333654403687, + "z": "5c846185.ea888", "wires": [ [ - "fd82a90d.c15198", - "399e5f25.1d673" + "9023749d.2a65a8", + "13a32c23.faaff4" ] ] + }, + { + "id": "9eb3dfae.f51c4", + "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": 742.3372650146484, + "y": 942.3332047462463, + "z": "5c846185.ea888", + "wires": [ + [] + ] } -] +]
\ No newline at end of file |