aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-07-27 20:51:16 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-27 20:51:16 +0000
commitcf7061dedbb8318083cb9519295419c479391915 (patch)
tree302dbcf41dcf882255ce4e2875e6751d06d63303 /platform-logic
parentba65b682872d5ac1082ae2c996be10e969465cd2 (diff)
parent2e7e3398bca15dfcda1dc6978b9a390bf7202b45 (diff)
Merge "Remove test for Active on Delete"
Former-commit-id: b0e7aed1ffa2a4cdbcc60053532a1f265022146d
Diffstat (limited to 'platform-logic')
-rw-r--r--platform-logic/vnfapi/src/main/json/VNF-API_vnf-topology-delete.json535
-rw-r--r--platform-logic/vnfapi/src/main/xml/VNF-API_vnf-topology-delete.xml10
2 files changed, 5 insertions, 540 deletions
diff --git a/platform-logic/vnfapi/src/main/json/VNF-API_vnf-topology-delete.json b/platform-logic/vnfapi/src/main/json/VNF-API_vnf-topology-delete.json
index 3ca77cc2..62a83562 100644
--- a/platform-logic/vnfapi/src/main/json/VNF-API_vnf-topology-delete.json
+++ b/platform-logic/vnfapi/src/main/json/VNF-API_vnf-topology-delete.json
@@ -1,534 +1 @@
-[
- {
- "id": "708f9f60.b1b",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
- "comments": "",
- "x": 425.4320831298828,
- "y": 578.3055973052979,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "237e95c1.a3bd4a",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 202.4320297241211,
- "y": 171.8888864517212,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "989753b1.14334",
- "708f9f60.b1b",
- "af6f4fd2.ed4a",
- "edddc577.9baf38",
- "5e0a89d0.58c1a8",
- "8e21b6e.34d7548",
- "19c37308.a9d61d",
- "d46e73ef.6e8c1"
- ]
- ]
- },
- {
- "id": "989753b1.14334",
- "type": "set",
- "name": "set: order-status = Deleted",
- "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Deleted\"/>",
- "comments": "",
- "x": 466.4320831298828,
- "y": 405.30559730529785,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "39154674.c0751a",
- "type": "method",
- "name": "method vnf-topology-delete",
- "xml": "<method rpc='vnf-topology-delete' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 234.09871673583984,
- "y": 121.05555057525635,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "237e95c1.a3bd4a"
- ]
- ]
- },
- {
- "id": "33be7113.0fa75e",
- "type": "service-logic",
- "name": "VNF-API ${project.version}",
- "module": "VNF-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='VNF-API' version='${project.version}'>",
- "outputs": 1,
- "x": 350.7653503417969,
- "y": 69.05556106567383,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "39154674.c0751a"
- ]
- ]
- },
- {
- "id": "fb046bf4.0e07e8",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 140.9320297241211,
- "y": 68.88888645172119,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "33be7113.0fa75e"
- ]
- ]
- },
- {
- "id": "14ee4185.d94a2e",
- "type": "other",
- "name": "false",
- "xml": "<outcome value='false'>",
- "comments": "",
- "outputs": 1,
- "x": 1129.356357574463,
- "y": 253.3510227203369,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "95ad750b.27f1e8"
- ]
- ]
- },
- {
- "id": "95ad750b.27f1e8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
- "comments": "",
- "x": 1281.6894874572754,
- "y": 253.35108375549316,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "5e0a89d0.58c1a8",
- "type": "set",
- "name": "set: last-action ",
- "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
- "comments": "",
- "x": 427.68968200683594,
- "y": 448.8511905670166,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "af6f4fd2.ed4a",
- "type": "switchNode",
- "name": "switch:vnf-id config == input",
- "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
- "comments": "",
- "outputs": 1,
- "x": 471.575927734375,
- "y": 171.37643146514893,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "fd98c370.2db85"
- ]
- ]
- },
- {
- "id": "fd98c370.2db85",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 673.0304870605469,
- "y": 171.55825901031494,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "957a2f6d.be384"
- ]
- ]
- },
- {
- "id": "957a2f6d.be384",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='vnf-id not found'/>",
- "comments": "",
- "x": 836.6214065551758,
- "y": 171.71735954284668,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "edddc577.9baf38",
- "type": "set",
- "name": "set: last-order-status = order-status",
- "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
- "comments": "",
- "x": 492.82603454589844,
- "y": 364.04314613342285,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "8e21b6e.34d7548",
- "type": "set",
- "name": "Clear vnf topology",
- "xml": "<set>\n\t<parameter name=\"service-data.\" value=\"\" /> \n",
- "comments": "",
- "x": 436.82603454589844,
- "y": 489.04314613342285,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "d113d476.f18958",
- "type": "switchNode",
- "name": "switch: order-status = Active",
- "xml": "<switch test=\"`$service-data.oper-status.order-status == Active`\">",
- "comments": "",
- "outputs": 1,
- "x": 927.5392570495605,
- "y": 253.65082359313965,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "14ee4185.d94a2e"
- ]
- ]
- },
- {
- "id": "d46e73ef.6e8c1",
- "type": "set",
- "name": "Set final indicator to Y",
- "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
- "comments": "",
- "x": 448.14640045166016,
- "y": 534.2460708618164,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "19c37308.a9d61d",
- "type": "switchNode",
- "name": "switch: INPUT aic-cloud-region",
- "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.aic-cloud-region`\">",
- "comments": "",
- "outputs": 1,
- "x": 480.4320831298828,
- "y": 253.97222518920898,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "2a5a8a8e.704016"
- ]
- ]
- },
- {
- "id": "a7341ebe.65182",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "outputs": 1,
- "x": 712.1820793151855,
- "y": 301.6150789260864,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "707c532.d07baac"
- ]
- ]
- },
- {
- "id": "707c532.d07baac",
- "type": "switchNode",
- "name": "switch: INPUT aic-clli",
- "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.aic-clli`\">",
- "comments": "",
- "outputs": 1,
- "x": 909.1821212768555,
- "y": 301.72224712371826,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "e4a6dc7f.9a579",
- "75bd2a98.3f43e4"
- ]
- ]
- },
- {
- "id": "2a5a8a8e.704016",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 711.6821403503418,
- "y": 253.72223949432373,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "d113d476.f18958"
- ]
- ]
- },
- {
- "id": "e4a6dc7f.9a579",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "outputs": 1,
- "x": 1104.1820678710938,
- "y": 302.4722204208374,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "6afa8d4b.3fc5e4"
- ]
- ]
- },
- {
- "id": "6afa8d4b.3fc5e4",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Either aic-cloud-region or aic-clli must be present'/>",
- "comments": "",
- "x": 1276.6820678710938,
- "y": 302.9722204208374,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "75bd2a98.3f43e4",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1105.4320678710938,
- "y": 344.9722204208374,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "ea02cba4.399b88"
- ]
- ]
- },
- {
- "id": "a2aea115.0a314",
- "type": "save",
- "name": "delete generic-vnf-l3-network",
- "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" \n\tresource=\"generic-vnf-l3-network\" \n\tkey=\"DELETE FROM GENERIC_VNF_L3_NETWORK WHERE vnf_id = $service-data.vnf-id\" \n\tforce=\"true\" >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1227.9320983886719,
- "y": 467.472243309021,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "f95d56cc.7fed28"
- ]
- ]
- },
- {
- "id": "6635778e.a76f48",
- "type": "save",
- "name": "delete GammaResource: generic-vnf",
- "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" \n\tresource=\"generic-vnf\" \n\tkey=\"DELETE FROM GENERIC_VNF where vnf_id = $service-data.vnf-id\" \n\tlocal-only=\"true\" \n\tforce=\"true\" >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1251.5912628173828,
- "y": 553.8435049057007,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "f95d56cc.7fed28"
- ]
- ]
- },
- {
- "id": "7f88cb67.0cb8a4",
- "type": "save",
- "name": "delete generic-vnf-vserver",
- "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" \n\tresource=\"generic-vnf-vserver\" \n\tkey=\"DELETE FROM GENERIC_VNF_VSERVER where vnf_id = $service-data.vnf-id\" \n\tforce=\"true\" >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1219.3412628173828,
- "y": 508.9267873764038,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "f95d56cc.7fed28"
- ]
- ]
- },
- {
- "id": "7a91b73a.5b45a8",
- "type": "switchNode",
- "name": "switch: order-status = PendingDelete",
- "xml": "<switch test=\"'$service-data.oper-status.order-status == PendingDelete'\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
- "comments": "",
- "outputs": 1,
- "x": 1251.1820831298828,
- "y": 425.72222805023193,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "77eb7904.f9f168"
- ]
- ]
- },
- {
- "id": "77eb7904.f9f168",
- "type": "other",
- "name": "false",
- "xml": "<outcome value='false'>",
- "comments": "",
- "outputs": 1,
- "x": 1480.5154571533203,
- "y": 426.0555410385132,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "4fba8967.330558"
- ]
- ]
- },
- {
- "id": "4fba8967.330558",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
- "comments": "",
- "x": 1632.8485870361328,
- "y": 426.05560207366943,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "ea02cba4.399b88",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 997.9320678710938,
- "y": 425.9722204208374,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "a2aea115.0a314",
- "6635778e.a76f48",
- "7f88cb67.0cb8a4",
- "7b46fa5d.f08144"
- ]
- ]
- },
- {
- "id": "f95d56cc.7fed28",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1514.1820678710938,
- "y": 508.4722204208374,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "640275aa.06b0bc"
- ]
- ]
- },
- {
- "id": "640275aa.06b0bc",
- "type": "set",
- "name": "set: error-message",
- "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occurred while deleting generic-vnf, generic-vnf-l3-netweork or generic-vnf-vserver from GammaResource\"/>",
- "comments": "",
- "x": 1696.6820907592773,
- "y": 508.47222900390625,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "7b46fa5d.f08144",
- "type": "save",
- "name": "delete AnAI: generic-vnf",
- "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\tkey=\"generic-vnf.vnf-id = $service-data.vnf-id\" \n\tlocal-only=\"false\" \n\tforce=\"true\" >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1211.0432662963867,
- "y": 598.2222328186035,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "4fdd37a6.2bc6e8"
- ]
- ]
- },
- {
- "id": "4fdd37a6.2bc6e8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1403.0228729248047,
- "y": 598.3509359359741,
- "z": "730f50c9.364a4",
- "wires": [
- [
- "39c806b9.27c7ca"
- ]
- ]
- },
- {
- "id": "39c806b9.27c7ca",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to delete generic-vnf from AnAI with vnf-id = '+ $service-data.vnf-id`\"/>",
- "comments": "",
- "x": 1561.1893997192383,
- "y": 598.4343166351318,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "532716cb.365f68",
- "type": "comment",
- "name": "NOT checking order-status intentionally",
- "info": "",
- "comments": "",
- "x": 1355.4320831298828,
- "y": 389.9722261428833,
- "z": "730f50c9.364a4",
- "wires": []
- },
- {
- "id": "5a7a473b.e0aa98",
- "type": "comment",
- "name": "Removing check for aic-cllu in 1707",
- "info": "ks220y: Confirmed with Pat Cheung, as MSO won't send aic-clli",
- "comments": "",
- "x": 798.7222595214844,
- "y": 340.0000162124634,
- "z": "730f50c9.364a4",
- "wires": []
- }
-]
+[{"id":"b7bd68dc.2f2598","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />","comments":"","x":442.83336639404297,"y":580.250039100647,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"29350296.bd8dfe","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":219.83331298828125,"y":173.8333282470703,"z":"8bafd60a.f9e8e8","wires":[["d2e1aff0.abd97","b7bd68dc.2f2598","1100f729.686421","f7dbd114.d5b85","99a80553.587948","e47598ee.1b6f68","ca1dc7fb.a35a5"]]},{"id":"d2e1aff0.abd97","type":"set","name":"set: order-status = Deleted","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Deleted\"/>","comments":"","x":483.83336639404297,"y":407.250039100647,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"f243526a.6db178","type":"method","name":"method vnf-topology-delete","xml":"<method rpc='vnf-topology-delete' mode='sync'>\n","comments":"","outputs":1,"x":251.5,"y":122.99999237060547,"z":"8bafd60a.f9e8e8","wires":[["29350296.bd8dfe"]]},{"id":"163c6981.d4f7ee","type":"service-logic","name":"VNF-API ${project.version}","module":"VNF-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='VNF-API' version='${project.version}'>","outputs":1,"x":368.16663360595703,"y":71.00000286102295,"z":"8bafd60a.f9e8e8","wires":[["f243526a.6db178"]]},{"id":"1c4e666f.583c8a","type":"dgstart","name":"DGSTART","outputs":1,"x":158.33331298828125,"y":70.83332824707031,"z":"8bafd60a.f9e8e8","wires":[["163c6981.d4f7ee"]]},{"id":"499d2345.e96514","type":"other","name":"false","xml":"<outcome value='false'>","comments":"","outputs":1,"x":1146.757640838623,"y":255.29546451568604,"z":"8bafd60a.f9e8e8","wires":[["829c09fd.4a37f8"]]},{"id":"829c09fd.4a37f8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>","comments":"","x":1299.0907707214355,"y":255.29552555084229,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"99a80553.587948","type":"set","name":"set: last-action ","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>","comments":"","x":445.0909652709961,"y":450.7956323623657,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"1100f729.686421","type":"switchNode","name":"switch:vnf-id config == input","xml":"<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">","comments":"","outputs":1,"x":488.97721099853516,"y":173.32087326049805,"z":"8bafd60a.f9e8e8","wires":[["1fa6b0bd.a10757"]]},{"id":"1fa6b0bd.a10757","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":690.431770324707,"y":173.50270080566406,"z":"8bafd60a.f9e8e8","wires":[["7a028d33.c7867c"]]},{"id":"7a028d33.c7867c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='vnf-id not found'/>","comments":"","x":854.0226898193359,"y":173.6618013381958,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"f7dbd114.d5b85","type":"set","name":"set: last-order-status = order-status","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>","comments":"","x":510.2273178100586,"y":365.987587928772,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"e47598ee.1b6f68","type":"set","name":"Clear vnf topology","xml":"<set>\n\t<parameter name=\"service-data.\" value=\"\" /> \n","comments":"","x":454.2273178100586,"y":490.987587928772,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"588037ab.411398","type":"switchNode","name":"switch: order-status = Active","xml":"<switch test=\"`$service-data.oper-status.order-status == Active`\">","comments":"","outputs":1,"x":944.9405403137207,"y":255.59526538848877,"z":"8bafd60a.f9e8e8","wires":[["499d2345.e96514"]]},{"id":"ca1dc7fb.a35a5","type":"set","name":"Set final indicator to Y","xml":"<set>\n<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":465.5476837158203,"y":536.1905126571655,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"3bd3c149.991f8e","type":"switchNode","name":"switch: INPUT aic-cloud-region","xml":"<switch test=\"`$vnf-topology-operation-input.vnf-request-information.aic-cloud-region`\">","comments":"","outputs":1,"x":497.83336639404297,"y":255.9166669845581,"z":"8bafd60a.f9e8e8","wires":[["29f9627f.944e3e"]]},{"id":"6f4819ac.e92ae8","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":729.5833625793457,"y":303.55952072143555,"z":"8bafd60a.f9e8e8","wires":[["cc9b109c.a783d8"]]},{"id":"cc9b109c.a783d8","type":"switchNode","name":"switch: INPUT aic-clli","xml":"<switch test=\"`$vnf-topology-operation-input.vnf-request-information.aic-clli`\">","comments":"","outputs":1,"x":926.5834045410156,"y":303.6666889190674,"z":"8bafd60a.f9e8e8","wires":[["36c5c0c5.92b1b","382df0cf.996808"]]},{"id":"29f9627f.944e3e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":729.083423614502,"y":255.66668128967285,"z":"8bafd60a.f9e8e8","wires":[["588037ab.411398"]]},{"id":"36c5c0c5.92b1b","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":1121.583351135254,"y":304.4166622161865,"z":"8bafd60a.f9e8e8","wires":[["c9b05e7f.f314d8"]]},{"id":"c9b05e7f.f314d8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Either aic-cloud-region or aic-clli must be present'/>","comments":"","x":1294.083351135254,"y":304.9166622161865,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"382df0cf.996808","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1122.833351135254,"y":346.9166622161865,"z":"8bafd60a.f9e8e8","wires":[["b2a8ee0.050159"]]},{"id":"ad2e2232.a5be28","type":"save","name":"delete generic-vnf-l3-network","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" \n\tresource=\"generic-vnf-l3-network\" \n\tkey=\"DELETE FROM GENERIC_VNF_L3_NETWORK WHERE vnf_id = $service-data.vnf-id\" \n\tforce=\"true\" >\n\n","comments":"","outputs":1,"x":1245.333381652832,"y":469.4166851043701,"z":"8bafd60a.f9e8e8","wires":[["fdbba735.e0de7"]]},{"id":"e9bd3f49.9f08a8","type":"save","name":"delete GammaResource: generic-vnf","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" \n\tresource=\"generic-vnf\" \n\tkey=\"DELETE FROM GENERIC_VNF where vnf_id = $service-data.vnf-id\" \n\tlocal-only=\"true\" \n\tforce=\"true\" >\n\n","comments":"","outputs":1,"x":1268.992546081543,"y":555.7879467010498,"z":"8bafd60a.f9e8e8","wires":[["fdbba735.e0de7"]]},{"id":"26073509.d26ec2","type":"save","name":"delete generic-vnf-vserver","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" \n\tresource=\"generic-vnf-vserver\" \n\tkey=\"DELETE FROM GENERIC_VNF_VSERVER where vnf_id = $service-data.vnf-id\" \n\tforce=\"true\" >\n\n","comments":"","outputs":1,"x":1236.742546081543,"y":510.87122917175293,"z":"8bafd60a.f9e8e8","wires":[["fdbba735.e0de7"]]},{"id":"579bfb77.6bce7c","type":"switchNode","name":"switch: order-status = PendingDelete","xml":"<switch test=\"'$service-data.oper-status.order-status == PendingDelete'\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->","comments":"","outputs":1,"x":1268.583366394043,"y":427.66666984558105,"z":"8bafd60a.f9e8e8","wires":[["aabc86d2.b53c08"]]},{"id":"aabc86d2.b53c08","type":"other","name":"false","xml":"<outcome value='false'>","comments":"","outputs":1,"x":1497.9167404174805,"y":427.9999828338623,"z":"8bafd60a.f9e8e8","wires":[["1d00dfdf.4c452"]]},{"id":"1d00dfdf.4c452","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>","comments":"","x":1650.249870300293,"y":428.00004386901855,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"b2a8ee0.050159","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1015.3333511352539,"y":427.9166622161865,"z":"8bafd60a.f9e8e8","wires":[["ad2e2232.a5be28","e9bd3f49.9f08a8","26073509.d26ec2","14ecdcf0.08e2c3"]]},{"id":"fdbba735.e0de7","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1531.583351135254,"y":510.4166622161865,"z":"8bafd60a.f9e8e8","wires":[["64bf16b1.96428"]]},{"id":"64bf16b1.96428","type":"set","name":"set: error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occurred while deleting generic-vnf, generic-vnf-l3-netweork or generic-vnf-vserver from GammaResource\"/>","comments":"","x":1714.0833740234375,"y":510.41667079925537,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"14ecdcf0.08e2c3","type":"save","name":"delete AnAI: generic-vnf","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\tkey=\"generic-vnf.vnf-id = $service-data.vnf-id\" \n\tlocal-only=\"false\" \n\tforce=\"true\" >\n\n","comments":"","outputs":1,"x":1228.4445495605469,"y":600.1666746139526,"z":"8bafd60a.f9e8e8","wires":[["9832e19f.ecb298"]]},{"id":"9832e19f.ecb298","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1420.4241561889648,"y":600.2953777313232,"z":"8bafd60a.f9e8e8","wires":[["fbabc3e8.8b39d"]]},{"id":"fbabc3e8.8b39d","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to delete generic-vnf from AnAI with vnf-id = '+ $service-data.vnf-id`\"/>","comments":"","x":1578.5906829833984,"y":600.378758430481,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"94222545.335fe8","type":"comment","name":"NOT checking order-status intentionally","info":"","comments":"","x":1372.833366394043,"y":391.9166679382324,"z":"8bafd60a.f9e8e8","wires":[]},{"id":"6deab84a.46fd68","type":"comment","name":"Removing check for aic-cllu in 1707","info":"ks220y: Confirmed with Pat Cheung, as MSO won't send aic-clli","comments":"","x":816.1235427856445,"y":341.9444580078125,"z":"8bafd60a.f9e8e8","wires":[]}]
diff --git a/platform-logic/vnfapi/src/main/xml/VNF-API_vnf-topology-delete.xml b/platform-logic/vnfapi/src/main/xml/VNF-API_vnf-topology-delete.xml
index 69ad5fcc..fd5319d5 100644
--- a/platform-logic/vnfapi/src/main/xml/VNF-API_vnf-topology-delete.xml
+++ b/platform-logic/vnfapi/src/main/xml/VNF-API_vnf-topology-delete.xml
@@ -1,15 +1,13 @@
<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='VNF-API' version='${project.version}'><method rpc='vnf-topology-delete' mode='sync'>
-<block atomic="true"><switch test="`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`"><outcome value='false'>
+<block atomic="true">
+<switch test="`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`"><outcome value='false'>
<return status='failure'>
<parameter name='error-code' value='400'/>
- <parameter name='error-message' value='vnf-id not found'/></return></outcome></switch><switch test="`$vnf-topology-operation-input.vnf-request-information.aic-cloud-region`"><outcome value='Other'>
-<switch test="`$service-data.oper-status.order-status == Active`"><outcome value='false'><return status='failure'>
- <parameter name='error-code' value='400'/>
- <parameter name='error-message' value='Invalid order-status'/></return></outcome></switch></outcome></switch><set>
+ <parameter name='error-message' value='vnf-id not found'/></return></outcome></switch><set>
<parameter name="service-data.oper-status.last-order-status" value="`$service-data.oper-status.order-status`"/></set><set>
<parameter name="service-data.oper-status.order-status" value="Deleted"/></set><set>
<parameter name="service-data.oper-status.last-action" value="`$service-data.request-information.request-action`"/></set><set>
<parameter name="service-data." value="" />
</set><set>
<parameter name="ack-final" value="Y"/></set><return status='success'>
- <parameter name="error-code" value="200" /></return></block></method></service-logic>
+ <parameter name="error-code" value="200" /></return></block></method></service-logic>