diff options
author | 2018-10-05 11:29:55 +0530 | |
---|---|---|
committer | 2018-10-05 11:29:55 +0530 | |
commit | d9e26826bff32fdfd92296e2f4b425a81e7ecdf3 (patch) | |
tree | c0bc1573ccdc43aec9848b5754f03a50419bb13f /platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json | |
parent | 351d5315bafe499e9f6904fa51c3b70c13f3cb70 (diff) |
Refactored SOTN and SDWAN DG
Refactored SOTN and SDWAN DG to seperate sub directories for better
maintainability.
Change-Id: I49c57d20fc8fcb7de65d3634bceb691d0b7f80fd
Issue-ID: SDNC-350
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
Former-commit-id: d3d3ce137625a244accf736da3a8f6736b44300e
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json | 656 |
1 files changed, 656 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json new file mode 100644 index 00000000..1a71611e --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json @@ -0,0 +1,656 @@ +[ + { + "id": "a1df0c8c.e610f", + "type": "switchNode", + "name": "switch service-data.vnfs.vnf_length", + "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n", + "comments": "", + "outputs": 1, + "x": 652.5634536743164, + "y": 312.26116919517517, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "a23f9932.76df28", + "eec5abe1.727dc8" + ] + ] + }, + { + "id": "dda3e77b.e1de28", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 114.46875, + "y": 76.9999988079071, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "b55d96f3.653dc8" + ] + ] + }, + { + "id": "b55d96f3.653dc8", + "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": 189.75445556640625, + "y": 117.23811030387878, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "e0c2d3e0.8a2bb" + ] + ] + }, + { + "id": "8ad52b68.cd0138", + "type": "comment", + "name": "wan port-vnf-topology-operation-delete", + "info": "", + "comments": "", + "x": 563.8136672973633, + "y": 150.58639788627625, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "c136d1d8.af3e6", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 191.13541412353516, + "y": 378.6666705608368, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "a72c9897.585208", + "d19a177f.7de988", + "30536e3.568f592", + "a1df0c8c.e610f", + "9db50f7b.a0897", + "4dffba9e.fd0434", + "28632f25.b7972", + "af6ad43e.5c24e8", + "743e7718.e7f968", + "4b8bdd76.d28184", + "cb6608fc.bd5f68" + ] + ] + }, + { + "id": "a23f9932.76df28", + "type": "other", + "name": "outcome Null", + "xml": "<outcome value=''>\n", + "comments": "", + "outputs": 1, + "x": 917.2857666015625, + "y": 294.81679129600525, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "81cc943f.50f958" + ] + ] + }, + { + "id": "81cc943f.50f958", + "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n", + "comments": "", + "x": 1098.2856369018555, + "y": 289.81666922569275, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "eec5abe1.727dc8", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 902.7857666015625, + "y": 346.8167541027069, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "679d4612.15d218" + ] + ] + }, + { + "id": "679d4612.15d218", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1074.785472869873, + "y": 346.8167521953583, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "862951df.5fe1d", + "dc6fa4c3.5ecea8" + ] + ] + }, + { + "id": "dc6fa4c3.5ecea8", + "type": "switchNode", + "name": "switch tmp.vidx ", + "xml": "<switch test=\"`$tmp.vidx`\">\n\n", + "comments": "", + "outputs": 1, + "x": 1249.78564453125, + "y": 365.81667399406433, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "1c173742.b90799" + ] + ] + }, + { + "id": "30536e3.568f592", + "type": "switchNode", + "name": "switch vnf-level-oper-status", + "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n", + "comments": "", + "outputs": 1, + "x": 622.9524536132812, + "y": 386.70563292503357, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "ba7f62e0.c87a8", + "246d8ed1.13b9e2" + ] + ] + }, + { + "id": "ba7f62e0.c87a8", + "type": "outcome", + "name": "outcome PendingDelete", + "xml": "<outcome value='PendingDelete'>\n", + "comments": "", + "outputs": 1, + "x": 913.7857208251953, + "y": 390.81675601005554, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "7fe1211e.ac713" + ] + ] + }, + { + "id": "246d8ed1.13b9e2", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 880.7858581542969, + "y": 442.8168087005615, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "7d27948.1b45c6c" + ] + ] + }, + { + "id": "7d27948.1b45c6c", + "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=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />", + "comments": "", + "x": 1040.2856254577637, + "y": 445.8168077468872, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "9db50f7b.a0897", + "type": "switchNode", + "name": "switch vnf-id", + "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n", + "comments": "", + "outputs": 1, + "x": 588.7857704162598, + "y": 267.81676268577576, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "2d92055a.30ffda" + ] + ] + }, + { + "id": "2d92055a.30ffda", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 786.7858352661133, + "y": 257.81677508354187, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "889ae61d.096b48" + ] + ] + }, + { + "id": "889ae61d.096b48", + "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=\"vnf-request-input.vnf-input-parameters.name is a required input\" />\n", + "comments": "", + "x": 953.2857208251953, + "y": 254.81676936149597, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "862951df.5fe1d", + "type": "for", + "name": "for vidx..service-data.vnfs.vnf[]", + "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1310.2856483459473, + "y": 301.81667017936707, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "91f5b0d9.94102" + ] + ] + }, + { + "id": "91f5b0d9.94102", + "type": "switchNode", + "name": "switch vnf-id found", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n", + "comments": "", + "outputs": 1, + "x": 1566.2856674194336, + "y": 301.81667017936707, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "8dc7c708.bc5718" + ] + ] + }, + { + "id": "8dc7c708.bc5718", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1742.7857208251953, + "y": 304.81667017936707, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "2d4f17e9.19c368" + ] + ] + }, + { + "id": "dd40fac0.73a058", + "type": "set", + "name": "set tmp.vidx and ctx.vnf-data", + "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].vnf-data.`' />\n", + "comments": "", + "x": 2159.785934448242, + "y": 383.8167221546173, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "59a5fc66.f24204", + "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n", + "comments": "", + "x": 1555.285659790039, + "y": 365.81667399406433, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "1c173742.b90799", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>\n", + "comments": "", + "outputs": 1, + "x": 1417.785659790039, + "y": 365.81667399406433, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "59a5fc66.f24204" + ] + ] + }, + { + "id": "a72c9897.585208", + "type": "set", + "name": "set vnfId and vnf-object-path", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", + "comments": "", + "x": 596.8022003173828, + "y": 689.3334522247314, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "d19a177f.7de988", + "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": 545.9133987426758, + "y": 808.8889608383179, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "7fe1211e.ac713", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1111.0921211242676, + "y": 401.14191031455994, + "z": "42785b1.0f2e6a4", + "wires": [ + [] + ] + }, + { + "id": "e0c2d3e0.8a2bb", + "type": "method", + "name": "method sdwan-vnf-topology-operation-device-delete", + "xml": "<method rpc='sdwan-vnf-topology-operation-device-delete' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 195, + "y": 233.26116919517517, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "c136d1d8.af3e6" + ] + ] + }, + { + "id": "4dffba9e.fd0434", + "type": "execute", + "name": "execute requiredParameters", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n", + "comments": "", + "outputs": 1, + "x": 646.2858276367188, + "y": 207.81676173210144, + "z": "42785b1.0f2e6a4", + "wires": [ + [] + ] + }, + { + "id": "7385dfef.35179", + "type": "delete", + "name": "delete wan port instance configuration in AAI", + "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='device' \n key='device.device-id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n", + "comments": "", + "outputs": 1, + "x": 1073.0003051757812, + "y": 744.261435508728, + "z": "42785b1.0f2e6a4", + "wires": [ + [] + ] + }, + { + "id": "3c959d82.f7e672", + "type": "call", + "name": "call sdwan-get-device-param", + "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n", + "comments": "", + "outputs": 1, + "x": 2151.5635147094727, + "y": 328.2611758708954, + "z": "42785b1.0f2e6a4", + "wires": [ + [] + ] + }, + { + "id": "5f3e6fd4.e37e8", + "type": "set", + "name": "set vnf-request-input.", + "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n", + "comments": "", + "x": 2146.923065185547, + "y": 265.81170535087585, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "94ec2391.e8ee4", + "type": "set", + "name": "set tmp.vidx and ctx.vnf-data", + "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n", + "comments": "", + "x": 2174.476776123047, + "y": 219.15406966209412, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "2d4f17e9.19c368", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1912.563331604004, + "y": 306.26116919517517, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "dd40fac0.73a058", + "3c959d82.f7e672", + "5f3e6fd4.e37e8", + "94ec2391.e8ee4" + ] + ] + }, + { + "id": "28632f25.b7972", + "type": "switchNode", + "name": "switch prop.device.sdncCreate", + "xml": "<switch test=\"`$prop.device.sdncCreate`\">\n", + "comments": "", + "outputs": 1, + "x": 597.5636672973633, + "y": 752.2614345550537, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "d02123b.6bfe7e" + ] + ] + }, + { + "id": "d02123b.6bfe7e", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 804.5635223388672, + "y": 749.2612714767456, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "7385dfef.35179" + ] + ] + }, + { + "id": "af6ad43e.5c24e8", + "type": "set", + "name": "set prop.vnfNewidx", + "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n", + "comments": "", + "x": 589.0000381469727, + "y": 454.0000276565552, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "743e7718.e7f968", + "type": "for", + "name": "for lidx..service-data.vnfs.vnf[]", + "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n", + "comments": "", + "outputs": 1, + "x": 615.9999580383301, + "y": 518.0000123977661, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "25a69c7c.cd2204" + ] + ] + }, + { + "id": "25a69c7c.cd2204", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 859.9999389648438, + "y": 543.9999718666077, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "2e7532f9.d7b9be" + ] + ] + }, + { + "id": "2e7532f9.d7b9be", + "type": "switchNode", + "name": "switch vnf-id found", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n", + "comments": "", + "outputs": 1, + "x": 1051.999885559082, + "y": 553.0000162124634, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "fb34ff49.abebe" + ] + ] + }, + { + "id": "4b8bdd76.d28184", + "type": "set", + "name": "set new vnf length", + "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n", + "comments": "", + "x": 582.1013412475586, + "y": 568.8043041229248, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "fb34ff49.abebe", + "type": "outcomeFalse", + "name": "false", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 1237.999900817871, + "y": 536.9999027252197, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "aa789605.e97ae8" + ] + ] + }, + { + "id": "aa789605.e97ae8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1388.9998245239258, + "y": 537.9999389648438, + "z": "42785b1.0f2e6a4", + "wires": [ + [ + "79843b9d.c445e4", + "fcd82b9e.5e0628" + ] + ] + }, + { + "id": "79843b9d.c445e4", + "type": "set", + "name": "set vnf data", + "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n", + "comments": "", + "x": 1553.9999198913574, + "y": 513.0000944137573, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "fcd82b9e.5e0628", + "type": "set", + "name": "set prop.vnfNewidx", + "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n", + "comments": "", + "x": 1575.9999198913574, + "y": 569.0000581741333, + "z": "42785b1.0f2e6a4", + "wires": [] + }, + { + "id": "cb6608fc.bd5f68", + "type": "set", + "name": "Remove vnf from ServiceData", + "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n", + "comments": "", + "x": 621, + "y": 630, + "z": "42785b1.0f2e6a4", + "wires": [] + } +] |