diff options
author | 2019-05-27 19:34:20 +0530 | |
---|---|---|
committer | 2019-05-29 11:15:06 +0000 | |
commit | 37115b5eac1f20ea2093b523bc2eade32d689c09 (patch) | |
tree | f60db92434a17d1f7f7e1c20732f9acb707cb0be /platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json | |
parent | 4757df51de8b114c6846eb82c913e4f1b1cc485e (diff) |
Fix SDNC parameters save in AAI failure
1. SDNC is fixed by passing proper UUID and version ID.
2. SDNC is fixed by removing validations for vnf
resource creation DG
3. Fixed sdwan-wan-port-static.json template by passing generated wan-portId
Issue-ID: SDNC-773
Signed-off-by: prakash.e <prakash.e@huawei.com>
Change-Id: I0021983f0721dde6592d86bef602b8b4641215a3
Former-commit-id: 5e6ca08e7b71fa0ba6fc4a9ad9e02739e81e5e07
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json | 366 |
1 files changed, 183 insertions, 183 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json index c3398834..e76571f6 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json @@ -1,6 +1,6 @@ [
{
- "id": "5de743a6.6e9fdc",
+ "id": "aee5dac3.29d8f8",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -8,524 +8,524 @@ "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": 292.03125,
- "y": 127.03125,
- "z": "56fc6b1a.95dca4",
+ "x": 259.0104064941406,
+ "y": 136.99999237060547,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "831852f4.73c97"
+ "92f80405.527238"
]
]
},
{
- "id": "831852f4.73c97",
+ "id": "92f80405.527238",
"type": "method",
"name": "sdwan-vf-operation-wanport-create",
"xml": "<method rpc='sdwan-vf-operation-wanport-create' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 291.03125,
- "y": 227.03125,
- "z": "56fc6b1a.95dca4",
+ "x": 258.0104064941406,
+ "y": 236.99999237060547,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "f0bca81d.b6a0f8"
+ "8357a961.bd7368"
]
]
},
{
- "id": "8410a95b.8b6678",
+ "id": "a10fd13a.8313d",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 148.53124618530273,
- "y": 36.03125762939453,
- "z": "56fc6b1a.95dca4",
+ "x": 115.51040267944336,
+ "y": 46,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "5de743a6.6e9fdc"
+ "aee5dac3.29d8f8"
]
]
},
{
- "id": "f0bca81d.b6a0f8",
+ "id": "8357a961.bd7368",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 450.03123474121094,
- "y": 343.03125858306885,
- "z": "56fc6b1a.95dca4",
+ "x": 417.01039123535156,
+ "y": 353.0000009536743,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "54bfa066.4da69",
- "1eb4450c.b37a3b",
- "ff1f4bbb.9c88d8",
- "262e8a6c.764e06",
- "1438dd60.41b403",
- "fa6eaef6.2d96",
- "fdda37d.d3044c8",
- "9b9a9c47.ff729",
- "89e460e0.31c23",
- "cf5e55a3.da5e38",
- "3ce6fee1.f7c372",
- "37eaec79.c59c14",
- "981dfc9a.eb48b",
- "461f9f03.a33d2"
+ "c20a7dc0.e21ea",
+ "b9fc1e5f.5b376",
+ "1b6a0c2c.530674",
+ "dfd3a664.1be748",
+ "f3dc4ebd.df298",
+ "cae5d4a0.b09a38",
+ "67d04e5d.908a3",
+ "fd081780.8915a8",
+ "4fc9e2ee.90febc",
+ "cdfc7ae4.0514d8",
+ "2814f80b.cacb28",
+ "da49c07c.27b0f",
+ "3699b36a.223adc",
+ "1bf42dc2.073fb2"
]
]
},
{
- "id": "54bfa066.4da69",
+ "id": "c20a7dc0.e21ea",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 750.3606567382812,
- "y": 234.52738285064697,
- "z": "56fc6b1a.95dca4",
+ "x": 717.3398132324219,
+ "y": 244.49612522125244,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "53ca6ad5.693354"
+ "fc97057b.994b78"
]
]
},
{
- "id": "53ca6ad5.693354",
+ "id": "fc97057b.994b78",
"type": "switchNode",
"name": "switch this vnf-id == input vnf-id",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
"comments": "",
"outputs": 1,
- "x": 1002.3607482910156,
- "y": 233.1940460205078,
- "z": "56fc6b1a.95dca4",
+ "x": 969.3399047851562,
+ "y": 243.16278839111328,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "3af25422.f8b80c"
+ "df301c25.93aef"
]
]
},
{
- "id": "61e228fb.8092e8",
+ "id": "311e101f.d5d19",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1374.0272369384766,
- "y": 235.19404888153076,
- "z": "56fc6b1a.95dca4",
+ "x": 1341.0063934326172,
+ "y": 245.16279125213623,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "3af25422.f8b80c",
+ "id": "df301c25.93aef",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1220.6940650939941,
- "y": 235.1940279006958,
- "z": "56fc6b1a.95dca4",
+ "x": 1187.6732215881348,
+ "y": 245.16277027130127,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "61e228fb.8092e8"
+ "311e101f.d5d19"
]
]
},
{
- "id": "262e8a6c.764e06",
+ "id": "dfd3a664.1be748",
"type": "for",
"name": "for loop idx - VF input parameters",
"xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 824.2814407348633,
- "y": 456.6979160308838,
- "z": "56fc6b1a.95dca4",
+ "x": 791.2605972290039,
+ "y": 466.66665840148926,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "6641b8fa.11e218"
+ "aad3c15.925ee4"
]
]
},
{
- "id": "6641b8fa.11e218",
+ "id": "aad3c15.925ee4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1039.0597839355469,
- "y": 454.2534999847412,
- "z": "56fc6b1a.95dca4",
+ "x": 1006.0389404296875,
+ "y": 464.2222423553467,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "4c2187d7.70c4d8",
- "32a53869.510578"
+ "917fbe88.711cc",
+ "c43ea4c0.149928"
]
]
},
{
- "id": "4c2187d7.70c4d8",
+ "id": "917fbe88.711cc",
"type": "execute",
"name": "execute split parameterName",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1235.3159866333008,
- "y": 432.0016384124756,
- "z": "56fc6b1a.95dca4",
+ "x": 1202.2951431274414,
+ "y": 441.97038078308105,
+ "z": "3e6f238d.8b432c",
"wires": [
[]
]
},
{
- "id": "32a53869.510578",
+ "id": "c43ea4c0.149928",
"type": "set",
"name": "set parameterName",
"xml": "<set>\n<parameter name=\"`vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
"comments": "",
- "x": 1204.7604141235352,
- "y": 469.0017547607422,
- "z": "56fc6b1a.95dca4",
+ "x": 1171.7395706176758,
+ "y": 478.97049713134766,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "ab557068.64844",
+ "id": "5248680e.c068e8",
"type": "comment",
"name": "Take the parameter names by removing prefix",
"info": "",
"comments": "",
- "x": 1208.2816429138184,
- "y": 391.36458444595337,
- "z": "56fc6b1a.95dca4",
+ "x": 1175.260799407959,
+ "y": 401.33332681655884,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "1eb4450c.b37a3b",
+ "id": "b9fc1e5f.5b376",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 764.78125,
- "y": 190.03125190734863,
- "z": "56fc6b1a.95dca4",
+ "x": 731.7604064941406,
+ "y": 199.9999942779541,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "e279b1ab.b937f"
+ "c77be859.d85c08"
]
]
},
{
- "id": "e279b1ab.b937f",
+ "id": "c77be859.d85c08",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 951.4479293823242,
- "y": 189.36454963684082,
- "z": "56fc6b1a.95dca4",
+ "x": 918.4270858764648,
+ "y": 199.3332920074463,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "c52a39f4.c6da18"
+ "c9a6db6e.787d58"
]
]
},
{
- "id": "c52a39f4.c6da18",
+ "id": "c9a6db6e.787d58",
"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=\"There are no VNFs in MD-SAL\" />\n",
"comments": "",
- "x": 1133.1145553588867,
- "y": 189.36454963684082,
- "z": "56fc6b1a.95dca4",
+ "x": 1100.0937118530273,
+ "y": 199.3332920074463,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "ff1f4bbb.9c88d8",
+ "id": "1b6a0c2c.530674",
"type": "switchNode",
"name": "switch vf-modules.vf-module_length",
"xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 806.0312395095825,
- "y": 310.03125286102295,
- "z": "56fc6b1a.95dca4",
+ "x": 773.0103960037231,
+ "y": 319.9999952316284,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "cd7442d9.34306",
- "6d930136.d20cb"
+ "9acf5c90.6cf6",
+ "ffb3f2fc.2e117"
]
]
},
{
- "id": "cd7442d9.34306",
+ "id": "9acf5c90.6cf6",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1037.03125,
- "y": 286.03125,
- "z": "56fc6b1a.95dca4",
+ "x": 1004.0104064941406,
+ "y": 295.99999237060547,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "c51e25a8.593288"
+ "8e0399d7.7006d8"
]
]
},
{
- "id": "6d930136.d20cb",
+ "id": "ffb3f2fc.2e117",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1037.03125,
- "y": 326.03125,
- "z": "56fc6b1a.95dca4",
+ "x": 1004.0104064941406,
+ "y": 335.99999237060547,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "8a36da98.f826b8"
+ "ef3e733d.2d036"
]
]
},
{
- "id": "c51e25a8.593288",
+ "id": "8e0399d7.7006d8",
"type": "set",
"name": "set vf-index",
"xml": "<set>\n<parameter name='vf-index' value='0' />\n",
"comments": "",
- "x": 1179.53125,
- "y": 286.03125,
- "z": "56fc6b1a.95dca4",
+ "x": 1146.5104064941406,
+ "y": 295.99999237060547,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "8a36da98.f826b8",
+ "id": "ef3e733d.2d036",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1181.3882942199707,
- "y": 325.9677619934082,
- "z": "56fc6b1a.95dca4",
+ "x": 1148.3674507141113,
+ "y": 335.9365043640137,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "26e4ea27.208ad6",
- "44db3104.e81c6"
+ "1d25ad68.e6ab83",
+ "461a624f.09559c"
]
]
},
{
- "id": "44db3104.e81c6",
+ "id": "461a624f.09559c",
"type": "set",
"name": "set vf-index",
"xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",
"comments": "",
- "x": 1334.086769104004,
- "y": 295.58686068607494,
- "z": "56fc6b1a.95dca4",
+ "x": 1301.0659255981445,
+ "y": 305.5556030566804,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "26e4ea27.208ad6",
+ "id": "1d25ad68.e6ab83",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
"comments": "",
"outputs": 1,
- "x": 1390.5152740478516,
- "y": 348.8089904785156,
- "z": "56fc6b1a.95dca4",
+ "x": 1357.4944305419922,
+ "y": 358.7777328491211,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "3b7c03ef.0af89c"
+ "620a6b7.d8fa094"
]
]
},
{
- "id": "5b9f74ec.1882ec",
+ "id": "406aa837.6a2a68",
"type": "comment",
"name": "make sure this network doesn't exist already",
"info": "",
"comments": "",
- "x": 1614.1660041809082,
- "y": 307.0630478858948,
- "z": "56fc6b1a.95dca4",
+ "x": 1581.1451606750488,
+ "y": 317.03179025650024,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "3b7c03ef.0af89c",
+ "id": "620a6b7.d8fa094",
"type": "switchNode",
"name": "switch vf-module-id found",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
"comments": "",
"outputs": 1,
- "x": 1665.8009948730469,
- "y": 348.3804931640625,
- "z": "56fc6b1a.95dca4",
+ "x": 1632.7801513671875,
+ "y": 358.34923553466797,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "84bba4b1.816e38"
+ "89ef579f.c10518"
]
]
},
{
- "id": "84bba4b1.816e38",
+ "id": "89ef579f.c10518",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1566.531192779541,
- "y": 406.95192432403564,
- "z": "56fc6b1a.95dca4",
+ "x": 1533.5103492736816,
+ "y": 416.9206666946411,
+ "z": "3e6f238d.8b432c",
"wires": [
[
- "4d582e07.7c7a1"
+ "b4a45077.2328e"
]
]
},
{
- "id": "4d582e07.7c7a1",
+ "id": "b4a45077.2328e",
"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=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id already found in service-data\" />\n",
"comments": "",
- "x": 1714.2812957763672,
- "y": 406.80911639286205,
- "z": "56fc6b1a.95dca4",
+ "x": 1681.2604522705078,
+ "y": 416.7778587634675,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "9b9a9c47.ff729",
+ "id": "fd081780.8915a8",
"type": "set",
"name": "copy input data to service data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.wan-port-vf-index`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' />\n",
"comments": "",
- "x": 821.8844604492188,
- "y": 730.527437210083,
- "z": "56fc6b1a.95dca4",
+ "x": 788.8636169433594,
+ "y": 740.4961795806885,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "fdda37d.d3044c8",
+ "id": "67d04e5d.908a3",
"type": "execute",
"name": "execute generate-vf-module-index",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.wan-port-vf-index\"/>\n",
"comments": "",
"outputs": 1,
- "x": 831.2179641723633,
- "y": 682.1941680908203,
- "z": "56fc6b1a.95dca4",
+ "x": 798.1971206665039,
+ "y": 692.1629104614258,
+ "z": "3e6f238d.8b432c",
"wires": [
[]
]
},
{
- "id": "fa6eaef6.2d96",
+ "id": "cae5d4a0.b09a38",
"type": "set",
"name": "set new vf-module_length",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",
"comments": "",
- "x": 803.2179107666016,
- "y": 629.1941051483154,
- "z": "56fc6b1a.95dca4",
+ "x": 770.1970672607422,
+ "y": 639.1628475189209,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "1438dd60.41b403",
+ "id": "f3dc4ebd.df298",
"type": "set",
"name": "set vf-module-request-input.",
"xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",
"comments": "",
- "x": 815.2175788879395,
- "y": 519.1854801177979,
- "z": "56fc6b1a.95dca4",
+ "x": 782.1967353820801,
+ "y": 529.1542224884033,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "89e460e0.31c23",
+ "id": "4fc9e2ee.90febc",
"type": "set",
"name": "set vf-module-object-path",
"xml": "<set>\n<parameter name='vf-module-id' value='`$prop.wan-port-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.wan-port-vf-index\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
"comments": "",
- "x": 807.0313243865967,
- "y": 788.0312948226929,
- "z": "56fc6b1a.95dca4",
+ "x": 774.0104808807373,
+ "y": 798.0000371932983,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "cf5e55a3.da5e38",
+ "id": "cdfc7ae4.0514d8",
"type": "set",
"name": "set vf-module-level-oper-status",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-rpc-action' value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />",
"comments": "",
- "x": 821.5313835144043,
- "y": 838.0311880111694,
- "z": "56fc6b1a.95dca4",
+ "x": 788.5105400085449,
+ "y": 847.9999303817749,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "981dfc9a.eb48b",
+ "id": "3699b36a.223adc",
"type": "save",
"name": "save sdwan vpn resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $prop.wan-port-vf-index' >\n<parameter name=\"wan-port-config-id\" value=\"`$prop.wan-port-vf-index`\" />\n<parameter name=\"wan-port-config-name\" value=\"`$prop.wan.name`\" />\n<parameter name=\"device-id\" value=\"`$prop.wan.deviceName`\" />\n<parameter name='vlan-id' value=\"`$prop.wan.vlanId`\" />\n<parameter name=\"ip-address\" value=\"`$prop.wan.ipAddress`\" />\n<parameter name=\"provider-ip-address\" value=\"`$prop.wan.providerIpAddress`\" />\n<parameter name=\"input-bandwidth\" value=\"`$prop.wan.inputBandwidth`\" />\n<parameter name=\"output-bandwidth\" value=\"`$prop.wan.outputBandwidth`\" />\n<parameter name=\"description\" value=\"`$prop.wan.description`\" />\n<parameter name=\"port-type\" value=\"`$prop.wan.portType`\" />\n<parameter name=\"port-number\" value=\"`$prop.wan.portNumber`\" />\n<parameter name=\"transport-network-name\" value=\"`$prop.wan.transportNetworkName`\" />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.wan-port-vf-index + '/vf-module-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $prop.wan-port-vf-index' >\n<parameter name=\"wan-port-config-id\" value=\"`$prop.wan-port-vf-index`\" />\n<parameter name=\"wan-port-config-name\" value=\"`$prop.wan.name`\" />\n<parameter name=\"device-id\" value=\"`$prop.wan.deviceName`\" />\n<parameter name='vlan-id' value=\"`$prop.wan.vlanId`\" />\n<parameter name=\"ip-address\" value=\"`$prop.wan.ipAddress`\" />\n<parameter name=\"provider-ip-address\" value=\"`$prop.wan.providerIpAddress`\" />\n<parameter name=\"input-bandwidth\" value=\"`$prop.wan.inputBandwidth`\" />\n<parameter name=\"output-bandwidth\" value=\"`$prop.wan.outputBandwidth`\" />\n<parameter name=\"description\" value=\"`$prop.wan.description`\" />\n<parameter name=\"port-type\" value=\"`$prop.wan.portType`\" />\n<parameter name=\"port-number\" value=\"`$prop.wan.portNumber`\" />\n<parameter name=\"transport-network-name\" value=\"`$prop.wan.transportNetworkName`\" />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.wan-port-vf-index + '/vf-module-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 825.0312919616699,
- "y": 881.5312337875366,
- "z": "56fc6b1a.95dca4",
+ "x": 792.0104484558105,
+ "y": 891.4999761581421,
+ "z": "3e6f238d.8b432c",
"wires": [
[]
]
},
{
- "id": "461f9f03.a33d2",
+ "id": "1bf42dc2.073fb2",
"type": "save",
"name": "save service relationship in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list' \n key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"wan-port-config\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/wan-port-configs/wan-port-config/' + $prop.wan-port-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"wan-port-config.wan-port-config-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.wan-port-vf-index`\" />\n",
"comments": "",
"outputs": 1,
- "x": 822.0312194824219,
- "y": 927.5312652587891,
- "z": "56fc6b1a.95dca4",
+ "x": 789.0103759765625,
+ "y": 937.5000076293945,
+ "z": "3e6f238d.8b432c",
"wires": [
[]
]
},
{
- "id": "3ce6fee1.f7c372",
+ "id": "2814f80b.cacb28",
"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": 772.7537651062012,
- "y": 974.7051243782043,
- "z": "56fc6b1a.95dca4",
+ "x": 739.7329216003418,
+ "y": 984.6738667488098,
+ "z": "3e6f238d.8b432c",
"wires": []
},
{
- "id": "37eaec79.c59c14",
+ "id": "da49c07c.27b0f",
"type": "call",
"name": "call sdwan-get-wan-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 814.9201202392578,
- "y": 581.9201335906982,
- "z": "56fc6b1a.95dca4",
+ "x": 781.8992767333984,
+ "y": 591.8888759613037,
+ "z": "3e6f238d.8b432c",
"wires": [
[]
]
|