aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sdwan
diff options
context:
space:
mode:
authorshashikanth.vh <shashikanth.vh@huawei.com>2018-11-19 17:56:22 +0530
committershashikanth.vh <shashikanth.vh@huawei.com>2018-11-19 18:01:51 +0530
commitb2cd0a93d044558cbf2c95353a6194e50cb6a74e (patch)
tree6db3c63e957594bb0d29c47b04d530b615c048f3 /platform-logic/generic-resource-api/src/main/json/sdwan
parentde65a4a68e23242018284dc350a321d08d8b608e (diff)
ccvpn integration sdnc issue fix
Fixed couple of issues 1. SDWAN connectivity request was failing due to empty request body in tenant authorization put request. 2. Get token issue fixed for sotn DG's 3. SDWAN Allotted resource relationship with parent service instance ID is missing, added it. Change-Id: Ib6451c93e6a6b7886cd5614d064270ff9182030b Issue-ID: SDNC-527 Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com> Former-commit-id: 1b16252e07e358568342480d4604f50f226860b5
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sdwan')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json2625
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json424
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json1694
3 files changed, 2379 insertions, 2364 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json
index bd279399..8dd29ed3 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json
@@ -1,1305 +1,1320 @@
-[
- {
- "id": "ad2ef973.e6a378",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 131,
- "y": 55,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "151183ce.27c78c"
- ]
- ]
- },
- {
- "id": "151183ce.27c78c",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "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": 314.00000381469727,
- "y": 129.000018119812,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "89afc74f.956348"
- ]
- ]
- },
- {
- "id": "89afc74f.956348",
- "type": "method",
- "name": "sdwan-attachment-topology-operation-create",
- "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 302.0001220703125,
- "y": 217.00000095367432,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "580de8c5.e06e78"
- ]
- ]
- },
- {
- "id": "580de8c5.e06e78",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 222.00005340576172,
- "y": 966.0002489089966,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "1fbb291d.155017",
- "f8c6b86f.980db8",
- "655b6d38.675514",
- "87b8ca30.cf86e8",
- "3718c342.00f4ac",
- "3fc33b48.8d6bf4",
- "15c0d821.288668",
- "99b25b64.985da8",
- "cc1d8a7e.c8e908",
- "aec371b2.f4eb6",
- "7c0d6a4c.141ba4",
- "605ed84a.e90ef8",
- "cf809c65.e205f",
- "5ffc39de.e33178",
- "b70e6d89.61807",
- "2fe0bf35.0314b",
- "4b90a515.ea737c",
- "30825693.105b0a",
- "a79587b.c624178",
- "9d0211a4.58ce8",
- "5c590a79.9e0264",
- "adeabb6e.cf7758",
- "7ee858c0.930c58"
- ]
- ]
- },
- {
- "id": "74beb7.011b0148",
- "type": "comment",
- "name": "Set allotted resource id if not sent by SO",
- "info": "",
- "comments": "",
- "x": 706.0767517089844,
- "y": 126.43391990661621,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "1fbb291d.155017",
- "type": "switchNode",
- "name": "switch allotted-resource-id",
- "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 652.0000305175781,
- "y": 181.99999332427979,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "4a85a033.b553c",
- "de2e876a.0ba078"
- ]
- ]
- },
- {
- "id": "4a85a033.b553c",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 850.0001182556152,
- "y": 151.999981880188,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "63eb9d84.765954"
- ]
- ]
- },
- {
- "id": "de2e876a.0ba078",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 849.0000267028809,
- "y": 188.99999237060547,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "eef884cd.26a128"
- ]
- ]
- },
- {
- "id": "eef884cd.26a128",
- "type": "set",
- "name": "set tmp.ar.allotted-resource-id",
- "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
- "comments": "",
- "x": 1047.000015258789,
- "y": 186.0000114440918,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "f8c6b86f.980db8",
- "type": "set",
- "name": "set tmp.ar.self-link",
- "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
- "comments": "",
- "x": 619.9999542236328,
- "y": 403.0001001358032,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "655b6d38.675514",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 620.2618713378906,
- "y": 484.6667814254761,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "87b8ca30.cf86e8",
- "type": "execute",
- "name": "generate allotted-resource tmp.ar-url",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 673.2619323730469,
- "y": 571.6666994094849,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "63eb9d84.765954",
- "type": "execute",
- "name": "execute tmp.ar.allotted-resource-id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1065.0000953674316,
- "y": 152.9999876022339,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "7fcc0333.e4b76c"
- ]
- ]
- },
- {
- "id": "7fcc0333.e4b76c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1283.0001373291016,
- "y": 152.99995136260986,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "dc8faa82.0a80d8"
- ]
- ]
- },
- {
- "id": "dc8faa82.0a80d8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
- "comments": "",
- "x": 1449.0000915527344,
- "y": 152.9999656677246,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "83948a24.3af768",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1179.0002307891846,
- "y": 643.7778720855713,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "64a66d0e.2cab24"
- ]
- ]
- },
- {
- "id": "fd6c452f.f52a18",
- "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: Existing connection attachment allotted resource\" />\n \n",
- "comments": "",
- "x": 1912.5186100006104,
- "y": 644.8439435958862,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "df1c313d.a9cf4",
- "type": "comment",
- "name": "Check for non existence of allotted resource",
- "info": "",
- "comments": "",
- "x": 1035.0001525878906,
- "y": 577.7779388427734,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "3c6b3ac8.5f54b6",
- "type": "for",
- "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
- "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1555.6666984558105,
- "y": 788.0000512599945,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "e0e0a661.74b9e8"
- ]
- ]
- },
- {
- "id": "3fc33b48.8d6bf4",
- "type": "switchNode",
- "name": "switch service-data.consumed-allotted-resources_length",
- "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 737.6660232543945,
- "y": 764.7140836715698,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "98246edb.9d503",
- "303d6837.0384d8"
- ]
- ]
- },
- {
- "id": "98246edb.9d503",
- "type": "other",
- "name": "outcome Null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1041.8089218139648,
- "y": 733.5715208053589,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "1bc15eed.fd45b1"
- ]
- ]
- },
- {
- "id": "303d6837.0384d8",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1018.8089714050293,
- "y": 794.571475982666,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "b930de42.50a21"
- ]
- ]
- },
- {
- "id": "b930de42.50a21",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1178.9360618591309,
- "y": 792.697452545166,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "3c6b3ac8.5f54b6",
- "7d532296.0d9bfc",
- "6dd5cf93.f0258"
- ]
- ]
- },
- {
- "id": "1bc15eed.fd45b1",
- "type": "set",
- "name": "set cidx",
- "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
- "comments": "",
- "x": 1191.6659049987793,
- "y": 731.2855710983276,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "15c0d821.288668",
- "type": "set",
- "name": "set consumed allotted resources",
- "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
- "comments": "",
- "x": 666.5233154296875,
- "y": 868.2856483459473,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "7d532296.0d9bfc",
- "type": "switchNode",
- "name": "switch tmp.found-cidx",
- "xml": "<switch test='`$tmp.found-cidx`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1368.0511093139648,
- "y": 824.708975315094,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "106270aa.e9c6ff"
- ]
- ]
- },
- {
- "id": "106270aa.e9c6ff",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1558.0510635375977,
- "y": 824.7089123725891,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "e1144596.6d5ba8"
- ]
- ]
- },
- {
- "id": "e1144596.6d5ba8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1724.0510635375977,
- "y": 824.7089123725891,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "b93f3869.6459e8"
- ]
- ]
- },
- {
- "id": "e0e0a661.74b9e8",
- "type": "switchNode",
- "name": "switch allotted-resource-id",
- "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1972.7783279418945,
- "y": 785.000078201294,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "326d00a0.76b6c"
- ]
- ]
- },
- {
- "id": "326d00a0.76b6c",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2154.587902069092,
- "y": 785.4645252227783,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "cec76fbc.ec734"
- ]
- ]
- },
- {
- "id": "b93f3869.6459e8",
- "type": "set",
- "name": "set tmp.cidx",
- "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
- "comments": "",
- "x": 1885.924446105957,
- "y": 824.2206134796143,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "9dc9afd9.071d8",
- "type": "comment",
- "name": "Add to consumed service consumed-allotted-resources in mdsal",
- "info": "Prepare data and add to service-data",
- "comments": "",
- "x": 758.667236328125,
- "y": 695.0000476837158,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "79d72e28.e5bf",
- "type": "comment",
- "name": "This set resource will be added to MDSAL by provider code",
- "info": "Below we add to service-data.consumed-allotted-resource at last index",
- "comments": "",
- "x": 746.0001525878906,
- "y": 833.7781400680542,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "7ee858c0.930c58",
- "type": "update",
- "name": "save AAI allotted-resource",
- "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"role\" value=\"`$prop.connection-attachment.role`\" />\t\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sdwanVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 656.6908569335938,
- "y": 1793.531904220581,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "54e2f563.b3af5c",
- "291816ed.18393a"
- ]
- ]
- },
- {
- "id": "54e2f563.b3af5c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 851.4527931213379,
- "y": 1784.4845056533813,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "a3778d99.3c015"
- ]
- ]
- },
- {
- "id": "a3778d99.3c015",
- "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=\"AAI failed\" />\n",
- "comments": "",
- "x": 1017.9766731262207,
- "y": 1796.1035766601562,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "291816ed.18393a",
- "type": "failure",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 858.5480804443359,
- "y": 1817.246473312378,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "a3778d99.3c015"
- ]
- ]
- },
- {
- "id": "ac365c56.4b2",
- "type": "comment",
- "name": "Save Resource to AAI",
- "info": "",
- "comments": "",
- "x": 690.5005340576172,
- "y": 1761.833875656128,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "81ef7e04.cd917",
- "type": "comment",
- "name": "Set allotted resource type if not sent by SO",
- "info": "",
- "comments": "",
- "x": 692,
- "y": 235.00000095367432,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "3718c342.00f4ac",
- "type": "switchNode",
- "name": "switch allotted-resource-type",
- "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 653.9233093261719,
- "y": 275.5660572052002,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "64aa0e9c.b1d09",
- "7800ea8d.a7f124"
- ]
- ]
- },
- {
- "id": "64aa0e9c.b1d09",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 856.9234619140625,
- "y": 260.56606006622314,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "f530af4a.706e5"
- ]
- ]
- },
- {
- "id": "7800ea8d.a7f124",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 849.9232902526855,
- "y": 300.5660800933838,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "7a986711.0ca2d8"
- ]
- ]
- },
- {
- "id": "7a986711.0ca2d8",
- "type": "set",
- "name": "set tmp.ar.allotted-resource-type",
- "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
- "comments": "",
- "x": 1081.9232749938965,
- "y": 300.56608486175537,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "369cb772.706cb8",
- "type": "comment",
- "name": "For storage in AAI connection-attachment-topology",
- "info": "",
- "comments": "",
- "x": 716.9999618530273,
- "y": 370.0000009536743,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "492255d4.2adf4c",
- "type": "comment",
- "name": "Obtain different URL, template location etc",
- "info": "For saving resource information to MDSAL & for AAI",
- "comments": "",
- "x": 691.9999465942383,
- "y": 451.8889102935791,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "ddea3893.c96cd8",
- "type": "comment",
- "name": "Used for Put AR by id to MDSAL",
- "info": "",
- "comments": "",
- "x": 658.0000305175781,
- "y": 540.8889274597168,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "a440e95e.3176f8",
- "type": "comment",
- "name": "Obtain the last index in services",
- "info": "ServiceData is added by Provider code",
- "comments": "",
- "x": 659.4444732666016,
- "y": 726.8888721466064,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "a79587b.c624178",
- "type": "set",
- "name": "set output to api handler",
- "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
- "comments": "",
- "x": 642.2681427001953,
- "y": 1700.359203338623,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "9d0211a4.58ce8",
- "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": 610.6812286376953,
- "y": 1862.9749298095703,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "f530af4a.706e5",
- "type": "set",
- "name": "set tmp.ar.allotted-resource-type",
- "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
- "comments": "",
- "x": 1096.0001487731934,
- "y": 260.99998664855957,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "30825693.105b0a",
- "type": "execute",
- "name": "execute RestApiCallNode - PUT AR by id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 693.0002746582031,
- "y": 1634.00013256073,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "7725804e.b7ea",
- "ff126c78.d9f65",
- "34ce7aa1.c96186"
- ]
- ]
- },
- {
- "id": "7725804e.b7ea",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 942.6416282653809,
- "y": 1672.3314628601074,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "d7cd6db2.d2286"
- ]
- ]
- },
- {
- "id": "ff126c78.d9f65",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 933.6416778564453,
- "y": 1640.831488609314,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "d7cd6db2.d2286"
- ]
- ]
- },
- {
- "id": "34ce7aa1.c96186",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 937.391716003418,
- "y": 1611.1885934844613,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "6ccc24c6.03b4dc"
- ]
- ]
- },
- {
- "id": "d7cd6db2.d2286",
- "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 updating md-sal for connection-attachment-allotted-resource\" />\n",
- "comments": "",
- "x": 1103.391716003418,
- "y": 1641.5815124511719,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "6ccc24c6.03b4dc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1079.0476837158203,
- "y": 1607.3807626739144,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "7c0d6a4c.141ba4",
- "type": "execute",
- "name": "execute RestApiCallNode - Update parent provided service AR",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 757.9999542236328,
- "y": 1150.000165939331,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "494a716e.866ba",
- "227c3021.44dc4",
- "ff8b452c.8d9bc8"
- ]
- ]
- },
- {
- "id": "494a716e.866ba",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1066.3080139160156,
- "y": 1181.998441696167,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "aaeb645f.80fed8"
- ]
- ]
- },
- {
- "id": "227c3021.44dc4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1057.30806350708,
- "y": 1150.4984674453735,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "aaeb645f.80fed8"
- ]
- ]
- },
- {
- "id": "ff8b452c.8d9bc8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1061.0581016540527,
- "y": 1120.8555723205209,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "74f3a310.0128fc"
- ]
- ]
- },
- {
- "id": "aaeb645f.80fed8",
- "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 updating md-sal for connection-attachment-allotted-resource\" />\n",
- "comments": "",
- "x": 1227.0581016540527,
- "y": 1151.2484912872314,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "74f3a310.0128fc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1202.714069366455,
- "y": 1117.047741509974,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "9405156b.c649a8",
- "type": "comment",
- "name": "Put the parent allotted resource in mdsal",
- "info": "",
- "comments": "",
- "x": 686.9999008178711,
- "y": 1112.000072479248,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "cf809c65.e205f",
- "type": "set",
- "name": "set connection-attachment-ar-identifiers",
- "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
- "comments": "",
- "x": 683.3570861816406,
- "y": 1314.5716915130615,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "605ed84a.e90ef8",
- "type": "set",
- "name": "set ar-data",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
- "comments": "",
- "x": 603.2139129638672,
- "y": 1282.381194114685,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "5ffc39de.e33178",
- "type": "set",
- "name": "set identifiers in overall structure",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n",
- "comments": "",
- "x": 662.1668853759766,
- "y": 1348.6668767929077,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "b70e6d89.61807",
- "type": "execute",
- "name": "execute getTime",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 614.4997253417969,
- "y": 1422.0004043579102,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "2fe0bf35.0314b",
- "type": "set",
- "name": "set allotted-resource-oper-status",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
- "comments": "",
- "x": 665.4867630004883,
- "y": 1477.9516372680664,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "4b90a515.ea737c",
- "type": "set",
- "name": "set model-data",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
- "comments": "",
- "x": 610.0553817749023,
- "y": 1383.5557622909546,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "a3fd3ef0.9cf2",
- "type": "comment",
- "name": "Prepare data for allotted-resource addition to MDSAL",
- "info": "This will add to allotted-resource which is present inside service.",
- "comments": "",
- "x": 727.3888702392578,
- "y": 1248.5556087493896,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "aec371b2.f4eb6",
- "type": "execute",
- "name": "generate parent-ar url - replace allotted-resource-id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 722.5000152587891,
- "y": 1076.0000114440918,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "cc1d8a7e.c8e908",
- "type": "execute",
- "name": "generate parent-ar url - replace service-instance-id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 718.4999389648438,
- "y": 1033.000147819519,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "af622d17.e96e6",
- "type": "comment",
- "name": "Prepare Parent AR URL",
- "info": "Preparation to set provided-allotted-resource in parent service instance",
- "comments": "",
- "x": 636.5003967285156,
- "y": 962.0001010894775,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "99b25b64.985da8",
- "type": "set",
- "name": "set tmp.ar.parent-service-instance-id",
- "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
- "comments": "",
- "x": 675.5001907348633,
- "y": 995.5000405311584,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "cec76fbc.ec734",
- "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 updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n",
- "comments": "",
- "x": 2232.7569732666016,
- "y": 833.645830154419,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "6dd5cf93.f0258",
- "type": "set",
- "name": "set tmp.found-cidx",
- "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
- "comments": "",
- "x": 1358.6461448669434,
- "y": 745.3125731945038,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "fcf58d3f.726c9",
- "type": "comment",
- "name": "Add to parent services provided-allotted-resources in mdsal",
- "info": "",
- "comments": "",
- "x": 747.2015075683594,
- "y": 929.9792575836182,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "edb39741.2151b8",
- "type": "comment",
- "name": "Add to allotted-resources in mdsal",
- "info": "",
- "comments": "",
- "x": 667.9686965942383,
- "y": 1215.9689378738403,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "64a66d0e.2cab24",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1341.000051498413,
- "y": 643.2777614593506,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "c5b1dd9f.c626c"
- ]
- ]
- },
- {
- "id": "c5b1dd9f.c626c",
- "type": "switchNode",
- "name": "switch cr length",
- "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1528.8574314117432,
- "y": 643.8968968391418,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "dea64b0a.33d1a8"
- ]
- ]
- },
- {
- "id": "dea64b0a.33d1a8",
- "type": "other",
- "name": "outcome 1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1728.1905536651611,
- "y": 643.896975517273,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "fd6c452f.f52a18"
- ]
- ]
- },
- {
- "id": "5c590a79.9e0264",
- "type": "execute",
- "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 813.0000534057617,
- "y": 638.0000371932983,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "83948a24.3af768",
- "a688402e.6a3a9"
- ]
- ]
- },
- {
- "id": "a688402e.6a3a9",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1181.0000839233398,
- "y": 608.0000352859497,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "a6697dc2.ce9f3"
- ]
- ]
- },
- {
- "id": "a6697dc2.ce9f3",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1333.0000839233398,
- "y": 607.0000352859497,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "adeabb6e.cf7758",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 619.0039215087891,
- "y": 1553.2500038146973,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "96f36120.1f9af",
- "6b505cd5.c78924"
- ]
- ]
- },
- {
- "id": "96f36120.1f9af",
- "type": "for",
- "name": "for each sdwan-get-request-input-param",
- "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 954.0041198730469,
- "y": 1499.2501260638237,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "7401fe63.179e9"
- ]
- ]
- },
- {
- "id": "4e61fb49.c94114",
- "type": "comment",
- "name": "Required for filling template values",
- "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
- "comments": "",
- "x": 976.4486236572266,
- "y": 1533.0832867622375,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "d4660c0f.147f3",
- "type": "comment",
- "name": "Remove VNFC prefix",
- "info": "",
- "comments": "",
- "x": 1037.003963470459,
- "y": 1455.6944618225098,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "7401fe63.179e9",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1201.0039672851562,
- "y": 1500.6943712234497,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "6a638cf5.ebb554",
- "3e399a15.de4336"
- ]
- ]
- },
- {
- "id": "50ce4566.040d7c",
- "type": "comment",
- "name": "Take the parameter names by removing prefix",
- "info": "",
- "comments": "",
- "x": 1469.0038146972656,
- "y": 1416.250369310379,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "6a638cf5.ebb554",
- "type": "execute",
- "name": "execute split parameterName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1420.0384826660156,
- "y": 1451.2294654846191,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "3e399a15.de4336",
- "type": "set",
- "name": "set parameterName",
- "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
- "comments": "",
- "x": 1408.4829559326172,
- "y": 1555.2294359207153,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "6b505cd5.c78924",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 995.0039672851562,
- "y": 1573.2500658035278,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- }
-]
+[
+ {
+ "id": "41a7b6d3.f9b528",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 104.03125,
+ "y": 62.99999749660492,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f309be9c.cefce"
+ ]
+ ]
+ },
+ {
+ "id": "f309be9c.cefce",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "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": 287.03125381469727,
+ "y": 137.00001561641693,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "63686a7b.f7aa94"
+ ]
+ ]
+ },
+ {
+ "id": "63686a7b.f7aa94",
+ "type": "method",
+ "name": "sdwan-attachment-topology-operation-create",
+ "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 275.0313720703125,
+ "y": 224.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "445b402d.36165"
+ ]
+ ]
+ },
+ {
+ "id": "445b402d.36165",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 195.03130340576172,
+ "y": 974.0002464056015,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "57abe88c.4f1e28",
+ "da2ee563.ca49c8",
+ "d7db7598.ec6a58",
+ "b1a31713.a74f68",
+ "bb52c8b.9210938",
+ "e248322d.07f73",
+ "e3ed6a01.033e28",
+ "49207aa3.305be4",
+ "e7fc7beb.0c2218",
+ "fff0be1d.b2bcf",
+ "6737ccd9.1b9484",
+ "3d98ece2.536f54",
+ "279d04d9.311b7c",
+ "bd2101b.463ff",
+ "a593e64c.edffe8",
+ "ad258829.1a9fb8",
+ "d28d77a4.947808",
+ "b3ca8b3e.e57468",
+ "4f85eb.0fdeca14",
+ "4b8ef133.24669",
+ "3a0fc26c.48c2fe",
+ "13f594ad.41064b",
+ "571ae355.45c2fc",
+ "936a519f.07274"
+ ]
+ ]
+ },
+ {
+ "id": "f44d3a22.e968a8",
+ "type": "comment",
+ "name": "Set allotted resource id if not sent by SO",
+ "info": "",
+ "comments": "",
+ "x": 679.1080017089844,
+ "y": 134.43391740322113,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "57abe88c.4f1e28",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 625.0312805175781,
+ "y": 189.9999908208847,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "4ebc9e25.f0a41",
+ "c5e852a7.8a1b7"
+ ]
+ ]
+ },
+ {
+ "id": "4ebc9e25.f0a41",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 823.0313682556152,
+ "y": 159.9999793767929,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "80de8467.db5608"
+ ]
+ ]
+ },
+ {
+ "id": "c5e852a7.8a1b7",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 822.0312767028809,
+ "y": 196.9999898672104,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f37c96f7.6c5a88"
+ ]
+ ]
+ },
+ {
+ "id": "f37c96f7.6c5a88",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
+ "comments": "",
+ "x": 1020.0312652587891,
+ "y": 194.00000894069672,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "da2ee563.ca49c8",
+ "type": "set",
+ "name": "set tmp.ar.self-link",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "comments": "",
+ "x": 593.0312042236328,
+ "y": 411.00009763240814,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "d7db7598.ec6a58",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 593.2931213378906,
+ "y": 492.666778922081,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b1a31713.a74f68",
+ "type": "execute",
+ "name": "generate allotted-resource tmp.ar-url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 646.2931823730469,
+ "y": 579.6666969060898,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80de8467.db5608",
+ "type": "execute",
+ "name": "execute tmp.ar.allotted-resource-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1038.0313453674316,
+ "y": 160.9999850988388,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "827e9a97.124e48"
+ ]
+ ]
+ },
+ {
+ "id": "827e9a97.124e48",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1256.0313873291016,
+ "y": 160.99994885921478,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "153037d4.5daa68"
+ ]
+ ]
+ },
+ {
+ "id": "153037d4.5daa68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
+ "comments": "",
+ "x": 1422.0313415527344,
+ "y": 160.99996316432953,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "8fcb37f5.98d048",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1152.0314807891846,
+ "y": 651.7778695821762,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "91db96ee.5f5ab8"
+ ]
+ ]
+ },
+ {
+ "id": "bc59ed7b.1de9c",
+ "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: Existing connection attachment allotted resource\" />\n \n",
+ "comments": "",
+ "x": 1885.5498600006104,
+ "y": 652.8439410924911,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "b0f210fa.eabdf",
+ "type": "comment",
+ "name": "Check for non existence of allotted resource",
+ "info": "",
+ "comments": "",
+ "x": 1008.0314025878906,
+ "y": 585.7779363393784,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a2101ce1.011fb",
+ "type": "for",
+ "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
+ "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1528.6979484558105,
+ "y": 796.0000487565994,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f78e26b6.71e388"
+ ]
+ ]
+ },
+ {
+ "id": "e248322d.07f73",
+ "type": "switchNode",
+ "name": "switch service-data.consumed-allotted-resources_length",
+ "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 710.6972732543945,
+ "y": 772.7140811681747,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "30dfa22f.78a2de",
+ "3fbb9163.26209e"
+ ]
+ ]
+ },
+ {
+ "id": "30dfa22f.78a2de",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1014.8401718139648,
+ "y": 741.5715183019638,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "a8a680b4.767d6"
+ ]
+ ]
+ },
+ {
+ "id": "3fbb9163.26209e",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 991.8402214050293,
+ "y": 802.5714734792709,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c3b51f9c.33bcc"
+ ]
+ ]
+ },
+ {
+ "id": "c3b51f9c.33bcc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1151.9673118591309,
+ "y": 800.6974500417709,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "a2101ce1.011fb",
+ "e3a80e4a.14e7d",
+ "6c9a2abd.a627f4"
+ ]
+ ]
+ },
+ {
+ "id": "a8a680b4.767d6",
+ "type": "set",
+ "name": "set cidx",
+ "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
+ "comments": "",
+ "x": 1164.6971549987793,
+ "y": 739.2855685949326,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e3ed6a01.033e28",
+ "type": "set",
+ "name": "set consumed allotted resources",
+ "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
+ "comments": "",
+ "x": 639.5545654296875,
+ "y": 876.2856458425522,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e3a80e4a.14e7d",
+ "type": "switchNode",
+ "name": "switch tmp.found-cidx",
+ "xml": "<switch test='`$tmp.found-cidx`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1341.0823593139648,
+ "y": 832.7089728116989,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cbb92020.3ddcd"
+ ]
+ ]
+ },
+ {
+ "id": "cbb92020.3ddcd",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1531.0823135375977,
+ "y": 832.708909869194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "808efd55.65f55"
+ ]
+ ]
+ },
+ {
+ "id": "808efd55.65f55",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1697.0823135375977,
+ "y": 832.708909869194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "6d2d79a2.093ad8"
+ ]
+ ]
+ },
+ {
+ "id": "f78e26b6.71e388",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1945.8095779418945,
+ "y": 793.0000756978989,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "b1c9d43a.bd2f08"
+ ]
+ ]
+ },
+ {
+ "id": "b1c9d43a.bd2f08",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2127.619152069092,
+ "y": 793.4645227193832,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "1288ae5b.1e1ce2"
+ ]
+ ]
+ },
+ {
+ "id": "6d2d79a2.093ad8",
+ "type": "set",
+ "name": "set tmp.cidx",
+ "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
+ "comments": "",
+ "x": 1858.955696105957,
+ "y": 832.2206109762192,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "8e24c24b.d6fc2",
+ "type": "comment",
+ "name": "Add to consumed service consumed-allotted-resources in mdsal",
+ "info": "Prepare data and add to service-data",
+ "comments": "",
+ "x": 731.698486328125,
+ "y": 703.0000451803207,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "2cffaf1f.4fc49",
+ "type": "comment",
+ "name": "This set resource will be added to MDSAL by provider code",
+ "info": "Below we add to service-data.consumed-allotted-resource at last index",
+ "comments": "",
+ "x": 719.0314025878906,
+ "y": 841.7781375646591,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "571ae355.45c2fc",
+ "type": "update",
+ "name": "save AAI allotted-resource",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"role\" value=\"`$prop.connection-attachment.role`\" />\t\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sdwanVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 629.7221069335938,
+ "y": 1801.531901717186,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bad0c727.d486c8",
+ "6744df38.44f3c"
+ ]
+ ]
+ },
+ {
+ "id": "bad0c727.d486c8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 824.4840431213379,
+ "y": 1792.4845031499863,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "be610d32.68478"
+ ]
+ ]
+ },
+ {
+ "id": "be610d32.68478",
+ "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=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 991.0079231262207,
+ "y": 1804.1035741567612,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6744df38.44f3c",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 831.5793304443359,
+ "y": 1825.2464708089828,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "be610d32.68478"
+ ]
+ ]
+ },
+ {
+ "id": "7ddcb0e1.3b36d",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 663.5317840576172,
+ "y": 1769.8338731527328,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "42977fdb.9150a",
+ "type": "comment",
+ "name": "Set allotted resource type if not sent by SO",
+ "info": "",
+ "comments": "",
+ "x": 665.03125,
+ "y": 242.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "bb52c8b.9210938",
+ "type": "switchNode",
+ "name": "switch allotted-resource-type",
+ "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 626.9545593261719,
+ "y": 283.5660547018051,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "ebcdd7cc.5ddb28",
+ "5e1b4704.ff03b8"
+ ]
+ ]
+ },
+ {
+ "id": "ebcdd7cc.5ddb28",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 829.9547119140625,
+ "y": 268.56605756282806,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "e292f924.218148"
+ ]
+ ]
+ },
+ {
+ "id": "5e1b4704.ff03b8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 822.9545402526855,
+ "y": 308.5660775899887,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bc4b0c6b.6b5dc"
+ ]
+ ]
+ },
+ {
+ "id": "bc4b0c6b.6b5dc",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-type",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
+ "comments": "",
+ "x": 1054.9545249938965,
+ "y": 308.5660823583603,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e49aa8f1.f12588",
+ "type": "comment",
+ "name": "For storage in AAI connection-attachment-topology",
+ "info": "",
+ "comments": "",
+ "x": 690.0312118530273,
+ "y": 377.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c0fccf31.3b1b7",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 665.0311965942383,
+ "y": 459.888907790184,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "100bd889.c313d7",
+ "type": "comment",
+ "name": "Used for Put AR by id to MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 631.0312805175781,
+ "y": 548.8889249563217,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "18c10c65.2f90b4",
+ "type": "comment",
+ "name": "Obtain the last index in services",
+ "info": "ServiceData is added by Provider code",
+ "comments": "",
+ "x": 632.4757232666016,
+ "y": 734.8888696432114,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "4f85eb.0fdeca14",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "comments": "",
+ "x": 615.2993927001953,
+ "y": 1708.359200835228,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "4b8ef133.24669",
+ "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": 583.7125244140625,
+ "y": 1957.974946975708,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e292f924.218148",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-type",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
+ "comments": "",
+ "x": 1069.0313987731934,
+ "y": 268.9999841451645,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "b3ca8b3e.e57468",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 666.0315246582031,
+ "y": 1642.000130057335,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "891b6f50.0b8ca",
+ "17f28b89.81c5a4",
+ "6238cca6.7c6784"
+ ]
+ ]
+ },
+ {
+ "id": "891b6f50.0b8ca",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 915.6728782653809,
+ "y": 1680.3314603567123,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c7ada304.940bb"
+ ]
+ ]
+ },
+ {
+ "id": "17f28b89.81c5a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 906.6729278564453,
+ "y": 1648.8314861059189,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c7ada304.940bb"
+ ]
+ ]
+ },
+ {
+ "id": "6238cca6.7c6784",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 910.422966003418,
+ "y": 1619.1885909810662,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "9d842474.1d5df8"
+ ]
+ ]
+ },
+ {
+ "id": "c7ada304.940bb",
+ "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 updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1076.422966003418,
+ "y": 1649.5815099477768,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "9d842474.1d5df8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1052.0789337158203,
+ "y": 1615.3807601705194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6737ccd9.1b9484",
+ "type": "execute",
+ "name": "execute RestApiCallNode - Update parent provided service AR",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 731.0312042236328,
+ "y": 1158.000163435936,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "ce9d67c0.fef428",
+ "32ea0966.e31a46",
+ "8052d936.8da758"
+ ]
+ ]
+ },
+ {
+ "id": "ce9d67c0.fef428",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039.3392639160156,
+ "y": 1189.998439192772,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cecd64fe.528bd8"
+ ]
+ ]
+ },
+ {
+ "id": "32ea0966.e31a46",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1030.33931350708,
+ "y": 1158.4984649419785,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cecd64fe.528bd8"
+ ]
+ ]
+ },
+ {
+ "id": "8052d936.8da758",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1034.0893516540527,
+ "y": 1128.8555698171258,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c4a631eb.caa38"
+ ]
+ ]
+ },
+ {
+ "id": "cecd64fe.528bd8",
+ "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 updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1200.0893516540527,
+ "y": 1159.2484887838364,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c4a631eb.caa38",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1175.745319366455,
+ "y": 1125.047739006579,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9c5665b2.ee98f8",
+ "type": "comment",
+ "name": "Put the parent allotted resource in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 660.0311508178711,
+ "y": 1120.000069975853,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "279d04d9.311b7c",
+ "type": "set",
+ "name": "set connection-attachment-ar-identifiers",
+ "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
+ "comments": "",
+ "x": 656.3883361816406,
+ "y": 1322.5716890096664,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "3d98ece2.536f54",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
+ "comments": "",
+ "x": 576.2451629638672,
+ "y": 1290.38119161129,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "bd2101b.463ff",
+ "type": "set",
+ "name": "set identifiers in overall structure",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n",
+ "comments": "",
+ "x": 635.1981353759766,
+ "y": 1356.6668742895126,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a593e64c.edffe8",
+ "type": "execute",
+ "name": "execute getTime",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 587.5309753417969,
+ "y": 1430.000401854515,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ad258829.1a9fb8",
+ "type": "set",
+ "name": "set allotted-resource-oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
+ "comments": "",
+ "x": 638.5180130004883,
+ "y": 1485.9516347646713,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "d28d77a4.947808",
+ "type": "set",
+ "name": "set model-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
+ "comments": "",
+ "x": 583.0866317749023,
+ "y": 1391.5557597875595,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "23859bfe.f043f4",
+ "type": "comment",
+ "name": "Prepare data for allotted-resource addition to MDSAL",
+ "info": "This will add to allotted-resource which is present inside service.",
+ "comments": "",
+ "x": 700.4201202392578,
+ "y": 1256.5556062459946,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "fff0be1d.b2bcf",
+ "type": "execute",
+ "name": "generate parent-ar url - replace allotted-resource-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 695.5312652587891,
+ "y": 1084.0000089406967,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e7fc7beb.0c2218",
+ "type": "execute",
+ "name": "generate parent-ar url - replace service-instance-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 691.5311889648438,
+ "y": 1041.000145316124,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80cf2b3b.3e92b8",
+ "type": "comment",
+ "name": "Prepare Parent AR URL",
+ "info": "Preparation to set provided-allotted-resource in parent service instance",
+ "comments": "",
+ "x": 609.5316467285156,
+ "y": 970.0000985860825,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "49207aa3.305be4",
+ "type": "set",
+ "name": "set tmp.ar.parent-service-instance-id",
+ "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
+ "comments": "",
+ "x": 648.5314407348633,
+ "y": 1003.5000380277634,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "1288ae5b.1e1ce2",
+ "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 updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n",
+ "comments": "",
+ "x": 2205.7882232666016,
+ "y": 841.6458276510239,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6c9a2abd.a627f4",
+ "type": "set",
+ "name": "set tmp.found-cidx",
+ "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
+ "comments": "",
+ "x": 1331.6773948669434,
+ "y": 753.3125706911087,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "57452405.e26b5c",
+ "type": "comment",
+ "name": "Add to parent services provided-allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 720.2327575683594,
+ "y": 937.9792550802231,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6013a8b1.8cfec8",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 640.9999465942383,
+ "y": 1223.9689353704453,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "91db96ee.5f5ab8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1314.031301498413,
+ "y": 651.2777589559555,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "d36cd8c7.bbc8c8"
+ ]
+ ]
+ },
+ {
+ "id": "d36cd8c7.bbc8c8",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1501.8886814117432,
+ "y": 651.8968943357468,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c670c701.c3ff18"
+ ]
+ ]
+ },
+ {
+ "id": "c670c701.c3ff18",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1701.2218036651611,
+ "y": 651.8969730138779,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bc59ed7b.1de9c"
+ ]
+ ]
+ },
+ {
+ "id": "3a0fc26c.48c2fe",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 786.0313034057617,
+ "y": 646.0000346899033,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "8fcb37f5.98d048",
+ "230adea5.52af62"
+ ]
+ ]
+ },
+ {
+ "id": "230adea5.52af62",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1154.0313339233398,
+ "y": 616.0000327825546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f02fcbfc.47bf28"
+ ]
+ ]
+ },
+ {
+ "id": "f02fcbfc.47bf28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1306.0313339233398,
+ "y": 615.0000327825546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "13f594ad.41064b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 592.0351715087891,
+ "y": 1561.2500013113022,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c4d3876.e194578",
+ "a56d9e1e.69cb5"
+ ]
+ ]
+ },
+ {
+ "id": "c4d3876.e194578",
+ "type": "for",
+ "name": "for each sdwan-get-request-input-param",
+ "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 927.0353698730469,
+ "y": 1507.2501235604286,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c009da24.7d2598"
+ ]
+ ]
+ },
+ {
+ "id": "654cbf55.2b8ad",
+ "type": "comment",
+ "name": "Required for filling template values",
+ "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
+ "comments": "",
+ "x": 949.4798736572266,
+ "y": 1541.0832842588425,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "eaf3595.bafe4a8",
+ "type": "comment",
+ "name": "Remove VNFC prefix",
+ "info": "",
+ "comments": "",
+ "x": 1010.035213470459,
+ "y": 1463.6944593191147,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c009da24.7d2598",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1174.0352172851562,
+ "y": 1508.6943687200546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "447c6486.c17b2c",
+ "fb95c554.72d748"
+ ]
+ ]
+ },
+ {
+ "id": "6b76a58c.b29a1c",
+ "type": "comment",
+ "name": "Take the parameter names by removing prefix",
+ "info": "",
+ "comments": "",
+ "x": 1442.0350646972656,
+ "y": 1424.250366806984,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "447c6486.c17b2c",
+ "type": "execute",
+ "name": "execute split parameterName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1393.0697326660156,
+ "y": 1459.229462981224,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb95c554.72d748",
+ "type": "set",
+ "name": "set parameterName",
+ "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
+ "comments": "",
+ "x": 1381.5142059326172,
+ "y": 1563.2294334173203,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a56d9e1e.69cb5",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 968.0352172851562,
+ "y": 1581.2500633001328,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "936a519f.07274",
+ "type": "save",
+ "name": "save allotted relationship in AAI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:relationship-list\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id\" \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"allotted-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/business/customers/customer/' + $connection-attachment-topology-operation-input.service-information.global-customer-id + '/service-subscriptions/service-subscription/' + $connection-attachment-topology-operation-input.service-information.subscription-service-type + '/service-instances/service-instance/' + $connection-attachment-topology-operation-input.service-information.service-instance-id + '/allotted-resources/allotted-resource/' + $tmp.ar.allotted-resource-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"allotted-resource.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 641.0312767028809,
+ "y": 1884.531162261963,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
index 919c397a..d0888583 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
@@ -1,212 +1,212 @@
-[
- {
- "id": "30fe9468.76f32c",
- "type": "get-resource",
- "name": "get-resource service-subscription",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n \n",
- "comments": "",
- "outputs": 1,
- "x": 632.8652648925781,
- "y": 374.2938051223755,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "a889eb39.2fcd08",
- "483504b1.ecba4c"
- ]
- ]
- },
- {
- "id": "516f9f53.00463",
- "type": "switchNode",
- "name": "switch temp-ub-sub-account-id",
- "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1044.8653564453125,
- "y": 339.0438861846924,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "f1e993a3.ae05f",
- "6af3c030.9694c"
- ]
- ]
- },
- {
- "id": "f1e993a3.ae05f",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 1237.5798072814941,
- "y": 313.043927192688,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "be0f95e9.861918"
- ]
- ]
- },
- {
- "id": "6af3c030.9694c",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 1237.8653717041016,
- "y": 368.04388999938965,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "3bf7a2b9.96247e"
- ]
- ]
- },
- {
- "id": "a889eb39.2fcd08",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 843.3651275634766,
- "y": 347.0398635864258,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "516f9f53.00463"
- ]
- ]
- },
- {
- "id": "483504b1.ecba4c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 837.0437164306641,
- "y": 399.2541751861572,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "212060fe.4fc32"
- ]
- ]
- },
- {
- "id": "212060fe.4fc32",
- "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 executing get token rest api\" />\n",
- "comments": "",
- "x": 989.7937164306641,
- "y": 399.0042362213135,
- "z": "97aa802d.404bc",
- "wires": []
- },
- {
- "id": "b6a8c3c7.8bc03",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "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": 212.86526489257812,
- "y": 101.43669128417969,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "68fe5032.b2685"
- ]
- ]
- },
- {
- "id": "f788aa3b.dab3e8",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 133.57955932617188,
- "y": 39.19858169555664,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "b6a8c3c7.8bc03"
- ]
- ]
- },
- {
- "id": "672a5bc8.7ace04",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 366.81766510009766,
- "y": 338.0081157684326,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "30fe9468.76f32c",
- "ef87bbc7.0bf428"
- ]
- ]
- },
- {
- "id": "68fe5032.b2685",
- "type": "method",
- "name": "method sdwan-get-tenant-auth",
- "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 224.57955932617188,
- "y": 195.7849235534668,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "672a5bc8.7ace04"
- ]
- ]
- },
- {
- "id": "3bf7a2b9.96247e",
- "type": "set",
- "name": "set prop.tenant-id",
- "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
- "comments": "",
- "x": 1415.7224426269531,
- "y": 367.15094566345215,
- "z": "97aa802d.404bc",
- "wires": []
- },
- {
- "id": "ef87bbc7.0bf428",
- "type": "execute",
- "name": "execute RestApiCallNode Create tenant auth",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 660.3652954101562,
- "y": 477.1866149902344,
- "z": "97aa802d.404bc",
- "wires": [
- []
- ]
- },
- {
- "id": "be0f95e9.861918",
- "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 executing get token rest api\" />\n",
- "comments": "",
- "x": 1420.0080490112305,
- "y": 312.86523628234863,
- "z": "97aa802d.404bc",
- "wires": []
- }
-]
+[
+ {
+ "id": "b8581db5.dbca7",
+ "type": "get-resource",
+ "name": "get-resource service-subscription",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 597,
+ "y": 418.09522092342377,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "1a771e75.f79d12",
+ "ac62029.181ce"
+ ]
+ ]
+ },
+ {
+ "id": "5d45ba87.92c374",
+ "type": "switchNode",
+ "name": "switch temp-ub-sub-account-id",
+ "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1009.0000915527344,
+ "y": 382.84530198574066,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5358b5db.d1e49c",
+ "28c300d9.7fa36"
+ ]
+ ]
+ },
+ {
+ "id": "5358b5db.d1e49c",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1201.714542388916,
+ "y": 356.84534299373627,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "831b80bb.e08e8"
+ ]
+ ]
+ },
+ {
+ "id": "28c300d9.7fa36",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1202.0001068115234,
+ "y": 411.8453058004379,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "e1a74ece.52f65"
+ ]
+ ]
+ },
+ {
+ "id": "1a771e75.f79d12",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.4998626708984,
+ "y": 390.84127938747406,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5d45ba87.92c374"
+ ]
+ ]
+ },
+ {
+ "id": "ac62029.181ce",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 801.1784515380859,
+ "y": 443.0555909872055,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "f81e2009.7dbd5"
+ ]
+ ]
+ },
+ {
+ "id": "f81e2009.7dbd5",
+ "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 executing get token rest api\" />\n",
+ "comments": "",
+ "x": 953.9284515380859,
+ "y": 442.80565202236176,
+ "z": "a703782b.2992b8",
+ "wires": []
+ },
+ {
+ "id": "4bd31b43.411d14",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "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": 177,
+ "y": 145.23810708522797,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "d79d2c6f.11854"
+ ]
+ ]
+ },
+ {
+ "id": "c863bd10.503ce",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 97.71429443359375,
+ "y": 82.99999749660492,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "4bd31b43.411d14"
+ ]
+ ]
+ },
+ {
+ "id": "5dc11f37.9dd37",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 330.95240020751953,
+ "y": 381.8095315694809,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "b8581db5.dbca7",
+ "c8c0bf77.157a7"
+ ]
+ ]
+ },
+ {
+ "id": "d79d2c6f.11854",
+ "type": "method",
+ "name": "method sdwan-get-tenant-auth",
+ "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 188.71429443359375,
+ "y": 239.58633935451508,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5dc11f37.9dd37"
+ ]
+ ]
+ },
+ {
+ "id": "e1a74ece.52f65",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
+ "comments": "",
+ "x": 1379.857177734375,
+ "y": 410.9523614645004,
+ "z": "a703782b.2992b8",
+ "wires": []
+ },
+ {
+ "id": "c8c0bf77.157a7",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 624.5000305175781,
+ "y": 520.9880307912827,
+ "z": "a703782b.2992b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "831b80bb.e08e8",
+ "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 executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1384.1427841186523,
+ "y": 356.6666520833969,
+ "z": "a703782b.2992b8",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
index 3f7cbdc4..9d8b0292 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
@@ -1,847 +1,847 @@
-[
- {
- "id": "b728dcab.e2e08",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 93,
- "y": 47,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "f1013e83.11195"
- ]
- ]
- },
- {
- "id": "f1013e83.11195",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "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": 279.00000381469727,
- "y": 119.0000171661377,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "4636719f.41274"
- ]
- ]
- },
- {
- "id": "4636719f.41274",
- "type": "method",
- "name": "method sdwan-network-topology-operation-activate",
- "xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 267.0001220703125,
- "y": 207,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "c7a7aadf.8ed488"
- ]
- ]
- },
- {
- "id": "c7a7aadf.8ed488",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 441.00001525878906,
- "y": 315.0000591278076,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "98d3b92f.70fc48",
- "189da6d2.5a6819",
- "e988ff0f.b5aae",
- "e4aad21c.e7ff7",
- "39e02c84.3177e4",
- "b96459be.6fd7a8",
- "747d96dd.f43d58",
- "39860903.53b456",
- "69af4cc7.202f04",
- "bc16f27b.ec50b",
- "29cb6e2b.ecafd2",
- "f71b9190.340d8",
- "3eb35468.4702ac",
- "d3877bd.f214188",
- "73dbb3c3.f1d1fc",
- "9bf6657f.dd37a8"
- ]
- ]
- },
- {
- "id": "98d3b92f.70fc48",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 899.3889007568359,
- "y": 64,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "189da6d2.5a6819",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 699.5555992126465,
- "y": 117.77785301208496,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "e988ff0f.b5aae",
- "type": "set",
- "name": "set networkId and network-object-path",
- "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
- "comments": "",
- "x": 786.5558776855469,
- "y": 1040.313469171524,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "e4aad21c.e7ff7",
- "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": 708.3336791992188,
- "y": 1229.868889093399,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "39e02c84.3177e4",
- "type": "set",
- "name": "set network-level-oper-status",
- "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
- "comments": "",
- "x": 753.4447937011719,
- "y": 1101.5356438159943,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "b96459be.6fd7a8",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 731.8577041625977,
- "y": 170.77788925170898,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "747d96dd.f43d58",
- "type": "update",
- "name": "update SDWAN VPN status to AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanat-id' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />",
- "comments": "",
- "outputs": 1,
- "x": 770.6635093688965,
- "y": 1164.2388553619385,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "39860903.53b456",
- "type": "set",
- "name": "set network in service-data",
- "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
- "comments": "",
- "x": 747.0004081726074,
- "y": 987.0913031101227,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "69af4cc7.202f04",
- "type": "for",
- "name": "for each network-input-parameters",
- "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 784,
- "y": 241.00390753149986,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "e4f0bee4.ba4a3"
- ]
- ]
- },
- {
- "id": "e4f0bee4.ba4a3",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1040.8334312438965,
- "y": 175.33725866675377,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "9e11c248.9eb9d",
- "9793f672.805878"
- ]
- ]
- },
- {
- "id": "9e11c248.9eb9d",
- "type": "switchNode",
- "name": "switch name",
- "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1231.8334922790527,
- "y": 171.33729109168053,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "8c9ad24.52d233"
- ]
- ]
- },
- {
- "id": "8c9ad24.52d233",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1405.8336181640625,
- "y": 171.3372949063778,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "360dce92.bcd8b2"
- ]
- ]
- },
- {
- "id": "360dce92.bcd8b2",
- "type": "set",
- "name": "set name",
- "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 1568.8335037231445,
- "y": 170.93728956580162,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "f71b9190.340d8",
- "type": "get-resource",
- "name": "get-resource esr-thirdparty-sdnc",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 778,
- "y": 350.00390625,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "35c5eced.422b74",
- "5db3feca.9679c",
- "84542dcd.8c846"
- ]
- ]
- },
- {
- "id": "35c5eced.422b74",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1023,
- "y": 296.00390753149986,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "b858bea3.dfbd9"
- ]
- ]
- },
- {
- "id": "5db3feca.9679c",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1026.490966796875,
- "y": 343.5779431760311,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "ea674168.c4155"
- ]
- ]
- },
- {
- "id": "84542dcd.8c846",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1021.823974609375,
- "y": 384.91125616431236,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "95ebd94d.24be88"
- ]
- ]
- },
- {
- "id": "b858bea3.dfbd9",
- "type": "set",
- "name": "set controller data",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
- "comments": "",
- "x": 1220.5000610351562,
- "y": 284.00390753149986,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "ea674168.c4155",
- "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 1203.0623779296875,
- "y": 331.8636792600155,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "95ebd94d.24be88",
- "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 1209.5965309143066,
- "y": 380.350448936224,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "3eb35468.4702ac",
- "type": "execute",
- "name": "execute RestApiCallNode Get token",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
- "comments": "",
- "outputs": 1,
- "x": 786,
- "y": 461.00390625,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "d801cca4.51d79",
- "c1258051.e7f45"
- ]
- ]
- },
- {
- "id": "d801cca4.51d79",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1025.000072479248,
- "y": 439.00393772125244,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "f717dae9.6ebf18"
- ]
- ]
- },
- {
- "id": "c1258051.e7f45",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1017.250072479248,
- "y": 492.6468210220337,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "d37810c8.811c7"
- ]
- ]
- },
- {
- "id": "f717dae9.6ebf18",
- "type": "set",
- "name": "set token-id",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
- "comments": "",
- "x": 1175,
- "y": 440.00390625,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "d37810c8.811c7",
- "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 executing get token rest api\" />\n",
- "comments": "",
- "x": 1170.000072479248,
- "y": 492.39688205718994,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "9793f672.805878",
- "type": "switchNode",
- "name": "switch topology",
- "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1230.25,
- "y": 224.00390753149986,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "cfe36c58.4801f"
- ]
- ]
- },
- {
- "id": "cfe36c58.4801f",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1404.2501258850098,
- "y": 224.00391134619713,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "3cd1ca28.cc1526"
- ]
- ]
- },
- {
- "id": "3cd1ca28.cc1526",
- "type": "set",
- "name": "set topology",
- "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 1567.2500114440918,
- "y": 223.60390600562096,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "d3877bd.f214188",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 707.7500457763672,
- "y": 707.0040292739868,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "7110150.fd1e8ec"
- ]
- ]
- },
- {
- "id": "7110150.fd1e8ec",
- "type": "execute",
- "name": "execute RestApiCallNode Create network orchestration",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1028.2501525878906,
- "y": 696.0041122436523,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "bc16f27b.ec50b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 710.2500152587891,
- "y": 769.0039575994015,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "39c058d0.1d59d8",
- "4d96e12b.86876",
- "50f144c4.b6b2ac"
- ]
- ]
- },
- {
- "id": "4d96e12b.86876",
- "type": "execute",
- "name": "execute RestApiCallNode Create vpn",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 981.7500610351562,
- "y": 759.0040815770626,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "39c058d0.1d59d8",
- "type": "set",
- "name": "set prop.vpn-id and prop.vpn1Id",
- "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.success[0].id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.success[0].id`' />\n",
- "comments": "",
- "x": 977.7502174377441,
- "y": 811.0041809082031,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "50f144c4.b6b2ac",
- "type": "execute",
- "name": "execute RestApiCallNode Create vpn topology",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1009.2500648498535,
- "y": 863.0039558410645,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "29cb6e2b.ecafd2",
- "type": "set",
- "name": "set tenant-id to service-data",
- "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='tenant-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.tenant-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
- "comments": "",
- "x": 745.2501525878906,
- "y": 904.7540903091431,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "9bf6657f.dd37a8",
- "type": "get-resource",
- "name": "get-resource service-subscription",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n \n",
- "comments": "",
- "outputs": 1,
- "x": 762.0715408325195,
- "y": 611.6825218200684,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "fbe99e6e.4017e",
- "457e75b8.5e8e7c"
- ]
- ]
- },
- {
- "id": "ba35b9dd.539428",
- "type": "switchNode",
- "name": "switch temp-ub-sub-account-id",
- "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1174.071632385254,
- "y": 576.4326028823853,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "76b51f1a.0801",
- "efbb35c.45c87c8"
- ]
- ]
- },
- {
- "id": "76b51f1a.0801",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 1366.78609085083,
- "y": 550.432635307312,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "a2a000be.ae6b"
- ]
- ]
- },
- {
- "id": "efbb35c.45c87c8",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 1367.071647644043,
- "y": 605.4326066970825,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "864dc517.ee5aa8"
- ]
- ]
- },
- {
- "id": "5407a489.2a82dc",
- "type": "set",
- "name": "set prop.tenant-id",
- "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
- "comments": "",
- "x": 1614.5002403259277,
- "y": 690.5754070281982,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "a2a000be.ae6b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1506.2499885559082,
- "y": 550.7539038658142,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "d533a7b3.2b7aa8",
- "68abe37a.a97c3c",
- "ebb2a924.447738",
- "3179cec4.da2412",
- "df370d35.edba",
- "5f23c930.bf33c8",
- "d5098f7f.2d7c"
- ]
- ]
- },
- {
- "id": "3179cec4.da2412",
- "type": "set",
- "name": "set prop.customer-id",
- "xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n",
- "comments": "",
- "x": 1717.8930969238281,
- "y": 361.3254642486572,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "d533a7b3.2b7aa8",
- "type": "execute",
- "name": "execute RestApiCallNode Create tenant",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1776.8929138183594,
- "y": 491.89675521850586,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "68abe37a.a97c3c",
- "type": "set",
- "name": "set prop.tenant-id",
- "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
- "comments": "",
- "x": 1729.7502326965332,
- "y": 616.753984451294,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "ebb2a924.447738",
- "type": "execute",
- "name": "execute RestApiCallNode Create tenant auth",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1797.250228881836,
- "y": 652.503984451294,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "df370d35.edba",
- "type": "get-resource",
- "name": "update-resource customer-id in service-subscription",
- "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$tenant-result.data.tenantId`' />\n<!--parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' /-->\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1821.1786041259766,
- "y": 552.8968715667725,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "fbe99e6e.4017e",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 972.571403503418,
- "y": 584.4285802841187,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "ba35b9dd.539428"
- ]
- ]
- },
- {
- "id": "457e75b8.5e8e7c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 966.2499923706055,
- "y": 636.6428918838501,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "df05b13b.b352c"
- ]
- ]
- },
- {
- "id": "df05b13b.b352c",
- "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 executing get token rest api\" />\n",
- "comments": "",
- "x": 1118.9999923706055,
- "y": 636.3929529190063,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "73dbb3c3.f1d1fc",
- "type": "set",
- "name": "set vpn-id to service-data",
- "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='vpn-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.vpn-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
- "comments": "",
- "x": 743.5000762939453,
- "y": 942.5039682388306,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "864dc517.ee5aa8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1425.7224044799805,
- "y": 688.5795984268188,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "5407a489.2a82dc",
- "75fd5cb0.1720a4"
- ]
- ]
- },
- {
- "id": "75fd5cb0.1720a4",
- "type": "execute",
- "name": "execute RestApiCallNode Create tenant auth",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1697.1510009765625,
- "y": 737.1510009765625,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "5f23c930.bf33c8",
- "type": "set",
- "name": "set prop.userAccount",
- "xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />",
- "comments": "",
- "x": 1718,
- "y": 439,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "d5098f7f.2d7c",
- "type": "execute",
- "name": "execute concat customer-id and @test.com",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1793.0038757324219,
- "y": 403.003942489624,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- }
-]
+[
+ {
+ "id": "803ab026.91f8f",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 107.03125,
+ "y": 31.031251907348633,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "c6313a09.482648"
+ ]
+ ]
+ },
+ {
+ "id": "c6313a09.482648",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "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": 293.03125381469727,
+ "y": 103.03126907348633,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "95ab199b.094c18"
+ ]
+ ]
+ },
+ {
+ "id": "95ab199b.094c18",
+ "type": "method",
+ "name": "method sdwan-network-topology-operation-activate",
+ "xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 281.0313720703125,
+ "y": 191.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "1c62871.b17ef79"
+ ]
+ ]
+ },
+ {
+ "id": "1c62871.b17ef79",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 455.03126525878906,
+ "y": 299.03131103515625,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "3b3f6a1b.7b4ca6",
+ "4e3bd6cb.ba9f78",
+ "694fbbd7.3f5854",
+ "17e80004.9e42d",
+ "285802e9.ef74ae",
+ "620b9b98.d14b04",
+ "8b0e2661.6611b8",
+ "418307b4.ccc048",
+ "96303f3f.254fa",
+ "2f6a3a39.effb56",
+ "e079dd14.d6c7f",
+ "c053f4f5.ddb828",
+ "9311c45c.c481e8",
+ "f2e5b424.d52178",
+ "9cac03d4.f972",
+ "9720bf6e.06444"
+ ]
+ ]
+ },
+ {
+ "id": "3b3f6a1b.7b4ca6",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 913.4201507568359,
+ "y": 48.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e3bd6cb.ba9f78",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 713.5868492126465,
+ "y": 101.8091049194336,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "694fbbd7.3f5854",
+ "type": "set",
+ "name": "set networkId and network-object-path",
+ "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
+ "comments": "",
+ "x": 800.5871276855469,
+ "y": 1024.3447210788727,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "17e80004.9e42d",
+ "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": 722.3649291992188,
+ "y": 1213.9001410007477,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "285802e9.ef74ae",
+ "type": "set",
+ "name": "set network-level-oper-status",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
+ "comments": "",
+ "x": 767.4760437011719,
+ "y": 1085.566895723343,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "620b9b98.d14b04",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 745.8889541625977,
+ "y": 154.80914115905762,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8b0e2661.6611b8",
+ "type": "update",
+ "name": "update SDWAN VPN status to AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanat-id' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 784.6947593688965,
+ "y": 1148.270107269287,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "418307b4.ccc048",
+ "type": "set",
+ "name": "set network in service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
+ "comments": "",
+ "x": 761.0316581726074,
+ "y": 971.1225550174713,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "96303f3f.254fa",
+ "type": "for",
+ "name": "for each network-input-parameters",
+ "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 798.03125,
+ "y": 225.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "ce83acb3.4528a"
+ ]
+ ]
+ },
+ {
+ "id": "ce83acb3.4528a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1054.8646812438965,
+ "y": 159.3685105741024,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "ecc115d.f7101e8",
+ "d7b4205b.949d1"
+ ]
+ ]
+ },
+ {
+ "id": "ecc115d.f7101e8",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1245.8647422790527,
+ "y": 155.36854299902916,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f5dbb094.881f6"
+ ]
+ ]
+ },
+ {
+ "id": "f5dbb094.881f6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1419.8648681640625,
+ "y": 155.36854681372643,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "d151144e.a69038"
+ ]
+ ]
+ },
+ {
+ "id": "d151144e.a69038",
+ "type": "set",
+ "name": "set name",
+ "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1582.8647537231445,
+ "y": 154.96854147315025,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "c053f4f5.ddb828",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 792.03125,
+ "y": 334.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "6d5ba109.a3671",
+ "90ffe3bf.39fcd",
+ "dbe2a88c.8b12f8"
+ ]
+ ]
+ },
+ {
+ "id": "6d5ba109.a3671",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1037.03125,
+ "y": 280.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f907f929.492558"
+ ]
+ ]
+ },
+ {
+ "id": "90ffe3bf.39fcd",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1040.522216796875,
+ "y": 327.60919508337975,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b624a8b6.bf4ac8"
+ ]
+ ]
+ },
+ {
+ "id": "dbe2a88c.8b12f8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1035.855224609375,
+ "y": 368.942508071661,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "7d3f8d7a.844044"
+ ]
+ ]
+ },
+ {
+ "id": "f907f929.492558",
+ "type": "set",
+ "name": "set controller data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+ "comments": "",
+ "x": 1234.5313110351562,
+ "y": 268.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "b624a8b6.bf4ac8",
+ "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 1217.0936279296875,
+ "y": 315.8949311673641,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "7d3f8d7a.844044",
+ "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 1223.6277809143066,
+ "y": 364.3817008435726,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9311c45c.c481e8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 800.03125,
+ "y": 445.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "e9b6301b.a1571",
+ "27918c6e.3a59a4"
+ ]
+ ]
+ },
+ {
+ "id": "e9b6301b.a1571",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039.031322479248,
+ "y": 423.0351896286011,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "25b0c9da.a209a6"
+ ]
+ ]
+ },
+ {
+ "id": "27918c6e.3a59a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1031.281322479248,
+ "y": 476.6780729293823,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "5b42d4fd.ac727c"
+ ]
+ ]
+ },
+ {
+ "id": "25b0c9da.a209a6",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 1189.03125,
+ "y": 424.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "5b42d4fd.ac727c",
+ "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 executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1184.031322479248,
+ "y": 476.4281339645386,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "d7b4205b.949d1",
+ "type": "switchNode",
+ "name": "switch topology",
+ "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1244.28125,
+ "y": 208.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "9f3b4d42.904a6"
+ ]
+ ]
+ },
+ {
+ "id": "9f3b4d42.904a6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1418.2813758850098,
+ "y": 208.03516325354576,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "c7a8b800.265778"
+ ]
+ ]
+ },
+ {
+ "id": "c7a8b800.265778",
+ "type": "set",
+ "name": "set topology",
+ "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1581.2812614440918,
+ "y": 207.6351579129696,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "f2e5b424.d52178",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 721.7812957763672,
+ "y": 691.0352811813354,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "be08c0ea.c5f31"
+ ]
+ ]
+ },
+ {
+ "id": "be08c0ea.c5f31",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create network orchestration",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1042.2814025878906,
+ "y": 680.035364151001,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2f6a3a39.effb56",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 724.2812652587891,
+ "y": 753.0352095067501,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "7ec8c1c5.bf91a",
+ "8dc97b4a.332098",
+ "cd1c7839.bb73a8"
+ ]
+ ]
+ },
+ {
+ "id": "8dc97b4a.332098",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create vpn",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.7813110351562,
+ "y": 743.0353334844112,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7ec8c1c5.bf91a",
+ "type": "set",
+ "name": "set prop.vpn-id and prop.vpn1Id",
+ "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.success[0].id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.success[0].id`' />\n",
+ "comments": "",
+ "x": 991.7814674377441,
+ "y": 795.0354328155518,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "cd1c7839.bb73a8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create vpn topology",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1023.2813148498535,
+ "y": 847.0352077484131,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e079dd14.d6c7f",
+ "type": "set",
+ "name": "set tenant-id to service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='tenant-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.tenant-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
+ "comments": "",
+ "x": 759.2814025878906,
+ "y": 888.7853422164917,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9720bf6e.06444",
+ "type": "get-resource",
+ "name": "get-resource service-subscription",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 776.1027908325195,
+ "y": 595.713773727417,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "bbcbdc4.862f32",
+ "4736bcfb.a0c9e4"
+ ]
+ ]
+ },
+ {
+ "id": "b8d38e16.8f50d",
+ "type": "switchNode",
+ "name": "switch temp-ub-sub-account-id",
+ "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1188.102882385254,
+ "y": 560.4638547897339,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "59cc568a.83f018",
+ "73ddfac2.a0d4e4"
+ ]
+ ]
+ },
+ {
+ "id": "59cc568a.83f018",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1380.81734085083,
+ "y": 534.4638872146606,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "e9b5fb34.606db8"
+ ]
+ ]
+ },
+ {
+ "id": "73ddfac2.a0d4e4",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1381.102897644043,
+ "y": 589.4638586044312,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b0968203.54d37"
+ ]
+ ]
+ },
+ {
+ "id": "fb4eb84c.02a668",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
+ "comments": "",
+ "x": 1628.5314903259277,
+ "y": 674.6066589355469,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "e9b5fb34.606db8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1520.2812385559082,
+ "y": 534.7851557731628,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "caa8d5b4.0ad2b8",
+ "a7278d93.3720c",
+ "160a6c8c.918963",
+ "da44425a.02876",
+ "416c4dbb.36fe64",
+ "4cac2ec3.0933d",
+ "33b241ad.e4aa3e"
+ ]
+ ]
+ },
+ {
+ "id": "da44425a.02876",
+ "type": "set",
+ "name": "set prop.customer-id",
+ "xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n",
+ "comments": "",
+ "x": 1731.9243469238281,
+ "y": 345.35671615600586,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "caa8d5b4.0ad2b8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1790.9241638183594,
+ "y": 475.9280071258545,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a7278d93.3720c",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
+ "comments": "",
+ "x": 1743.7814826965332,
+ "y": 600.7852363586426,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "160a6c8c.918963",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1811.281478881836,
+ "y": 636.5352363586426,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "416c4dbb.36fe64",
+ "type": "get-resource",
+ "name": "update-resource customer-id in service-subscription",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$tenant-result.data.tenantId`' />\n<!--parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' /-->\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1835.2098541259766,
+ "y": 536.9281234741211,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bbcbdc4.862f32",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.602653503418,
+ "y": 568.4598321914673,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b8d38e16.8f50d"
+ ]
+ ]
+ },
+ {
+ "id": "4736bcfb.a0c9e4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 980.2812423706055,
+ "y": 620.6741437911987,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f07e116f.03b5"
+ ]
+ ]
+ },
+ {
+ "id": "f07e116f.03b5",
+ "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 executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1133.0312423706055,
+ "y": 620.424204826355,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9cac03d4.f972",
+ "type": "set",
+ "name": "set vpn-id to service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='vpn-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.vpn-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
+ "comments": "",
+ "x": 757.5313262939453,
+ "y": 926.5352201461792,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "b0968203.54d37",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1439.7536544799805,
+ "y": 672.6108503341675,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "fb4eb84c.02a668",
+ "a2f6331e.2d634"
+ ]
+ ]
+ },
+ {
+ "id": "a2f6331e.2d634",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1711.1822509765625,
+ "y": 721.1822528839111,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4cac2ec3.0933d",
+ "type": "set",
+ "name": "set prop.userAccount",
+ "xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />",
+ "comments": "",
+ "x": 1732.03125,
+ "y": 423.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "33b241ad.e4aa3e",
+ "type": "execute",
+ "name": "execute concat customer-id and @test.com",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1807.0351257324219,
+ "y": 387.03519439697266,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ }
+]