diff options
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sdwan')
4 files changed, 1675 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 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 diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json new file mode 100644 index 00000000..654c97b5 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json @@ -0,0 +1,433 @@ +[
+ {
+ "id": "82c84658.77d1d8",
+ "type": "method",
+ "name": "method vnf-topology-operation-vpn-site-resource-deactivate",
+ "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 259,
+ "y": 212.99999639671296,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "20631342.a0c9ec"
+ ]
+ ]
+ },
+ {
+ "id": "d37f40ab.ae426",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 138.5713882446289,
+ "y": 49,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "90866c8c.0566b"
+ ]
+ ]
+ },
+ {
+ "id": "90866c8c.0566b",
+ "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": 237.85708618164062,
+ "y": 123.23810789268464,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "82c84658.77d1d8"
+ ]
+ ]
+ },
+ {
+ "id": "20631342.a0c9ec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 239.23804473876953,
+ "y": 384.66666814964265,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "223e8ad6.61f2e6",
+ "7a1d8d04.0ea1a4",
+ "fb28da85.68b248",
+ "638a26a6.3e9618",
+ "30cf2c07.d44e14",
+ "fbfde082.6174",
+ "c6ba194.447c2e8"
+ ]
+ ]
+ },
+ {
+ "id": "223e8ad6.61f2e6",
+ "type": "set",
+ "name": "set vnf-level-oper-status to PendingDelete",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\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": 647.3849029541016,
+ "y": 533.670627951622,
+ "z": "655c6ddc.e1d044",
+ "wires": []
+ },
+ {
+ "id": "7a1d8d04.0ea1a4",
+ "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": 573.5716247558594,
+ "y": 642.5970582962036,
+ "z": "655c6ddc.e1d044",
+ "wires": []
+ },
+ {
+ "id": "fb28da85.68b248",
+ "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": 624.5716247558594,
+ "y": 489.5968955755234,
+ "z": "655c6ddc.e1d044",
+ "wires": []
+ },
+ {
+ "id": "638a26a6.3e9618",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 669.0000610351562,
+ "y": 274.00000545661896,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "3f139002.12bae",
+ "6579ac8.d79e654",
+ "9fa8cca.2d7cf3"
+ ]
+ ]
+ },
+ {
+ "id": "9fa8cca.2d7cf3",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 927.9689559936523,
+ "y": 235.96876499336213,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "4d9ccf75.fe9af"
+ ]
+ ]
+ },
+ {
+ "id": "4d9ccf75.fe9af",
+ "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": 1082.7778434753418,
+ "y": 254.88903352897614,
+ "z": "655c6ddc.e1d044",
+ "wires": []
+ },
+ {
+ "id": "3f139002.12bae",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 921.0000953674316,
+ "y": 275.00008651893586,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "4d9ccf75.fe9af"
+ ]
+ ]
+ },
+ {
+ "id": "6579ac8.d79e654",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 914.0005035400391,
+ "y": 308.0000903336331,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "4494b904.813828"
+ ]
+ ]
+ },
+ {
+ "id": "4494b904.813828",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1061.2700462341309,
+ "y": 308.55473539512604,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "2347d15a.1d922e",
+ "d97f0a58.4e7db8"
+ ]
+ ]
+ },
+ {
+ "id": "2347d15a.1d922e",
+ "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": 1307.2861633300781,
+ "y": 315.4286558357999,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "ca1a5a9.775eaa8"
+ ]
+ ]
+ },
+ {
+ "id": "ca1a5a9.775eaa8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1526.6357955932617,
+ "y": 314.9687359062955,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "66b63707.1820b8"
+ ]
+ ]
+ },
+ {
+ "id": "66b63707.1820b8",
+ "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": 1680.7153930664062,
+ "y": 314.67881796043366,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "ae7ef72d.e51818"
+ ]
+ ]
+ },
+ {
+ "id": "ae7ef72d.e51818",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1856.6675148010254,
+ "y": 314.57150003593415,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "502325a8.6e120c"
+ ]
+ ]
+ },
+ {
+ "id": "502325a8.6e120c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2005.312973022461,
+ "y": 302.97913000267,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "1a1e9503.dc6a5b"
+ ]
+ ]
+ },
+ {
+ "id": "1a1e9503.dc6a5b",
+ "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": 2267.1997680664062,
+ "y": 280.3215563027188,
+ "z": "655c6ddc.e1d044",
+ "wires": []
+ },
+ {
+ "id": "d97f0a58.4e7db8",
+ "type": "switchNode",
+ "name": "switch tmp.vidx ",
+ "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1250.0000228881836,
+ "y": 369.99999353569,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "aa55c60d.624e08"
+ ]
+ ]
+ },
+ {
+ "id": "aa55c60d.624e08",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1405.4286499023438,
+ "y": 369.57137701194733,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "d6654813.27fba8"
+ ]
+ ]
+ },
+ {
+ "id": "d6654813.27fba8",
+ "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": 1550.8573913574219,
+ "y": 369.7143146721646,
+ "z": "655c6ddc.e1d044",
+ "wires": []
+ },
+ {
+ "id": "30cf2c07.d44e14",
+ "type": "switchNode",
+ "name": "switch vnf-level-oper-status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 618.0000762939453,
+ "y": 382.88902044296265,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "d1af1362.431e7",
+ "a3563b5d.54f858"
+ ]
+ ]
+ },
+ {
+ "id": "d1af1362.431e7",
+ "type": "outcome",
+ "name": "outcome Active",
+ "xml": "<outcome value='Active'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 863.8333702087402,
+ "y": 384.00011825561523,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "e723a3c3.7cd85"
+ ]
+ ]
+ },
+ {
+ "id": "e723a3c3.7cd85",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1077.139762878418,
+ "y": 393.32530784606934,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a3563b5d.54f858",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 841.8333892822266,
+ "y": 434.00012969970703,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ [
+ "5cde8b39.a2f424"
+ ]
+ ]
+ },
+ {
+ "id": "5cde8b39.a2f424",
+ "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
+ "comments": "",
+ "x": 1001.3331565856934,
+ "y": 437.0001287460327,
+ "z": "655c6ddc.e1d044",
+ "wires": []
+ },
+ {
+ "id": "fbfde082.6174",
+ "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": 627.0065612792969,
+ "y": 442.010435461998,
+ "z": "655c6ddc.e1d044",
+ "wires": []
+ },
+ {
+ "id": "c6ba194.447c2e8",
+ "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=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 669.0064239501953,
+ "y": 588.0105141401291,
+ "z": "655c6ddc.e1d044",
+ "wires": [
+ []
+ ]
+ }
+]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json new file mode 100644 index 00000000..3d26891c --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json @@ -0,0 +1,569 @@ +[
+ {
+ "id": "eafcb830.49a558",
+ "type": "method",
+ "name": "method vnf-topology-operation-vpn-site-resource-delete",
+ "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 207,
+ "y": 214,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "d02b15b4.dd4488"
+ ]
+ ]
+ },
+ {
+ "id": "d0a64a79.788248",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 151.57138061523438,
+ "y": 38,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "188a7052.71591"
+ ]
+ ]
+ },
+ {
+ "id": "188a7052.71591",
+ "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": 226.85708618164062,
+ "y": 78.23811149597168,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "eafcb830.49a558"
+ ]
+ ]
+ },
+ {
+ "id": "c2640aa8.7edda8",
+ "type": "comment",
+ "name": "site-vnf-topology-operation-delete",
+ "info": "",
+ "comments": "",
+ "x": 600.9162979125977,
+ "y": 111.58639907836914,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "d02b15b4.dd4488",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 228.23804473876953,
+ "y": 339.6666717529297,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "ac2e49a1.5e8568",
+ "4d83bd7.fa4f844",
+ "8cb0635e.d8e2c",
+ "faf06bed.cf0a38",
+ "c3cf9f4.9560f6",
+ "5c51b14f.3f60b",
+ "84b98584.0b5d68",
+ "64b20017.f4e26",
+ "c1ccb47b.c48ef8",
+ "dfa19665.762578",
+ "f3ab3fd1.f188e"
+ ]
+ ]
+ },
+ {
+ "id": "faf06bed.cf0a38",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 689.6660842895508,
+ "y": 273.26117038726807,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "7bb61b60.8ccfe4",
+ "6a78f7f6.d96ae8"
+ ]
+ ]
+ },
+ {
+ "id": "7bb61b60.8ccfe4",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 954.3883972167969,
+ "y": 255.81679248809814,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "ded5f144.4823a"
+ ]
+ ]
+ },
+ {
+ "id": "ded5f144.4823a",
+ "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": 1135.3882675170898,
+ "y": 250.81667041778564,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "6a78f7f6.d96ae8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 939.8883972167969,
+ "y": 307.8167552947998,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "4b9e2f73.508cd"
+ ]
+ ]
+ },
+ {
+ "id": "4b9e2f73.508cd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1111.8881034851074,
+ "y": 307.8167533874512,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "247799a9.6130f6",
+ "84b938cb.78bee8"
+ ]
+ ]
+ },
+ {
+ "id": "84b938cb.78bee8",
+ "type": "switchNode",
+ "name": "switch tmp.nidx ",
+ "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1286.8882751464844,
+ "y": 326.8166751861572,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "7a17688b.c98ab8"
+ ]
+ ]
+ },
+ {
+ "id": "8cb0635e.d8e2c",
+ "type": "switchNode",
+ "name": "switch vnf-level-oper-status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 660.0550842285156,
+ "y": 347.70563411712646,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "6f0effe.88561",
+ "4d0008ab.c847c8"
+ ]
+ ]
+ },
+ {
+ "id": "6f0effe.88561",
+ "type": "outcome",
+ "name": "outcome PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 936.888427734375,
+ "y": 350.8167338371277,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "1d4d444b.bf117c"
+ ]
+ ]
+ },
+ {
+ "id": "4d0008ab.c847c8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 897.8884124755859,
+ "y": 396.816782951355,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "640a50b6.3e86d"
+ ]
+ ]
+ },
+ {
+ "id": "640a50b6.3e86d",
+ "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
+ "comments": "",
+ "x": 1046.388126373291,
+ "y": 395.81676292419434,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "c3cf9f4.9560f6",
+ "type": "switchNode",
+ "name": "switch vnf-id",
+ "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 625.8884010314941,
+ "y": 228.81676387786865,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "6f94c17f.e94a6"
+ ]
+ ]
+ },
+ {
+ "id": "6f94c17f.e94a6",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 823.8884658813477,
+ "y": 218.81677627563477,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "723f2fa7.6d1e3"
+ ]
+ ]
+ },
+ {
+ "id": "723f2fa7.6d1e3",
+ "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-request-input.vnf-input-parameters.name is a required input\" />\n",
+ "comments": "",
+ "x": 990.3883514404297,
+ "y": 215.81677055358887,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "5c51b14f.3f60b",
+ "type": "execute",
+ "name": "execute requiredParameters",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 683.3884582519531,
+ "y": 168.81676292419434,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "247799a9.6130f6",
+ "type": "for",
+ "name": "for nidx..service-data.vnfs.vnf[]",
+ "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1347.3882789611816,
+ "y": 262.81667137145996,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "b01b8e2f.7dbb9"
+ ]
+ ]
+ },
+ {
+ "id": "b01b8e2f.7dbb9",
+ "type": "switchNode",
+ "name": "switch vnf-id found",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1603.388298034668,
+ "y": 262.81667137145996,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "357169.84af7e98"
+ ]
+ ]
+ },
+ {
+ "id": "357169.84af7e98",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1779.8883514404297,
+ "y": 265.81667137145996,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "38f16832.2c5d68"
+ ]
+ ]
+ },
+ {
+ "id": "38f16832.2c5d68",
+ "type": "set",
+ "name": "set tmp.nidx and ctx.vnf-data",
+ "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",
+ "comments": "",
+ "x": 1946.8883666992188,
+ "y": 326.81667137145996,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "fc674990.6f1398",
+ "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": 1592.3882904052734,
+ "y": 326.8166751861572,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "7a17688b.c98ab8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1454.8882904052734,
+ "y": 326.8166751861572,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "fc674990.6f1398"
+ ]
+ ]
+ },
+ {
+ "id": "ac2e49a1.5e8568",
+ "type": "set",
+ "name": "set vnfId 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/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
+ "comments": "",
+ "x": 646.9051055908203,
+ "y": 562.333676815033,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "4d83bd7.fa4f844",
+ "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": 603.0162582397461,
+ "y": 639.8892359733582,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "1d4d444b.bf117c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1132.1947860717773,
+ "y": 358.141939163208,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "84b98584.0b5d68",
+ "type": "set",
+ "name": "set prop.vnfNewidx",
+ "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
+ "comments": "",
+ "x": 629.0000762939453,
+ "y": 398.00006914138794,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "64b20017.f4e26",
+ "type": "for",
+ "name": "for lidx..service-data.vnfs.vnf[]",
+ "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 653.0000610351562,
+ "y": 440.00006771087646,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "ac122a7c.345458"
+ ]
+ ]
+ },
+ {
+ "id": "ac122a7c.345458",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 914.0001373291016,
+ "y": 444.000102519989,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "7381e65e.fc3b68"
+ ]
+ ]
+ },
+ {
+ "id": "7381e65e.fc3b68",
+ "type": "switchNode",
+ "name": "switch vnf-id found",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1106.0000839233398,
+ "y": 453.0001468658447,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "61719a57.800f34"
+ ]
+ ]
+ },
+ {
+ "id": "61719a57.800f34",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1292.000099182129,
+ "y": 437.0000333786011,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "9df0dc24.7346c"
+ ]
+ ]
+ },
+ {
+ "id": "9df0dc24.7346c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1443.0000228881836,
+ "y": 438.0000696182251,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ [
+ "c661d6a.46dd528",
+ "142b6671.1e430a"
+ ]
+ ]
+ },
+ {
+ "id": "c661d6a.46dd528",
+ "type": "set",
+ "name": "set vnf data",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",
+ "comments": "",
+ "x": 1610.0001907348633,
+ "y": 412.000253200531,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "142b6671.1e430a",
+ "type": "set",
+ "name": "set prop.vnfNewidx",
+ "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
+ "comments": "",
+ "x": 1630.0001182556152,
+ "y": 469.00018882751465,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "c1ccb47b.c48ef8",
+ "type": "set",
+ "name": "set new vnf length",
+ "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
+ "comments": "",
+ "x": 621.1014747619629,
+ "y": 483.80442094802856,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "dfa19665.762578",
+ "type": "set",
+ "name": "Remove vnf from ServiceData",
+ "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",
+ "comments": "",
+ "x": 651.000244140625,
+ "y": 522.0002040863037,
+ "z": "db08cdbb.446ef",
+ "wires": []
+ },
+ {
+ "id": "f3ab3fd1.f188e",
+ "type": "save",
+ "name": "delete AnAI - vnf-instance.orchestration-status",
+ "xml": "<delete 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=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 708.0066375732422,
+ "y": 599.0106163024902,
+ "z": "db08cdbb.446ef",
+ "wires": [
+ []
+ ]
+ }
+]
\ No newline at end of file |