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:
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.json371
1 files changed, 233 insertions, 138 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
index 65c2f0ec..3414cb9e 100644
--- 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
@@ -1,36 +1,36 @@
[
{
- "id": "4d340fd2.1d47a",
+ "id": "aeae6125.a8d28",
"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": 251.00390625,
- "y": 191.9999925820157,
- "z": "b6e8aa45.a03d48",
+ "x": 265,
+ "y": 223.9999925820157,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "dd995ca6.5527c"
+ "10f15a6d.ba1d76"
]
]
},
{
- "id": "83ce2cf0.a21b",
+ "id": "3eb5635c.ae734c",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 127.57528686523438,
- "y": 44,
- "z": "b6e8aa45.a03d48",
+ "x": 141.57138061523438,
+ "y": 76,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "d4e5788.5ad9988"
+ "1821ad11.5dad23"
]
]
},
{
- "id": "d4e5788.5ad9988",
+ "id": "1821ad11.5dad23",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -38,337 +38,432 @@
"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": 229.86099243164062,
- "y": 102.23810407798737,
- "z": "b6e8aa45.a03d48",
+ "x": 243.85708618164062,
+ "y": 134.23810407798737,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "4d340fd2.1d47a"
+ "aeae6125.a8d28"
]
]
},
{
- "id": "dd995ca6.5527c",
+ "id": "10f15a6d.ba1d76",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 231.24195098876953,
- "y": 363.6666643349454,
- "z": "b6e8aa45.a03d48",
+ "x": 245.23804473876953,
+ "y": 395.6666643349454,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "9e4483c6.3ac77",
- "a13164e4.2addc8",
- "3a6751cb.2db1fe",
- "deb0deb9.10aa8",
- "8f8480.f469fb8",
- "f27c92ed.2a351",
- "4152c1db.9724f",
- "34769e57.986742",
- "27f27223.64947e",
- "5e423ee5.be879",
- "dfdcb682.501ff8"
+ "175dc57.fde8c3b",
+ "3afb3c65.1ca3a4",
+ "fadde341.82f5a",
+ "9885c8cf.ded0d8",
+ "a5e91b3d.29e478",
+ "6e79157a.cf280c",
+ "fff46357.6f3ad",
+ "5da9f931.70bc48",
+ "df8e278a.898b28",
+ "3a3acb9a.529fc4",
+ "ff8a3cb6.2dc93",
+ "1bd26429.61c74c"
]
]
},
{
- "id": "a13164e4.2addc8",
+ "id": "3afb3c65.1ca3a4",
"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": 665.3887023925781,
- "y": 617.6705932617188,
- "z": "b6e8aa45.a03d48",
+ "x": 667.3848571777344,
+ "y": 759.670597076416,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "9e4483c6.3ac77",
+ "id": "175dc57.fde8c3b",
"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-id`' />\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": 657.2418899536133,
- "y": 512.6668453216553,
- "z": "b6e8aa45.a03d48",
+ "x": 659.2380447387695,
+ "y": 654.6668491363525,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "8f8480.f469fb8",
+ "id": "a5e91b3d.29e478",
"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-id\"/>\n",
"comments": "",
"outputs": 1,
- "x": 645.5753936767578,
- "y": 462.33342933654785,
- "z": "b6e8aa45.a03d48",
+ "x": 647.5715484619141,
+ "y": 604.3334331512451,
+ "z": "3deddfaf.57c2f",
"wires": [
[]
]
},
{
- "id": "dfdcb682.501ff8",
+ "id": "ff8a3cb6.2dc93",
"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-id`' />\n",
"comments": "",
- "x": 656.5754699707031,
- "y": 569.3334331512451,
- "z": "b6e8aa45.a03d48",
+ "x": 658.5716247558594,
+ "y": 711.3334369659424,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "3a6751cb.2db1fe",
+ "id": "fadde341.82f5a",
"type": "switchNode",
"name": "switch service-data.vnfs.vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 660.5752716064453,
- "y": 242.3333559036255,
- "z": "b6e8aa45.a03d48",
+ "x": 674.5713653564453,
+ "y": 274.3333559036255,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "2c3f6b93.ddbca4",
- "29bbdb18.cfe584"
+ "fe0779f6.a341a8",
+ "9f0ded05.d925c"
]
]
},
{
- "id": "2c3f6b93.ddbca4",
+ "id": "fe0779f6.a341a8",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 895.2896575927734,
- "y": 237.47617626190186,
- "z": "b6e8aa45.a03d48",
+ "x": 909.2857513427734,
+ "y": 269.47617626190186,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "8e783130.b1886"
+ "e3b683ce.f47fd"
]
]
},
{
- "id": "8e783130.b1886",
+ "id": "e3b683ce.f47fd",
"type": "set",
"name": "set vnf-index=0",
"xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
"comments": "",
- "x": 1055.5753631591797,
- "y": 237.47626781463623,
- "z": "b6e8aa45.a03d48",
+ "x": 1069.5714569091797,
+ "y": 269.47626781463623,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "29bbdb18.cfe584",
+ "id": "9f0ded05.d925c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 891.7181968688965,
- "y": 270.76200771331787,
- "z": "b6e8aa45.a03d48",
+ "x": 905.7142906188965,
+ "y": 302.76200771331787,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "64bc2d84.970e54"
+ "411ddf99.4fbb3"
]
]
},
{
- "id": "c816157.792fce8",
+ "id": "b6024395.bc24",
"type": "set",
"name": "set vnf-index = vnf_length",
"xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
"comments": "",
- "x": 1284.575439453125,
- "y": 249.04773330688477,
- "z": "b6e8aa45.a03d48",
+ "x": 1298.571533203125,
+ "y": 281.04773330688477,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "a9c0fb1a.4ae688",
+ "id": "3b57b625.74c07a",
"type": "for",
"name": "for each existing VNF",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1273.0040588378906,
- "y": 284.04770517349243,
- "z": "b6e8aa45.a03d48",
+ "x": 1287.0001525878906,
+ "y": 316.04770517349243,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "e4810c54.16f7c"
+ "a7076dba.f36af"
]
]
},
{
- "id": "64bc2d84.970e54",
+ "id": "411ddf99.4fbb3",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1026.4324798583984,
- "y": 272.76197719573975,
- "z": "b6e8aa45.a03d48",
+ "x": 1040.4285736083984,
+ "y": 304.76197719573975,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "c816157.792fce8",
- "a9c0fb1a.4ae688"
+ "b6024395.bc24",
+ "3b57b625.74c07a"
]
]
},
{
- "id": "e4810c54.16f7c",
+ "id": "a7076dba.f36af",
"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": 1666.289794921875,
- "y": 284.61918926239014,
- "z": "b6e8aa45.a03d48",
+ "x": 1680.285888671875,
+ "y": 316.61918926239014,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "d88564b1.978518"
+ "b4dc78a5.d896c8"
]
]
},
{
- "id": "d88564b1.978518",
+ "id": "b4dc78a5.d896c8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1947.575496673584,
- "y": 283.19059467315674,
- "z": "b6e8aa45.a03d48",
+ "x": 1961.571590423584,
+ "y": 315.19059467315674,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "eb2d673c.26d6e8"
+ "51ac74f.88fd58c"
]
]
},
{
- "id": "5a4256cd.31fdd8",
+ "id": "4be264b1.270e6c",
"type": "comment",
"name": "make sure this vnf-id doesn't exist already",
"info": "",
"comments": "",
- "x": 1635.4324111938477,
- "y": 248.1905813217163,
- "z": "b6e8aa45.a03d48",
+ "x": 1649.4285049438477,
+ "y": 280.1905813217163,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "deb0deb9.10aa8",
+ "id": "9885c8cf.ded0d8",
"type": "set",
"name": "set new vnf_length",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
"comments": "",
- "x": 617.5753936767578,
- "y": 410.33342599868774,
- "z": "b6e8aa45.a03d48",
+ "x": 619.5715484619141,
+ "y": 552.333429813385,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "f27c92ed.2a351",
+ "id": "6e79157a.cf280c",
"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": 604.5753555297852,
- "y": 880.59694480896,
- "z": "b6e8aa45.a03d48",
+ "x": 606.5715103149414,
+ "y": 1022.5969486236572,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "5e423ee5.be879",
+ "id": "3a3acb9a.529fc4",
"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-id`\" />\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-id`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 667.2421264648438,
- "y": 827.5968379974365,
- "z": "b6e8aa45.a03d48",
+ "x": 669.23828125,
+ "y": 969.5968418121338,
+ "z": "3deddfaf.57c2f",
"wires": [
[]
]
},
{
- "id": "4152c1db.9724f",
+ "id": "fff46357.6f3ad",
"type": "set",
"name": "set vnf-index and vnf-object-path",
"xml": "<set>\n<parameter name='vnfId' value='`$prop.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/' + $prop.vnf-id + '/vnf-data/'` \" />",
"comments": "",
- "x": 658.5753860473633,
- "y": 658.5968637466431,
- "z": "b6e8aa45.a03d48",
+ "x": 660.5715408325195,
+ "y": 800.5968675613403,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "34769e57.986742",
+ "id": "5da9f931.70bc48",
"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": 623.5750274658203,
- "y": 361.3247985839844,
- "z": "b6e8aa45.a03d48",
+ "x": 625.5711822509766,
+ "y": 503.32480239868164,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "eb2d673c.26d6e8",
+ "id": "51ac74f.88fd58c",
"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": 2076.1468658447266,
- "y": 334.1906089782715,
- "z": "b6e8aa45.a03d48",
+ "x": 2090.1429595947266,
+ "y": 366.1906089782715,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "6aca9b4.e7d1e64",
- "type": "comment",
- "name": "Take the parameter names by removing prefix",
- "info": "",
+ "id": "df8e278a.898b28",
+ "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-id\" >\n<parameter name=\"orchestration-status\" value=\"create\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
"comments": "",
- "x": 1369.5754776000977,
- "y": 337.66667556762695,
- "z": "b6e8aa45.a03d48",
- "wires": []
+ "outputs": 1,
+ "x": 715.5458450317383,
+ "y": 910.2470846176147,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ []
+ ]
},
{
- "id": "301883bc.025f5c",
+ "id": "6f579a3f.d15af4",
"type": "comment",
"name": "TODO: change AAI models",
"info": "",
"comments": "",
- "x": 647.1859512329102,
- "y": 727.9742965698242,
- "z": "b6e8aa45.a03d48",
+ "x": 649.1821060180664,
+ "y": 869.9743003845215,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "27f27223.64947e",
- "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-id\" >\n<parameter name=\"orchestration-status\" value=\"create\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
+ "id": "1bd26429.61c74c",
+ "type": "switchNode",
+ "name": "switch service-data.vnf-request-input.vnf-name",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 693.0000152587891,
+ "y": 393.0000114440918,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ [
+ "33ff6eed.504462",
+ "e2af6995.223f28",
+ "cc14ee3a.bceeb"
+ ]
+ ]
+ },
+ {
+ "id": "33ff6eed.504462",
+ "type": "outcomeTrue",
+ "name": "SDWAN-vpn",
+ "xml": "<outcome value='SDWAN-vpn'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 990.6667137145996,
+ "y": 378.0000114440918,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ [
+ "55868aa1.2254e4"
+ ]
+ ]
+ },
+ {
+ "id": "e2af6995.223f28",
+ "type": "outcomeTrue",
+ "name": "SDWAN-site",
+ "xml": "<outcome value='SDWAN-site'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 983.6666870117188,
+ "y": 428,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ [
+ "496e33ab.398b4c"
+ ]
+ ]
+ },
+ {
+ "id": "cc14ee3a.bceeb",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 966.6666870117188,
+ "y": 478,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ [
+ "c9a98bce.5a8c88"
+ ]
+ ]
+ },
+ {
+ "id": "c9a98bce.5a8c88",
+ "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=\"Error: vnf-name should be either SDWAN-vpn or SDWAN-site.\" />\n",
"comments": "",
+ "x": 1137.333366394043,
+ "y": 476.00001335144043,
+ "z": "3deddfaf.57c2f",
+ "wires": []
+ },
+ {
+ "id": "55868aa1.2254e4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1172,
+ "y": 379,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "496e33ab.398b4c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 713.549690246582,
- "y": 768.2470808029175,
- "z": "b6e8aa45.a03d48",
+ "x": 1163,
+ "y": 427,
+ "z": "3deddfaf.57c2f",
"wires": [
[]
]