From: prakash.e Date: Tue, 16 Apr 2019 13:54:23 +0000 (+0530) Subject: Fix sdwan-vf-vpn-delete DG by passing vf-module-id X-Git-Tag: 1.5.1~32^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=sdnc%2Foam.git;a=commitdiff_plain;h=eb5931f90a576d64c2a6635f0eae05e95b55a76d Fix sdwan-vf-vpn-delete DG by passing vf-module-id Vf-module-id is passed as it is not passed and returned Missing key is getVfModuleId. Change-Id: I576f6fd11b97aa1af423837bcd741abc653a2803 Issue-ID: SDNC-659 Signed-off-by: Prakash.E Former-commit-id: 169cf9a5afb5b9518dfd2ccaf0f37f988dd3831b --- diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.json index eb287749..a5a12664 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.json @@ -1,36 +1,36 @@ [ { - "id": "dbaa41e6.046bf", + "id": "fd06df59.e448b", "type": "method", "name": "method sdwan-vf-operation-vpn-delete", "xml": "\n", "comments": "", "outputs": 1, - "x": 347.03125, - "y": 269.99999737739563, - "z": "4a211eac.9076a", + "x": 350.00390625, + "y": 239.99999809265137, + "z": "8327690.10df898", "wires": [ [ - "2654c2fb.11dfbe" + "ae12552f.1b72d8" ] ] }, { - "id": "8578b02a.61d67", + "id": "a46f7aa3.12e428", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 147.0311279296875, - "y": 109.99999737739563, - "z": "4a211eac.9076a", + "x": 150.0037841796875, + "y": 79.99999809265137, + "z": "8327690.10df898", "wires": [ [ - "de304501.e706b8" + "9d19f189.43d7e" ] ] }, { - "id": "de304501.e706b8", + "id": "9d19f189.43d7e", "type": "service-logic", "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", @@ -38,122 +38,357 @@ "comments": "", "xml": "", "outputs": 1, - "x": 359.03113174438477, - "y": 182.00001454353333, - "z": "4a211eac.9076a", + "x": 362.00378799438477, + "y": 152.00001525878906, + "z": "8327690.10df898", "wires": [ [ - "dbaa41e6.046bf" + "fd06df59.e448b" ] ] }, { - "id": "2654c2fb.11dfbe", + "id": "ae12552f.1b72d8", "type": "block", "name": "block : atomic", "xml": "\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 517.4755821228027, - "y": 332.4444534778595, - "z": "4a211eac.9076a", + "x": 520.4482383728027, + "y": 302.44445419311523, + "z": "8327690.10df898", "wires": [ [ - "d773525e.57dfe", - "7dccf11a.58654", - "f366cb35.f14868", - "1458597e.bb0697", - "38c53cd1.7984d4", - "6bc9b9bd.b7c0e8", - "a3fafa89.e43bc8" + "d0cf0fc7.b8968", + "1177accf.5897c3", + "75bb279f.73ef38", + "e0671af2.c6b2e8", + "6bcfa69f.78db18", + "bea8f0ce.d0388", + "d833341a.cfde68", + "3c85c2b4.ffe46e", + "f03cd2a1.4117", + "b2204a07.bb77f8", + "24f146a1.309e6a" ] ] }, { - "id": "d773525e.57dfe", + "id": "d0cf0fc7.b8968", "type": "record", "name": "record", "xml": "\n\n\n\n\n", "comments": "", "outputs": 1, - "x": 792.8088531494141, - "y": 193.3333694934845, - "z": "4a211eac.9076a", + "x": 795.7815093994141, + "y": 163.33337020874023, + "z": "8327690.10df898", "wires": [ [] ] }, { - "id": "7dccf11a.58654", + "id": "24f146a1.309e6a", + "type": "delete", + "name": "delete SDWAN VPNInstance connectivity in AAI", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 917.6363525390625, + "y": 618.0062856674194, + "z": "8327690.10df898", + "wires": [ + [] + ] + }, + { + "id": "1177accf.5897c3", + "type": "call", + "name": "call GENERIC-RESOURCE-API:validate-sdwan-vf-vpn-input-parameters", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1000.0039367675781, + "y": 102, + "z": "8327690.10df898", + "wires": [ + [] + ] + }, + { + "id": "75bb279f.73ef38", + "type": "switchNode", + "name": "switch tmp.vidx ", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 807.00390625, + "y": 223.25391244888306, + "z": "8327690.10df898", + "wires": [ + [ + "54560087.3e39f" + ] + ] + }, + { + "id": "54560087.3e39f", + "type": "outcome", + "name": "NULL", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 954.4325485229492, + "y": 222.82532262802124, + "z": "8327690.10df898", + "wires": [ + [ + "cd62dbd9.527568" + ] + ] + }, + { + "id": "cd62dbd9.527568", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1103.8612747192383, + "y": 223.96824026107788, + "z": "8327690.10df898", + "wires": [] + }, + { + "id": "e0671af2.c6b2e8", + "type": "switchNode", + "name": "switch vf-module-oper-status", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 851.3020668029785, + "y": 293.5711178779602, + "z": "8327690.10df898", + "wires": [ + [ + "f0bab1bb.8e11a", + "752158cc.84d648" + ] + ] + }, + { + "id": "f0bab1bb.8e11a", + "type": "outcome", + "name": "outcome PendingDelete", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1142.1353340148926, + "y": 297.6822409629822, + "z": "8327690.10df898", + "wires": [ + [ + "969dab89.d8c088" + ] + ] + }, + { + "id": "752158cc.84d648", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1109.1354713439941, + "y": 349.68229365348816, + "z": "8327690.10df898", + "wires": [ + [ + "270b7545.fab24a" + ] + ] + }, + { + "id": "270b7545.fab24a", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n ", + "comments": "", + "x": 1268.635238647461, + "y": 352.68229269981384, + "z": "8327690.10df898", + "wires": [] + }, + { + "id": "969dab89.d8c088", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1339.4417343139648, + "y": 308.0073952674866, + "z": "8327690.10df898", + "wires": [ + [] + ] + }, + { + "id": "b2204a07.bb77f8", "type": "returnSuccess", "name": "return success", "xml": "\n\n\n\n", "comments": "", - "x": 806.586784362793, - "y": 504.9796769618988, - "z": "4a211eac.9076a", + "x": 810.413330078125, + "y": 679.459981918335, + "z": "8327690.10df898", "wires": [] }, { - "id": "1458597e.bb0697", + "id": "6bcfa69f.78db18", "type": "set", - "name": "set new vpn-vf length", - "xml": "\n\t\n", + "name": "set prop.vnfNewidx", + "xml": "\n\n", "comments": "", - "x": 836.1082077026367, - "y": 318.89519906044006, - "z": "4a211eac.9076a", + "x": 829.4999313354492, + "y": 364.5712866783142, + "z": "8327690.10df898", "wires": [] }, { - "id": "f366cb35.f14868", + "id": "bea8f0ce.d0388", + "type": "for", + "name": "for lidx..service-data.vf-modules.vf-module[]", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 905.4998512268066, + "y": 418.57116174697876, + "z": "8327690.10df898", + "wires": [ + [ + "aedffdd.ac084" + ] + ] + }, + { + "id": "d833341a.cfde68", "type": "set", - "name": "Remove networks from ServiceData", - "xml": "\n\t\n\n", + "name": "set new vf-module length", + "xml": "\n\t\n\n\t\n", "comments": "", - "x": 876.732364654541, - "y": 366.8631408214569, - "z": "4a211eac.9076a", + "x": 853.6012229919434, + "y": 465.3753876686096, + "z": "8327690.10df898", "wires": [] }, { - "id": "a3fafa89.e43bc8", - "type": "delete", - "name": "delete SDWAN VPNInstance connectivity in AAI", - "xml": "\n", + "id": "3c85c2b4.ffe46e", + "type": "set", + "name": "Remove vnf from ServiceData", + "xml": "\n\t\n", "comments": "", + "x": 874.4998588562012, + "y": 570.5712801218033, + "z": "8327690.10df898", + "wires": [] + }, + { + "id": "aedffdd.ac084", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", "outputs": 1, - "x": 914.6637077331543, - "y": 260.00628304481506, - "z": "4a211eac.9076a", + "x": 1165.4998416900635, + "y": 425.57102155685425, + "z": "8327690.10df898", "wires": [ - [] + [ + "206f222a.5e1fde" + ] ] }, { - "id": "38c53cd1.7984d4", - "type": "call", - "name": "call GENERIC-RESOURCE-API:validate-sdwan-vf-vpn-input-parameters", - "xml": "\n", + "id": "206f222a.5e1fde", + "type": "switchNode", + "name": "switch vf-module-id found", + "xml": "\n", "comments": "", "outputs": 1, - "x": 997.0312805175781, - "y": 131.99999928474426, - "z": "4a211eac.9076a", + "x": 1360.4999084472656, + "y": 424.5711736679077, + "z": "8327690.10df898", "wires": [ - [] + [ + "45b26eb8.7bd4e" + ] + ] + }, + { + "id": "45b26eb8.7bd4e", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1538.499942779541, + "y": 418.57105827331543, + "z": "8327690.10df898", + "wires": [ + [ + "8540afc1.b6629" + ] + ] + }, + { + "id": "8540afc1.b6629", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1674.4997549057007, + "y": 416.57102060317993, + "z": "8327690.10df898", + "wires": [ + [ + "73486d68.025024", + "d3ec464b.f61398" + ] ] }, { - "id": "6bc9b9bd.b7c0e8", + "id": "73486d68.025024", + "type": "set", + "name": "set vnf data", + "xml": "\n\n\n", + "comments": "", + "x": 1839.4998502731323, + "y": 391.5711760520935, + "z": "8327690.10df898", + "wires": [] + }, + { + "id": "d3ec464b.f61398", + "type": "set", + "name": "set prop.vnfNewidx", + "xml": "\n\n", + "comments": "", + "x": 1861.4998502731323, + "y": 447.5711398124695, + "z": "8327690.10df898", + "wires": [] + }, + { + "id": "f03cd2a1.4117", "type": "set", "name": "set vf-module-object-path", "xml": "\n\n\n\n", "comments": "", - "x": 845.0000305175781, - "y": 431.00001335144043, - "z": "4a211eac.9076a", + "x": 857.3021049499512, + "y": 511.90447902679443, + "z": "8327690.10df898", "wires": [] } ] \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.xml index 8b95c4cc..5ddf41f1 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.xml @@ -10,13 +10,49 @@ - + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + - + + + + +