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-device-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-device-create.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json | 512 |
1 files changed, 256 insertions, 256 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json index 4760d35a..413069e0 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json @@ -1,22 +1,22 @@ [
{
- "id": "ad9a9168.e57ff",
+ "id": "a55c86e0.b5aa88",
"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": 956.03125,
- "y": 159.13152408599854,
- "z": "46bf2b6e.2c0e64",
+ "x": 969.829511642456,
+ "y": 145.13152599334717,
+ "z": "13a3e634.05943a",
"wires": [
[
- "e7246404.3ab3d8"
+ "89879683.435e28"
]
]
},
{
- "id": "6ad25904.845b18",
+ "id": "654795a8.0c14ac",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -24,720 +24,720 @@ "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": 228.7017364501953,
- "y": 186.96871662139893,
- "z": "46bf2b6e.2c0e64",
+ "x": 242.49999809265137,
+ "y": 172.96871852874756,
+ "z": "13a3e634.05943a",
"wires": [
[
- "f16fce6c.5d5ba"
+ "9d67b8bb.5c3018"
]
]
},
{
- "id": "f16fce6c.5d5ba",
+ "id": "9d67b8bb.5c3018",
"type": "method",
"name": "sdwan-vf-operation-device-create",
"xml": "<method rpc='sdwan-vf-operation-device-create' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 227.7017364501953,
- "y": 286.9687166213989,
- "z": "46bf2b6e.2c0e64",
+ "x": 241.49999809265137,
+ "y": 272.96871852874756,
+ "z": "13a3e634.05943a",
"wires": [
[
- "c112bcf.84b4e4"
+ "b03e92e3.4a48b"
]
]
},
{
- "id": "1a36f303.fc1c1d",
+ "id": "5c240948.ac8cb8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 114.20173835754395,
- "y": 79.96872520446777,
- "z": "46bf2b6e.2c0e64",
+ "x": 128,
+ "y": 65.9687271118164,
+ "z": "13a3e634.05943a",
"wires": [
[
- "6ad25904.845b18"
+ "654795a8.0c14ac"
]
]
},
{
- "id": "c112bcf.84b4e4",
+ "id": "b03e92e3.4a48b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 386.70172119140625,
- "y": 402.9687252044678,
- "z": "46bf2b6e.2c0e64",
+ "x": 400.4999828338623,
+ "y": 388.9687271118164,
+ "z": "13a3e634.05943a",
"wires": [
[
- "abed0b7b.e9c438",
- "724392ca.bd7b5c",
- "2b72757.931558a",
- "a49a2243.bbcb2",
- "c992605b.552a5",
- "40876e67.4cc8d",
- "86ee3fd8.45a8b",
- "414cae1d.205f6",
- "7ba39512.c516ac",
- "3a2a0968.648d36",
- "7024b9ac.3160d8",
- "fdab20c0.e8295",
- "d3c28e8a.2aecc",
- "b7d7095a.45e048"
+ "949786f1.863f68",
+ "ea17361a.fd7708",
+ "efdf1074.6df6a",
+ "398e0031.2e059",
+ "cb5e3f0e.d096d",
+ "759de3b6.0709dc",
+ "115eabc8.0c7c94",
+ "a28188f1.6060e8",
+ "97ec72bd.6232e",
+ "e24672d6.3f64f",
+ "56ec94bf.93da3c",
+ "9d805d88.8f8ee",
+ "64fa5b44.3987c4",
+ "8956e9de.67f788"
]
]
},
{
- "id": "abed0b7b.e9c438",
+ "id": "949786f1.863f68",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 704.0311584472656,
- "y": 160.4648609161377,
- "z": "46bf2b6e.2c0e64",
+ "x": 717.8294200897217,
+ "y": 146.46486282348633,
+ "z": "13a3e634.05943a",
"wires": [
[
- "ad9a9168.e57ff"
+ "a55c86e0.b5aa88"
]
]
},
{
- "id": "4ed9f1d2.fc2b7",
+ "id": "5c7606f2.618b18",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1327.697738647461,
- "y": 161.13152694702148,
- "z": "46bf2b6e.2c0e64",
+ "x": 1341.496000289917,
+ "y": 147.13152885437012,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "e7246404.3ab3d8",
+ "id": "89879683.435e28",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1174.3645668029785,
- "y": 161.13150596618652,
- "z": "46bf2b6e.2c0e64",
+ "x": 1188.1628284454346,
+ "y": 147.13150787353516,
+ "z": "13a3e634.05943a",
"wires": [
[
- "4ed9f1d2.fc2b7"
+ "5c7606f2.618b18"
]
]
},
{
- "id": "2b72757.931558a",
+ "id": "efdf1074.6df6a",
"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": 784.9518966674805,
- "y": 561.6354055404663,
- "z": "46bf2b6e.2c0e64",
+ "x": 798.7501583099365,
+ "y": 547.6354074478149,
+ "z": "13a3e634.05943a",
"wires": [
[
- "1cf539f3.af1b96"
+ "aa19f798.d86af8"
]
]
},
{
- "id": "1cf539f3.af1b96",
+ "id": "aa19f798.d86af8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 999.7302398681641,
- "y": 559.1909894943237,
- "z": "46bf2b6e.2c0e64",
+ "x": 1013.5285015106201,
+ "y": 545.1909914016724,
+ "z": "13a3e634.05943a",
"wires": [
[
- "1a9f780a.a03398",
- "dcb3e18.352e72"
+ "5ba25a3d.6d9bd4",
+ "bcc6d89b.3d5508"
]
]
},
{
- "id": "1a9f780a.a03398",
+ "id": "5ba25a3d.6d9bd4",
"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": 1195.986442565918,
- "y": 536.9391279220581,
- "z": "46bf2b6e.2c0e64",
+ "x": 1209.784704208374,
+ "y": 522.9391298294067,
+ "z": "13a3e634.05943a",
"wires": [
[]
]
},
{
- "id": "dcb3e18.352e72",
+ "id": "bcc6d89b.3d5508",
"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": 1165.4308700561523,
- "y": 573.9392442703247,
- "z": "46bf2b6e.2c0e64",
+ "x": 1179.2291316986084,
+ "y": 559.9392461776733,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "724392ca.bd7b5c",
+ "id": "ea17361a.fd7708",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 718.4517517089844,
- "y": 115.96872997283936,
- "z": "46bf2b6e.2c0e64",
+ "x": 732.2500133514404,
+ "y": 101.96873188018799,
+ "z": "13a3e634.05943a",
"wires": [
[
- "b66cc394.12346"
+ "fb03dd5b.a92d3"
]
]
},
{
- "id": "b66cc394.12346",
+ "id": "fb03dd5b.a92d3",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 905.1184310913086,
- "y": 115.30202770233154,
- "z": "46bf2b6e.2c0e64",
+ "x": 918.9166927337646,
+ "y": 101.30202960968018,
+ "z": "13a3e634.05943a",
"wires": [
[
- "c5ad3c03.3e718"
+ "54203a8b.1592b4"
]
]
},
{
- "id": "c5ad3c03.3e718",
+ "id": "54203a8b.1592b4",
"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": 1086.785057067871,
- "y": 115.30202770233154,
- "z": "46bf2b6e.2c0e64",
+ "x": 1100.5833187103271,
+ "y": 101.30202960968018,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "40876e67.4cc8d",
+ "id": "759de3b6.0709dc",
"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.vf-id`' />\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\n",
"comments": "",
- "x": 769.5548782348633,
- "y": 728.4649872779846,
- "z": "46bf2b6e.2c0e64",
+ "x": 783.3531398773193,
+ "y": 714.4649891853333,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "a49a2243.bbcb2",
+ "id": "398e0031.2e059",
"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": 775.8880348205566,
- "y": 624.1229696273804,
- "z": "46bf2b6e.2c0e64",
+ "x": 789.6862964630127,
+ "y": 610.122971534729,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "c992605b.552a5",
+ "id": "cb5e3f0e.d096d",
"type": "call",
"name": "call sdwan-get-vf-module-device-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 801.8884124755859,
- "y": 680.1232032775879,
- "z": "46bf2b6e.2c0e64",
+ "x": 815.686674118042,
+ "y": 666.1232051849365,
+ "z": "13a3e634.05943a",
"wires": [
[]
]
},
{
- "id": "86ee3fd8.45a8b",
+ "id": "115eabc8.0c7c94",
"type": "set",
"name": "set vf-module-object-path",
"xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \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.vf-id\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": 764.7017707824707,
- "y": 778.9688324928284,
- "z": "46bf2b6e.2c0e64",
+ "x": 778.5000324249268,
+ "y": 764.968834400177,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "414cae1d.205f6",
+ "id": "a28188f1.6060e8",
"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`' />\n",
"comments": "",
- "x": 772.2018737792969,
- "y": 826.9687967300415,
- "z": "46bf2b6e.2c0e64",
+ "x": 786.0001354217529,
+ "y": 812.9687986373901,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "c8a9b81e.4dea68",
+ "id": "2bd76b30.e44c14",
"type": "save",
"name": "save sdwan vpn resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\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.vf-id + '/vf-module-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\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.vf-id + '/vf-module-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 1206.701789855957,
- "y": 852.4687442779541,
- "z": "46bf2b6e.2c0e64",
+ "x": 1220.500051498413,
+ "y": 838.4687461853027,
+ "z": "13a3e634.05943a",
"wires": [
[]
]
},
{
- "id": "3a2a0968.648d36",
+ "id": "e24672d6.3f64f",
"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=\"device\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/devices/device/' + $prop.vf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"device.device-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vf-id`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 775.7016677856445,
- "y": 920.4687957763672,
- "z": "46bf2b6e.2c0e64",
+ "x": 789.4999294281006,
+ "y": 906.4687976837158,
+ "z": "13a3e634.05943a",
"wires": [
[]
]
},
{
- "id": "7ba39512.c516ac",
+ "id": "97ec72bd.6232e",
"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": 724.4241981506348,
- "y": 966.6426386833191,
- "z": "46bf2b6e.2c0e64",
+ "x": 738.2224597930908,
+ "y": 952.6426405906677,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "faa86376.49175",
+ "id": "5aff085f.4f6678",
"type": "execute",
"name": "execute generate-vf-id",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vf-id\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1251.8685150146484,
- "y": 240.30206966400146,
- "z": "46bf2b6e.2c0e64",
+ "x": 1265.6667766571045,
+ "y": 226.3020715713501,
+ "z": "13a3e634.05943a",
"wires": [
[]
]
},
{
- "id": "491e4f90.e2d44",
+ "id": "6d401f41.38c65",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1004.8680419921875,
- "y": 254.95347213745117,
- "z": "46bf2b6e.2c0e64",
+ "x": 1018.6663036346436,
+ "y": 240.9534740447998,
+ "z": "13a3e634.05943a",
"wires": [
[
- "faa86376.49175",
- "1889b968.9cafa7",
- "c8eb51dd.8bc9f"
+ "5aff085f.4f6678",
+ "5b632a30.5bb984",
+ "3542675.5ce1998"
]
]
},
{
- "id": "74ee118f.3bdb3",
+ "id": "931487e.1357f78",
"type": "set",
"name": "set prop.vf-id",
"xml": "<set>\n<parameter name='prop.vf-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n",
"comments": "",
- "x": 1210.3999099731445,
- "y": 457.985107421875,
- "z": "46bf2b6e.2c0e64",
+ "x": 1224.1981716156006,
+ "y": 443.98510932922363,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "dfbd61c4.ba851",
+ "id": "4589ca44.abd4b4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1004.3995361328125,
- "y": 410.9848394393921,
- "z": "46bf2b6e.2c0e64",
+ "x": 1018.1977977752686,
+ "y": 396.9848413467407,
+ "z": "13a3e634.05943a",
"wires": [
[
- "74ee118f.3bdb3",
- "1889b968.9cafa7",
- "f58396e4.0282e8"
+ "931487e.1357f78",
+ "5b632a30.5bb984",
+ "5d9e7b7e.ca4bf4"
]
]
},
{
- "id": "1889b968.9cafa7",
+ "id": "5b632a30.5bb984",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1239.8996353149414,
- "y": 334.98486328125,
- "z": "46bf2b6e.2c0e64",
+ "x": 1253.6978969573975,
+ "y": 320.98486518859863,
+ "z": "13a3e634.05943a",
"wires": [
[
- "ecce0898.ef26d8",
- "e6c1d3e3.fb47b"
+ "66c1c6a1.0380b8",
+ "7a26fc83.04adb4"
]
]
},
{
- "id": "e28abe4b.99802",
+ "id": "4aab28a9.38e418",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1701.6139278411865,
- "y": 254.12758922576904,
- "z": "46bf2b6e.2c0e64",
+ "x": 1715.4121894836426,
+ "y": 240.12759113311768,
+ "z": "13a3e634.05943a",
"wires": [
[
- "4d6a716f.84ac8"
+ "6d61baf9.e5ff54"
]
]
},
{
- "id": "4d6a716f.84ac8",
+ "id": "6d61baf9.e5ff54",
"type": "set",
"name": "set vf-index=0",
"xml": "<set>\n<parameter name='vf-index' value='0' />\n",
"comments": "",
- "x": 1849.8995761871338,
- "y": 251.12764358520508,
- "z": "46bf2b6e.2c0e64",
+ "x": 1863.6978378295898,
+ "y": 237.1276454925537,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "ad9a94b.6789668",
+ "id": "31602a2e.23f6d6",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1705.0424251556396,
- "y": 299.41338062286377,
- "z": "46bf2b6e.2c0e64",
+ "x": 1718.8406867980957,
+ "y": 285.4133825302124,
+ "z": "13a3e634.05943a",
"wires": [
[
- "aa7a0bdb.e96638"
+ "794d6b8.233bf94"
]
]
},
{
- "id": "aa7a0bdb.e96638",
+ "id": "794d6b8.233bf94",
"type": "set",
"name": "set vf-index = vf_length",
"xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n",
"comments": "",
- "x": 1888.90016746521,
- "y": 299.6991491317749,
- "z": "46bf2b6e.2c0e64",
+ "x": 1902.698429107666,
+ "y": 285.69915103912354,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "ecce0898.ef26d8",
+ "id": "66c1c6a1.0380b8",
"type": "set",
"name": "set new vF_length",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />\n",
"comments": "",
- "x": 1417.8996391296387,
- "y": 363.984827041626,
- "z": "46bf2b6e.2c0e64",
+ "x": 1431.6979007720947,
+ "y": 349.9848289489746,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "b86e63fd.fc195",
+ "id": "4261b847.26d008",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1654.471076965332,
- "y": 394.1277618408203,
- "z": "46bf2b6e.2c0e64",
+ "x": 1668.269338607788,
+ "y": 380.12776374816895,
+ "z": "13a3e634.05943a",
"wires": [
[
- "5a9cb21d.1f494c"
+ "f7fccba6.c15138"
]
]
},
{
- "id": "5a9cb21d.1f494c",
+ "id": "f7fccba6.c15138",
"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": 1793.0424346923828,
- "y": 394.12772274017334,
- "z": "46bf2b6e.2c0e64",
+ "x": 1806.8406963348389,
+ "y": 380.127724647522,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "2f10259c.95f9fa",
+ "id": "5d0b6c.7fe7e494",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 853.3991165161133,
- "y": 378.9847173690796,
- "z": "46bf2b6e.2c0e64",
+ "x": 867.1973781585693,
+ "y": 364.9847192764282,
+ "z": "13a3e634.05943a",
"wires": [
[
- "dfbd61c4.ba851"
+ "4589ca44.abd4b4"
]
]
},
{
- "id": "c5868d60.4eb9c",
+ "id": "cd8f5874.903778",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>",
"comments": "",
"outputs": 1,
- "x": 856.8679389953613,
- "y": 318.9534797668457,
- "z": "46bf2b6e.2c0e64",
+ "x": 870.6662006378174,
+ "y": 304.95348167419434,
+ "z": "13a3e634.05943a",
"wires": [
[
- "491e4f90.e2d44"
+ "6d401f41.38c65"
]
]
},
{
- "id": "585f0966.3b4ab8",
+ "id": "9419aeb4.031d3",
"type": "comment",
"name": "if SO provide vf-id use that else create new",
"info": "",
"comments": "",
- "x": 1554.3991317749023,
- "y": 214.98472118377686,
- "z": "46bf2b6e.2c0e64",
+ "x": 1568.1973934173584,
+ "y": 200.9847230911255,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "fdab20c0.e8295",
+ "id": "9d805d88.8f8ee",
"type": "switchNode",
"name": "switch vf-id",
"xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
"comments": "",
"outputs": 1,
- "x": 715.8679351806641,
- "y": 343.95348834991455,
- "z": "46bf2b6e.2c0e64",
+ "x": 729.6661968231201,
+ "y": 329.9534902572632,
+ "z": "13a3e634.05943a",
"wires": [
[
- "c5868d60.4eb9c",
- "2f10259c.95f9fa"
+ "cd8f5874.903778",
+ "5d0b6c.7fe7e494"
]
]
},
{
- "id": "7024b9ac.3160d8",
+ "id": "56ec94bf.93da3c",
"type": "switchNode",
"name": "switch vnf-index",
"xml": "<switch test='`$vnf-index`'>\n",
"comments": "",
"outputs": 1,
- "x": 715.7330017089844,
- "y": 208.99999523162842,
- "z": "46bf2b6e.2c0e64",
+ "x": 729.5312633514404,
+ "y": 194.99999713897705,
+ "z": "13a3e634.05943a",
"wires": [
[
- "a1384c59.cdef8"
+ "8e07f88.10c5a08"
]
]
},
{
- "id": "a1384c59.cdef8",
+ "id": "8e07f88.10c5a08",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 877.7330474853516,
- "y": 207.9999942779541,
- "z": "46bf2b6e.2c0e64",
+ "x": 891.5313091278076,
+ "y": 193.99999618530273,
+ "z": "13a3e634.05943a",
"wires": [
[
- "b60890ce.7212a"
+ "33f9f4dc.b667cc"
]
]
},
{
- "id": "b60890ce.7212a",
+ "id": "33f9f4dc.b667cc",
"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 not found in service-data\" />\n",
"comments": "",
- "x": 1026.983139038086,
- "y": 205.7778720855713,
- "z": "46bf2b6e.2c0e64",
+ "x": 1040.781400680542,
+ "y": 191.77787399291992,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "e6c1d3e3.fb47b",
+ "id": "7a26fc83.04adb4",
"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": 1479.7329788208008,
- "y": 280.0000104904175,
- "z": "46bf2b6e.2c0e64",
+ "x": 1493.5312404632568,
+ "y": 266.0000123977661,
+ "z": "13a3e634.05943a",
"wires": [
[
- "e28abe4b.99802",
- "ad9a94b.6789668"
+ "4aab28a9.38e418",
+ "31602a2e.23f6d6"
]
]
},
{
- "id": "62be0465.8c201c",
+ "id": "98ab03a3.4fb31",
"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": 1471.7329788208008,
- "y": 402.49998474121094,
- "z": "46bf2b6e.2c0e64",
+ "x": 1485.5312404632568,
+ "y": 388.49998664855957,
+ "z": "13a3e634.05943a",
"wires": [
[
- "b86e63fd.fc195"
+ "4261b847.26d008"
]
]
},
{
- "id": "f58396e4.0282e8",
+ "id": "5d9e7b7e.ca4bf4",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
"comments": "",
"outputs": 1,
- "x": 1235.7329788208008,
- "y": 406.49998474121094,
- "z": "46bf2b6e.2c0e64",
+ "x": 1249.5312404632568,
+ "y": 392.49998664855957,
+ "z": "13a3e634.05943a",
"wires": [
[
- "62be0465.8c201c"
+ "98ab03a3.4fb31"
]
]
},
{
- "id": "d3c28e8a.2aecc",
+ "id": "64fa5b44.3987c4",
"type": "set",
"name": "set prop.sdncCreate=false",
"xml": "<set>\n<parameter name='prop.sdncCreate' value='false' />\n",
"comments": "",
- "x": 746.2329788208008,
- "y": 71.99999809265137,
- "z": "46bf2b6e.2c0e64",
+ "x": 760.0312404632568,
+ "y": 58,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "c8eb51dd.8bc9f",
+ "id": "3542675.5ce1998",
"type": "set",
"name": "set prop.sdncCreate=true",
"xml": "<set>\n<parameter name='prop.sdncCreate' value='true' />\n",
"comments": "",
- "x": 1265.2329864501953,
- "y": 202.99999713897705,
- "z": "46bf2b6e.2c0e64",
+ "x": 1279.0312480926514,
+ "y": 188.99999904632568,
+ "z": "13a3e634.05943a",
"wires": []
},
{
- "id": "b7d7095a.45e048",
+ "id": "8956e9de.67f788",
"type": "switchNode",
"name": "switch prop.sdncCreate",
"xml": "<switch test='`$prop.sdncCreate`'>\n",
"comments": "",
"outputs": 1,
- "x": 754.2330436706543,
- "y": 876.0000257492065,
- "z": "46bf2b6e.2c0e64",
+ "x": 768.0313053131104,
+ "y": 862.0000276565552,
+ "z": "13a3e634.05943a",
"wires": [
[
- "bb597028.866e9",
- "18aecad0.0cad25"
+ "530d4a6f.95a5a4",
+ "ed2fc8ce.6d54b8"
]
]
},
{
- "id": "18aecad0.0cad25",
+ "id": "ed2fc8ce.6d54b8",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 969.2330417633057,
- "y": 887.0000257492065,
- "z": "46bf2b6e.2c0e64",
+ "x": 983.0313034057617,
+ "y": 873.0000276565552,
+ "z": "13a3e634.05943a",
"wires": [
[
- "8ea3c05b.19b31"
+ "f6984691.7e9e18"
]
]
},
{
- "id": "bb597028.866e9",
+ "id": "530d4a6f.95a5a4",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 972.2330417633057,
- "y": 848.9999942779541,
- "z": "46bf2b6e.2c0e64",
+ "x": 986.0313034057617,
+ "y": 834.9999961853027,
+ "z": "13a3e634.05943a",
"wires": [
[
- "c8a9b81e.4dea68"
+ "2bd76b30.e44c14"
]
]
},
{
- "id": "8ea3c05b.19b31",
+ "id": "f6984691.7e9e18",
"type": "save",
"name": "update sdwan vpn resource in AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\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.vf-id + '/vf-module-data/'` \" />\n",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\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.vf-id + '/vf-module-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 1203.2329864501953,
- "y": 892.999997138977,
- "z": "46bf2b6e.2c0e64",
+ "x": 1217.0312480926514,
+ "y": 878.9999990463257,
+ "z": "13a3e634.05943a",
"wires": [
[]
]
|