diff options
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json | 377 |
1 files changed, 377 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json new file mode 100644 index 00000000..6bdf1de6 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json @@ -0,0 +1,377 @@ +[ + { + "id": "75921ba5.e84f04", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 127, + "y": 31, + "z": "4c77a098.14bed", + "wires": [ + [ + "67179bf.f30bb64" + ] + ] + }, + { + "id": "67179bf.f30bb64", + "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": 345.49999237060547, + "y": 111.99999287677929, + "z": "4c77a098.14bed", + "wires": [ + [ + "df585947.1b0688" + ] + ] + }, + { + "id": "df585947.1b0688", + "type": "method", + "name": "sotn-network-topology-operation-reoptimize", + "xml": "<method rpc='sotn-network-topology-operation-reoptimize' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 346.5, + "y": 165, + "z": "4c77a098.14bed", + "wires": [ + [ + "970cf081.0efd5" + ] + ] + }, + { + "id": "970cf081.0efd5", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 424.50000762939453, + "y": 223.000009059906, + "z": "4c77a098.14bed", + "wires": [ + [ + "32a56503.ce58fa", + "b0b6546.423eca8", + "103fcffc.47e2d", + "77dde683.c05af8", + "c64a9e95.de368", + "f4c6a746.18c888" + ] + ] + }, + { + "id": "32a56503.ce58fa", + "type": "set", + "name": "set tmp.network.parent-network-id,etc", + "xml": "<set>\n<parameter name='tmp.network.network-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='tmp.network.service-instance-id' value='`$network-topology-operation-input.service-information.service-instance-id`' />\n\n\n", + "comments": "", + "x": 772.0000152587891, + "y": 118.00000476837158, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "21fcd909.4488b6", + "type": "comment", + "name": "set tmp connectivity-id to fetch resource from MDSAL", + "info": "", + "comments": "", + "x": 841.9603424072266, + "y": 83.03180408477783, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "b0b6546.423eca8", + "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": 715.9999542236328, + "y": 201.00000476837158, + "z": "4c77a098.14bed", + "wires": [ + [] + ] + }, + { + "id": "deead92.2e05028", + "type": "comment", + "name": "Obtain different URL, template location etc", + "info": "For saving resource information to MDSAL & for AAI", + "comments": "", + "x": 811.7380523681641, + "y": 166.22217273712158, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "103fcffc.47e2d", + "type": "for", + "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]", + "xml": "<for index='pidx' start='0' end='1' >\n", + "comments": "", + "outputs": 1, + "x": 926.0000991821289, + "y": 283.0000705718994, + "z": "4c77a098.14bed", + "wires": [ + [ + "4ff3cba6.0577e4" + ] + ] + }, + { + "id": "4ff3cba6.0577e4", + "type": "block", + "name": "block atomic", + "xml": "<block atomic=\"true\">\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 897.8459091186523, + "y": 339.224645614624, + "z": "4c77a098.14bed", + "wires": [ + [ + "efb008da.002a38", + "56cd0f49.c1db2", + "1e3aa974.204b57", + "c0e08604.031d68", + "b2b348e8.930c38", + "ea908538.cdcb68", + "63bd98b8.1ea0d8", + "9da5cea0.60ef2", + "a382c856.52c0b8", + "4d332c82.ad3af4" + ] + ] + }, + { + "id": "efb008da.002a38", + "type": "set", + "name": "set prop.ar.provided-allotted-resource-id", + "xml": "<set>\n<parameter name='prop.ar.provided-allotted-resource-id' value='`$service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id`' />\n\n", + "comments": "", + "x": 1167.8153915405273, + "y": 322.02744245529175, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "56cd0f49.c1db2", + "type": "execute", + "name": "generate tmp.ar-url-connection 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-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value='`$prop.ar.provided-allotted-resource-id`'/>\n", + "comments": "", + "outputs": 1, + "x": 1156.815284729004, + "y": 374.5724229812622, + "z": "4c77a098.14bed", + "wires": [ + [] + ] + }, + { + "id": "1e3aa974.204b57", + "type": "execute", + "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\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-providedAr\" />\n", + "comments": "", + "outputs": 1, + "x": 1297.8151321411133, + "y": 430.2390090227127, + "z": "4c77a098.14bed", + "wires": [ + [ + "4145e899.11bf48", + "75032056.67182" + ] + ] + }, + { + "id": "4145e899.11bf48", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1673.185203552246, + "y": 430.7611274719238, + "z": "4c77a098.14bed", + "wires": [ + [ + "a6a898ea.1345e8" + ] + ] + }, + { + "id": "75032056.67182", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 1665.0370063781738, + "y": 465.8272123336792, + "z": "4c77a098.14bed", + "wires": [ + [ + "b38b08ff.bf1c28" + ] + ] + }, + { + "id": "a6a898ea.1345e8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1804.1852989196777, + "y": 430.7611885070801, + "z": "4c77a098.14bed", + "wires": [ + [] + ] + }, + { + "id": "b38b08ff.bf1c28", + "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: Parent service data not available\" />\n \n", + "comments": "", + "x": 1811.1857872009277, + "y": 465.0946235656738, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "ea908538.cdcb68", + "type": "set", + "name": "set model-data to input", + "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.onap-model-information.` \" />", + "comments": "", + "x": 1138.0001907348633, + "y": 565.0000371932983, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "b2b348e8.930c38", + "type": "set", + "name": "set connection-attachment-ar-identifiers to input", + "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.service-information.service-instance-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.parent-service-instance-id` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-type` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-id` \" />\n", + "comments": "", + "x": 1213.301872253418, + "y": 527.0159864425659, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "c0e08604.031d68", + "type": "set", + "name": "set ar-data to input", + "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-status.action` \" />\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-status.rpc-action` \" />\n<parameter name='connection-attachment-topology-operation-input.request-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.request-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.service-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.connection-attachment-request-input.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.` \" />\n", + "comments": "", + "x": 1120.1586456298828, + "y": 485.8253927230835, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "4d332c82.ad3af4", + "type": "call", + "name": "call sotn-attachment-topology-operation-activate", + "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-activate' mode='sync' >\n", + "comments": "", + "outputs": 1, + "x": 1214.0001945495605, + "y": 740.0000486373901, + "z": "4c77a098.14bed", + "wires": [ + [] + ] + }, + { + "id": "9da5cea0.60ef2", + "type": "call", + "name": "call sotn-attachment-topology-operation-deactivate", + "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-deactivate' mode='sync' >\n", + "comments": "", + "outputs": 1, + "x": 1223.0002746582031, + "y": 649.0000429153442, + "z": "4c77a098.14bed", + "wires": [ + [] + ] + }, + { + "id": "a382c856.52c0b8", + "type": "set", + "name": "set request-action and svc-action", + "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"activate\" />\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"ActivateSOTNAttachmentInstance\" />\n\n\n", + "comments": "", + "x": 1169.0002746582031, + "y": 694.0000457763672, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "63bd98b8.1ea0d8", + "type": "set", + "name": "set request-action and svc-action", + "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"deactivate\" />\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"DeactivateSOTNAttachmentInstance\" />\n<parameter name='connection-attachment-topology-operation-input.service-information.global-customer-id' value=\"`$service-data.service-information.global-customer-id` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.subscription-service-type' value=\"`$service-data.service-information.subscription-service-type` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.subscriber-name' value=\"`$service-data.service-information.subscriber-name` \" />", + "comments": "", + "x": 1169.000114440918, + "y": 608.0000410079956, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "77dde683.c05af8", + "type": "set", + "name": "set service-data in tmp var", + "xml": "<set>\n<parameter name = 'tmp.service-data.' value=\"`$service-data.`\"/>\n", + "comments": "", + "x": 734.0001983642578, + "y": 237.00009441375732, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "c64a9e95.de368", + "type": "set", + "name": "set tmp.service-data to service-data", + "xml": "<set>\n<parameter name = 'service-data. ' value = \"`$tmp.service-data.`\"/>\n", + "comments": "", + "x": 837.0003814697266, + "y": 816.0001068115234, + "z": "4c77a098.14bed", + "wires": [] + }, + { + "id": "f4c6a746.18c888", + "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": 758.0001831054688, + "y": 860.0000267028809, + "z": "4c77a098.14bed", + "wires": [] + } +] |