aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
diff options
context:
space:
mode:
authorprakash.e <prakash.e@huawei.com>2019-03-25 09:57:47 +0530
committerprakash eswaramoorthy <prakash.e@huawei.com>2019-03-25 09:02:40 +0000
commitfb9dee0476b9693cb4502c4cc3708b6c87c30b20 (patch)
tree4026cd97ebfb0a4622e2fe9e21154a1066bb8cf3 /platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
parentdfe82e2ec91671d419f2d8af66764fa4c4d3406e (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-create.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json375
1 files changed, 375 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
new file mode 100644
index 00000000..7e74909c
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
@@ -0,0 +1,375 @@
+[
+ {
+ "id": "ba2f1a27.8f7c88",
+ "type": "method",
+ "name": "method vnf-topology-operation-vpn-site-resource-create",
+ "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 233,
+ "y": 190.9999925820157,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "887ebd07.82fca"
+ ]
+ ]
+ },
+ {
+ "id": "99a008b4.eb0bc8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 109.57138061523438,
+ "y": 43,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "9964126a.58753"
+ ]
+ ]
+ },
+ {
+ "id": "9964126a.58753",
+ "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": 211.85708618164062,
+ "y": 101.23810407798737,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "ba2f1a27.8f7c88"
+ ]
+ ]
+ },
+ {
+ "id": "887ebd07.82fca",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 213.23804473876953,
+ "y": 362.6666643349454,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "e036c242.ea2d7",
+ "8ac28eea.03b2e",
+ "bee946ca.5b9488",
+ "fa22ed9a.8f597",
+ "259c9f6d.05187",
+ "1c3377d1.23ec68",
+ "33f4194.b4adce6",
+ "cd58d769.440f18",
+ "50ac8040.e368f",
+ "82bd0bd5.564548"
+ ]
+ ]
+ },
+ {
+ "id": "8ac28eea.03b2e",
+ "type": "set",
+ "name": "set vnf-level-oper-status to Created",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].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[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
+ "comments": "",
+ "x": 647.3847961425781,
+ "y": 616.6705932617188,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "e036c242.ea2d7",
+ "type": "set",
+ "name": "copy input data to service data",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",
+ "comments": "",
+ "x": 639.2379837036133,
+ "y": 511.6668453216553,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "259c9f6d.05187",
+ "type": "execute",
+ "name": "execute generate-vnf-index",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-index\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 627.5714874267578,
+ "y": 461.33342933654785,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4832dc07.c382d4",
+ "type": "set",
+ "name": "set vnf-index to service data",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-index`' />\n",
+ "comments": "",
+ "x": 638.5715637207031,
+ "y": 568.3334331512451,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "bee946ca.5b9488",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 642.5713653564453,
+ "y": 241.3333559036255,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "b7b01487.9885f8",
+ "aecaf676.67f6b8"
+ ]
+ ]
+ },
+ {
+ "id": "b7b01487.9885f8",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 877.2857513427734,
+ "y": 236.47617626190186,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "1f5394d7.70124b"
+ ]
+ ]
+ },
+ {
+ "id": "1f5394d7.70124b",
+ "type": "set",
+ "name": "set vnf-index=0",
+ "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
+ "comments": "",
+ "x": 1037.5714569091797,
+ "y": 236.47626781463623,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "aecaf676.67f6b8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.7142906188965,
+ "y": 269.76200771331787,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "6e2b33e1.03a57c"
+ ]
+ ]
+ },
+ {
+ "id": "bd7ad864.5375c8",
+ "type": "set",
+ "name": "set vnf-index = vnf_length",
+ "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
+ "comments": "",
+ "x": 1266.571533203125,
+ "y": 248.04773330688477,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "d9951812.e7fdb8",
+ "type": "for",
+ "name": "for each existing VNF",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1255.0001525878906,
+ "y": 283.04770517349243,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "febea1ac.bb0d8"
+ ]
+ ]
+ },
+ {
+ "id": "6e2b33e1.03a57c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1008.4285736083984,
+ "y": 271.76197719573975,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "bd7ad864.5375c8",
+ "d9951812.e7fdb8"
+ ]
+ ]
+ },
+ {
+ "id": "febea1ac.bb0d8",
+ "type": "switchNode",
+ "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1648.285888671875,
+ "y": 283.61918926239014,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "359b5cad.1078a4"
+ ]
+ ]
+ },
+ {
+ "id": "359b5cad.1078a4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1929.571590423584,
+ "y": 282.19059467315674,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ [
+ "e5d5a5d7.361b48"
+ ]
+ ]
+ },
+ {
+ "id": "fe823586.a40dc8",
+ "type": "comment",
+ "name": "make sure this vnf-id doesn't exist already",
+ "info": "",
+ "comments": "",
+ "x": 1617.4285049438477,
+ "y": 247.1905813217163,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "fa22ed9a.8f597",
+ "type": "set",
+ "name": "set new vnf_length",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
+ "comments": "",
+ "x": 599.5714874267578,
+ "y": 409.33342599868774,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "1c3377d1.23ec68",
+ "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": 586.5714492797852,
+ "y": 879.59694480896,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "82bd0bd5.564548",
+ "type": "save",
+ "name": "save service relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" />\n\n\n<!--save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/vpn-resources/vpn-resource/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-resource.vpn-resource-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" /-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 649.2382202148438,
+ "y": 826.5968379974365,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "33f4194.b4adce6",
+ "type": "set",
+ "name": "set vnf-index and vnf-object-path",
+ "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\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/' + $prop.vnf-index + '/vnf-data/'` \" />",
+ "comments": "",
+ "x": 640.5714797973633,
+ "y": 657.5968637466431,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "cd58d769.440f18",
+ "type": "set",
+ "name": "set vnf-request-input.",
+ "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",
+ "comments": "",
+ "x": 605.5711212158203,
+ "y": 360.3247985839844,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "e5d5a5d7.361b48",
+ "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 id ' + $service-data.vnfs.vnf[$idx].vnf-id\n + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",
+ "comments": "",
+ "x": 2058.1429595947266,
+ "y": 333.1906089782715,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "b6f6713f.1cb83",
+ "type": "comment",
+ "name": "Take the parameter names by removing prefix",
+ "info": "",
+ "comments": "",
+ "x": 1351.5715713500977,
+ "y": 336.66667556762695,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "a6480f2e.967df",
+ "type": "comment",
+ "name": "TODO: change AAI models",
+ "info": "",
+ "comments": "",
+ "x": 629.1820449829102,
+ "y": 726.9742965698242,
+ "z": "bc55b65a.bac808",
+ "wires": []
+ },
+ {
+ "id": "50ac8040.e368f",
+ "type": "save",
+ "name": "save AnAI - vnf-instance.orchestration-status",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $prop.vnf-index\" >\n<parameter name=\"orchestration-status\" value=\"create\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 695.545783996582,
+ "y": 767.2470808029175,
+ "z": "bc55b65a.bac808",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file