diff options
author | 2019-03-25 09:57:47 +0530 | |
---|---|---|
committer | 2019-03-25 09:02:40 +0000 | |
commit | fb9dee0476b9693cb4502c4cc3708b6c87c30b20 (patch) | |
tree | 4026cd97ebfb0a4622e2fe9e21154a1066bb8cf3 /platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json | |
parent | dfe82e2ec91671d419f2d8af66764fa4c4d3406e (diff) |
CCVPN extension DGs
VPN and SITE resource VNF-topology-operation DGs
Change-Id: I2f39a26280b7a9a2add0783c614b542fe2073439
Issue-ID: SDNC-659
Signed-off-by: Prakash.E <prakash.e@huawei.com>
Former-commit-id: 201b92b81c7f50e7733297df88141357dc05c05c
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json | 298 |
1 files changed, 298 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json new file mode 100644 index 00000000..244799a1 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json @@ -0,0 +1,298 @@ +[
+ {
+ "id": "294747fd.2c2d98",
+ "type": "method",
+ "name": "method vnf-topology-operation-vpn-site-resource-activate",
+ "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 211.5,
+ "y": 201.99997901916504,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "4068c2f3.520fdc"
+ ]
+ ]
+ },
+ {
+ "id": "cff9203f.6e7f7",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 89.0713882446289,
+ "y": 38,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "78d3821a.ddc91c"
+ ]
+ ]
+ },
+ {
+ "id": "78d3821a.ddc91c",
+ "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": 188.35708618164062,
+ "y": 112.23810789268464,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "294747fd.2c2d98"
+ ]
+ ]
+ },
+ {
+ "id": "4068c2f3.520fdc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 189.73804473876953,
+ "y": 373.66666814964265,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "3a6b0423.a0a0ac",
+ "d7b531c1.f5a86",
+ "29c1d8e.17e3128",
+ "206b62f4.ff1b8e",
+ "ac1ddf15.75241",
+ "fd35c3d4.a8e8a"
+ ]
+ ]
+ },
+ {
+ "id": "3a6b0423.a0a0ac",
+ "type": "set",
+ "name": "set vnf-level-oper-status to Active",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",
+ "comments": "",
+ "x": 598.8850250244141,
+ "y": 446.67056941986084,
+ "z": "79a5b197.5d84",
+ "wires": []
+ },
+ {
+ "id": "d7b531c1.f5a86",
+ "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": 519.0717163085938,
+ "y": 572.5971069335938,
+ "z": "79a5b197.5d84",
+ "wires": []
+ },
+ {
+ "id": "29c1d8e.17e3128",
+ "type": "set",
+ "name": "set vnf-index 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/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
+ "comments": "",
+ "x": 605.0716705322266,
+ "y": 394.5968236923218,
+ "z": "79a5b197.5d84",
+ "wires": []
+ },
+ {
+ "id": "206b62f4.ff1b8e",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 619.5000610351562,
+ "y": 263.00000545661896,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "510e4a8b.ead204",
+ "c779a013.c610f",
+ "7ee910c1.660bf"
+ ]
+ ]
+ },
+ {
+ "id": "7ee910c1.660bf",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 878.4689559936523,
+ "y": 224.96876499336213,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "a7558172.b2121"
+ ]
+ ]
+ },
+ {
+ "id": "a7558172.b2121",
+ "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": 1033.2778434753418,
+ "y": 243.88903352897614,
+ "z": "79a5b197.5d84",
+ "wires": []
+ },
+ {
+ "id": "510e4a8b.ead204",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 871.5000953674316,
+ "y": 264.00008651893586,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "a7558172.b2121"
+ ]
+ ]
+ },
+ {
+ "id": "c779a013.c610f",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 864.5005035400391,
+ "y": 297.0000903336331,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "6aaa180d.7575b8"
+ ]
+ ]
+ },
+ {
+ "id": "6aaa180d.7575b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1011.7700462341309,
+ "y": 297.55473539512604,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "46580136.d7c0b"
+ ]
+ ]
+ },
+ {
+ "id": "46580136.d7c0b",
+ "type": "for",
+ "name": "for vidx..service-data.vnfs.vnf_length[]",
+ "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1257.7861633300781,
+ "y": 304.4286558357999,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "a66fcd87.a077a"
+ ]
+ ]
+ },
+ {
+ "id": "a66fcd87.a077a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1477.1357955932617,
+ "y": 303.9687359062955,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "ba7c0ee7.d144d"
+ ]
+ ]
+ },
+ {
+ "id": "ba7c0ee7.d144d",
+ "type": "switchNode",
+ "name": "switch vnfid 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": 1631.2153930664062,
+ "y": 303.67881796043366,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "a9157f30.c0f4f"
+ ]
+ ]
+ },
+ {
+ "id": "a9157f30.c0f4f",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1807.1675148010254,
+ "y": 303.57150003593415,
+ "z": "79a5b197.5d84",
+ "wires": [
+ [
+ "e051341c.b94158"
+ ]
+ ]
+ },
+ {
+ "id": "e051341c.b94158",
+ "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": 2016.6998901367188,
+ "y": 305.3216001717374,
+ "z": "79a5b197.5d84",
+ "wires": []
+ },
+ {
+ "id": "ac1ddf15.75241",
+ "type": "save",
+ "name": "update AnAI - vnf-instance.orchestration-status",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 624.5000305175781,
+ "y": 513.0103950500488,
+ "z": "79a5b197.5d84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fd35c3d4.a8e8a",
+ "type": "set",
+ "name": "copy input data to service data",
+ "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",
+ "comments": "",
+ "x": 603.5001449584961,
+ "y": 344.010356426239,
+ "z": "79a5b197.5d84",
+ "wires": []
+ }
+]
\ No newline at end of file |