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:
authorprakash.e <prakash.e@huawei.com>2019-05-27 19:34:20 +0530
committerprakash eswaramoorthy <prakash.e@huawei.com>2019-05-29 11:15:06 +0000
commit37115b5eac1f20ea2093b523bc2eade32d689c09 (patch)
treef60db92434a17d1f7f7e1c20732f9acb707cb0be /platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
parent4757df51de8b114c6846eb82c913e4f1b1cc485e (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_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.json429
1 files changed, 230 insertions, 199 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 3414cb9e..85cd16ff 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": "aeae6125.a8d28",
+ "id": "91da6f32.2ced7",
"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": 265,
- "y": 223.9999925820157,
- "z": "3deddfaf.57c2f",
+ "x": 271.0104064941406,
+ "y": 185.9999923435971,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "10f15a6d.ba1d76"
+ "3735ac23.817b64"
]
]
},
{
- "id": "3eb5635c.ae734c",
+ "id": "312112f7.2d48de",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 141.57138061523438,
- "y": 76,
- "z": "3deddfaf.57c2f",
+ "x": 147.581787109375,
+ "y": 37.99999976158142,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "1821ad11.5dad23"
+ "1748f570.5068bb"
]
]
},
{
- "id": "1821ad11.5dad23",
+ "id": "1748f570.5068bb",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -38,434 +38,465 @@
"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": 243.85708618164062,
- "y": 134.23810407798737,
- "z": "3deddfaf.57c2f",
+ "x": 249.86749267578125,
+ "y": 96.2381038395688,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "aeae6125.a8d28"
+ "91da6f32.2ced7"
]
]
},
{
- "id": "10f15a6d.ba1d76",
+ "id": "3735ac23.817b64",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 245.23804473876953,
- "y": 395.6666643349454,
- "z": "3deddfaf.57c2f",
+ "x": 251.24845123291016,
+ "y": 357.6666640965268,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "175dc57.fde8c3b",
- "3afb3c65.1ca3a4",
- "fadde341.82f5a",
- "9885c8cf.ded0d8",
- "a5e91b3d.29e478",
- "6e79157a.cf280c",
- "fff46357.6f3ad",
- "5da9f931.70bc48",
- "df8e278a.898b28",
- "3a3acb9a.529fc4",
- "ff8a3cb6.2dc93",
- "1bd26429.61c74c"
+ "66587be7.1fa444",
+ "a22f6305.02259",
+ "476531fa.dda8b",
+ "39075706.c01f38",
+ "14e1d1a2.1874ee",
+ "25011a4c.02d6d6",
+ "4c11cb80.4d3124",
+ "1d89ddb9.e37322",
+ "d6dc0995.ddb998",
+ "ae963bb8.b0bb08",
+ "8d6ea2db.f2c5d8",
+ "a6ce5913.ef9af",
+ "fb6b70fa.8a9a6"
]
]
},
{
- "id": "3afb3c65.1ca3a4",
+ "id": "a22f6305.02259",
"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": 667.3848571777344,
- "y": 759.670597076416,
- "z": "3deddfaf.57c2f",
+ "x": 673.395263671875,
+ "y": 721.6705968379974,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "175dc57.fde8c3b",
+ "id": "66587be7.1fa444",
"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": 659.2380447387695,
- "y": 654.6668491363525,
- "z": "3deddfaf.57c2f",
+ "x": 665.2484512329102,
+ "y": 616.666848897934,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "a5e91b3d.29e478",
+ "id": "14e1d1a2.1874ee",
"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": 647.5715484619141,
- "y": 604.3334331512451,
- "z": "3deddfaf.57c2f",
+ "x": 653.5819549560547,
+ "y": 566.3334329128265,
+ "z": "dbd46c1f.195f5",
"wires": [
[]
]
},
{
- "id": "ff8a3cb6.2dc93",
+ "id": "ae963bb8.b0bb08",
"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": 658.5716247558594,
- "y": 711.3334369659424,
- "z": "3deddfaf.57c2f",
+ "x": 664.58203125,
+ "y": 673.3334367275238,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "fadde341.82f5a",
+ "id": "476531fa.dda8b",
"type": "switchNode",
"name": "switch service-data.vnfs.vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 674.5713653564453,
- "y": 274.3333559036255,
- "z": "3deddfaf.57c2f",
+ "x": 680.5817718505859,
+ "y": 236.3333556652069,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "fe0779f6.a341a8",
- "9f0ded05.d925c"
+ "ca401c47.9c85b",
+ "c9cc10cf.5154b"
]
]
},
{
- "id": "fe0779f6.a341a8",
+ "id": "ca401c47.9c85b",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 909.2857513427734,
- "y": 269.47617626190186,
- "z": "3deddfaf.57c2f",
+ "x": 915.2961578369141,
+ "y": 231.47617602348328,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "e3b683ce.f47fd"
+ "6401cbd2.e53fc4"
]
]
},
{
- "id": "e3b683ce.f47fd",
+ "id": "6401cbd2.e53fc4",
"type": "set",
"name": "set vnf-index=0",
"xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
"comments": "",
- "x": 1069.5714569091797,
- "y": 269.47626781463623,
- "z": "3deddfaf.57c2f",
+ "x": 1075.5818634033203,
+ "y": 231.47626757621765,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "9f0ded05.d925c",
+ "id": "c9cc10cf.5154b",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 905.7142906188965,
- "y": 302.76200771331787,
- "z": "3deddfaf.57c2f",
+ "x": 911.7246971130371,
+ "y": 264.7620074748993,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "411ddf99.4fbb3"
+ "e78d606c.5025f"
]
]
},
{
- "id": "b6024395.bc24",
+ "id": "2f520d06.0faf82",
"type": "set",
"name": "set vnf-index = vnf_length",
"xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
"comments": "",
- "x": 1298.571533203125,
- "y": 281.04773330688477,
- "z": "3deddfaf.57c2f",
+ "x": 1304.5819396972656,
+ "y": 243.0477330684662,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "3b57b625.74c07a",
+ "id": "fec4dc30.b6a09",
"type": "for",
"name": "for each existing VNF",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1287.0001525878906,
- "y": 316.04770517349243,
- "z": "3deddfaf.57c2f",
+ "x": 1293.0105590820312,
+ "y": 278.04770493507385,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "a7076dba.f36af"
+ "c1fa87b1.a47458"
]
]
},
{
- "id": "411ddf99.4fbb3",
+ "id": "e78d606c.5025f",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1040.4285736083984,
- "y": 304.76197719573975,
- "z": "3deddfaf.57c2f",
+ "x": 1046.438980102539,
+ "y": 266.76197695732117,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "b6024395.bc24",
- "3b57b625.74c07a"
+ "2f520d06.0faf82",
+ "fec4dc30.b6a09"
]
]
},
{
- "id": "a7076dba.f36af",
+ "id": "c1fa87b1.a47458",
"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": 1680.285888671875,
- "y": 316.61918926239014,
- "z": "3deddfaf.57c2f",
+ "x": 1686.2962951660156,
+ "y": 278.61918902397156,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "b4dc78a5.d896c8"
+ "826e3f48.b128f"
]
]
},
{
- "id": "b4dc78a5.d896c8",
+ "id": "826e3f48.b128f",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1961.571590423584,
- "y": 315.19059467315674,
- "z": "3deddfaf.57c2f",
+ "x": 1967.5819969177246,
+ "y": 277.19059443473816,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "51ac74f.88fd58c"
+ "b86791b.2510f7"
]
]
},
{
- "id": "4be264b1.270e6c",
+ "id": "3995a6f4.c8ea1a",
"type": "comment",
"name": "make sure this vnf-id doesn't exist already",
"info": "",
"comments": "",
- "x": 1649.4285049438477,
- "y": 280.1905813217163,
- "z": "3deddfaf.57c2f",
+ "x": 1655.4389114379883,
+ "y": 242.19058108329773,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "9885c8cf.ded0d8",
+ "id": "39075706.c01f38",
"type": "set",
"name": "set new vnf_length",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
"comments": "",
- "x": 619.5715484619141,
- "y": 552.333429813385,
- "z": "3deddfaf.57c2f",
+ "x": 625.5819549560547,
+ "y": 514.3334295749664,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "6e79157a.cf280c",
+ "id": "25011a4c.02d6d6",
"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": 606.5715103149414,
- "y": 1022.5969486236572,
- "z": "3deddfaf.57c2f",
+ "x": 612.581916809082,
+ "y": 984.5969483852386,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "3a3acb9a.529fc4",
+ "id": "d6dc0995.ddb998",
"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",
+ "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-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\n<!--key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--key='service-instance.service-instance-id = $service-data.service-instance-id -->\n",
"comments": "",
"outputs": 1,
- "x": 669.23828125,
- "y": 969.5968418121338,
- "z": "3deddfaf.57c2f",
+ "x": 675.2486877441406,
+ "y": 931.5968415737152,
+ "z": "dbd46c1f.195f5",
"wires": [
[]
]
},
{
- "id": "fff46357.6f3ad",
+ "id": "4c11cb80.4d3124",
"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": 660.5715408325195,
- "y": 800.5968675613403,
- "z": "3deddfaf.57c2f",
+ "x": 666.5819473266602,
+ "y": 762.5968673229218,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "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": 625.5711822509766,
- "y": 503.32480239868164,
- "z": "3deddfaf.57c2f",
- "wires": []
- },
- {
- "id": "51ac74f.88fd58c",
+ "id": "b86791b.2510f7",
"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": 2090.1429595947266,
- "y": 366.1906089782715,
- "z": "3deddfaf.57c2f",
+ "x": 2096.153366088867,
+ "y": 328.1906087398529,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "id": "df8e278a.898b28",
+ "id": "1d89ddb9.e37322",
"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\" />",
+ "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=\"Created\" />\n<parameter name=\"in-maint\" value = \"true\" />\n<parameter name=\"vnf-type\" value='`$prop.vnfName`' />\n<parameter name=\"vnf-name\" value = \"`$prop.vnfName`\"/>\n<parameter name=\"model-invariant-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`\"/>\n<parameter name=\"model-version-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`\"/>\n<parameter name=\"model-customization-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\"/>",
"comments": "",
"outputs": 1,
- "x": 715.5458450317383,
- "y": 910.2470846176147,
- "z": "3deddfaf.57c2f",
+ "x": 721.5562515258789,
+ "y": 872.2470843791962,
+ "z": "dbd46c1f.195f5",
"wires": [
[]
]
},
{
- "id": "6f579a3f.d15af4",
+ "id": "f26d49c8.d35f88",
"type": "comment",
"name": "TODO: change AAI models",
"info": "",
"comments": "",
- "x": 649.1821060180664,
- "y": 869.9743003845215,
- "z": "3deddfaf.57c2f",
+ "x": 655.192512512207,
+ "y": 831.9743001461029,
+ "z": "dbd46c1f.195f5",
"wires": []
},
{
- "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",
+ "id": "d87f26c1.85e508",
+ "type": "execute",
+ "name": "execute split parameterName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-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": 693.0000152587891,
- "y": 393.0000114440918,
- "z": "3deddfaf.57c2f",
+ "x": 1081.75,
+ "y": 325.75,
+ "z": "dbd46c1f.195f5",
"wires": [
- [
- "33ff6eed.504462",
- "e2af6995.223f28",
- "cc14ee3a.bceeb"
- ]
+ []
]
},
{
- "id": "33ff6eed.504462",
- "type": "outcomeTrue",
- "name": "SDWAN-vpn",
- "xml": "<outcome value='SDWAN-vpn'>",
+ "id": "c94a6245.0a51b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 990.6667137145996,
- "y": 378.0000114440918,
- "z": "3deddfaf.57c2f",
+ "x": 885.4937973022461,
+ "y": 330.0018730163574,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "55868aa1.2254e4"
+ "d87f26c1.85e508",
+ "1354d63c.ef6932"
]
]
},
{
- "id": "e2af6995.223f28",
- "type": "outcomeTrue",
- "name": "SDWAN-site",
- "xml": "<outcome value='SDWAN-site'>",
+ "id": "8d6ea2db.f2c5d8",
+ "type": "for",
+ "name": "for loop idx - VNF input parameters",
+ "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",
"comments": "",
"outputs": 1,
- "x": 983.6666870117188,
- "y": 428,
- "z": "3deddfaf.57c2f",
+ "x": 670.7154541015625,
+ "y": 332.4462890625,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "496e33ab.398b4c"
+ "c94a6245.0a51b"
]
]
},
{
- "id": "cc14ee3a.bceeb",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
+ "id": "a6ce5913.ef9af",
+ "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": 627.715087890625,
+ "y": 402.77099609375,
+ "z": "dbd46c1f.195f5",
+ "wires": []
+ },
+ {
+ "id": "1354d63c.ef6932",
+ "type": "set",
+ "name": "set parameterName",
+ "xml": "<set>\n<parameter name=\"`vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
+ "comments": "",
+ "x": 1058.75,
+ "y": 371.75,
+ "z": "dbd46c1f.195f5",
+ "wires": []
+ },
+ {
+ "id": "fb6b70fa.8a9a6",
+ "type": "for",
+ "name": "for each sdwan-get-request-input-param",
+ "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",
"comments": "",
"outputs": 1,
- "x": 966.6666870117188,
- "y": 478,
- "z": "3deddfaf.57c2f",
+ "x": 683.75,
+ "y": 454.75,
+ "z": "dbd46c1f.195f5",
"wires": [
[
- "c9a98bce.5a8c88"
+ "1b7219c7.3675ce"
]
]
},
{
- "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",
+ "id": "1b7219c7.3675ce",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
- "x": 1137.333366394043,
- "y": 476.00001335144043,
- "z": "3deddfaf.57c2f",
- "wires": []
+ "outputs": 1,
+ "x": 909.982666015625,
+ "y": 453.09375,
+ "z": "dbd46c1f.195f5",
+ "wires": [
+ [
+ "9ce04d06.518268"
+ ]
+ ]
},
{
- "id": "55868aa1.2254e4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "9ce04d06.518268",
+ "type": "switchNode",
+ "name": "switch vnf name",
+ "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
+ "comments": "",
"outputs": 1,
- "x": 1172,
- "y": 379,
- "z": "3deddfaf.57c2f",
+ "x": 1066.482666015625,
+ "y": 451.09381103515625,
+ "z": "dbd46c1f.195f5",
"wires": [
- []
+ [
+ "61770f57.83d8c8"
+ ]
]
},
{
- "id": "496e33ab.398b4c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "61770f57.83d8c8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
"outputs": 1,
- "x": 1163,
- "y": 427,
- "z": "3deddfaf.57c2f",
+ "x": 1227.4830322265625,
+ "y": 451.0938720703125,
+ "z": "dbd46c1f.195f5",
"wires": [
- []
+ [
+ "4601daba.0ca18c"
+ ]
]
+ },
+ {
+ "id": "4601daba.0ca18c",
+ "type": "set",
+ "name": "set vnf name",
+ "xml": "<set>\n<parameter name='prop.vnfName' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1385.483154296875,
+ "y": 449.69390869140625,
+ "z": "dbd46c1f.195f5",
+ "wires": []
}
] \ No newline at end of file