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-vpn-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-vpn-create.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json | 376 |
1 files changed, 188 insertions, 188 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json index 58dcb220..88c8553b 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json @@ -1,35 +1,35 @@ [
{
- "id": "86705660.0abdc8",
+ "id": "f25c52a5.c1512",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 476.00390625,
- "y": 401.9999997615814,
- "z": "12e5b519.7c42cb",
+ "x": 431.0104064941406,
+ "y": 360.00000047683716,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "33a55b62.a48504",
- "c9956259.20d27",
- "92e109fc.d487c8",
- "fa6a2af9.45d408",
- "96b8a138.b9de9",
- "1072d79c.c97df8",
- "7fb4c42e.fff1cc",
- "8252c529.c8dc08",
- "d1676675.1b3088",
- "80911d80.565f6",
- "f1c0f2fa.5d8e8",
- "69439d08.c30934",
- "a6352f7.5aa86d"
+ "b0ec8338.580f5",
+ "f7ddfb47.5b2f08",
+ "b17c2a0a.9c7048",
+ "b301b0b4.47969",
+ "75b3686.06a8798",
+ "eda7bf6a.a6768",
+ "1c914e3e.bd19d2",
+ "e8fbb993.4260a8",
+ "ce57fa36.d86878",
+ "67b336e3.64c8a8",
+ "393d128d.77829e",
+ "3dff4920.e6f876",
+ "1788c292.f60a9d"
]
]
},
{
- "id": "4414eba1.be7024",
+ "id": "fd150a68.54b208",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -37,512 +37,512 @@ "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": 318.00392150878906,
- "y": 185.99999117851257,
- "z": "12e5b519.7c42cb",
+ "x": 273.0104217529297,
+ "y": 143.9999918937683,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "665e6349.0f20bc"
+ "58419eae.b9425"
]
]
},
{
- "id": "665e6349.0f20bc",
+ "id": "58419eae.b9425",
"type": "method",
"name": "sdwan-vf-operation-vpn-create",
"xml": "<method rpc='sdwan-vf-operation-vpn-create' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 317.00392150878906,
- "y": 285.9999911785126,
- "z": "12e5b519.7c42cb",
+ "x": 272.0104217529297,
+ "y": 243.9999918937683,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "86705660.0abdc8"
+ "f25c52a5.c1512"
]
]
},
{
- "id": "c5e65dcf.93a1d",
+ "id": "c35c953.b5e8868",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 147.50392150878906,
- "y": 96.9999988079071,
- "z": "12e5b519.7c42cb",
+ "x": 102.51042175292969,
+ "y": 54.99999952316284,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "4414eba1.be7024"
+ "fd150a68.54b208"
]
]
},
{
- "id": "c9956259.20d27",
+ "id": "f7ddfb47.5b2f08",
"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": 851.2541379928589,
- "y": 410.66667890548706,
- "z": "12e5b519.7c42cb",
+ "x": 806.2606382369995,
+ "y": 368.6666796207428,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "5f7e52d8.71003c"
+ "fcacce0e.8c56d"
]
]
},
{
- "id": "5f7e52d8.71003c",
+ "id": "fcacce0e.8c56d",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1066.0324811935425,
- "y": 408.2222628593445,
- "z": "12e5b519.7c42cb",
+ "x": 1021.0389814376831,
+ "y": 366.2222635746002,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "b5888647.1272c8",
- "f88a8224.ffbd4"
+ "e9bb9dc5.ab9e7",
+ "437b18ad.950888"
]
]
},
{
- "id": "b5888647.1272c8",
+ "id": "e9bb9dc5.ab9e7",
"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": 1262.2886838912964,
- "y": 385.97040128707886,
- "z": "12e5b519.7c42cb",
+ "x": 1217.295184135437,
+ "y": 343.9704020023346,
+ "z": "3b61dfe7.30ac3",
"wires": [
[]
]
},
{
- "id": "f88a8224.ffbd4",
+ "id": "437b18ad.950888",
"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": 1231.7331113815308,
- "y": 422.97051763534546,
- "z": "12e5b519.7c42cb",
+ "x": 1186.7396116256714,
+ "y": 380.9705183506012,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "84649b93.490df8",
+ "id": "7d6fd9af.e0a388",
"type": "comment",
"name": "Take the parameter names by removing prefix",
"info": "",
"comments": "",
- "x": 1235.254340171814,
- "y": 345.33334732055664,
- "z": "12e5b519.7c42cb",
+ "x": 1190.2608404159546,
+ "y": 303.3333480358124,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "33a55b62.a48504",
+ "id": "b0ec8338.580f5",
"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": 833.0039367675781,
- "y": 264.0000157356262,
- "z": "12e5b519.7c42cb",
+ "x": 788.0104370117188,
+ "y": 222.00001645088196,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "5e528a3d.403a94",
- "e1430919.889a48"
+ "e3d991cc.0551d",
+ "fab03553.0f6bc8"
]
]
},
{
- "id": "5e528a3d.403a94",
+ "id": "e3d991cc.0551d",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1064.0039472579956,
- "y": 240.00001287460327,
- "z": "12e5b519.7c42cb",
+ "x": 1019.0104475021362,
+ "y": 198.000013589859,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "d1fe70de.0d5a2"
+ "cd9f31aa.1f944"
]
]
},
{
- "id": "e1430919.889a48",
+ "id": "fab03553.0f6bc8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1064.0039472579956,
- "y": 280.00001287460327,
- "z": "12e5b519.7c42cb",
+ "x": 1019.0104475021362,
+ "y": 238.000013589859,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "550ac6cc.1a43f8"
+ "9fa4f951.782718"
]
]
},
{
- "id": "d1fe70de.0d5a2",
+ "id": "cd9f31aa.1f944",
"type": "set",
"name": "set vf-index",
"xml": "<set>\n<parameter name='vf-index' value='0' />\n",
"comments": "",
- "x": 1206.5039472579956,
- "y": 240.00001287460327,
- "z": "12e5b519.7c42cb",
+ "x": 1161.5104475021362,
+ "y": 198.000013589859,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "550ac6cc.1a43f8",
+ "id": "9fa4f951.782718",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1208.3609914779663,
- "y": 279.9365248680115,
- "z": "12e5b519.7c42cb",
+ "x": 1163.367491722107,
+ "y": 237.9365255832672,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "2b30e41b.b2df2c",
- "735539ef.d045e8"
+ "f792bd90.84c2f",
+ "a00871e4.c717d"
]
]
},
{
- "id": "735539ef.d045e8",
+ "id": "a00871e4.c717d",
"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": 1361.0594663619995,
- "y": 249.5556235606782,
- "z": "12e5b519.7c42cb",
+ "x": 1316.0659666061401,
+ "y": 207.55562427593395,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "2b30e41b.b2df2c",
+ "id": "f792bd90.84c2f",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
"comments": "",
"outputs": 1,
- "x": 1417.4879713058472,
- "y": 302.7777533531189,
- "z": "12e5b519.7c42cb",
+ "x": 1372.4944715499878,
+ "y": 260.77775406837463,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "e7001097.30f29"
+ "2a945efe.523112"
]
]
},
{
- "id": "87bb5bc0.359988",
+ "id": "a3b8abe8.a0e028",
"type": "comment",
"name": "make sure this network doesn't exist already",
"info": "",
"comments": "",
- "x": 1641.1387014389038,
- "y": 261.03181076049805,
- "z": "12e5b519.7c42cb",
+ "x": 1596.1452016830444,
+ "y": 219.03181147575378,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "e7001097.30f29",
+ "id": "2a945efe.523112",
"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": 1692.7736921310425,
- "y": 302.34925603866577,
- "z": "12e5b519.7c42cb",
+ "x": 1647.780192375183,
+ "y": 260.3492567539215,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "c77c794f.c68788"
+ "f09636f3.8478b8"
]
]
},
{
- "id": "c77c794f.c68788",
+ "id": "f09636f3.8478b8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1593.5038900375366,
- "y": 360.9206871986389,
- "z": "12e5b519.7c42cb",
+ "x": 1548.5103902816772,
+ "y": 318.92068791389465,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "1ae23876.21a108"
+ "a87baae5.4ae3f8"
]
]
},
{
- "id": "1ae23876.21a108",
+ "id": "a87baae5.4ae3f8",
"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": 1741.2539930343628,
- "y": 360.7778792674653,
- "z": "12e5b519.7c42cb",
+ "x": 1696.2604932785034,
+ "y": 318.77787998272106,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "1072d79c.c97df8",
+ "id": "eda7bf6a.a6768",
"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.vpn-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\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\n\n",
"comments": "",
- "x": 846.8571271896362,
- "y": 713.4962668418884,
- "z": "12e5b519.7c42cb",
+ "x": 801.8636274337769,
+ "y": 671.4962675571442,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "96b8a138.b9de9",
+ "id": "75b3686.06a8798",
"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.vpn-vf-index\"/>\n",
"comments": "",
"outputs": 1,
- "x": 858.1906995773315,
- "y": 666.1629691123962,
- "z": "12e5b519.7c42cb",
+ "x": 813.1971998214722,
+ "y": 624.162969827652,
+ "z": "3b61dfe7.30ac3",
"wires": [
[]
]
},
{
- "id": "fa6a2af9.45d408",
+ "id": "b301b0b4.47969",
"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": 830.1907606124878,
- "y": 617.1629691123962,
- "z": "12e5b519.7c42cb",
+ "x": 785.1972608566284,
+ "y": 575.162969827652,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "92e109fc.d487c8",
+ "id": "b17c2a0a.9c7048",
"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": 830.1902875900269,
- "y": 563.1542572975159,
- "z": "12e5b519.7c42cb",
+ "x": 785.1967878341675,
+ "y": 521.1542580127716,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "7fb4c42e.fff1cc",
+ "id": "1c914e3e.bd19d2",
"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": 840.5041151046753,
- "y": 811.000087916851,
- "z": "12e5b519.7c42cb",
+ "x": 795.5106153488159,
+ "y": 769.0000886321068,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "69439d08.c30934",
+ "id": "3dff4920.e6f876",
"type": "save",
"name": "save sdwan vpn resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $prop.vpn-vf-index' >\n<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\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.vpn-vf-index + '/vf-module-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $prop.vpn-vf-index' >\n<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\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.vpn-vf-index + '/vf-module-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 847.0039758682251,
- "y": 856.5000357627869,
- "z": "12e5b519.7c42cb",
+ "x": 802.0104761123657,
+ "y": 814.5000364780426,
+ "z": "3b61dfe7.30ac3",
"wires": [
[]
]
},
{
- "id": "8252c529.c8dc08",
+ "id": "e8fbb993.4260a8",
"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": 794.7264490127563,
- "y": 949.6739263534546,
- "z": "12e5b519.7c42cb",
+ "x": 749.732949256897,
+ "y": 907.6739270687103,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "d1676675.1b3088",
+ "id": "ce57fa36.d86878",
"type": "for",
"name": "for loop i - Network 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",
"comments": "",
"outputs": 1,
- "x": 858.2578535079956,
- "y": 499.5039267539978,
- "z": "12e5b519.7c42cb",
+ "x": 813.2643537521362,
+ "y": 457.50392746925354,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "63318660.a4e798"
+ "e6621181.b6207"
]
]
},
{
- "id": "63318660.a4e798",
+ "id": "e6621181.b6207",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1145.480731010437,
- "y": 499.7262406349182,
- "z": "12e5b519.7c42cb",
+ "x": 1100.4872312545776,
+ "y": 457.72624135017395,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "1e3ec759.b2be29",
- "bfacfb85.875b78"
+ "cf9839cf.8bf478",
+ "7fad1cad.2e9334"
]
]
},
{
- "id": "1e3ec759.b2be29",
+ "id": "cf9839cf.8bf478",
"type": "switchNode",
"name": "switch name",
"xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'name'`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1333.7025747299194,
- "y": 482.05954480171204,
- "z": "12e5b519.7c42cb",
+ "x": 1288.70907497406,
+ "y": 440.0595455169678,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "4c3c07dc.109bb8"
+ "2663612d.85d52e"
]
]
},
{
- "id": "bfacfb85.875b78",
+ "id": "7fad1cad.2e9334",
"type": "switchNode",
"name": "switch topology",
"xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'topology'`\">",
"comments": "",
"outputs": 1,
- "x": 1344.5422353744507,
- "y": 522.0595428943634,
- "z": "12e5b519.7c42cb",
+ "x": 1299.5487356185913,
+ "y": 480.05954360961914,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "8910bf6.fa8bd4"
+ "1951da82.25c5f5"
]
]
},
{
- "id": "4c3c07dc.109bb8",
+ "id": "2663612d.85d52e",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1520.7025747299194,
- "y": 478.05954480171204,
- "z": "12e5b519.7c42cb",
+ "x": 1475.70907497406,
+ "y": 436.0595455169678,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "330c74f0.0fa8ac"
+ "e034463.55bd5b8"
]
]
},
{
- "id": "8910bf6.fa8bd4",
+ "id": "1951da82.25c5f5",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1514.5422353744507,
- "y": 518.0595428943634,
- "z": "12e5b519.7c42cb",
+ "x": 1469.5487356185913,
+ "y": 476.05954360961914,
+ "z": "3b61dfe7.30ac3",
"wires": [
[
- "c760e70.ca63518"
+ "18d6441f.f0cc5c"
]
]
},
{
- "id": "330c74f0.0fa8ac",
+ "id": "e034463.55bd5b8",
"type": "set",
"name": "set name",
"xml": "<set>\n<parameter name='prop.name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n\n",
"comments": "",
- "x": 1670.7027044296265,
- "y": 476.6595513820648,
- "z": "12e5b519.7c42cb",
+ "x": 1625.709204673767,
+ "y": 434.65955209732056,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "c760e70.ca63518",
+ "id": "18d6441f.f0cc5c",
"type": "set",
"name": "set topology",
"xml": "<set>\n<parameter name='prop.topology' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1701.8756761550903,
- "y": 516.5206997394562,
- "z": "12e5b519.7c42cb",
+ "x": 1656.882176399231,
+ "y": 474.5207004547119,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "80911d80.565f6",
+ "id": "67b336e3.64c8a8",
"type": "call",
"name": "call GENERIC-RESOURCE-API:validate-sdwan-vf-vpn-input-parameters",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-vf-vpn-input-parameters' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 954.5077972412109,
- "y": 190.0039086341858,
- "z": "12e5b519.7c42cb",
+ "x": 909.5142974853516,
+ "y": 148.00390934944153,
+ "z": "3b61dfe7.30ac3",
"wires": [
[]
]
},
{
- "id": "f1c0f2fa.5d8e8",
+ "id": "393d128d.77829e",
"type": "set",
"name": "set vf-module-object-path",
"xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vpn-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.vpn-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": 832.5039930343628,
- "y": 762.0313073992729,
- "z": "12e5b519.7c42cb",
+ "x": 787.5104932785034,
+ "y": 720.0313081145287,
+ "z": "3b61dfe7.30ac3",
"wires": []
},
{
- "id": "a6352f7.5aa86d",
+ "id": "1788c292.f60a9d",
"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=\"sdwan-vpn\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/sdwan-vpns/sdwan-vpn/' + $prop.vpn-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"sdwan-vpn.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vpn-vf-index`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 847.004054069519,
- "y": 904.0001769065857,
- "z": "12e5b519.7c42cb",
+ "x": 802.0105543136597,
+ "y": 862.0001776218414,
+ "z": "3b61dfe7.30ac3",
"wires": [
[]
]
|