diff options
author | Lathish <lathishbabu.ganesan@est.tech> | 2020-08-19 22:59:03 +0100 |
---|---|---|
committer | Lathishbabu Ganesan <lathishbabu.ganesan@est.tech> | 2020-08-24 16:21:51 +0000 |
commit | 757a0758c4e5ec01b4dbe382bfa718f294b63717 (patch) | |
tree | 22219a0eded009edf382026a2240d7854f6834c6 /platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_deleteA1Policy.json | |
parent | 600b944034c115ce4a4e5a1f584053dcc1ac1dfe (diff) |
Add/Modified A1 DG's
Issue-ID: CCSDK-2605
Change-Id: I0a2618e9e46f53c369b3c86a85bac8ab1bc69022
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
Diffstat (limited to 'platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_deleteA1Policy.json')
-rw-r--r-- | platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_deleteA1Policy.json | 317 |
1 files changed, 317 insertions, 0 deletions
diff --git a/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_deleteA1Policy.json b/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_deleteA1Policy.json new file mode 100644 index 00000000..89c14a88 --- /dev/null +++ b/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_deleteA1Policy.json @@ -0,0 +1,317 @@ +[ + { + "id": "7c435ae3.69565c", + "type": "service-logic", + "name": "A1-ADAPTER-API ${project.version}", + "module": "A1-ADAPTER-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='A1-ADAPTER-API' version='${project.version}'>", + "outputs": 1, + "x": 188, + "y": 153, + "z": "cb244f73.c06648", + "wires": [ + [ + "710b1a71.cbae84" + ] + ] + }, + { + "id": "710b1a71.cbae84", + "type": "method", + "name": "method deleteA1Policy", + "xml": "<method rpc='deleteA1Policy' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 248, + "y": 273, + "z": "cb244f73.c06648", + "wires": [ + [ + "4378a18e.7f739" + ] + ] + }, + { + "id": "6ce20bdf.ad9a1c", + "type": "record", + "name": "record", + "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete Policy:\"/>\n<parameter name=\"field2\" value=\"`$delete-a1-policy-input.near-rt-ric-url`\"/>", + "comments": "", + "outputs": 1, + "x": 712, + "y": 87, + "z": "cb244f73.c06648", + "wires": [ + [] + ] + }, + { + "id": "4378a18e.7f739", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 453, + "y": 227, + "z": "cb244f73.c06648", + "wires": [ + [ + "6ce20bdf.ad9a1c", + "e5238148.fd374", + "bdf5754e.9b53f8", + "7e804e03.9c90b", + "fb64d04f.8f7d68" + ] + ] + }, + { + "id": "ee4edddb.f32858", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 120, + "y": 89, + "z": "cb244f73.c06648", + "wires": [ + [ + "7c435ae3.69565c" + ] + ] + }, + { + "id": "e5238148.fd374", + "type": "set", + "name": "set default status value", + "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='deletePolicy executed successfully' />", + "comments": "", + "x": 753.0000610351562, + "y": 142, + "z": "cb244f73.c06648", + "wires": [] + }, + { + "id": "bdf5754e.9b53f8", + "type": "execute", + "name": "execute Properties", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/a1-adapter-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n", + "comments": "", + "outputs": 1, + "x": 752, + "y": 195, + "z": "cb244f73.c06648", + "wires": [ + [] + ] + }, + { + "id": "fb64d04f.8f7d68", + "type": "block", + "name": "A1 Mediator RestAPI Invocation", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 782.0001220703125, + "y": 279, + "z": "cb244f73.c06648", + "wires": [ + [ + "3f182409.0c3914", + "e320e99b.0be3e", + "a9c27d26.b87628" + ] + ] + }, + { + "id": "e320e99b.0be3e", + "type": "set", + "name": "set tmp variables for A1 Mediator REST API call", + "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-url\" value=\"`$delete-a1-policy-input.near-rt-ric-url`\"/>", + "comments": "", + "x": 1144.00146484375, + "y": 171.88912963867188, + "z": "cb244f73.c06648", + "wires": [] + }, + { + "id": "3f182409.0c3914", + "type": "record", + "name": "record", + "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for A1 Adapter Delete Policy Instance.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-url`\"/>", + "comments": "", + "outputs": 1, + "x": 1032.0001220703125, + "y": 261, + "z": "cb244f73.c06648", + "wires": [ + [] + ] + }, + { + "id": "a9c27d26.b87628", + "type": "execute", + "name": "Delete Policy Instance", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.near-rt-ric-url`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"a1MediatorRsp\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"false\"/>", + "comments": "", + "outputs": 1, + "x": 1077.0006103515625, + "y": 343.0104064941406, + "z": "cb244f73.c06648", + "wires": [ + [ + "17d809ef.941376", + "c9c13643.42fb78" + ] + ] + }, + { + "id": "17d809ef.941376", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1304, + "y": 412.0001220703125, + "z": "cb244f73.c06648", + "wires": [ + [ + "8a649ed7.63deb" + ] + ] + }, + { + "id": "c9c13643.42fb78", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1294.000244140625, + "y": 257.0000305175781, + "z": "cb244f73.c06648", + "wires": [ + [ + "d953eb99.f4fcc" + ] + ] + }, + { + "id": "cafd39a2.e592f", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"404\" />\n<parameter name=\"response-message\" value=\"Error in Deleting A1 Policy Instance. Aborting\" />", + "comments": "", + "x": 1627.0006103515625, + "y": 467.00006103515625, + "z": "cb244f73.c06648", + "wires": [] + }, + { + "id": "d953eb99.f4fcc", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1467.9998779296875, + "y": 257.00006103515625, + "z": "cb244f73.c06648", + "wires": [ + [ + "b7919ed2.bc4b8", + "76b0ec4a.812af4" + ] + ] + }, + { + "id": "b7919ed2.bc4b8", + "type": "record", + "name": "record", + "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Delete Policy Information \"/>\n<parameter name=\"field2\" value=\"`$a1MediatorRsp.httpResponse`\"/>", + "comments": "", + "outputs": 1, + "x": 1625, + "y": 203, + "z": "cb244f73.c06648", + "wires": [ + [] + ] + }, + { + "id": "2d7fa547.79bee2", + "type": "set", + "name": "set", + "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n", + "comments": "", + "x": 1600.75390625, + "y": 360.00390625, + "z": "cb244f73.c06648", + "wires": [] + }, + { + "id": "7e804e03.9c90b", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 715.75390625, + "y": 451.00390625, + "z": "cb244f73.c06648", + "wires": [ + [ + "23ec5862.ce8f7" + ] + ] + }, + { + "id": "23ec5862.ce8f7", + "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<parameter name='response-code' value='200' />\n<parameter name='response-message' value='deletePolicyInstance executed successfully'/>\n<parameter name='ack-final' value='Y'/>\n", + "comments": "", + "x": 876.7539672851562, + "y": 451.00396728515625, + "z": "cb244f73.c06648", + "wires": [] + }, + { + "id": "8a649ed7.63deb", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1459.00390625, + "y": 411.0039367675781, + "z": "cb244f73.c06648", + "wires": [ + [ + "2d7fa547.79bee2", + "cafd39a2.e592f" + ] + ] + }, + { + "id": "76b0ec4a.812af4", + "type": "execute", + "name": "set", + "xml": "<set>\n<parameter name='body' value='`$a1MediatorRsp.httpResponse`'/>", + "comments": "", + "outputs": 1, + "x": 1631, + "y": 307, + "z": "cb244f73.c06648", + "wires": [ + [] + ] + } +]
\ No newline at end of file |