aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sotn
diff options
context:
space:
mode:
authorgaurav <gaurav.agrawal@huawei.com>2018-10-05 11:29:55 +0530
committergaurav <gaurav.agrawal@huawei.com>2018-10-05 11:29:55 +0530
commitd9e26826bff32fdfd92296e2f4b425a81e7ecdf3 (patch)
treec0bc1573ccdc43aec9848b5754f03a50419bb13f /platform-logic/generic-resource-api/src/main/json/sotn
parent351d5315bafe499e9f6904fa51c3b70c13f3cb70 (diff)
Refactored SOTN and SDWAN DG
Refactored SOTN and SDWAN DG to seperate sub directories for better maintainability. Change-Id: I49c57d20fc8fcb7de65d3634bceb691d0b7f80fd Issue-ID: SDNC-350 Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com> Former-commit-id: d3d3ce137625a244accf736da3a8f6736b44300e
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sotn')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json2997
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json1347
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json2017
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json930
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-get-saved-ar-param.json481
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json185
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json1053
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json185
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json173
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json377
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_validate-sotn-network-input-parameters.json1201
11 files changed, 10946 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json
new file mode 100644
index 00000000..bd24e0f2
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json
@@ -0,0 +1,2997 @@
+[
+ {
+ "id": "510329fc.5eb288",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 92,
+ "y": 51,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "d0754e51.43601"
+ ]
+ ]
+ },
+ {
+ "id": "d0754e51.43601",
+ "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": 304.00000381469727,
+ "y": 123.0000171661377,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "5324d186.c424e"
+ ]
+ ]
+ },
+ {
+ "id": "5324d186.c424e",
+ "type": "method",
+ "name": "sotn-attachment-topology-operation-activate",
+ "xml": "<method rpc='sotn-attachment-topology-operation-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 292.0001220703125,
+ "y": 211,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "200d23ad.1ba52c"
+ ]
+ ]
+ },
+ {
+ "id": "200d23ad.1ba52c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 308.0001220703125,
+ "y": 766.0002446174622,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "50fa98f0.7c4998",
+ "6f233fc4.4456d",
+ "8ef678b.4678d88",
+ "41e3aa85.858d54",
+ "b2920bb5.1af8e8",
+ "525ecaee.ee9b24",
+ "ab2f4625.6243a8",
+ "b09745d8.bb7668",
+ "b13bf095.cdea1",
+ "dcca5b8a.14d818",
+ "5d5e7f8f.d3d28",
+ "b3a2976e.016ed8",
+ "33c05db5.bb8532",
+ "dde46f65.1623c",
+ "3d236d8e.1a1ed2",
+ "9dd9851c.cc5e08",
+ "21b8bdc2.b30a32",
+ "c4803883.47c5a8",
+ "ad2575da.f719b8",
+ "c4ade364.dff4"
+ ]
+ ]
+ },
+ {
+ "id": "50fa98f0.7c4998",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id,etc",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 704.9935607910156,
+ "y": 164.9934868812561,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "d87c2a28.d4a808",
+ "type": "comment",
+ "name": "set tmp ar-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 733.9538726806641,
+ "y": 129.02528285980225,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "6f233fc4.4456d",
+ "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": 658.9934997558594,
+ "y": 257.99349212646484,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "b2920bb5.1af8e8",
+ "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": 665.2553901672363,
+ "y": 345.6602210998535,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8ef678b.4678d88",
+ "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": 712.2554473876953,
+ "y": 433.6602249145508,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2c8ad64b.5a9c0a",
+ "type": "comment",
+ "name": "GET connection-attachment-allotted-resource from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 758.8083801269531,
+ "y": 564.5386590957642,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "3f345735.382a78",
+ "type": "comment",
+ "name": "Used for setting output to API Handler",
+ "info": "",
+ "comments": "",
+ "x": 712.9935302734375,
+ "y": 224.993501663208,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "dc7c3756.7911f8",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 730.9934959411621,
+ "y": 310.8823823928833,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "385fcb45.8d58e4",
+ "type": "comment",
+ "name": "Used to Get AR by id to MDSAL, same as self-link",
+ "info": "",
+ "comments": "",
+ "x": 756.9935150146484,
+ "y": 397.8823413848877,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "fb3f3db1.2e857",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1218.6667919158936,
+ "y": 581.9999847412109,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "7924d66d.1039e8"
+ ]
+ ]
+ },
+ {
+ "id": "7924d66d.1039e8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1362.6668701171875,
+ "y": 539.4999027252197,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "2e9884a4.fb6aac"
+ ]
+ ]
+ },
+ {
+ "id": "2e9884a4.fb6aac",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1531.5242938995361,
+ "y": 537.1190738677979,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "a5020a5a.1a8de8",
+ "a75f121c.781a7"
+ ]
+ ]
+ },
+ {
+ "id": "a5020a5a.1a8de8",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1686.8574295043945,
+ "y": 509.1189889907837,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "dc7b8304.a3929"
+ ]
+ ]
+ },
+ {
+ "id": "dc7b8304.a3929",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1845.381233215332,
+ "y": 507.02383613586426,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "2e53bf10.53616",
+ "4d06247.7481adc",
+ "16d5ef9e.67621"
+ ]
+ ]
+ },
+ {
+ "id": "57e48b3f.e4d594",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connection attachment resource not exist\" />\n \n",
+ "comments": "",
+ "x": 1785.5191650390625,
+ "y": 614.0660705566406,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "549a2a73.774b74",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1210.5185947418213,
+ "y": 617.0660696029663,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "13c58b6.0463e75"
+ ]
+ ]
+ },
+ {
+ "id": "13c58b6.0463e75",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1390.5185451507568,
+ "y": 617.7326202392578,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "57e48b3f.e4d594"
+ ]
+ ]
+ },
+ {
+ "id": "a75f121c.781a7",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1678.185432434082,
+ "y": 568.3993635177612,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "57e48b3f.e4d594"
+ ]
+ ]
+ },
+ {
+ "id": "2e53bf10.53616",
+ "type": "set",
+ "name": "set connection-attachment-ar from get",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
+ "comments": "",
+ "x": 2092.4446868896484,
+ "y": 480.00008821487427,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "16d5ef9e.67621",
+ "type": "set",
+ "name": "set oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
+ "comments": "",
+ "x": 2026.4447174072266,
+ "y": 553.4285907745361,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "4d06247.7481adc",
+ "type": "switchNode",
+ "name": "switch order-status",
+ "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2036.4444961547852,
+ "y": 519.0000247955322,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "13c3c1da.98e52e",
+ "c01b9863.c31138",
+ "bd2b5022.a474e"
+ ]
+ ]
+ },
+ {
+ "id": "13c3c1da.98e52e",
+ "type": "outcome",
+ "name": "outcome Created",
+ "xml": "<outcome value='Created'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2272.044578552246,
+ "y": 513.0000557899475,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "29af8103.34f60e"
+ ]
+ ]
+ },
+ {
+ "id": "c01b9863.c31138",
+ "type": "outcome",
+ "name": "outcome Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2265.759078979492,
+ "y": 593.4286904335022,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "869d355f.ff5a28"
+ ]
+ ]
+ },
+ {
+ "id": "29af8103.34f60e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2430.515251159668,
+ "y": 513.37571144104,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "869d355f.ff5a28",
+ "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\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
+ "comments": "",
+ "x": 2441.666893005371,
+ "y": 592.0000896453857,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "4c9dfad4.b5cb94",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 929.303050994873,
+ "y": 664.4936046600342,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "525ecaee.ee9b24",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 623.3091506958008,
+ "y": 665.4999752044678,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "4c9dfad4.b5cb94"
+ ]
+ ]
+ },
+ {
+ "id": "f0374b61.7fdcc8",
+ "type": "comment",
+ "name": "GET parent-service-data from mdsal to check existence of other End point",
+ "info": "",
+ "comments": "",
+ "x": 811.00048828125,
+ "y": 710.5317525863647,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "ee77ccab.555f2",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1702.1851959228516,
+ "y": 863.0042300224304,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "1d8e18c9.612a97"
+ ]
+ ]
+ },
+ {
+ "id": "41e3aa85.858d54",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 786.1842193603516,
+ "y": 970.7182664871216,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "227fe562.bef93a",
+ "30f6347f.71f27c",
+ "8d3aa09e.93736"
+ ]
+ ]
+ },
+ {
+ "id": "227fe562.bef93a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1114.3272399902344,
+ "y": 1043.5755405426025,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "70131877.497ee8"
+ ]
+ ]
+ },
+ {
+ "id": "d8325992.1c7e08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1298.454502105713,
+ "y": 902.7015495300293,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "ee77ccab.555f2",
+ "7fdc18ff.582858"
+ ]
+ ]
+ },
+ {
+ "id": "1d8e18c9.612a97",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2142.2965240478516,
+ "y": 860.0040321350098,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "d475cadd.1a2f78",
+ "4ec4a51f.47decc"
+ ]
+ ]
+ },
+ {
+ "id": "d475cadd.1a2f78",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2315.1067390441895,
+ "y": 831.4686470031738,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "4ae70fe8.b24e9"
+ ]
+ ]
+ },
+ {
+ "id": "7b37e59c.23ec7c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2463.8672103881836,
+ "y": 888.3257341384888,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "102e4d37.8fb7c3"
+ ]
+ ]
+ },
+ {
+ "id": "102e4d37.8fb7c3",
+ "type": "set",
+ "name": "set tmp.pidx and ptx.consumed-ar",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 2698.724636077881,
+ "y": 886.8972663879395,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "82ecf3e0.5c52b",
+ "type": "comment",
+ "name": "Check existence of other AR in parent service data",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 733.9626579284668,
+ "y": 875.8929615020752,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "30f6347f.71f27c",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1128.9797096252441,
+ "y": 982.6772241592407,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "2cd6df64.b8473"
+ ]
+ ]
+ },
+ {
+ "id": "70131877.497ee8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: End points not available\" />\n \n",
+ "comments": "",
+ "x": 1273.9795875549316,
+ "y": 1042.67746925354,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "8d3aa09e.93736",
+ "type": "other",
+ "name": "outcome 2",
+ "xml": "<outcome value='2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1123.9795227050781,
+ "y": 903.6772499084473,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "d8325992.1c7e08"
+ ]
+ ]
+ },
+ {
+ "id": "4ae70fe8.b24e9",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2473.0909538269043,
+ "y": 830.6773900985718,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4ec4a51f.47decc",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2322.0905952453613,
+ "y": 887.6772499084473,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "7b37e59c.23ec7c"
+ ]
+ ]
+ },
+ {
+ "id": "7fdc18ff.582858",
+ "type": "switchNode",
+ "name": "switch tmp.found-in-ar",
+ "xml": "<switch test='`$tmp.found-in-ar`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1510.9794998168945,
+ "y": 956.4550676345825,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "92b2633f.8d761"
+ ]
+ ]
+ },
+ {
+ "id": "92b2633f.8d761",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1681.97953414917,
+ "y": 957.5662889480591,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "c3df20e.333b9e"
+ ]
+ ]
+ },
+ {
+ "id": "c3df20e.333b9e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1830.9796295166016,
+ "y": 957.5662879943848,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "8c502b5e.ba0e48",
+ "b7c302f0.0eaa4"
+ ]
+ ]
+ },
+ {
+ "id": "642168d6.c96a08",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2577.097454071045,
+ "y": 973.7951421737671,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "28182687.5e2d2a"
+ ]
+ ]
+ },
+ {
+ "id": "d6797517.070b08",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2568.9492568969727,
+ "y": 1008.8612270355225,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "863cf5ba.41a538"
+ ]
+ ]
+ },
+ {
+ "id": "5a7b91f3.92074",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.networks_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1574.313003540039,
+ "y": 1057.899908065796,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "5c7b0dd2.1db974",
+ "decd8771.495088"
+ ]
+ ]
+ },
+ {
+ "id": "decd8771.495088",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1838.3128509521484,
+ "y": 1037.7886543273926,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "26e27dfe.c23ed2"
+ ]
+ ]
+ },
+ {
+ "id": "5c7b0dd2.1db974",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1828.3129119873047,
+ "y": 1085.788625717163,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "2701bab7.b74336"
+ ]
+ ]
+ },
+ {
+ "id": "2701bab7.b74336",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n",
+ "comments": "",
+ "x": 1966.9652557373047,
+ "y": 1087.890386581421,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "3f964f3.96aa1b",
+ "type": "set",
+ "name": "set tmp.network.",
+ "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n\n\n",
+ "comments": "",
+ "x": 2199.757709503174,
+ "y": 1038.788824081421,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "2cd6df64.b8473",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1296.4240188598633,
+ "y": 981.7884912490845,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "5a7b91f3.92074"
+ ]
+ ]
+ },
+ {
+ "id": "26e27dfe.c23ed2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1997.0906219482422,
+ "y": 1040.7884883880615,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "3f964f3.96aa1b",
+ "d34f3159.b7d95"
+ ]
+ ]
+ },
+ {
+ "id": "d34f3159.b7d95",
+ "type": "for",
+ "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
+ "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2360.090660095215,
+ "y": 1086.7886428833008,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "6c6f677c.4a6ae8"
+ ]
+ ]
+ },
+ {
+ "id": "6c6f677c.4a6ae8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2406.646728515625,
+ "y": 1317.7884521484375,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "5a5ff171.f67b5",
+ "5ac44b36.e6ed64",
+ "477598ab.94c4f8",
+ "bf3fd182.60613",
+ "ee0ac40b.7c8918",
+ "334ef95a.804996",
+ "6b4b64b0.8aa49c",
+ "f2f619ae.81dc88",
+ "7f22248e.623acc",
+ "1977cf51.112051"
+ ]
+ ]
+ },
+ {
+ "id": "5a5ff171.f67b5",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2683.1569442749023,
+ "y": 1159.7991995811462,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "83c25cc5.35c9d"
+ ]
+ ]
+ },
+ {
+ "id": "83c25cc5.35c9d",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2872.1565704345703,
+ "y": 1161.7990641593933,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "80bf2f28.f9eae"
+ ]
+ ]
+ },
+ {
+ "id": "80bf2f28.f9eae",
+ "type": "set",
+ "name": "set tmp.found-in-network tmp.ep-available",
+ "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 3125.1567459106445,
+ "y": 1161.3991103172302,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "5ac44b36.e6ed64",
+ "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": 2657.146396636963,
+ "y": 1533.7884907722473,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "b3a2976e.016ed8",
+ "type": "switchNode",
+ "name": "switch tmp.ep-available",
+ "xml": "<switch test='`$tmp.ep-available`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 649.3128204345703,
+ "y": 1166.232801437378,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "d67d36b.8c807c8",
+ "d4dded0c.3defe"
+ ]
+ ]
+ },
+ {
+ "id": "d4dded0c.3defe",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 867.9795398712158,
+ "y": 1215.5661582946777,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "dac36818.3ade18"
+ ]
+ ]
+ },
+ {
+ "id": "d67d36b.8c807c8",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 872.8683414459229,
+ "y": 1124.566219329834,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "fea8c889.837c28"
+ ]
+ ]
+ },
+ {
+ "id": "fea8c889.837c28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1019.8683376312256,
+ "y": 1126.4550323486328,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dac36818.3ade18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1038.090627670288,
+ "y": 1213.5661163330078,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "47a53791.ce00e8",
+ "49abb372.8700ac",
+ "73f1353a.31fe0c"
+ ]
+ ]
+ },
+ {
+ "id": "47a53791.ce00e8",
+ "type": "switchNode",
+ "name": "switch tmp.found-in-ar",
+ "xml": "<switch test='`$tmp.found-in-ar`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1264.2016410827637,
+ "y": 1180.5661163330078,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "f3f2f58d.f1fde8",
+ "73ae144b.6c716c"
+ ]
+ ]
+ },
+ {
+ "id": "f3f2f58d.f1fde8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1459.6460876464844,
+ "y": 1158.566177368164,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "a49cc189.c10f7"
+ ]
+ ]
+ },
+ {
+ "id": "73ae144b.6c716c",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1456.64599609375,
+ "y": 1206.566162109375,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "5c6b8964.10acc8"
+ ]
+ ]
+ },
+ {
+ "id": "a49cc189.c10f7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1647.2017517089844,
+ "y": 1155.566177368164,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "50540586.cfd78c"
+ ]
+ ]
+ },
+ {
+ "id": "5c6b8964.10acc8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1644.20166015625,
+ "y": 1205.566162109375,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "7849a3ee.c57b4c"
+ ]
+ ]
+ },
+ {
+ "id": "b9bd1802.9893c8",
+ "type": "comment",
+ "name": "GET connection-attachment-ar to store AR data from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 2156.4728355407715,
+ "y": 442.50394773483276,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "811f13c4.a802b",
+ "type": "comment",
+ "name": "Set source end point",
+ "info": "",
+ "comments": "",
+ "x": 645.9727325439453,
+ "y": 531.2539677619934,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "ab2f4625.6243a8",
+ "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": 696.9688262939453,
+ "y": 740.0000905990601,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "e3a34e44.03f86",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1056.968978881836,
+ "y": 811.0000772476196,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "1cfd4bb9.99d9a4"
+ ]
+ ]
+ },
+ {
+ "id": "8447b050.f664b",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1048.8207817077637,
+ "y": 846.066162109375,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "7bd6123e.8e599c"
+ ]
+ ]
+ },
+ {
+ "id": "7bd6123e.8e599c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n \n",
+ "comments": "",
+ "x": 1194.9695625305176,
+ "y": 845.3335733413696,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "1cfd4bb9.99d9a4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1187.9690742492676,
+ "y": 811.0001382827759,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "863cf5ba.41a538",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN provided attachment resource not found\" />\n \n",
+ "comments": "",
+ "x": 2718.969306945801,
+ "y": 1009.00026512146,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "28182687.5e2d2a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2703.9694290161133,
+ "y": 976.0002498626709,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b09745d8.bb7668",
+ "type": "set",
+ "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
+ "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
+ "comments": "",
+ "x": 782.9687652587891,
+ "y": 913.0000648498535,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "53f5b769.1d9ac8",
+ "type": "comment",
+ "name": "If other EP exists set destination end point",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 699.9687652587891,
+ "y": 1091.0000133514404,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "39192112.9a7a9e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1439.9688873291016,
+ "y": 1418.0002946853638,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "29497381.2907dc",
+ "a8454134.72dfa",
+ "b437b233.85dc6",
+ "d5da4e92.fd9d5",
+ "527cda61.4c5444",
+ "21b345b.f16dcba",
+ "847549d0.8fada8",
+ "46d04af2.172014"
+ ]
+ ]
+ },
+ {
+ "id": "29497381.2907dc",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1682.4791889190674,
+ "y": 1288.010691165924,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "b53954e3.75f548"
+ ]
+ ]
+ },
+ {
+ "id": "a8454134.72dfa",
+ "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": 1655.4691410064697,
+ "y": 1593.0006546974182,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "b437b233.85dc6",
+ "type": "switchNode",
+ "name": "switch access-ltp-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1673.9690189361572,
+ "y": 1331.7782225608826,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "4beb5c8f.437a34"
+ ]
+ ]
+ },
+ {
+ "id": "d5da4e92.fd9d5",
+ "type": "switchNode",
+ "name": "switch clientSignal",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1667.9690570831299,
+ "y": 1377.778269290924,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "a652bfee.a4a86"
+ ]
+ ]
+ },
+ {
+ "id": "527cda61.4c5444",
+ "type": "switchNode",
+ "name": "switch cVLAN",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1651.9585590362549,
+ "y": 1416.767771244049,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "b6d9ed74.687c9"
+ ]
+ ]
+ },
+ {
+ "id": "b53954e3.75f548",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1860.1911029815674,
+ "y": 1288.6670632362366,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "b7855c9c.e078"
+ ]
+ ]
+ },
+ {
+ "id": "b7855c9c.e078",
+ "type": "set",
+ "name": "set dst-access-node-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 2035.1911029815674,
+ "y": 1288.267038345337,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "4beb5c8f.437a34",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1855.6809711456299,
+ "y": 1331.434519290924,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "17f7ba24.7fa566"
+ ]
+ ]
+ },
+ {
+ "id": "a652bfee.a4a86",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1855.6809711456299,
+ "y": 1377.434519290924,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "b4e0c929.110668"
+ ]
+ ]
+ },
+ {
+ "id": "b6d9ed74.687c9",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1855.6704730987549,
+ "y": 1416.4241433143616,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "90d8491c.861238"
+ ]
+ ]
+ },
+ {
+ "id": "49abb372.8700ac",
+ "type": "for",
+ "name": "for idx..tmp.ep.parameters[]",
+ "xml": "<for index='idx' start='0' end='`$tmp.ep.parameters.param_length`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1292.96875,
+ "y": 1306,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "39192112.9a7a9e"
+ ]
+ ]
+ },
+ {
+ "id": "50540586.cfd78c",
+ "type": "set",
+ "name": "set tmp.ep.parameters",
+ "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$mdsal-other-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.`' />\n",
+ "comments": "",
+ "x": 1858.9688053131104,
+ "y": 1155.0000743865967,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "7849a3ee.c57b4c",
+ "type": "set",
+ "name": "set tmp.ep.parameters",
+ "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$tmp.network.network-data.network-request-input.network-input-parameters.`' />\n",
+ "comments": "",
+ "x": 1855.968713760376,
+ "y": 1201.0000591278076,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "17f7ba24.7fa566",
+ "type": "set",
+ "name": "set dst-access-node-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 2032.9689350128174,
+ "y": 1331.0003151893616,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "b4e0c929.110668",
+ "type": "set",
+ "name": "set dst-clientSignal",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 2026.9689350128174,
+ "y": 1375.0003151893616,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "90d8491c.861238",
+ "type": "set",
+ "name": "set dst-cVLAN",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 2017.9689350128174,
+ "y": 1414.0003151893616,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "7a6bd4c0.0a23ac",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 1899.968807220459,
+ "y": 1885.000153541565,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "e5ca51fb.cb5be",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create ethernet Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\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=\"patch\"/>\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": 1963.9693450927734,
+ "y": 2159.001121520996,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "4fd581be.ae7c5",
+ "cba0e7bf.640378"
+ ]
+ ]
+ },
+ {
+ "id": "4fd581be.ae7c5",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2229.9690704345703,
+ "y": 2188.001244544983,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "9a1df066.c1be9"
+ ]
+ ]
+ },
+ {
+ "id": "9a1df066.c1be9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2377.9690704345703,
+ "y": 2186.0011224746704,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "434af439.625b6c",
+ "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 Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 2359.9691009521484,
+ "y": 2133.0011825561523,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "cba0e7bf.640378",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2220.969009399414,
+ "y": 2133.0011825561523,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "434af439.625b6c"
+ ]
+ ]
+ },
+ {
+ "id": "1a8278df.ac4137",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 871.7311744689941,
+ "y": 2108.9537086486816,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "c4aa74e4.35ca78"
+ ]
+ ]
+ },
+ {
+ "id": "c4aa74e4.35ca78",
+ "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": 1038.2549953460693,
+ "y": 2135.5727157592773,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "33c28cf6.2b21a4",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.8264026641846,
+ "y": 2156.715551376343,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "c4aa74e4.35ca78"
+ ]
+ ]
+ },
+ {
+ "id": "cb1a048d.e95fc8",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 645.7788181304932,
+ "y": 2097.3028717041016,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "c4803883.47c5a8",
+ "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": 660.5465145111084,
+ "y": 2018.8283529281616,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "c4ade364.dff4",
+ "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": 620.9596862792969,
+ "y": 2204.4441413879395,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "21b8bdc2.b30a32",
+ "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.sotn-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": 713.2785968780518,
+ "y": 1943.4692058563232,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "72334169.43788",
+ "91c81d87.0f2e3",
+ "4377487a.aa9b58"
+ ]
+ ]
+ },
+ {
+ "id": "72334169.43788",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 967.9200191497803,
+ "y": 1987.8006000518799,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "3aa37f14.b2a12"
+ ]
+ ]
+ },
+ {
+ "id": "91c81d87.0f2e3",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 969.9200420379639,
+ "y": 1946.3005641922355,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "3aa37f14.b2a12"
+ ]
+ ]
+ },
+ {
+ "id": "4377487a.aa9b58",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 973.6701259613037,
+ "y": 1897.6577167510986,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "ce3cc849.21f268"
+ ]
+ ]
+ },
+ {
+ "id": "3aa37f14.b2a12",
+ "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": 1128.67014503479,
+ "y": 1966.050630569458,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "ce3cc849.21f268",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1101.3260707855225,
+ "y": 1899.8498849868774,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "33c05db5.bb8532",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\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.` \" />",
+ "comments": "",
+ "x": 615.4922122955322,
+ "y": 1777.8501069545746,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "3d236d8e.1a1ed2",
+ "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": 632.77805519104,
+ "y": 1850.4697046279907,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9dd9851c.cc5e08",
+ "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='Active' />\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": 682.7651348114014,
+ "y": 1887.4207849502563,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "dde46f65.1623c",
+ "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": 629.3337535858154,
+ "y": 1817.024757385254,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "c0243700.483a78",
+ "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": 742.66721534729,
+ "y": 1738.0247094631195,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "b128777a.bf8ad8",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 684.2470417022705,
+ "y": 1705.4380111694336,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "ad2575da.f719b8",
+ "type": "update",
+ "name": "update AAI allotted-resource",
+ "xml": "<update 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\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\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=\"Active\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 672.2230968475342,
+ "y": 2134.7550144195557,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "1a8278df.ac4137",
+ "33c28cf6.2b21a4"
+ ]
+ ]
+ },
+ {
+ "id": "73456eef.45eac",
+ "type": "execute",
+ "name": "execute RestApiCallNode getPath from OOF",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"oof\"/>\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": 1480.973056793213,
+ "y": 1697.2546663284302,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "473a6700.6236e8",
+ "5286278b.3b3cd8"
+ ]
+ ]
+ },
+ {
+ "id": "473a6700.6236e8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1720.9731979370117,
+ "y": 1721.254635810852,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "cafce3b5.74fb5"
+ ]
+ ]
+ },
+ {
+ "id": "dc79f611.cf4238",
+ "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 OOF api\" />\n",
+ "comments": "",
+ "x": 1859.973232269287,
+ "y": 1670.2547273635864,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "5286278b.3b3cd8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1719.9729843139648,
+ "y": 1670.254726409912,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "dc79f611.cf4238"
+ ]
+ ]
+ },
+ {
+ "id": "deb094f6.e597f8",
+ "type": "comment",
+ "name": "Get VPNs from OOF",
+ "info": "",
+ "comments": "",
+ "x": 1466.976978302002,
+ "y": 1664.2586660385132,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "da1582e5.d9e86",
+ "type": "for",
+ "name": "for vidx..oof.vpns_length[]",
+ "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1420.972900390625,
+ "y": 1779.50439453125,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "b2ef8ded.b479a"
+ ]
+ ]
+ },
+ {
+ "id": "c9df49cc.0e8008",
+ "type": "comment",
+ "name": "Loop through VPN and configure them",
+ "info": "",
+ "comments": "",
+ "x": 1466.9733505249023,
+ "y": 1914.0047721862793,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "477598ab.94c4f8",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2660.757080078125,
+ "y": 1251.121826171875,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "7c0be7f6.9e8c58"
+ ]
+ ]
+ },
+ {
+ "id": "7c0be7f6.9e8c58",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2849.757049560547,
+ "y": 1251.121811389923,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "1cf5a70.cc26659"
+ ]
+ ]
+ },
+ {
+ "id": "1cf5a70.cc26659",
+ "type": "set",
+ "name": "set etht-svc-name & bandwidth-profile-name",
+ "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name='prop.global.sotn.bandwidth-profile-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 3090.75736618042,
+ "y": 1250.7218661308289,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "bf3fd182.60613",
+ "type": "switchNode",
+ "name": "switch description",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'description'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2673.5969581604004,
+ "y": 1286.1219210624695,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "f2fb468e.d467f8"
+ ]
+ ]
+ },
+ {
+ "id": "f2fb468e.d467f8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2848.597023010254,
+ "y": 1288.1219067573547,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "e7ce8468.64c938"
+ ]
+ ]
+ },
+ {
+ "id": "e7ce8468.64c938",
+ "type": "set",
+ "name": "set etht-svc-descr",
+ "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 3004.9303398132324,
+ "y": 1285.5829815864563,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "ee0ac40b.7c8918",
+ "type": "switchNode",
+ "name": "switch tenantId",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'tenantId'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2668.979221343994,
+ "y": 1319.4553112983704,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "db11a89d.57ead8"
+ ]
+ ]
+ },
+ {
+ "id": "db11a89d.57ead8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2846.9792251586914,
+ "y": 1323.4551892280579,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "a28b1daa.bce21"
+ ]
+ ]
+ },
+ {
+ "id": "a28b1daa.bce21",
+ "type": "set",
+ "name": "set tenantId",
+ "xml": "<set>\n<parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2984.9794120788574,
+ "y": 1320.0551648139954,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "6b4b64b0.8aa49c",
+ "type": "switchNode",
+ "name": "switch cir",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2651.818820953369,
+ "y": 1392.4552664756775,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "779ba6d5.68a5b8"
+ ]
+ ]
+ },
+ {
+ "id": "779ba6d5.68a5b8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2846.8188858032227,
+ "y": 1393.4552664756775,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "51c8d37d.57c57c"
+ ]
+ ]
+ },
+ {
+ "id": "51c8d37d.57c57c",
+ "type": "set",
+ "name": "set cir",
+ "xml": "<set>\n<parameter name='prop.sotn.cir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2971.15238571167,
+ "y": 1391.916341304779,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "334ef95a.804996",
+ "type": "switchNode",
+ "name": "switch vpnType",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'vpnType'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2666.127109527588,
+ "y": 1355.232976436615,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "edf65e2e.17eef"
+ ]
+ ]
+ },
+ {
+ "id": "edf65e2e.17eef",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2848.127296447754,
+ "y": 1358.232961177826,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "3a58a10e.af006e"
+ ]
+ ]
+ },
+ {
+ "id": "3a58a10e.af006e",
+ "type": "set",
+ "name": "set vpnType",
+ "xml": "<set>\n<parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2984.461040496826,
+ "y": 1354.6942028999329,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "f2f619ae.81dc88",
+ "type": "switchNode",
+ "name": "switch eir",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2647.1091651916504,
+ "y": 1426.1531739234924,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "290775a.582758a"
+ ]
+ ]
+ },
+ {
+ "id": "290775a.582758a",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2847.1094131469727,
+ "y": 1429.1531128883362,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "be16065f.3cc068"
+ ]
+ ]
+ },
+ {
+ "id": "be16065f.3cc068",
+ "type": "set",
+ "name": "set eir",
+ "xml": "<set>\n<parameter name='prop.global.sotn.eir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2970.4430351257324,
+ "y": 1428.6141724586487,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "7f22248e.623acc",
+ "type": "switchNode",
+ "name": "switch colorAware",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2672.109775543213,
+ "y": 1460.1530528068542,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "60b638c9.9f5cf8"
+ ]
+ ]
+ },
+ {
+ "id": "60b638c9.9f5cf8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2843.1095962524414,
+ "y": 1466.1529912948608,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "6283050a.9a352c"
+ ]
+ ]
+ },
+ {
+ "id": "6283050a.9a352c",
+ "type": "set",
+ "name": "set colorAware",
+ "xml": "<set>\n<parameter name='prop.global.sotn.colorAware' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2991.44291305542,
+ "y": 1466.6142039299011,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "1977cf51.112051",
+ "type": "switchNode",
+ "name": "switch couplingFlag",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2674.1097145080566,
+ "y": 1496.1531147956848,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "95d93fbe.f7437"
+ ]
+ ]
+ },
+ {
+ "id": "95d93fbe.f7437",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2846.1095962524414,
+ "y": 1505.1530842781067,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "ceecc29f.0a56b"
+ ]
+ ]
+ },
+ {
+ "id": "ceecc29f.0a56b",
+ "type": "set",
+ "name": "set couplingFlag",
+ "xml": "<set>\n<parameter name='prop.global.sotn.couplingFlag' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2999.44291305542,
+ "y": 1505.6142048835754,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "b4b830f7.2edfb",
+ "type": "comment",
+ "name": "Check if other EP exists in SOTNConnectionResource",
+ "info": "",
+ "comments": "",
+ "x": 2805.312744140625,
+ "y": 1114.7884521484375,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "85af2b8.2c027d8",
+ "type": "comment",
+ "name": "Get other global parameters from network",
+ "info": "",
+ "comments": "",
+ "x": 2741.3125,
+ "y": 1200.7884521484375,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "21b345b.f16dcba",
+ "type": "switchNode",
+ "name": "switch access-provider-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1689.5348529815674,
+ "y": 1462.2329812049866,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "88d75ee0.36aab"
+ ]
+ ]
+ },
+ {
+ "id": "88d75ee0.36aab",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1876.5348529815674,
+ "y": 1458.2329812049866,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "144324cd.dbe03b"
+ ]
+ ]
+ },
+ {
+ "id": "144324cd.dbe03b",
+ "type": "set",
+ "name": "set access-provider-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2044.5348529815674,
+ "y": 1458.8329873085022,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "847549d0.8fada8",
+ "type": "switchNode",
+ "name": "switch access-client-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1680.5348682403564,
+ "y": 1505.2434296607971,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "429ac662.d36c08"
+ ]
+ ]
+ },
+ {
+ "id": "429ac662.d36c08",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1867.5348682403564,
+ "y": 1501.2434296607971,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "fdfea883.43ef38"
+ ]
+ ]
+ },
+ {
+ "id": "fdfea883.43ef38",
+ "type": "set",
+ "name": "set access-client-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2035.5348682403564,
+ "y": 1501.8434357643127,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "46d04af2.172014",
+ "type": "switchNode",
+ "name": "switch access-topology-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1693.534812927246,
+ "y": 1547.2434606552124,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "f9888c9d.14fbf"
+ ]
+ ]
+ },
+ {
+ "id": "f9888c9d.14fbf",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1880.534812927246,
+ "y": 1543.2434606552124,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "9db1bbe8.d24ee8"
+ ]
+ ]
+ },
+ {
+ "id": "9db1bbe8.d24ee8",
+ "type": "set",
+ "name": "set access-topology-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2048.534812927246,
+ "y": 1543.843466758728,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "b2ef8ded.b479a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1644.090217590332,
+ "y": 1816.3444538116455,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "ca8a96be.c9e6a8",
+ "f4e8e4f3.f6e418",
+ "dea701ef.7abc9",
+ "644c2300.fecafc",
+ "8bddc111.2e08f",
+ "981ad4ae.e983a8",
+ "55066de5.c71104",
+ "3af624e0.31f91c",
+ "e5ca51fb.cb5be",
+ "2e8e574c.c64e68",
+ "b731c6a4.c3a218"
+ ]
+ ]
+ },
+ {
+ "id": "9f0b7f15.8c307",
+ "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": 2285.534881591797,
+ "y": 1880.6776461601257,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "3af624e0.31f91c",
+ "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 = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1902.0347900390625,
+ "y": 1917.6775856018066,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "72570e2d.a62fe",
+ "c43ec6a3.683488",
+ "fb06874f.97c548"
+ ]
+ ]
+ },
+ {
+ "id": "72570e2d.a62fe",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2122.034725189209,
+ "y": 1881.6775546073914,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "9f0b7f15.8c307"
+ ]
+ ]
+ },
+ {
+ "id": "c43ec6a3.683488",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2131.525665283203,
+ "y": 1922.2515606880188,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "c36ea2d9.d18c4"
+ ]
+ ]
+ },
+ {
+ "id": "fb06874f.97c548",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2126.858642578125,
+ "y": 1958.5848736763,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "668b481.e36d4b8"
+ ]
+ ]
+ },
+ {
+ "id": "c36ea2d9.d18c4",
+ "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": 2278.0970153808594,
+ "y": 1918.5373873710632,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "668b481.e36d4b8",
+ "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": 2281.6312866210938,
+ "y": 1960.0240216255188,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "55066de5.c71104",
+ "type": "get-resource",
+ "name": "get-resource pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $oof.vpn.access-node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1847.534683227539,
+ "y": 1826.6772294044495,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "84c5aa59.ee67d8",
+ "41b15be2.0ba8d4",
+ "f1b5d69a.0d7998"
+ ]
+ ]
+ },
+ {
+ "id": "84c5aa59.ee67d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2029.5347290039062,
+ "y": 1771.677339553833,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "7e1d241.12440dc"
+ ]
+ ]
+ },
+ {
+ "id": "41b15be2.0ba8d4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2030.0256309509277,
+ "y": 1809.2514362335205,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "e55b495c.733518"
+ ]
+ ]
+ },
+ {
+ "id": "f1b5d69a.0d7998",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2021.358642578125,
+ "y": 1842.5848112106323,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "4d6a36cc.899768"
+ ]
+ ]
+ },
+ {
+ "id": "e55b495c.733518",
+ "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2177.597255706787,
+ "y": 1808.5373249053955,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "4d6a36cc.899768",
+ "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2175.1312866210938,
+ "y": 1842.023959159851,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "7e1d241.12440dc",
+ "type": "set",
+ "name": "set tmp.thirdparty-sdnc-id",
+ "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 2214.5347290039062,
+ "y": 1770.6774616241455,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "9df363c3.42e7",
+ "type": "comment",
+ "name": "get domain controller information",
+ "info": "",
+ "comments": "",
+ "x": 1898.0385971069336,
+ "y": 1793.6811847686768,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "2e8e574c.c64e68",
+ "type": "set",
+ "name": "set oof.vpn",
+ "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
+ "comments": "",
+ "x": 1859.534683227539,
+ "y": 1747.7883129119873,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "f4e8e4f3.f6e418",
+ "type": "save",
+ "name": "save VPN resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1874.0001602172852,
+ "y": 2324.7506742477417,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dea701ef.7abc9",
+ "type": "set",
+ "name": "set tmp.vpnName",
+ "xml": "<set>\n<parameter name='tmp.vpnName' value=\"`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`\" />",
+ "comments": "",
+ "x": 1850.5001602172852,
+ "y": 2277.250370979309,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "644c2300.fecafc",
+ "type": "save",
+ "name": "save connectivity relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1909.0001602172852,
+ "y": 2369.7504301071167,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ce418ee5.81a4e",
+ "type": "comment",
+ "name": "save vpn and its relation to AAI",
+ "info": "",
+ "comments": "",
+ "x": 1892.000358581543,
+ "y": 2238.7506399154663,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "ca8a96be.c9e6a8",
+ "type": "set",
+ "name": "set src-ltpId dst-ltpId",
+ "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
+ "comments": "",
+ "x": 1861.0001907348633,
+ "y": 2409.7505502700806,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "8bddc111.2e08f",
+ "type": "save",
+ "name": "save srcLTP relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1895.0004425048828,
+ "y": 2449.500759124756,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "981ad4ae.e983a8",
+ "type": "save",
+ "name": "save dstLTP relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1893.0002746582031,
+ "y": 2495.2505979537964,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b13bf095.cdea1",
+ "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": 839.0039367675781,
+ "y": 600.0039119720459,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "fb3f3db1.2e857",
+ "549a2a73.774b74"
+ ]
+ ]
+ },
+ {
+ "id": "dcca5b8a.14d818",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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-psd\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 766.0040893554688,
+ "y": 827.004075050354,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "e3a34e44.03f86",
+ "8447b050.f664b"
+ ]
+ ]
+ },
+ {
+ "id": "5d5e7f8f.d3d28",
+ "type": "execute",
+ "name": "get parent-service-data url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 666.0039978027344,
+ "y": 790.0039081573486,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8c502b5e.ba0e48",
+ "type": "execute",
+ "name": "generate tmp.ar-other-url-connection",
+ "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-other-url-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.provided-ar.allotted-resource-id`\"/>\n \n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2080.0003509521484,
+ "y": 946.3334693908691,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b7c302f0.0eaa4",
+ "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-other-url-connection`' />\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-other-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2217.000991821289,
+ "y": 988.8333339691162,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "642168d6.c96a08",
+ "d6797517.070b08"
+ ]
+ ]
+ },
+ {
+ "id": "cafce3b5.74fb5",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1842.0002708435059,
+ "y": 1712.0001192092896,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "73f1353a.31fe0c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1218.9688835144043,
+ "y": 1737.0003032684326,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "73456eef.45eac",
+ "da1582e5.d9e86"
+ ]
+ ]
+ },
+ {
+ "id": "bd2b5022.a474e",
+ "type": "outcome",
+ "name": "outcome PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2293.0313415527344,
+ "y": 552.0312976837158,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "44575632.3edd28"
+ ]
+ ]
+ },
+ {
+ "id": "44575632.3edd28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2477.031352996826,
+ "y": 548.0312976837158,
+ "z": "f24fb736.66a428",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b731c6a4.c3a218",
+ "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": 1922.5039367675781,
+ "y": 2044.003927230835,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "ce234ab1.289298",
+ "b6c8858.bd95c78"
+ ]
+ ]
+ },
+ {
+ "id": "ce234ab1.289298",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2157.503936767578,
+ "y": 2022.003927230835,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "98d09cc3.1216f"
+ ]
+ ]
+ },
+ {
+ "id": "b6c8858.bd95c78",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2149.753936767578,
+ "y": 2075.646810531616,
+ "z": "f24fb736.66a428",
+ "wires": [
+ [
+ "82c72a3.d7e47d8"
+ ]
+ ]
+ },
+ {
+ "id": "82c72a3.d7e47d8",
+ "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": 2302.503936767578,
+ "y": 2075.3968715667725,
+ "z": "f24fb736.66a428",
+ "wires": []
+ },
+ {
+ "id": "98d09cc3.1216f",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 2311.503936767578,
+ "y": 2023.003927230835,
+ "z": "f24fb736.66a428",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json
new file mode 100644
index 00000000..d9c97e61
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json
@@ -0,0 +1,1347 @@
+[
+ {
+ "id": "fd67dde.a66f82",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 116,
+ "y": 35,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "1df77df2.bd25c2"
+ ]
+ ]
+ },
+ {
+ "id": "1df77df2.bd25c2",
+ "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": 257.00000190734863,
+ "y": 112.00001430511475,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "4ae5acd4.5be1a4"
+ ]
+ ]
+ },
+ {
+ "id": "4ae5acd4.5be1a4",
+ "type": "method",
+ "name": "sotn-attachment-topology-operation-create",
+ "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 245.00012016296387,
+ "y": 199.99999713897705,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "b78625b7.40d198"
+ ]
+ ]
+ },
+ {
+ "id": "b78625b7.40d198",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 165.0000514984131,
+ "y": 949.0002450942993,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "13c3075f.a550d9",
+ "326099aa.e4b1f6",
+ "9e7243fc.98276",
+ "a773278f.c60928",
+ "79a41f6b.cf86f",
+ "afaa69e7.b4aba8",
+ "4a444e95.a33bb",
+ "77c3364e.f87538",
+ "9851c050.afe45",
+ "5f01282.a94d0d8",
+ "7e65d530.30d0fc",
+ "17bffa68.c6e1f6",
+ "b279212f.2876c",
+ "624c4802.103f08",
+ "15e63162.783f4f",
+ "4d0b157.d3d26ec",
+ "7b0dce99.088f9",
+ "47b622.5f78d9e",
+ "547adbe.09cf724",
+ "1c8354a6.82036b",
+ "908c2ae3.c4f938",
+ "323f6bf8.18f834",
+ "ef225a8b.70ebd8",
+ "16153237.cff69e",
+ "5054f74f.3fad08",
+ "9ff190ab.bed71"
+ ]
+ ]
+ },
+ {
+ "id": "811ec7f1.394838",
+ "type": "comment",
+ "name": "Set allotted resource id if not sent by SO",
+ "info": "",
+ "comments": "",
+ "x": 664.0767593383789,
+ "y": 144.433913230896,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "13c3075f.a550d9",
+ "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": 610.0000381469727,
+ "y": 199.99998664855957,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "1fd27893.31ab57",
+ "380f681d.6db258"
+ ]
+ ]
+ },
+ {
+ "id": "1fd27893.31ab57",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 808.0001258850098,
+ "y": 169.99997520446777,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "f434bacd.73f0c8"
+ ]
+ ]
+ },
+ {
+ "id": "380f681d.6db258",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.0000343322754,
+ "y": 206.99998569488525,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "b52073bc.07c9f"
+ ]
+ ]
+ },
+ {
+ "id": "b52073bc.07c9f",
+ "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": 1005.0000228881836,
+ "y": 204.00000476837158,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "326099aa.e4b1f6",
+ "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": 562.9999523162842,
+ "y": 386.00009632110596,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "9e7243fc.98276",
+ "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": 563.2618942260742,
+ "y": 472.6668071746826,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a773278f.c60928",
+ "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": 616.2619304656982,
+ "y": 554.6666955947876,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f434bacd.73f0c8",
+ "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": 1023.0001029968262,
+ "y": 170.99998092651367,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "9ab0be9f.9431d"
+ ]
+ ]
+ },
+ {
+ "id": "9ab0be9f.9431d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1241.000144958496,
+ "y": 170.99994468688965,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "aca58bfe.822378"
+ ]
+ ]
+ },
+ {
+ "id": "aca58bfe.822378",
+ "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": 1407.000099182129,
+ "y": 170.9999589920044,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "43d96423.28d03c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1122.000228881836,
+ "y": 626.777868270874,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "1050cf03.802321"
+ ]
+ ]
+ },
+ {
+ "id": "b3c8cfd5.7bea1",
+ "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": 1855.5186080932617,
+ "y": 627.843939781189,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "293dd257.14194e",
+ "type": "comment",
+ "name": "Check for non existence of allotted resource",
+ "info": "",
+ "comments": "",
+ "x": 978.000150680542,
+ "y": 560.7779350280762,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "c5387b68.c01b28",
+ "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": 1498.666696548462,
+ "y": 771.0000474452972,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "c340ff54.e12d9"
+ ]
+ ]
+ },
+ {
+ "id": "afaa69e7.b4aba8",
+ "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": 680.6660213470459,
+ "y": 747.7140798568726,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "7d136f12.04ec4",
+ "c30cd80f.81caf8"
+ ]
+ ]
+ },
+ {
+ "id": "7d136f12.04ec4",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 984.8089199066162,
+ "y": 716.5715169906616,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "58b68eae.81516"
+ ]
+ ]
+ },
+ {
+ "id": "c30cd80f.81caf8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 961.8089694976807,
+ "y": 777.5714721679688,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "7a8ccc70.38dd84"
+ ]
+ ]
+ },
+ {
+ "id": "7a8ccc70.38dd84",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1121.9360599517822,
+ "y": 775.6974487304688,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "c5387b68.c01b28",
+ "e1e02207.f540e",
+ "9846e0ee.d12b5"
+ ]
+ ]
+ },
+ {
+ "id": "58b68eae.81516",
+ "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": 1134.6659030914307,
+ "y": 714.2855672836304,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "4a444e95.a33bb",
+ "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": 609.5233135223389,
+ "y": 851.28564453125,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "e1e02207.f540e",
+ "type": "switchNode",
+ "name": "switch tmp.found-cidx",
+ "xml": "<switch test='`$tmp.found-cidx`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1311.0511074066162,
+ "y": 807.7089715003967,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "d3531383.fcd03"
+ ]
+ ]
+ },
+ {
+ "id": "d3531383.fcd03",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1501.051061630249,
+ "y": 807.7089085578918,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "40bc6162.88ce4"
+ ]
+ ]
+ },
+ {
+ "id": "40bc6162.88ce4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1667.051061630249,
+ "y": 807.7089085578918,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "ae09ce54.6bf07"
+ ]
+ ]
+ },
+ {
+ "id": "c340ff54.e12d9",
+ "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": 1915.778326034546,
+ "y": 768.0000743865967,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "1d1de9d1.83f6a6"
+ ]
+ ]
+ },
+ {
+ "id": "1d1de9d1.83f6a6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2097.587900161743,
+ "y": 768.464521408081,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "a46d34eb.cac738"
+ ]
+ ]
+ },
+ {
+ "id": "ae09ce54.6bf07",
+ "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": 1828.9244441986084,
+ "y": 807.220609664917,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "896433e5.65cfe",
+ "type": "comment",
+ "name": "Add to consumed service consumed-allotted-resources in mdsal",
+ "info": "Prepare data and add to service-data",
+ "comments": "",
+ "x": 701.6672344207764,
+ "y": 678.0000438690186,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "f08c9e13.c44cf",
+ "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": 689.000150680542,
+ "y": 816.7781362533569,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "c88c64b6.dfe1a8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 789.4527835845947,
+ "y": 1857.4844884872437,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "9e7b6d53.3088c"
+ ]
+ ]
+ },
+ {
+ "id": "9e7b6d53.3088c",
+ "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": 955.9766635894775,
+ "y": 1869.1035594940186,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "d0e9a590.6f6418",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 796.5480709075928,
+ "y": 1890.2464561462402,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "9e7b6d53.3088c"
+ ]
+ ]
+ },
+ {
+ "id": "939b0538.009728",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 571.5004863739014,
+ "y": 1809.8338594436646,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "452cb6fa.b17108",
+ "type": "comment",
+ "name": "Set allotted resource type if not sent by SO",
+ "info": "",
+ "comments": "",
+ "x": 650.0000076293945,
+ "y": 252.9999942779541,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "79a41f6b.cf86f",
+ "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": 611.9233169555664,
+ "y": 293.56605052948,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "9df4ab55.c16cf8",
+ "31f43c4.20babc4"
+ ]
+ ]
+ },
+ {
+ "id": "9df4ab55.c16cf8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 814.923469543457,
+ "y": 278.56605339050293,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "e98a3f5.eded9c"
+ ]
+ ]
+ },
+ {
+ "id": "31f43c4.20babc4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.9232978820801,
+ "y": 318.5660734176636,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "1fb5cc66.1487a4"
+ ]
+ ]
+ },
+ {
+ "id": "1fb5cc66.1487a4",
+ "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": 1039.923282623291,
+ "y": 318.56607818603516,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "fd7e59b0.bdc4b8",
+ "type": "comment",
+ "name": "For storage in AAI connection-attachment-topology",
+ "info": "",
+ "comments": "",
+ "x": 659.9999599456787,
+ "y": 352.99999713897705,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "80a14ec4.93ba1",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 634.9999446868896,
+ "y": 434.88890647888184,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "77a4ea23.6f89a4",
+ "type": "comment",
+ "name": "Used for Put AR by id to MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 601.0000286102295,
+ "y": 523.8889236450195,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "9a5ebcbf.d7c64",
+ "type": "comment",
+ "name": "Obtain the last index in services",
+ "info": "ServiceData is added by Provider code",
+ "comments": "",
+ "x": 602.4444713592529,
+ "y": 709.8888683319092,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "547adbe.09cf724",
+ "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": 580.2681331634521,
+ "y": 1773.3591861724854,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "1c8354a6.82036b",
+ "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": 525.6813278198242,
+ "y": 2062.9751262664795,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "e98a3f5.eded9c",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-type",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
+ "comments": "",
+ "x": 1054.000156402588,
+ "y": 278.99997997283936,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "1a362e33.d91322",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 881.9941539764404,
+ "y": 1622.4937267303467,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "47b622.5f78d9e",
+ "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.sotn-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": 631.00026512146,
+ "y": 1707.0001153945923,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "b728505b.0e0f4",
+ "c43ce215.10dc2",
+ "e9e15e53.ae354"
+ ]
+ ]
+ },
+ {
+ "id": "b728505b.0e0f4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 880.6416187286377,
+ "y": 1745.3314456939697,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "66f7d186.f5a07"
+ ]
+ ]
+ },
+ {
+ "id": "c43ce215.10dc2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 871.6416683197021,
+ "y": 1713.8314714431763,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "66f7d186.f5a07"
+ ]
+ ]
+ },
+ {
+ "id": "e9e15e53.ae354",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 875.3917064666748,
+ "y": 1684.1885763183236,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "7fa6f3ff.c75f4c"
+ ]
+ ]
+ },
+ {
+ "id": "66f7d186.f5a07",
+ "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": 1041.3917064666748,
+ "y": 1714.5814952850342,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "7fa6f3ff.c75f4c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1017.0476741790771,
+ "y": 1680.3807455077767,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7e65d530.30d0fc",
+ "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": 700.9999523162842,
+ "y": 1133.0001621246338,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "b6d4488a.291cc8",
+ "59f3d9b4.dd0088",
+ "20a7e6fe.74d03a"
+ ]
+ ]
+ },
+ {
+ "id": "b6d4488a.291cc8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1009.308012008667,
+ "y": 1164.9984378814697,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "2d8af8d.61d7808"
+ ]
+ ]
+ },
+ {
+ "id": "59f3d9b4.dd0088",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1000.3080615997314,
+ "y": 1133.4984636306763,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "2d8af8d.61d7808"
+ ]
+ ]
+ },
+ {
+ "id": "20a7e6fe.74d03a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1004.0580997467041,
+ "y": 1103.8555685058236,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "3fdd6b37.b0dbe4"
+ ]
+ ]
+ },
+ {
+ "id": "2d8af8d.61d7808",
+ "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": 1170.058099746704,
+ "y": 1134.2484874725342,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "3fdd6b37.b0dbe4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1145.7140674591064,
+ "y": 1100.0477376952767,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fef74984.54b2d8",
+ "type": "comment",
+ "name": "Put the parent allotted resource in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 629.9998989105225,
+ "y": 1095.0000686645508,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "b279212f.2876c",
+ "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": 626.357084274292,
+ "y": 1297.5716876983643,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "17bffa68.c6e1f6",
+ "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": 540.2138652801514,
+ "y": 1265.3810443878174,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "624c4802.103f08",
+ "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": 605.1668834686279,
+ "y": 1331.6668729782104,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "15e63162.783f4f",
+ "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": 557.4997234344482,
+ "y": 1405.000400543213,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d0b157.d3d26ec",
+ "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": 608.4867610931396,
+ "y": 1460.9516334533691,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "7b0dce99.088f9",
+ "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": 553.0553798675537,
+ "y": 1366.5557584762573,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "3f9a586f.0ed898",
+ "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": 670.3888683319092,
+ "y": 1231.5556049346924,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "5f01282.a94d0d8",
+ "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": 665.5000133514404,
+ "y": 1059.0000076293945,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9851c050.afe45",
+ "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": 661.4999370574951,
+ "y": 1016.0001440048218,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e506fda2.8d2ea",
+ "type": "comment",
+ "name": "Prepare Parent AR URL",
+ "info": "Preparation to set provided-allotted-resource in parent service instance",
+ "comments": "",
+ "x": 579.500394821167,
+ "y": 945.0000972747803,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "77c3364e.f87538",
+ "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": 618.5001888275146,
+ "y": 978.5000367164612,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "92f0d3fa.a1c8f",
+ "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": 808.0003566741943,
+ "y": 1585.4997997283936,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "a46d34eb.cac738",
+ "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": 2175.756971359253,
+ "y": 816.6458263397217,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "9846e0ee.d12b5",
+ "type": "set",
+ "name": "set tmp.found-cidx",
+ "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
+ "comments": "",
+ "x": 1301.6461429595947,
+ "y": 728.3125693798065,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "8a1a8721.8ed3e8",
+ "type": "comment",
+ "name": "Add to parent services provided-allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 690.2015056610107,
+ "y": 912.9792537689209,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "1b0d53ce.9a266c",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 610.9686946868896,
+ "y": 1198.968934059143,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "1050cf03.802321",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1284.0000495910645,
+ "y": 626.2777576446533,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "e1fb702b.b9339"
+ ]
+ ]
+ },
+ {
+ "id": "e1fb702b.b9339",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1471.8574295043945,
+ "y": 626.8968930244446,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "e440f3e0.a28bd"
+ ]
+ ]
+ },
+ {
+ "id": "e440f3e0.a28bd",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1671.1905517578125,
+ "y": 626.8969717025757,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "b3c8cfd5.7bea1"
+ ]
+ ]
+ },
+ {
+ "id": "908c2ae3.c4f938",
+ "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": 756.0000514984131,
+ "y": 621.0000333786011,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "43d96423.28d03c",
+ "4feb08ba.5bc668"
+ ]
+ ]
+ },
+ {
+ "id": "4feb08ba.5bc668",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1124.0000820159912,
+ "y": 591.0000314712524,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "83e21d77.f2154"
+ ]
+ ]
+ },
+ {
+ "id": "83e21d77.f2154",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1276.0000820159912,
+ "y": 590.0000314712524,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "323f6bf8.18f834",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 552.5556087493896,
+ "y": 1540.6666507720947,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "e3e339e2.fb2158",
+ "1a362e33.d91322"
+ ]
+ ]
+ },
+ {
+ "id": "e3e339e2.fb2158",
+ "type": "for",
+ "name": "for each sotn-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": 822.5556735992432,
+ "y": 1540.6666984558105,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "bbd24f47.537d9"
+ ]
+ ]
+ },
+ {
+ "id": "efeae286.69244",
+ "type": "comment",
+ "name": "Take the parameter names by removing prefix",
+ "info": "",
+ "comments": "",
+ "x": 1362.555456161499,
+ "y": 1496.6667318344116,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "7418c4f0.7b725c",
+ "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": 1320.590124130249,
+ "y": 1531.6458749771118,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "91cb2a09.3ae8f8",
+ "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": 1291.0346508026123,
+ "y": 1564.6458749771118,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "6e625d6.e7e6ea4",
+ "type": "comment",
+ "name": "Remove VNFC prefix",
+ "info": "",
+ "comments": "",
+ "x": 763.5556011199951,
+ "y": 1508.1110124588013,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "bbd24f47.537d9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1069.5555095672607,
+ "y": 1539.1110429763794,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "7418c4f0.7b725c",
+ "91cb2a09.3ae8f8"
+ ]
+ ]
+ },
+ {
+ "id": "ef225a8b.70ebd8",
+ "type": "set",
+ "name": "set src-ltpId",
+ "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $prop.connection-attachment.access-node-id + '-ltpId-' + $prop.connection-attachment.access-ltp-id`\" />\n",
+ "comments": "",
+ "x": 529.0000972747803,
+ "y": 1930.0003395080566,
+ "z": "6ade2963.0875b8",
+ "wires": []
+ },
+ {
+ "id": "16153237.cff69e",
+ "type": "update",
+ "name": "save AAI allotted-resource",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='allotted-resource' \n key='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 <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\n\t<parameter name=\"access-provider-id\" value=\"`$prop.connection-attachment.access-provider-id`\" />\n\t<parameter name=\"access-client-id\" value=\"`$prop.connection-attachment.access-client-id`\" />\n\t<parameter name=\"access-topology-id\" value=\"`$prop.connection-attachment.access-topology-id`\" />\n\t<parameter name=\"access-node-id\" value=\"`$prop.connection-attachment.access-node-id`\" />\n\t<parameter name=\"access-ltp-id\" value=\"`$prop.connection-attachment.access-ltp-id`\" />\t\n\t<parameter name=\"cvlan\" value=\"`$prop.connection-attachment.cVLAN`\" />\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\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": 579.0039520263672,
+ "y": 1870.5039854049683,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ [
+ "c88c64b6.dfe1a8",
+ "d0e9a590.6f6418"
+ ]
+ ]
+ },
+ {
+ "id": "5054f74f.3fad08",
+ "type": "save",
+ "name": "save srcLTP relationship in AAI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource: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.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\" \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $prop.connection-attachment.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 579.3170623779297,
+ "y": 1976.9767112731934,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9ff190ab.bed71",
+ "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": 577.3130798339844,
+ "y": 2015.9724407196045,
+ "z": "6ade2963.0875b8",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
new file mode 100644
index 00000000..a0faa6a9
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
@@ -0,0 +1,2017 @@
+[
+ {
+ "id": "b0d71f3f.58b13",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 123,
+ "y": 32,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "962f9112.e764e"
+ ]
+ ]
+ },
+ {
+ "id": "962f9112.e764e",
+ "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": 304.00000381469727,
+ "y": 92.0000171661377,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "87a8de44.934de"
+ ]
+ ]
+ },
+ {
+ "id": "87a8de44.934de",
+ "type": "method",
+ "name": "sotn-attachment-topology-operation-deactivate",
+ "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 292.0001220703125,
+ "y": 180,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "b2d80288.ba823"
+ ]
+ ]
+ },
+ {
+ "id": "b2d80288.ba823",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 308.0001220703125,
+ "y": 735.0002446174622,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "6613ec86.694124",
+ "f6decbbf.dd5e18",
+ "1fbc45c.0ff5aba",
+ "bc709271.507d8",
+ "1c40b1f3.81976e",
+ "4f9b598.14771a8",
+ "8522b683.befcf8",
+ "62f18656.44cfe8",
+ "683cb14.3ce605",
+ "c2e56bca.b33d78",
+ "802f8ef7.b6731",
+ "5c1eba3c.5a3914",
+ "d3793c0a.e76dd",
+ "a3a48876.1d8a18",
+ "7ccf367e.a869f8",
+ "2c211a2d.e90676",
+ "693977cc.87d158",
+ "c0b8662.2083398",
+ "fada7ab3.d1d4e8",
+ "cfef8c40.7d401"
+ ]
+ ]
+ },
+ {
+ "id": "6613ec86.694124",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id,etc",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 704.9935607910156,
+ "y": 133.9934868812561,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "c64c0419.fa25b8",
+ "type": "comment",
+ "name": "set tmp ar-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 733.9538726806641,
+ "y": 98.02528285980225,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "f6decbbf.dd5e18",
+ "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": 658.9934997558594,
+ "y": 226.99349212646484,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "1c40b1f3.81976e",
+ "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": 665.2553901672363,
+ "y": 314.6602210998535,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1fbc45c.0ff5aba",
+ "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": 715.2554931640625,
+ "y": 401.66022205352783,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "61a9d102.2b159",
+ "type": "comment",
+ "name": "GET connection-attachment-allotted-resource from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 758.8084869384766,
+ "y": 472.53876876831055,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "e3f68d6f.a262e",
+ "type": "comment",
+ "name": "Used for setting output to API Handler",
+ "info": "",
+ "comments": "",
+ "x": 712.9935302734375,
+ "y": 193.993501663208,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "b492f1ea.34bc2",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 730.9934959411621,
+ "y": 279.8823823928833,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "d53312d8.be37d",
+ "type": "comment",
+ "name": "Used to Get AR by id to MDSAL, same as self-link",
+ "info": "",
+ "comments": "",
+ "x": 756.9935150146484,
+ "y": 366.8823413848877,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "e963cad3.e8d6c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1199.6668281555176,
+ "y": 520.0000286102295,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "8ab48cf9.6862d"
+ ]
+ ]
+ },
+ {
+ "id": "8ab48cf9.6862d",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1368.6668319702148,
+ "y": 518.4999294281006,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "46b50e5a.245ae"
+ ]
+ ]
+ },
+ {
+ "id": "46b50e5a.245ae",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1541.5241012573242,
+ "y": 456.11909198760986,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "13dfccaf.a022c3",
+ "30d435f0.aca96a"
+ ]
+ ]
+ },
+ {
+ "id": "13dfccaf.a022c3",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1778.8573455810547,
+ "y": 434.1190423965454,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "2fbac1bd.15b6ee"
+ ]
+ ]
+ },
+ {
+ "id": "2fbac1bd.15b6ee",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1963.3812351226807,
+ "y": 431.02387619018555,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "5bdbcf18.37ca8",
+ "cbe39501.d4aef8",
+ "a9187100.e70c6"
+ ]
+ ]
+ },
+ {
+ "id": "6cd8cd98.bbac14",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1887.5190773010254,
+ "y": 556.0661172866821,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "489ff5d2.164b7c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1191.5186309814453,
+ "y": 555.0661134719849,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "6d0a26d5.df63e8"
+ ]
+ ]
+ },
+ {
+ "id": "6d0a26d5.df63e8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1371.5185813903809,
+ "y": 555.7326641082764,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "6cd8cd98.bbac14"
+ ]
+ ]
+ },
+ {
+ "id": "30d435f0.aca96a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1767.1852989196777,
+ "y": 471.3994026184082,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "6cd8cd98.bbac14"
+ ]
+ ]
+ },
+ {
+ "id": "5bdbcf18.37ca8",
+ "type": "set",
+ "name": "set connection-attachment-ar from get",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
+ "comments": "",
+ "x": 2209.444793701172,
+ "y": 391.0001058578491,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "a9187100.e70c6",
+ "type": "set",
+ "name": "set oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
+ "comments": "",
+ "x": 2142.4447898864746,
+ "y": 481.42866039276123,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "cbe39501.d4aef8",
+ "type": "switchNode",
+ "name": "switch order-status",
+ "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2153.444625854492,
+ "y": 435.0001096725464,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "1d7c3fd4.3573f",
+ "34a89ac4.b608e6"
+ ]
+ ]
+ },
+ {
+ "id": "1d7c3fd4.3573f",
+ "type": "outcome",
+ "name": "outcome Active",
+ "xml": "<outcome value='Active'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2360.044574737549,
+ "y": 425.0001096725464,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "fffa8dec.2b92a"
+ ]
+ ]
+ },
+ {
+ "id": "34a89ac4.b608e6",
+ "type": "outcome",
+ "name": "outcome Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2359.7590942382812,
+ "y": 467.4287004470825,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "31994932.765476"
+ ]
+ ]
+ },
+ {
+ "id": "fffa8dec.2b92a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2512.5151290893555,
+ "y": 423.3757600784302,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "31994932.765476",
+ "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\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
+ "comments": "",
+ "x": 2532.6669845581055,
+ "y": 464.000111579895,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ade228e6.1238f8",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 920.3031158447266,
+ "y": 616.4935908317566,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4f9b598.14771a8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 617.3092803955078,
+ "y": 617.4999389648438,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "ade228e6.1238f8"
+ ]
+ ]
+ },
+ {
+ "id": "2ee127b4.83e818",
+ "type": "comment",
+ "name": "GET parent-service-data from mdsal to check existence of other End point",
+ "info": "",
+ "comments": "",
+ "x": 799.0004425048828,
+ "y": 678.5316982269287,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ac0c0701.4d5818",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1689.1849975585938,
+ "y": 882.0040826797485,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "6de65a21.ad20a4"
+ ]
+ ]
+ },
+ {
+ "id": "cf2de8b0.5bcd28",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1095.3269691467285,
+ "y": 1014.5755434036255,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "75a0a72c.5c3178"
+ ]
+ ]
+ },
+ {
+ "id": "2c958bf6.015ea4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1286.4543704986572,
+ "y": 879.7015712037683,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "ac0c0701.4d5818"
+ ]
+ ]
+ },
+ {
+ "id": "6de65a21.ad20a4",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2124.296398162842,
+ "y": 882.0039796829224,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "9440a4ce.27b3b8",
+ "44e5c372.52cc1c"
+ ]
+ ]
+ },
+ {
+ "id": "9440a4ce.27b3b8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2333.106746673584,
+ "y": 862.4684362411499,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "ce614dfc.389e4"
+ ]
+ ]
+ },
+ {
+ "id": "5d89c62c.f1ebc8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2481.867500305176,
+ "y": 898.3256177902222,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "12052b78.fd51b5"
+ ]
+ ]
+ },
+ {
+ "id": "12052b78.fd51b5",
+ "type": "set",
+ "name": "set tmp.pidx and ptx.consumed-ar",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 2716.724937438965,
+ "y": 896.8971490859985,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "2107b4e5.fcdf0c",
+ "type": "comment",
+ "name": "Check existence of other AR in parent service data",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 722.9628448486328,
+ "y": 848.8929204940796,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "103b0ff7.ad1fb",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1105.9793167114258,
+ "y": 949.677264213562,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "61e7696e.e32818"
+ ]
+ ]
+ },
+ {
+ "id": "75a0a72c.5c3178",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1267.9793128967285,
+ "y": 1013.677285194397,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "4057b675.85b588",
+ "type": "other",
+ "name": "outcome 2",
+ "xml": "<outcome value='2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1111.9793910980225,
+ "y": 880.6772715821862,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "2c958bf6.015ea4"
+ ]
+ ]
+ },
+ {
+ "id": "ce614dfc.389e4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2462.090805053711,
+ "y": 857.6771764755249,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44e5c372.52cc1c",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2333.0907974243164,
+ "y": 896.6771802902222,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "5d89c62c.f1ebc8"
+ ]
+ ]
+ },
+ {
+ "id": "4960bf69.46744",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.networks_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1518.3129959106445,
+ "y": 952.8997611999512,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "21a6ff32.cc535",
+ "fd1b6df1.cb9a8"
+ ]
+ ]
+ },
+ {
+ "id": "fd1b6df1.cb9a8",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1748.3130187988281,
+ "y": 928.7885932922363,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "bb9fff84.461e"
+ ]
+ ]
+ },
+ {
+ "id": "21a6ff32.cc535",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1742.3131408691406,
+ "y": 988.7885932922363,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "8d4e5f2f.b2054"
+ ]
+ ]
+ },
+ {
+ "id": "8d4e5f2f.b2054",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n",
+ "comments": "",
+ "x": 1914.9655265808105,
+ "y": 988.8903999328613,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "e3b0ecf2.4e878",
+ "type": "set",
+ "name": "set tmp.network.",
+ "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n",
+ "comments": "",
+ "x": 2116.757942199707,
+ "y": 918.7887525558472,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "61e7696e.e32818",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1278.423671722412,
+ "y": 950.7885122299194,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "4960bf69.46744"
+ ]
+ ]
+ },
+ {
+ "id": "bb9fff84.461e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1916.090690612793,
+ "y": 947.7884273529053,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "e3b0ecf2.4e878",
+ "2162bd86.35e6f2"
+ ]
+ ]
+ },
+ {
+ "id": "2162bd86.35e6f2",
+ "type": "for",
+ "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
+ "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2292.09130859375,
+ "y": 990.7884349822998,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "15f15c9c.6120f3"
+ ]
+ ]
+ },
+ {
+ "id": "15f15c9c.6120f3",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2615.6469688415527,
+ "y": 991.7885122299194,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "1f8bf049.48a41",
+ "24ef27d4.5acd08"
+ ]
+ ]
+ },
+ {
+ "id": "1f8bf049.48a41",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2794.1570739746094,
+ "y": 975.7989301681519,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "8ecdc6ef.8a8ce8"
+ ]
+ ]
+ },
+ {
+ "id": "8ecdc6ef.8a8ce8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2981.1570739746094,
+ "y": 976.7989301681519,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "5c66b7eb.d5bf28"
+ ]
+ ]
+ },
+ {
+ "id": "5c66b7eb.d5bf28",
+ "type": "set",
+ "name": "set tmp.found-in-network tmp.ep-available",
+ "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 3232.157081604004,
+ "y": 976.3988723754883,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "24ef27d4.5acd08",
+ "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": 2777.14697265625,
+ "y": 1020.7885293960571,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "bc709271.507d8",
+ "type": "switchNode",
+ "name": "switch tmp.ep-available",
+ "xml": "<switch test='`$tmp.ep-available`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 654.3128662109375,
+ "y": 1153.2327852249146,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "18bdb942.c7be37",
+ "343945c7.6ea6fa"
+ ]
+ ]
+ },
+ {
+ "id": "343945c7.6ea6fa",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 836.9797019958496,
+ "y": 1177.5661935806274,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "eb3e9e9.a810a6"
+ ]
+ ]
+ },
+ {
+ "id": "18bdb942.c7be37",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 839.8684730529785,
+ "y": 1116.566291809082,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "33d109a0.0b3696"
+ ]
+ ]
+ },
+ {
+ "id": "33d109a0.0b3696",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 976.8685493469238,
+ "y": 1115.4551057815552,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eb3e9e9.a810a6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1007.0907897949219,
+ "y": 1175.5661516189575,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "d5bc9567.22f988"
+ ]
+ ]
+ },
+ {
+ "id": "eba7f62b.bd7668",
+ "type": "comment",
+ "name": "GET connection-attachment-ar to store AR data from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 2192.472946166992,
+ "y": 355.5039691925049,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "2d6b93ab.08655c",
+ "type": "comment",
+ "name": "Set source end point",
+ "info": "",
+ "comments": "",
+ "x": 630.9728393554688,
+ "y": 585.2540645599365,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "8522b683.befcf8",
+ "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": 683.9689178466797,
+ "y": 710.0002088546753,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "773fbfc3.82918",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1061.9689140319824,
+ "y": 759.000207901001,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "e1e0569.afbf9a8"
+ ]
+ ]
+ },
+ {
+ "id": "be2f70a0.4132d",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1053.8207168579102,
+ "y": 794.0662927627563,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "82d58d98.da526"
+ ]
+ ]
+ },
+ {
+ "id": "82d58d98.da526",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1228.9694023132324,
+ "y": 790.3336429595947,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "e1e0569.afbf9a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1212.9689140319824,
+ "y": 757.000207901001,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "62f18656.44cfe8",
+ "type": "set",
+ "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
+ "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
+ "comments": "",
+ "x": 770.9689102172852,
+ "y": 884.0001821517944,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ba6cedb4.1637d",
+ "type": "comment",
+ "name": "If other EP exists delete from domain controller",
+ "info": "",
+ "comments": "",
+ "x": 704.9688110351562,
+ "y": 1077.999997138977,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "84d93cd2.2a2bf",
+ "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": 2702.969627380371,
+ "y": 1368.0005893707275,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "3c2c4321.6e016c",
+ "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 = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2266.469566345215,
+ "y": 1427.0005893707275,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "b9c78202.065c4",
+ "b1e4c467.b20658",
+ "7cb01101.04dc1"
+ ]
+ ]
+ },
+ {
+ "id": "b9c78202.065c4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2505.469566345215,
+ "y": 1380.0005893707275,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "84d93cd2.2a2bf"
+ ]
+ ]
+ },
+ {
+ "id": "b1e4c467.b20658",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2508.96053314209,
+ "y": 1427.5746250152588,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "912e3892.c38738"
+ ]
+ ]
+ },
+ {
+ "id": "7cb01101.04dc1",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2504.29354095459,
+ "y": 1468.90793800354,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "ba048e79.e103b"
+ ]
+ ]
+ },
+ {
+ "id": "912e3892.c38738",
+ "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": 2685.5319442749023,
+ "y": 1415.8603610992432,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ba048e79.e103b",
+ "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": 2692.0660972595215,
+ "y": 1464.3471307754517,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ac6b10fc.018ca",
+ "type": "get-resource",
+ "name": "get-resource pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2215.9697341918945,
+ "y": 1319.000418663025,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "7d25011f.79dd3",
+ "abbaec43.33e1c",
+ "9bfad8e.2252b28"
+ ]
+ ]
+ },
+ {
+ "id": "7d25011f.79dd3",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2403.9697494506836,
+ "y": 1265.0004110336304,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "addfa25b.c3718"
+ ]
+ ]
+ },
+ {
+ "id": "abbaec43.33e1c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2409.460796356201,
+ "y": 1307.5743074417114,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "6b2117db.4230f8"
+ ]
+ ]
+ },
+ {
+ "id": "9bfad8e.2252b28",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2395.793804168701,
+ "y": 1345.9076433181763,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "c5a2b6cb.8de6a8"
+ ]
+ ]
+ },
+ {
+ "id": "6b2117db.4230f8",
+ "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2563.032096862793,
+ "y": 1297.8601140975952,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "c5a2b6cb.8de6a8",
+ "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2559.566276550293,
+ "y": 1337.3469333648682,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "addfa25b.c3718",
+ "type": "set",
+ "name": "set tmp.thirdparty-sdnc-id",
+ "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 2603.9697647094727,
+ "y": 1260.0004110336304,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "44ef1c3d.800ab4",
+ "type": "comment",
+ "name": "get domain controller information",
+ "info": "",
+ "comments": "",
+ "x": 2259.4736404418945,
+ "y": 1288.0043859481812,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "7164fdca.4a0d84",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\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=\"delete\"/>\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": 2308.969596862793,
+ "y": 1681.0005912780762,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "2b22380a.f1bc58",
+ "2dc816f1.66c67a"
+ ]
+ ]
+ },
+ {
+ "id": "2b22380a.f1bc58",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2595.9695358276367,
+ "y": 1704.0005912780762,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "2a372b2.85f3bd4"
+ ]
+ ]
+ },
+ {
+ "id": "2a372b2.85f3bd4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2765.9694747924805,
+ "y": 1707.0005912780762,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9ab48a6d.252ca8",
+ "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 Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 2765.969596862793,
+ "y": 1663.0005912780762,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "2dc816f1.66c67a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2598.9694747924805,
+ "y": 1663.0005912780762,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "9ab48a6d.252ca8"
+ ]
+ ]
+ },
+ {
+ "id": "b8fd2a49.d0b368",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 933.7307472229004,
+ "y": 1677.9527901411057,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "4d3bfe83.8ac38"
+ ]
+ ]
+ },
+ {
+ "id": "4d3bfe83.8ac38",
+ "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": 1100.2546272277832,
+ "y": 1689.5718611478806,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "59f13b89.e4e7d4",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 940.8260345458984,
+ "y": 1710.7147578001022,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "4d3bfe83.8ac38"
+ ]
+ ]
+ },
+ {
+ "id": "65a9cdb6.115924",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 652.7784614562988,
+ "y": 1660.3021783828735,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "a3a48876.1d8a18",
+ "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": 667.5461578369141,
+ "y": 1581.8276596069336,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "7ccf367e.a869f8",
+ "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": 635.9592399597168,
+ "y": 1742.4434118270874,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "d3793c0a.e76dd",
+ "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.sotn-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": 717.2782592773438,
+ "y": 1489.468433380127,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "c94958cd.0f7e08",
+ "5e263814.55f358",
+ "1ecab8f8.94f047"
+ ]
+ ]
+ },
+ {
+ "id": "c94958cd.0f7e08",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 985.9196357727051,
+ "y": 1540.799845121801,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "916b12ec.48653"
+ ]
+ ]
+ },
+ {
+ "id": "5e263814.55f358",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 976.9196853637695,
+ "y": 1509.2998708710074,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "916b12ec.48653"
+ ]
+ ]
+ },
+ {
+ "id": "1ecab8f8.94f047",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 980.6697235107422,
+ "y": 1479.6569757461548,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "9a61150.9613ce8"
+ ]
+ ]
+ },
+ {
+ "id": "916b12ec.48653",
+ "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": 1146.6697235107422,
+ "y": 1510.0498947128654,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "9a61150.9613ce8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1122.3256912231445,
+ "y": 1475.849144935608,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "683cb14.3ce605",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\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.` \" />",
+ "comments": "",
+ "x": 617.4918785095215,
+ "y": 1339.8493564128876,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "802f8ef7.b6731",
+ "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": 634.7777214050293,
+ "y": 1412.4689540863037,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c1eba3c.5a3914",
+ "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='PendingDelete' />\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": 689.764778137207,
+ "y": 1450.4200916290283,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "c2e56bca.b33d78",
+ "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": 631.3334197998047,
+ "y": 1379.024006843567,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ae41f871.b43fa8",
+ "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": 744.6668815612793,
+ "y": 1300.0239589214325,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "e752535c.aeb57",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 686.2467079162598,
+ "y": 1267.4372606277466,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "2c211a2d.e90676",
+ "type": "update",
+ "name": "update AAI allotted-resource",
+ "xml": "<update 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\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\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=\"PendingDelete\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 679.2227401733398,
+ "y": 1697.7543210983276,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "b8fd2a49.d0b368",
+ "59f13b89.e4e7d4"
+ ]
+ ]
+ },
+ {
+ "id": "d5bc9567.22f988",
+ "type": "get-resource",
+ "name": "get-resource connectivity",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.service-data.networks.network[0].network-id AND \n\t\t depth = '1'\"\n pfx='tmp.connectivity' local-only='false' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1213.0005645751953,
+ "y": 1175.5044269561768,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "7024d4cd.1a62bc",
+ "cf432033.112d9"
+ ]
+ ]
+ },
+ {
+ "id": "41a48915.ce4758",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1986.1178741455078,
+ "y": 1372.3445596694946,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "ae412232.e0411",
+ "3c342d96.9776c2",
+ "ac6b10fc.018ca",
+ "3c2c4321.6e016c",
+ "7164fdca.4a0d84",
+ "dda1ddc2.84784",
+ "f1f4e6ef.143a68"
+ ]
+ ]
+ },
+ {
+ "id": "d567023b.2d9f",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1812.286392211914,
+ "y": 1374.8260831832886,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "41a48915.ce4758"
+ ]
+ ]
+ },
+ {
+ "id": "de835816.465b48",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1434.0003356933594,
+ "y": 1373.0043096542358,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "a2ccacd2.b0dbc"
+ ]
+ ]
+ },
+ {
+ "id": "a2ccacd2.b0dbc",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1646.0003471374512,
+ "y": 1374.0043096542358,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "d567023b.2d9f"
+ ]
+ ]
+ },
+ {
+ "id": "3c342d96.9776c2",
+ "type": "set",
+ "name": "set tmp.vpn-name",
+ "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",
+ "comments": "",
+ "x": 2219.0005416870117,
+ "y": 1086.004626274109,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ae412232.e0411",
+ "type": "execute",
+ "name": "split vpnName to find nodeId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2255.0004959106445,
+ "y": 1187.0039930343628,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "ae670977.becbb8",
+ "60767ce2.3ab0a4"
+ ]
+ ]
+ },
+ {
+ "id": "60767ce2.3ab0a4",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2456.000686645508,
+ "y": 1164.0039854049683,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "bf10a60c.fdea98"
+ ]
+ ]
+ },
+ {
+ "id": "bf10a60c.fdea98",
+ "type": "set",
+ "name": "set tmp.node-id",
+ "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n<parameter name='tmp.actual.vpn-name' value='`$route1[1]`' />\n",
+ "comments": "",
+ "x": 2609.000846862793,
+ "y": 1162.0039863586426,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "a5afcc72.d877b",
+ "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 splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 2593.001012802124,
+ "y": 1211.0039882659912,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ae670977.becbb8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2453.00066947937,
+ "y": 1212.0039901733398,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "a5afcc72.d877b"
+ ]
+ ]
+ },
+ {
+ "id": "7024d4cd.1a62bc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1394.0001640319824,
+ "y": 1210.0000715255737,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "ea43f44.e748208"
+ ]
+ ]
+ },
+ {
+ "id": "cf432033.112d9",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1396.851894378662,
+ "y": 1137.0663166046143,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "801260ca.47a9"
+ ]
+ ]
+ },
+ {
+ "id": "801260ca.47a9",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connectivity resource not found\" />\n \n",
+ "comments": "",
+ "x": 1539.0006637573242,
+ "y": 1137.3337268829346,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "ea43f44.e748208",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1396.0001754760742,
+ "y": 1288.0002374649048,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "de835816.465b48"
+ ]
+ ]
+ },
+ {
+ "id": "693977cc.87d158",
+ "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": 832.3339538574219,
+ "y": 536.4999494552612,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "e963cad3.e8d6c8",
+ "489ff5d2.164b7c"
+ ]
+ ]
+ },
+ {
+ "id": "c0b8662.2083398",
+ "type": "execute",
+ "name": "get parent-service-data tmp.ar-url-psd",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 686.0001983642578,
+ "y": 745.0002107620239,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fada7ab3.d1d4e8",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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-psd\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 753.0001602172852,
+ "y": 780.0002946853638,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "773fbfc3.82918",
+ "be2f70a0.4132d"
+ ]
+ ]
+ },
+ {
+ "id": "cfef8c40.7d401",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 769.1842803955078,
+ "y": 954.7181224822998,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "cf2de8b0.5bcd28",
+ "103b0ff7.ad1fb",
+ "4057b675.85b588"
+ ]
+ ]
+ },
+ {
+ "id": "dda1ddc2.84784",
+ "type": "update",
+ "name": "delete AAI vpn-binding",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpn-name' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2239.999954223633,
+ "y": 1784.0001649856567,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "c726da18.1fa408",
+ "b99e2363.4f50b"
+ ]
+ ]
+ },
+ {
+ "id": "c726da18.1fa408",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2494.5079612731934,
+ "y": 1764.1986340284348,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "53701c4b.a688d4"
+ ]
+ ]
+ },
+ {
+ "id": "b99e2363.4f50b",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2501.6032485961914,
+ "y": 1796.9606016874313,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "53701c4b.a688d4"
+ ]
+ ]
+ },
+ {
+ "id": "53701c4b.a688d4",
+ "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": 2661.031841278076,
+ "y": 1775.8177050352097,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "f1f4e6ef.143a68",
+ "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": 2279.7541580200195,
+ "y": 1564.254002571106,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "f8436b41.519d68",
+ "9d9f79f.4a7c888"
+ ]
+ ]
+ },
+ {
+ "id": "f8436b41.519d68",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2514.7541580200195,
+ "y": 1542.254002571106,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "1076a472.b53e4c"
+ ]
+ ]
+ },
+ {
+ "id": "9d9f79f.4a7c888",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2507.0041580200195,
+ "y": 1595.8968858718872,
+ "z": "ed10e8c7.d58f28",
+ "wires": [
+ [
+ "6534e8a7.2122d8"
+ ]
+ ]
+ },
+ {
+ "id": "6534e8a7.2122d8",
+ "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": 2659.7541580200195,
+ "y": 1595.6469469070435,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ },
+ {
+ "id": "1076a472.b53e4c",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 2668.7541580200195,
+ "y": 1543.254002571106,
+ "z": "ed10e8c7.d58f28",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json
new file mode 100644
index 00000000..8b1fd281
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json
@@ -0,0 +1,930 @@
+[
+ {
+ "id": "727269c5.c0c088",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 107,
+ "y": 38,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "476f18dc.439248"
+ ]
+ ]
+ },
+ {
+ "id": "476f18dc.439248",
+ "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": 281.00000381469727,
+ "y": 93.0000171661377,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "e0fac416.80f518"
+ ]
+ ]
+ },
+ {
+ "id": "e0fac416.80f518",
+ "type": "method",
+ "name": "sotn-attachment-topology-operation-delete",
+ "xml": "<method rpc='sotn-attachment-topology-operation-delete' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 269.0001220703125,
+ "y": 181,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "231c9f70.d1a7d"
+ ]
+ ]
+ },
+ {
+ "id": "231c9f70.d1a7d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 285.0001220703125,
+ "y": 736.0002446174622,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "daf8cd41.f5737",
+ "a1a6aaf1.a46af8",
+ "90947482.aca148",
+ "b9944c13.63436",
+ "6eccbbd0.6de454",
+ "1a37f19e.b4ca8e",
+ "b769698c.40e9c8",
+ "a43d6d68.0f0c8",
+ "190ff216.cb59ee",
+ "4a2552b4.8267bc",
+ "471618ce.1aa6e8",
+ "afce32ae.04764",
+ "af833dcd.19d57",
+ "abce896b.ee5ab8",
+ "36034272.10e4ae"
+ ]
+ ]
+ },
+ {
+ "id": "daf8cd41.f5737",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id,etc",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 681.9935607910156,
+ "y": 134.9934868812561,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "f092463.fee0fb8",
+ "type": "comment",
+ "name": "set tmp ar-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 710.9538726806641,
+ "y": 99.02528285980225,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "a1a6aaf1.a46af8",
+ "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": 635.9934997558594,
+ "y": 227.99349212646484,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "6eccbbd0.6de454",
+ "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": 642.2553901672363,
+ "y": 315.6602210998535,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90947482.aca148",
+ "type": "execute",
+ "name": "generate allotted-resource 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": 674.2554168701172,
+ "y": 403.66020250320435,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a011c3.2eb3ce4",
+ "type": "comment",
+ "name": "Used for setting output to API Handler",
+ "info": "",
+ "comments": "",
+ "x": 689.9935302734375,
+ "y": 194.993501663208,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "d15c9938.74a878",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 707.9934959411621,
+ "y": 280.8823823928833,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "a5405514.70c5b8",
+ "type": "comment",
+ "name": "Used to Get AR by id to MDSAL, same as self-link",
+ "info": "",
+ "comments": "",
+ "x": 733.9935150146484,
+ "y": 367.8823413848877,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "88c1d026.0cefd",
+ "type": "comment",
+ "name": "GET parent-service-data from mdsal to check existence of other End point",
+ "info": "",
+ "comments": "",
+ "x": 801.0003280639648,
+ "y": 822.5316228866577,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "3c5cf576.01802a",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1629.1849365234375,
+ "y": 1056.00425863266,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "3496000b.b50ee"
+ ]
+ ]
+ },
+ {
+ "id": "b9944c13.63436",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 780.1842956542969,
+ "y": 1062.718041419983,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "af74ccd9.4a43f",
+ "86c1925.6123e7"
+ ]
+ ]
+ },
+ {
+ "id": "e65e2eca.21548",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1230.4544582366943,
+ "y": 1102.7015271186829,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "3c5cf576.01802a",
+ "fad43184.faa77"
+ ]
+ ]
+ },
+ {
+ "id": "3496000b.b50ee",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2079.296142578125,
+ "y": 1054.0041165351868,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "2b9e1b87.4d7be4"
+ ]
+ ]
+ },
+ {
+ "id": "1a37f19e.b4ca8e",
+ "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": 691.9687118530273,
+ "y": 858.0000677108765,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "f65db35d.ec076",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1071.968994140625,
+ "y": 936.0001826286316,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "c80198f0.eabc78"
+ ]
+ ]
+ },
+ {
+ "id": "733108ec.4b0c18",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1063.8207969665527,
+ "y": 971.066267490387,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "d0615553.03e2f8"
+ ]
+ ]
+ },
+ {
+ "id": "d0615553.03e2f8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1238.969482421875,
+ "y": 967.3336176872253,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "c80198f0.eabc78",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1222.968994140625,
+ "y": 934.0001826286316,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5239fca8.d17b94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 925.7307624816895,
+ "y": 1251.952815413475,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "d9416e9b.67f3a"
+ ]
+ ]
+ },
+ {
+ "id": "d9416e9b.67f3a",
+ "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": 1092.2546424865723,
+ "y": 1263.57188642025,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "c631f277.5fd19",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 932.8260498046875,
+ "y": 1284.7147830724716,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "d9416e9b.67f3a"
+ ]
+ ]
+ },
+ {
+ "id": "b769698c.40e9c8",
+ "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": 658.5461502075195,
+ "y": 1215.8276824951172,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "a43d6d68.0f0c8",
+ "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": 627.9592552185059,
+ "y": 1316.4434370994568,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "36034272.10e4ae",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "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='Delete' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 707.6666641235352,
+ "y": 492.3333625793457,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "b9a614f.423c0e8",
+ "1fe78f55.993961",
+ "2453145c.fe210c"
+ ]
+ ]
+ },
+ {
+ "id": "b9a614f.423c0e8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 947.3081665039062,
+ "y": 532.6649107933044,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "ceacff91.78296"
+ ]
+ ]
+ },
+ {
+ "id": "1fe78f55.993961",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 944.3081665039062,
+ "y": 489.16490840911865,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "ceacff91.78296"
+ ]
+ ]
+ },
+ {
+ "id": "2453145c.fe210c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 951.0582466125488,
+ "y": 448.5220036506653,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "cc515c42.f40e8"
+ ]
+ ]
+ },
+ {
+ "id": "ceacff91.78296",
+ "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.058334350586,
+ "y": 510.9149088859558,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "cc515c42.f40e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1088.7141780853271,
+ "y": 448.7141833305359,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "afc0a167.60e96",
+ "type": "comment",
+ "name": "Delete Allotted Resource",
+ "info": "",
+ "comments": "",
+ "x": 655.0000457763672,
+ "y": 461.0000286102295,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "930f6554.7ad0e8",
+ "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": 1605.00390625,
+ "y": 698.00390625,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "ab2d612c.e624d"
+ ]
+ ]
+ },
+ {
+ "id": "190ff216.cb59ee",
+ "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": 758.0032920837402,
+ "y": 658.71790766716,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "22a6f73e.83f758",
+ "59a890e7.9e391"
+ ]
+ ]
+ },
+ {
+ "id": "22a6f73e.83f758",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1082.1461563110352,
+ "y": 641.5753421783447,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "d98f9bea.dbb4e8"
+ ]
+ ]
+ },
+ {
+ "id": "59a890e7.9e391",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1068.1461791992188,
+ "y": 704.5753309726715,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "741d09f.ef4e8f8"
+ ]
+ ]
+ },
+ {
+ "id": "741d09f.ef4e8f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1228.2732696533203,
+ "y": 702.7013075351715,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "930f6554.7ad0e8",
+ "a2d1d665.9bea78"
+ ]
+ ]
+ },
+ {
+ "id": "4a2552b4.8267bc",
+ "type": "set",
+ "name": "set consumed allotted resources for deletion",
+ "xml": "<set>\n<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].\" value=\"\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`' />\n\n",
+ "comments": "",
+ "x": 714.8606262207031,
+ "y": 729.28955078125,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "ab2d612c.e624d",
+ "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": 2043.1155166625977,
+ "y": 694.0040283203125,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "d09e4ce4.cdbe3"
+ ]
+ ]
+ },
+ {
+ "id": "d09e4ce4.cdbe3",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2238.925338745117,
+ "y": 693.4683527946472,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "c313761f.950178"
+ ]
+ ]
+ },
+ {
+ "id": "92647963.e38708",
+ "type": "set",
+ "name": "set tmp.cidx",
+ "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
+ "comments": "",
+ "x": 2554.2618713378906,
+ "y": 694.2246108055115,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "8d54089c.d1a698",
+ "type": "comment",
+ "name": "Delete consumed service consumed-allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 769.0045623779297,
+ "y": 591.0038724095793,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "66e1c966.841508",
+ "type": "comment",
+ "name": "This set resource will be deleted in MDSAL by provider code",
+ "info": "",
+ "comments": "",
+ "x": 759.337345123291,
+ "y": 695.781964302063,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "491e50db.34949",
+ "type": "comment",
+ "name": "Obtain the index of conusumed AR",
+ "info": "",
+ "comments": "",
+ "x": 681.7817535400391,
+ "y": 622.8927326202393,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "d98f9bea.dbb4e8",
+ "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=\"Resource to be deleted doesn't exist in MDSAL.\" />\n",
+ "comments": "",
+ "x": 1244.00390625,
+ "y": 642.00390625,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "c313761f.950178",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2388.003936767578,
+ "y": 694.2539558410645,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "92647963.e38708"
+ ]
+ ]
+ },
+ {
+ "id": "6aa48d02.a58084",
+ "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=\"resource to be deleted is not available in mdsal\" />\n",
+ "comments": "",
+ "x": 1698.25390625,
+ "y": 751.25390625,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "bf5c462c.da5e08",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1560.75390625,
+ "y": 751.25390625,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "6aa48d02.a58084"
+ ]
+ ]
+ },
+ {
+ "id": "a2d1d665.9bea78",
+ "type": "switchNode",
+ "name": "switch tmp.cidx ",
+ "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1406.75390625,
+ "y": 751.25390625,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "bf5c462c.da5e08"
+ ]
+ ]
+ },
+ {
+ "id": "e3078c06.7be5",
+ "type": "comment",
+ "name": "Delete provided service provided-allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 755.5039215087891,
+ "y": 787.00390625,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "86c1925.6123e7",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1083.5041770935059,
+ "y": 1101.7540984153748,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "e65e2eca.21548"
+ ]
+ ]
+ },
+ {
+ "id": "af74ccd9.4a43f",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1100.5040969848633,
+ "y": 1013.7539324760437,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "fea3dc81.4b3fa"
+ ]
+ ]
+ },
+ {
+ "id": "fea3dc81.4b3fa",
+ "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=\"Resource to be deleted doesn't exist in MDSAL.\" />\n",
+ "comments": "",
+ "x": 1264.3616943359375,
+ "y": 1014.1824774742126,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "39762013.3aeda",
+ "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=\"resource to be deleted is not available in mdsal\" />\n",
+ "comments": "",
+ "x": 1695.7539501190186,
+ "y": 1131.753936290741,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "f41a3391.116cf",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1558.2539501190186,
+ "y": 1131.753936290741,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "39762013.3aeda"
+ ]
+ ]
+ },
+ {
+ "id": "fad43184.faa77",
+ "type": "switchNode",
+ "name": "switch tmp.pidx ",
+ "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1404.2539501190186,
+ "y": 1131.753936290741,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "f41a3391.116cf"
+ ]
+ ]
+ },
+ {
+ "id": "2b9e1b87.4d7be4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2268.504367828369,
+ "y": 1051.7540946006775,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "3e54d0ca.68119"
+ ]
+ ]
+ },
+ {
+ "id": "124aec38.7e75f4",
+ "type": "set",
+ "name": "set tmp.pidx",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n\n",
+ "comments": "",
+ "x": 2336.8404846191406,
+ "y": 1186.5101914405823,
+ "z": "9a9db3db.b812b",
+ "wires": []
+ },
+ {
+ "id": "3e54d0ca.68119",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2328.582820892334,
+ "y": 1122.539580821991,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "124aec38.7e75f4"
+ ]
+ ]
+ },
+ {
+ "id": "471618ce.1aa6e8",
+ "type": "update",
+ "name": "update AAI allotted-resource",
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='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",
+ "comments": "",
+ "outputs": 1,
+ "x": 671.2227554321289,
+ "y": 1271.754346370697,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "5239fca8.d17b94",
+ "c631f277.5fd19"
+ ]
+ ]
+ },
+ {
+ "id": "af833dcd.19d57",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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-psd\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 761.3334197998047,
+ "y": 957.333366394043,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ [
+ "f65db35d.ec076",
+ "733108ec.4b0c18"
+ ]
+ ]
+ },
+ {
+ "id": "afce32ae.04764",
+ "type": "execute",
+ "name": "get parent-service-data tmp.ar-url-psd",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 695.3333587646484,
+ "y": 915.3332056999207,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "abce896b.ee5ab8",
+ "type": "execute",
+ "name": "execute RestApiCallNode - delete-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value=\"`$prop.controller.url + $tmp.ar-url-psd + '/provided-allotted-resources/provided-allotted-resource/' + $tmp.ar.allotted-resource-id`\" />\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='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd-delete\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 766,
+ "y": 1166,
+ "z": "9a9db3db.b812b",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-get-saved-ar-param.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-get-saved-ar-param.json
new file mode 100644
index 00000000..f9a6bb1d
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-get-saved-ar-param.json
@@ -0,0 +1,481 @@
+[
+ {
+ "id": "78c3c512.2a5cfc",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 113.03125,
+ "y": 43.03125,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "c8295f65.8fc4c"
+ ]
+ ]
+ },
+ {
+ "id": "c8295f65.8fc4c",
+ "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": 325.03125381469727,
+ "y": 115.0312671661377,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "cb959304.88093"
+ ]
+ ]
+ },
+ {
+ "id": "cb959304.88093",
+ "type": "method",
+ "name": "sotnt-get-saved-ar-param",
+ "xml": "<method rpc='sotn-get-saved-ar-param' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 313.0313720703125,
+ "y": 203.03125,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "f53a4fe7.e10d8"
+ ]
+ ]
+ },
+ {
+ "id": "f53a4fe7.e10d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 320.03126525878906,
+ "y": 289.0313081741333,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "cb3c00be.eadaf"
+ ]
+ ]
+ },
+ {
+ "id": "cb3c00be.eadaf",
+ "type": "for",
+ "name": "for each sotn-get-request-input-param",
+ "xml": "<for index='idx' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 356.6980285644531,
+ "y": 371.697904586792,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "9fceee94.c7352"
+ ]
+ ]
+ },
+ {
+ "id": "9fceee94.c7352",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 621.5315322875977,
+ "y": 281.03129625320435,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "ac9e17c4.666db8",
+ "68c68212.dc993c",
+ "66615c8e.b750a4",
+ "4a64e3ec.0803bc",
+ "d49b138b.9b447",
+ "1f7b915.12bc26f",
+ "fcc00482.9d4728",
+ "be269c99.3195",
+ "d97ebcd8.acf64"
+ ]
+ ]
+ },
+ {
+ "id": "ac9e17c4.666db8",
+ "type": "switchNode",
+ "name": "switch sotnVpnName",
+ "xml": "<switch test=\"`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name == 'sotnVpnName'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 848.53125,
+ "y": 79.03128051757812,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "4f0e4c80.dde4f4"
+ ]
+ ]
+ },
+ {
+ "id": "4f0e4c80.dde4f4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1035.53125,
+ "y": 75.03128051757812,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "ca00e2af.bb58d"
+ ]
+ ]
+ },
+ {
+ "id": "ca00e2af.bb58d",
+ "type": "set",
+ "name": "set sotnVpnName",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.sotnVpnName' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1203.53125,
+ "y": 75.63128662109375,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "68c68212.dc993c",
+ "type": "switchNode",
+ "name": "switch access-provider-id",
+ "xml": "<switch test=\"`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name == 'access-provider-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 849.0416793823242,
+ "y": 138.03128051757812,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "a284600c.21032"
+ ]
+ ]
+ },
+ {
+ "id": "a284600c.21032",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1036.0416793823242,
+ "y": 134.03128051757812,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "226a73cd.788cbc"
+ ]
+ ]
+ },
+ {
+ "id": "226a73cd.788cbc",
+ "type": "set",
+ "name": "set access-provider-id",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1204.0416793823242,
+ "y": 134.63128662109375,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "66615c8e.b750a4",
+ "type": "switchNode",
+ "name": "switch access-client-id",
+ "xml": "<switch test=\"`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name == 'access-client-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 851.0417404174805,
+ "y": 191.04170036315918,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "2b01edeb.bc12c2"
+ ]
+ ]
+ },
+ {
+ "id": "2b01edeb.bc12c2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1038.0417404174805,
+ "y": 187.04170036315918,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "ce9ed833.dd9e08"
+ ]
+ ]
+ },
+ {
+ "id": "ce9ed833.dd9e08",
+ "type": "set",
+ "name": "set access-client-id",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-client-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1206.0417404174805,
+ "y": 187.6417064666748,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "4a64e3ec.0803bc",
+ "type": "switchNode",
+ "name": "switch access-topology-id",
+ "xml": "<switch test=\"`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name == 'access-topology-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 847.0417404174805,
+ "y": 257.0417003631592,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "cd0931d.fc24dd"
+ ]
+ ]
+ },
+ {
+ "id": "cd0931d.fc24dd",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1034.0417404174805,
+ "y": 253.04170036315918,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "ae46664c.2ac008"
+ ]
+ ]
+ },
+ {
+ "id": "ae46664c.2ac008",
+ "type": "set",
+ "name": "set access-topology-id",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-topology-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1202.0417404174805,
+ "y": 253.6417064666748,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "d49b138b.9b447",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 852.0417404174805,
+ "y": 311.04169845581055,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "c9b215fc.9adfd8"
+ ]
+ ]
+ },
+ {
+ "id": "c9b215fc.9adfd8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039.0417404174805,
+ "y": 307.04169845581055,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "faf7a4cf.251418"
+ ]
+ ]
+ },
+ {
+ "id": "faf7a4cf.251418",
+ "type": "set",
+ "name": "set access-node-id",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-node-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1207.0417404174805,
+ "y": 307.6417045593262,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "1f7b915.12bc26f",
+ "type": "switchNode",
+ "name": "switch access-ltp-id",
+ "xml": "<switch test=\"`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name == 'access-ltp-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 854.0417404174805,
+ "y": 373.04165840148926,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "672f4f35.c2cfa"
+ ]
+ ]
+ },
+ {
+ "id": "672f4f35.c2cfa",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1041.0417404174805,
+ "y": 369.04165840148926,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "f006294d.d5f238"
+ ]
+ ]
+ },
+ {
+ "id": "f006294d.d5f238",
+ "type": "set",
+ "name": "set access-ltp-id",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1209.0417404174805,
+ "y": 369.6416645050049,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "fcc00482.9d4728",
+ "type": "switchNode",
+ "name": "switch clientSignal",
+ "xml": "<switch test=\"`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name == 'clientSignal'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 858.0417404174805,
+ "y": 439.0416650772095,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "c5ace371.7d146"
+ ]
+ ]
+ },
+ {
+ "id": "c5ace371.7d146",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1045.0417404174805,
+ "y": 435.0416650772095,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "6652e4bd.26a58c"
+ ]
+ ]
+ },
+ {
+ "id": "6652e4bd.26a58c",
+ "type": "set",
+ "name": "set clientSignal",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.clientSignal' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1213.0417404174805,
+ "y": 435.6416711807251,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "be269c99.3195",
+ "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": 851.0313720703125,
+ "y": 553.031268119812,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "d97ebcd8.acf64",
+ "type": "switchNode",
+ "name": "switch cVLAN",
+ "xml": "<switch test=\"`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name == 'cVLAN'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 857.03125,
+ "y": 491.0312194824219,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "b35b1b6b.cc2e38"
+ ]
+ ]
+ },
+ {
+ "id": "b35b1b6b.cc2e38",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1044.03125,
+ "y": 487.0312194824219,
+ "z": "be273250.67063",
+ "wires": [
+ [
+ "d9b42ffa.b44df"
+ ]
+ ]
+ },
+ {
+ "id": "d9b42ffa.b44df",
+ "type": "set",
+ "name": "set cVLAN",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.cVLAN' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1212.03125,
+ "y": 487.6312255859375,
+ "z": "be273250.67063",
+ "wires": [
+
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json
new file mode 100644
index 00000000..0dac5d39
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json
@@ -0,0 +1,185 @@
+[
+ {
+ "id": "bb559316.43abe",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 169,
+ "y": 76,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ [
+ "842a594e.4731d8"
+ ]
+ ]
+ },
+ {
+ "id": "842a594e.4731d8",
+ "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": 355.00000381469727,
+ "y": 148.0000171661377,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ [
+ "f5dc7555.cee5a8"
+ ]
+ ]
+ },
+ {
+ "id": "f5dc7555.cee5a8",
+ "type": "method",
+ "name": "method sotn-network-topology-operation-activate",
+ "xml": "<method rpc='sotn-network-topology-operation-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 343.0001220703125,
+ "y": 236,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ [
+ "48dc382f.96bcc8"
+ ]
+ ]
+ },
+ {
+ "id": "48dc382f.96bcc8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 517.0000152587891,
+ "y": 344.0000591278076,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ [
+ "40528bdc.5b5f94",
+ "6d718115.bc2bd",
+ "fba83ea2.6feb9",
+ "5f3aca59.c0fbb4",
+ "1643498b.4256a6",
+ "afd35eb.c4071a",
+ "f6449001.6bbfb",
+ "77ac16a7.2846a8"
+ ]
+ ]
+ },
+ {
+ "id": "40528bdc.5b5f94",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 975.3889007568359,
+ "y": 93,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6d718115.bc2bd",
+ "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=\"sotn-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SOTN-Activate\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 775.5555992126465,
+ "y": 146.77785301208496,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fba83ea2.6feb9",
+ "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": 866.5556488037109,
+ "y": 335.31329441070557,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ },
+ {
+ "id": "5f3aca59.c0fbb4",
+ "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": 788.3334503173828,
+ "y": 524.8687143325806,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ },
+ {
+ "id": "1643498b.4256a6",
+ "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": 833.4445648193359,
+ "y": 396.5354690551758,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ },
+ {
+ "id": "afd35eb.c4071a",
+ "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": 807.8577041625977,
+ "y": 199.77788925170898,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6449001.6bbfb",
+ "type": "update",
+ "name": "update SOTN Connectivity status to AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='connectivity-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 867.6631469726562,
+ "y": 456.238657951355,
+ "z": "fd297d2b.31cb1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "77ac16a7.2846a8",
+ "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": 830.0001220703125,
+ "y": 267.0910539627075,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ },
+ {
+ "id": "96de6db0.b05dc",
+ "type": "comment",
+ "name": "TODO MP2MP",
+ "info": "Current implementation is for P2P connectivity\nFor MP2MP connectivity in future DG needs to be modified",
+ "comments": "",
+ "x": 1055.03125,
+ "y": 190.03128051757812,
+ "z": "fd297d2b.31cb1",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json
new file mode 100644
index 00000000..2a7ca5e8
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json
@@ -0,0 +1,1053 @@
+[
+ {
+ "id": "341efa5d.3b64a6",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 86,
+ "y": 31,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "6fe36a2a.e8f534"
+ ]
+ ]
+ },
+ {
+ "id": "6fe36a2a.e8f534",
+ "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": 281.49999237060547,
+ "y": 100.99999287677929,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "2163ea38.5f8506"
+ ]
+ ]
+ },
+ {
+ "id": "2163ea38.5f8506",
+ "type": "method",
+ "name": "sotn-network-topology-operation-create",
+ "xml": "<method rpc='sotn-network-topology-operation-create' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 280.49999237060547,
+ "y": 200.9999928767793,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "1daa1b23.85b095"
+ ]
+ ]
+ },
+ {
+ "id": "1daa1b23.85b095",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 420.49999237060547,
+ "y": 300.9999928767793,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "1e60363f.72490a",
+ "83353300.c2eb9",
+ "a088e585.2065b8",
+ "238d29fd.4aeea6",
+ "f0b2c8c2.dc78a8",
+ "59d7449b.dee92c",
+ "26e9888d.5c8d38",
+ "8485dd7a.a3edc",
+ "db1f06f2.603038",
+ "939c727d.3556b",
+ "f50551ee.ae1a3"
+ ]
+ ]
+ },
+ {
+ "id": "1e60363f.72490a",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 850.5000038146973,
+ "y": 118.77774479938671,
+ "z": "12958f29.9139d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "83353300.c2eb9",
+ "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=\"sotn-network-topology-operation-create\"/>\n<parameter name=\"field3\" value=\"SOTN-Config\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 644.0556488037109,
+ "y": 296.2222046852112,
+ "z": "12958f29.9139d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a088e585.2065b8",
+ "type": "execute",
+ "name": "execute generate-sotn-vpn-network-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.sotn.network-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 744.5000038146973,
+ "y": 158.7777447993867,
+ "z": "12958f29.9139d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "238d29fd.4aeea6",
+ "type": "switchNode",
+ "name": "switch service-data.networks_length",
+ "xml": "<switch test='`$service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 737.0556564331055,
+ "y": 247.2221913631074,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "ed404518.0f77e8",
+ "ad805a2f.932de8"
+ ]
+ ]
+ },
+ {
+ "id": "ed404518.0f77e8",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 964.0556488037109,
+ "y": 236.22220468521118,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "7b7e8d7f.4eda74"
+ ]
+ ]
+ },
+ {
+ "id": "ad805a2f.932de8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 964.0556488037109,
+ "y": 276.2222046852112,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "c276afed.a21aa"
+ ]
+ ]
+ },
+ {
+ "id": "7b7e8d7f.4eda74",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='0' />\n",
+ "comments": "",
+ "x": 1106.555648803711,
+ "y": 236.22220468521118,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "4ebe96fe.9f23b8",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n",
+ "comments": "",
+ "x": 1240.1111679077148,
+ "y": 237.77781438827515,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "f0b2c8c2.dc78a8",
+ "type": "set",
+ "name": "set network in service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-id' value='`$prop.sotn.network-id`' />\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n<parameter name='service-data.networks.network_length' value='`$nidx+1`' />\n\n",
+ "comments": "",
+ "x": 705.5556488037109,
+ "y": 336.2222046852112,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "59d7449b.dee92c",
+ "type": "set",
+ "name": "set networkId and network-object-path",
+ "xml": "<set>\n<parameter name='networkId' value='`$prop.sotn.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/' + $prop.sotn.network-id + '/network-data/'` \" />",
+ "comments": "",
+ "x": 741.0556488037109,
+ "y": 376.2222046852112,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "26e9888d.5c8d38",
+ "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": 664.7224884033203,
+ "y": 542.8889315128326,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "8485dd7a.a3edc",
+ "type": "set",
+ "name": "set network-level-oper-status",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.networks.network[$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[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
+ "comments": "",
+ "x": 712.5556488037109,
+ "y": 416.2222046852112,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "db1f06f2.603038",
+ "type": "save",
+ "name": "save SOTN connectivity resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.sotn.network-id' >\n<parameter name='connectivity-id' value='`$prop.sotn.network-id`' />\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<parameter name='color-aware' value='`$prop.sotn.colorAware`' />\n<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />\n<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='access-provider-id' value='`$prop.sotn.access-provider-id`' />\n<parameter name='access-client-id' value='`$prop.sotn.access-client-id`' />\n<parameter name='access-topology-id' value='`$prop.sotn.access-topology-id`' />\n<parameter name='access-node-id' value='`$prop.sotn.access-node-id`' />\n<parameter name='access-ltp-id' value='`$prop.sotn.access-ltp-id`' />\n<parameter name='cvlan' value='`$prop.sotn.cVLAN`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 745.0556488037109,
+ "y": 462.88889360427856,
+ "z": "12958f29.9139d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "939c727d.3556b",
+ "type": "save",
+ "name": "save service relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 720.0556602478027,
+ "y": 500.666645526886,
+ "z": "12958f29.9139d1",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5a63d0be.0dd08",
+ "type": "for",
+ "name": "for each existing network",
+ "xml": "<for index='idx' start='0' end='`$nidx`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1109.5397109985352,
+ "y": 380.99995657848194,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "f2a7b4ef.7dee18"
+ ]
+ ]
+ },
+ {
+ "id": "c276afed.a21aa",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1108.4126930236816,
+ "y": 276.1587166786194,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "5a63d0be.0dd08",
+ "4ebe96fe.9f23b8"
+ ]
+ ]
+ },
+ {
+ "id": "f2a7b4ef.7dee18",
+ "type": "switchNode",
+ "name": "switch networkid found",
+ "xml": "<switch test=\"`$service-data.networks.network[$idx].network-id == $network-topology-operation-input.network-information.network-id`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1384.8254318237305,
+ "y": 380.5714592640288,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "69e5d9d8.6152c8"
+ ]
+ ]
+ },
+ {
+ "id": "69e5d9d8.6152c8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1285.5556297302246,
+ "y": 439.14289042400196,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "2aa1e5e3.a3646a"
+ ]
+ ]
+ },
+ {
+ "id": "7fda1459.886ccc",
+ "type": "comment",
+ "name": "make sure this network doesn't exist already",
+ "info": "",
+ "comments": "",
+ "x": 1333.1904411315918,
+ "y": 339.2540139858611,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "2aa1e5e3.a3646a",
+ "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=\"network-topology-operation-input.network-request-input.network-id already found in service-data\" />\n",
+ "comments": "",
+ "x": 1433.3057327270508,
+ "y": 439.00008249282837,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "bf34c45.8795338",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1399.9572257995605,
+ "y": 208.77780199050903,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "12be9566.c7eb7b",
+ "7bec5917.3ffc18",
+ "a1288c23.b615f",
+ "af84978c.aabb08",
+ "8d1b65f0.441d58",
+ "4a9af7ad.2879c8",
+ "ba3dcad9.481608",
+ "5806cf92.6a521",
+ "bd6407fd.e5e7e8",
+ "37b39115.cca1ce",
+ "5e46e6d8.c63f48",
+ "13ee1e74.912c62",
+ "79a54f85.8c9c5",
+ "d44eb5ab.296838",
+ "c0af4869.cb2978"
+ ]
+ ]
+ },
+ {
+ "id": "12be9566.c7eb7b",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1658.178970336914,
+ "y": 66.11110544204712,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "ae97dc6a.f8715"
+ ]
+ ]
+ },
+ {
+ "id": "ae97dc6a.f8715",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1845.178970336914,
+ "y": 62.11110544204712,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "bc3e07b4.946d68"
+ ]
+ ]
+ },
+ {
+ "id": "bc3e07b4.946d68",
+ "type": "set",
+ "name": "set name",
+ "xml": "<set>\n<parameter name='prop.sotn.etht-svc-name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1995.179100036621,
+ "y": 60.7111120223999,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "7bec5917.3ffc18",
+ "type": "switchNode",
+ "name": "switch description",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'description'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1669.0186309814453,
+ "y": 106.11110353469849,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "39bacf03.cf3f9"
+ ]
+ ]
+ },
+ {
+ "id": "39bacf03.cf3f9",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1839.0186309814453,
+ "y": 102.11110353469849,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "5f54eacf.46e154"
+ ]
+ ]
+ },
+ {
+ "id": "5f54eacf.46e154",
+ "type": "set",
+ "name": "set etht-svc-descr",
+ "xml": "<set>\n<parameter name='prop.sotn.etht-svc-descr' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2026.352071762085,
+ "y": 100.57226037979126,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "f50551ee.ae1a3",
+ "type": "for",
+ "name": "for loop i - Network input parameters",
+ "xml": "<for index=\"idx\" start=\"0\" end=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 738.7343673706055,
+ "y": 207.5555348689668,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "bf34c45.8795338"
+ ]
+ ]
+ },
+ {
+ "id": "a1288c23.b615f",
+ "type": "switchNode",
+ "name": "switch tenantId",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'tenantId'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1659.4010124206543,
+ "y": 149.44443082809448,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "85b237c8.6a5728"
+ ]
+ ]
+ },
+ {
+ "id": "85b237c8.6a5728",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1846.4010124206543,
+ "y": 145.44443082809448,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "1f01ba7.909de46"
+ ]
+ ]
+ },
+ {
+ "id": "1f01ba7.909de46",
+ "type": "set",
+ "name": "set tenantId",
+ "xml": "<set>\n<parameter name='prop.sotn.tenantId' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2014.4010124206543,
+ "y": 146.0444369316101,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "af84978c.aabb08",
+ "type": "switchNode",
+ "name": "switch cir",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'cir'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1641.2406692504883,
+ "y": 239.44448900222778,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "68c32198.953bc"
+ ]
+ ]
+ },
+ {
+ "id": "68c32198.953bc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1849.240737915039,
+ "y": 235.4445023536682,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "fcd5f3e.122b91"
+ ]
+ ]
+ },
+ {
+ "id": "fcd5f3e.122b91",
+ "type": "set",
+ "name": "set cir",
+ "xml": "<set>\n<parameter name='prop.sotn.cir' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1998.5740585327148,
+ "y": 233.90564966201782,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "8d1b65f0.441d58",
+ "type": "switchNode",
+ "name": "switch vpnType",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'vpnType'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1660.5491409301758,
+ "y": 193.2222080230713,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "aeee7e59.41fe6"
+ ]
+ ]
+ },
+ {
+ "id": "aeee7e59.41fe6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1847.5491409301758,
+ "y": 189.2222080230713,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "efbe141c.2693e8"
+ ]
+ ]
+ },
+ {
+ "id": "efbe141c.2693e8",
+ "type": "set",
+ "name": "set vpnType",
+ "xml": "<set>\n<parameter name='prop.sotn.vpnType' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2016.8827743530273,
+ "y": 186.68337297439575,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "4a9af7ad.2879c8",
+ "type": "switchNode",
+ "name": "switch access-provider-id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-provider-id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1682.030776977539,
+ "y": 515.6667265892029,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "8268dacb.9b51a8"
+ ]
+ ]
+ },
+ {
+ "id": "ba3dcad9.481608",
+ "type": "switchNode",
+ "name": "switch access-client-id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-client-id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1674.5862579345703,
+ "y": 561.0000557899475,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "a95546f9.dbc8c8"
+ ]
+ ]
+ },
+ {
+ "id": "5806cf92.6a521",
+ "type": "switchNode",
+ "name": "switch access-topology-id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-topology-id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1679.0307159423828,
+ "y": 599.8889412879944,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "2720e3f9.d49aac"
+ ]
+ ]
+ },
+ {
+ "id": "8268dacb.9b51a8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1866.030776977539,
+ "y": 514.666741847992,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "4e3a7098.974c8"
+ ]
+ ]
+ },
+ {
+ "id": "a95546f9.dbc8c8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1861.5862579345703,
+ "y": 557.0000557899475,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "640cc28a.98572c"
+ ]
+ ]
+ },
+ {
+ "id": "2720e3f9.d49aac",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1866.0307159423828,
+ "y": 595.8889412879944,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "21bffbdb.c6eb94"
+ ]
+ ]
+ },
+ {
+ "id": "4e3a7098.974c8",
+ "type": "set",
+ "name": "set access-provider-id",
+ "xml": "<set>\n<parameter name='prop.sotn.access-provider-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2049.2531356811523,
+ "y": 513.7779259681702,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "640cc28a.98572c",
+ "type": "set",
+ "name": "set access-client-id",
+ "xml": "<set>\n<parameter name='prop.sotn.access-client-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2038.1421737670898,
+ "y": 555.0105323791504,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "21bffbdb.c6eb94",
+ "type": "set",
+ "name": "set access-topology-id",
+ "xml": "<set>\n<parameter name='prop.sotn.access-topology-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2048.031089782715,
+ "y": 593.8993887901306,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "bd6407fd.e5e7e8",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-node-id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1679.845474243164,
+ "y": 646.5555849075317,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "7f7eda44.4baf24"
+ ]
+ ]
+ },
+ {
+ "id": "7f7eda44.4baf24",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1866.845474243164,
+ "y": 642.5555849075317,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "932f3665.ab2778"
+ ]
+ ]
+ },
+ {
+ "id": "37b39115.cca1ce",
+ "type": "switchNode",
+ "name": "switch access-ltp-id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'access-ltp-id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1676.6232452392578,
+ "y": 689.0000615119934,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "da95a048.53cf8"
+ ]
+ ]
+ },
+ {
+ "id": "da95a048.53cf8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1863.6232452392578,
+ "y": 685.0000615119934,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "4432e921.5fd6d8"
+ ]
+ ]
+ },
+ {
+ "id": "932f3665.ab2778",
+ "type": "set",
+ "name": "set access-node-id",
+ "xml": "<set>\n<parameter name='prop.sotn.access-node-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2038.8457870483398,
+ "y": 641.2327189445496,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "4432e921.5fd6d8",
+ "type": "set",
+ "name": "set access-ltp-id",
+ "xml": "<set>\n<parameter name='prop.sotn.access-ltp-id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2029.289939880371,
+ "y": 684.0104908943176,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "5e46e6d8.c63f48",
+ "type": "switchNode",
+ "name": "switch eir",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'eir'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1642.531120300293,
+ "y": 282.1423554420471,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "fc17f5c5.ae3be8"
+ ]
+ ]
+ },
+ {
+ "id": "fc17f5c5.ae3be8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1844.5310821533203,
+ "y": 277.14237546920776,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "5963427e.099eec"
+ ]
+ ]
+ },
+ {
+ "id": "5963427e.099eec",
+ "type": "set",
+ "name": "set eir",
+ "xml": "<set>\n<parameter name='prop.sotn.eir' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2000.8645858764648,
+ "y": 276.6035113334656,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "13ee1e74.912c62",
+ "type": "switchNode",
+ "name": "switch cbs",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'cbs'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1642.531120300293,
+ "y": 331.1423554420471,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "52037d34.46c984"
+ ]
+ ]
+ },
+ {
+ "id": "52037d34.46c984",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1841.5310821533203,
+ "y": 327.14236211776733,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "87d5db86.520f08"
+ ]
+ ]
+ },
+ {
+ "id": "87d5db86.520f08",
+ "type": "set",
+ "name": "set cbs",
+ "xml": "<set>\n<parameter name='prop.sotn.cbs' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1999.864646911621,
+ "y": 325.60352182388306,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "79a54f85.8c9c5",
+ "type": "switchNode",
+ "name": "switch ebs",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ebs'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1642.531120300293,
+ "y": 376.1423554420471,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "c2f96fa0.ad15c"
+ ]
+ ]
+ },
+ {
+ "id": "c2f96fa0.ad15c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1841.5310821533203,
+ "y": 369.14236307144165,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "9e90ea61.5694f8"
+ ]
+ ]
+ },
+ {
+ "id": "9e90ea61.5694f8",
+ "type": "set",
+ "name": "set ebs",
+ "xml": "<set>\n<parameter name='prop.sotn.ebs' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2002.864646911621,
+ "y": 370.60352182388306,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "d44eb5ab.296838",
+ "type": "switchNode",
+ "name": "switch colorAware",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'colorAware'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1664.5312042236328,
+ "y": 423.1423726081848,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "b8905300.a37c5"
+ ]
+ ]
+ },
+ {
+ "id": "b8905300.a37c5",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1842.53120803833,
+ "y": 417.1423649787903,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "a701fe84.51e22"
+ ]
+ ]
+ },
+ {
+ "id": "a701fe84.51e22",
+ "type": "set",
+ "name": "set colorAware",
+ "xml": "<set>\n<parameter name='prop.sotn.colorAware' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2023.8645858764648,
+ "y": 416.6035237312317,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "c0af4869.cb2978",
+ "type": "switchNode",
+ "name": "switch couplingFlag",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'couplingFlag'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1664.5312118530273,
+ "y": 469.14239740371704,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "b6ad72cc.3d503"
+ ]
+ ]
+ },
+ {
+ "id": "b6ad72cc.3d503",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1842.5312042236328,
+ "y": 461.1423659324646,
+ "z": "12958f29.9139d1",
+ "wires": [
+ [
+ "189417c4.cf2b18"
+ ]
+ ]
+ },
+ {
+ "id": "189417c4.cf2b18",
+ "type": "set",
+ "name": "set couplingFlag",
+ "xml": "<set>\n<parameter name='prop.sotn.couplingFlag' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2027.8645858764648,
+ "y": 461.6035485267639,
+ "z": "12958f29.9139d1",
+ "wires": []
+ },
+ {
+ "id": "75b2fbdb.c98244",
+ "type": "comment",
+ "name": "TODO: Recheck AAI schemas",
+ "info": "",
+ "comments": "",
+ "x": 709.0312728881836,
+ "y": 65.14243173599243,
+ "z": "12958f29.9139d1",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json
new file mode 100644
index 00000000..41d183e8
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json
@@ -0,0 +1,185 @@
+[
+ {
+ "id": "3ac27f10.3a8f4",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 201,
+ "y": 111,
+ "z": "4bc69b52.b6d424",
+ "wires": [
+ [
+ "a4d35571.5a50a8"
+ ]
+ ]
+ },
+ {
+ "id": "a4d35571.5a50a8",
+ "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": 357.00000381469727,
+ "y": 202.00002193450928,
+ "z": "4bc69b52.b6d424",
+ "wires": [
+ [
+ "227b9b33.0bedd4"
+ ]
+ ]
+ },
+ {
+ "id": "227b9b33.0bedd4",
+ "type": "method",
+ "name": "method sotn-network-topology-operation-deactivate",
+ "xml": "<method rpc='sotn-network-topology-operation-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 345.0001220703125,
+ "y": 290.0000047683716,
+ "z": "4bc69b52.b6d424",
+ "wires": [
+ [
+ "5e6e65c4.2242fc"
+ ]
+ ]
+ },
+ {
+ "id": "5e6e65c4.2242fc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 568.0000762939453,
+ "y": 362.00007820129395,
+ "z": "4bc69b52.b6d424",
+ "wires": [
+ [
+ "d2ec6450.70e238",
+ "e44a5ce1.2a6d1",
+ "ae274e39.92bc9",
+ "368c52e1.6b342e",
+ "1101140b.a4b22c",
+ "2730f4e7.d0214c",
+ "96a05e1e.a91ab",
+ "9cbc0828.b45c18"
+ ]
+ ]
+ },
+ {
+ "id": "d2ec6450.70e238",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 999.6111450195312,
+ "y": 110.33334350585938,
+ "z": "4bc69b52.b6d424",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e44a5ce1.2a6d1",
+ "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=\"sotn-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SOTN-Deactivate\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 804.03125,
+ "y": 153.36459636688232,
+ "z": "4bc69b52.b6d424",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1101140b.a4b22c",
+ "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": 897.0313110351562,
+ "y": 340.9000244140625,
+ "z": "4bc69b52.b6d424",
+ "wires": []
+ },
+ {
+ "id": "9cbc0828.b45c18",
+ "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": 816.8091011047363,
+ "y": 531.4554576873779,
+ "z": "4bc69b52.b6d424",
+ "wires": []
+ },
+ {
+ "id": "2730f4e7.d0214c",
+ "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='PendingDelete' />\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": 861.9202156066895,
+ "y": 403.12221240997314,
+ "z": "4bc69b52.b6d424",
+ "wires": []
+ },
+ {
+ "id": "ae274e39.92bc9",
+ "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": 836.3333549499512,
+ "y": 206.36463260650635,
+ "z": "4bc69b52.b6d424",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "96a05e1e.a91ab",
+ "type": "update",
+ "name": "update SOTN Connectivity status to AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='connectivity-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='PendingDelete' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 896.1387977600098,
+ "y": 462.82540130615234,
+ "z": "4bc69b52.b6d424",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "368c52e1.6b342e",
+ "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": 858.475772857666,
+ "y": 273.6777973175049,
+ "z": "4bc69b52.b6d424",
+ "wires": []
+ },
+ {
+ "id": "44f3a46.f2f575c",
+ "type": "comment",
+ "name": "TODO MP2MP",
+ "info": "Current implementation is for P2P connectivity\nFor MP2MP connectivity in future DG needs to be modified",
+ "comments": "",
+ "x": 1083.5069007873535,
+ "y": 196.6180238723755,
+ "z": "4bc69b52.b6d424",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json
new file mode 100644
index 00000000..2f29f7da
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json
@@ -0,0 +1,173 @@
+[
+ {
+ "id": "e2842db5.a9071",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 107.00390625,
+ "y": 70.00390625,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+ "d0423637.689c18"
+ ]
+ ]
+ },
+ {
+ "id": "d0423637.689c18",
+ "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": 319.00391006469727,
+ "y": 142.0039234161377,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+ "8964c247.35272"
+ ]
+ ]
+ },
+ {
+ "id": "8964c247.35272",
+ "type": "method",
+ "name": "method sotn-network-topology-operation-delete",
+ "xml": "<method rpc='sotn-network-topology-operation-delete' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 307.0040283203125,
+ "y": 230.00390625,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+ "7ece957c.81e36c"
+ ]
+ ]
+ },
+ {
+ "id": "7ece957c.81e36c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 477.44836044311523,
+ "y": 292.44836235046387,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+ "1ccc938f.2f224c",
+ "a9d1874f.281198",
+ "bebcb7e3.f95d48",
+ "f957f73b.5f1c98",
+ "77e06509.a268cc",
+ "ed0dab58.6e6938",
+ "53d6d08a.6aeb8"
+ ]
+ ]
+ },
+ {
+ "id": "1ccc938f.2f224c",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-sotn-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sotn-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 939.3928070068359,
+ "y": 87.00390625,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+
+ ]
+ ]
+ },
+ {
+ "id": "a9d1874f.281198",
+ "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=\"sotn-network-topology-operation-delete\"/>\n<parameter name=\"field3\" value=\"SOTN-Delete\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 752.7816314697266,
+ "y": 153.33727836608887,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+
+ ]
+ ]
+ },
+ {
+ "id": "bebcb7e3.f95d48",
+ "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='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
+ "comments": "",
+ "x": 837.448314666748,
+ "y": 401.4281978607178,
+ "z": "54170a80.42c614",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "f957f73b.5f1c98",
+ "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": 766.5595626831055,
+ "y": 464.9835858345032,
+ "z": "54170a80.42c614",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "ed0dab58.6e6938",
+ "type": "set",
+ "name": "set new network length",
+ "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
+ "comments": "",
+ "x": 796.0809860229492,
+ "y": 278.89910793304443,
+ "z": "54170a80.42c614",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "77e06509.a268cc",
+ "type": "set",
+ "name": "Remove networks from ServiceData",
+ "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.nidx].\" value=\"\"/>\n\n",
+ "comments": "",
+ "x": 836.7051429748535,
+ "y": 326.8670496940613,
+ "z": "54170a80.42c614",
+ "wires": [
+
+ ]
+ },
+ {
+ "id": "53d6d08a.6aeb8",
+ "type": "delete",
+ "name": "delete SOTN VPNInstance connectivity in AAI",
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='connectivity' \n key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 874.6364860534668,
+ "y": 220.01019191741943,
+ "z": "54170a80.42c614",
+ "wires": [
+ [
+
+ ]
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json
new file mode 100644
index 00000000..6bdf1de6
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-reoptimize.json
@@ -0,0 +1,377 @@
+[
+ {
+ "id": "75921ba5.e84f04",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 127,
+ "y": 31,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "67179bf.f30bb64"
+ ]
+ ]
+ },
+ {
+ "id": "67179bf.f30bb64",
+ "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": 345.49999237060547,
+ "y": 111.99999287677929,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "df585947.1b0688"
+ ]
+ ]
+ },
+ {
+ "id": "df585947.1b0688",
+ "type": "method",
+ "name": "sotn-network-topology-operation-reoptimize",
+ "xml": "<method rpc='sotn-network-topology-operation-reoptimize' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 346.5,
+ "y": 165,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "970cf081.0efd5"
+ ]
+ ]
+ },
+ {
+ "id": "970cf081.0efd5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 424.50000762939453,
+ "y": 223.000009059906,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "32a56503.ce58fa",
+ "b0b6546.423eca8",
+ "103fcffc.47e2d",
+ "77dde683.c05af8",
+ "c64a9e95.de368",
+ "f4c6a746.18c888"
+ ]
+ ]
+ },
+ {
+ "id": "32a56503.ce58fa",
+ "type": "set",
+ "name": "set tmp.network.parent-network-id,etc",
+ "xml": "<set>\n<parameter name='tmp.network.network-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='tmp.network.service-instance-id' value='`$network-topology-operation-input.service-information.service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 772.0000152587891,
+ "y": 118.00000476837158,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "21fcd909.4488b6",
+ "type": "comment",
+ "name": "set tmp connectivity-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 841.9603424072266,
+ "y": 83.03180408477783,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "b0b6546.423eca8",
+ "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": 715.9999542236328,
+ "y": 201.00000476837158,
+ "z": "4c77a098.14bed",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "deead92.2e05028",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 811.7380523681641,
+ "y": 166.22217273712158,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "103fcffc.47e2d",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='1' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 926.0000991821289,
+ "y": 283.0000705718994,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "4ff3cba6.0577e4"
+ ]
+ ]
+ },
+ {
+ "id": "4ff3cba6.0577e4",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 897.8459091186523,
+ "y": 339.224645614624,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "efb008da.002a38",
+ "56cd0f49.c1db2",
+ "1e3aa974.204b57",
+ "c0e08604.031d68",
+ "b2b348e8.930c38",
+ "ea908538.cdcb68",
+ "63bd98b8.1ea0d8",
+ "9da5cea0.60ef2",
+ "a382c856.52c0b8",
+ "4d332c82.ad3af4"
+ ]
+ ]
+ },
+ {
+ "id": "efb008da.002a38",
+ "type": "set",
+ "name": "set prop.ar.provided-allotted-resource-id",
+ "xml": "<set>\n<parameter name='prop.ar.provided-allotted-resource-id' value='`$service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id`' />\n\n",
+ "comments": "",
+ "x": 1167.8153915405273,
+ "y": 322.02744245529175,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "56cd0f49.c1db2",
+ "type": "execute",
+ "name": "generate tmp.ar-url-connection 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-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value='`$prop.ar.provided-allotted-resource-id`'/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1156.815284729004,
+ "y": 374.5724229812622,
+ "z": "4c77a098.14bed",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1e3aa974.204b57",
+ "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-connection`' />\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-providedAr\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1297.8151321411133,
+ "y": 430.2390090227127,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "4145e899.11bf48",
+ "75032056.67182"
+ ]
+ ]
+ },
+ {
+ "id": "4145e899.11bf48",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1673.185203552246,
+ "y": 430.7611274719238,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "a6a898ea.1345e8"
+ ]
+ ]
+ },
+ {
+ "id": "75032056.67182",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1665.0370063781738,
+ "y": 465.8272123336792,
+ "z": "4c77a098.14bed",
+ "wires": [
+ [
+ "b38b08ff.bf1c28"
+ ]
+ ]
+ },
+ {
+ "id": "a6a898ea.1345e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1804.1852989196777,
+ "y": 430.7611885070801,
+ "z": "4c77a098.14bed",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b38b08ff.bf1c28",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n \n",
+ "comments": "",
+ "x": 1811.1857872009277,
+ "y": 465.0946235656738,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "ea908538.cdcb68",
+ "type": "set",
+ "name": "set model-data to input",
+ "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.onap-model-information.` \" />",
+ "comments": "",
+ "x": 1138.0001907348633,
+ "y": 565.0000371932983,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "b2b348e8.930c38",
+ "type": "set",
+ "name": "set connection-attachment-ar-identifiers to input",
+ "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.service-information.service-instance-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.parent-service-instance-id` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-type` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-id` \" />\n",
+ "comments": "",
+ "x": 1213.301872253418,
+ "y": 527.0159864425659,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "c0e08604.031d68",
+ "type": "set",
+ "name": "set ar-data to input",
+ "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-status.action` \" />\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-status.rpc-action` \" />\n<parameter name='connection-attachment-topology-operation-input.request-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.request-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.service-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.connection-attachment-request-input.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.` \" />\n",
+ "comments": "",
+ "x": 1120.1586456298828,
+ "y": 485.8253927230835,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "4d332c82.ad3af4",
+ "type": "call",
+ "name": "call sotn-attachment-topology-operation-activate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-activate' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1214.0001945495605,
+ "y": 740.0000486373901,
+ "z": "4c77a098.14bed",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9da5cea0.60ef2",
+ "type": "call",
+ "name": "call sotn-attachment-topology-operation-deactivate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-deactivate' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1223.0002746582031,
+ "y": 649.0000429153442,
+ "z": "4c77a098.14bed",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a382c856.52c0b8",
+ "type": "set",
+ "name": "set request-action and svc-action",
+ "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"activate\" />\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"ActivateSOTNAttachmentInstance\" />\n\n\n",
+ "comments": "",
+ "x": 1169.0002746582031,
+ "y": 694.0000457763672,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "63bd98b8.1ea0d8",
+ "type": "set",
+ "name": "set request-action and svc-action",
+ "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"deactivate\" />\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"DeactivateSOTNAttachmentInstance\" />\n<parameter name='connection-attachment-topology-operation-input.service-information.global-customer-id' value=\"`$service-data.service-information.global-customer-id` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.subscription-service-type' value=\"`$service-data.service-information.subscription-service-type` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.subscriber-name' value=\"`$service-data.service-information.subscriber-name` \" />",
+ "comments": "",
+ "x": 1169.000114440918,
+ "y": 608.0000410079956,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "77dde683.c05af8",
+ "type": "set",
+ "name": "set service-data in tmp var",
+ "xml": "<set>\n<parameter name = 'tmp.service-data.' value=\"`$service-data.`\"/>\n",
+ "comments": "",
+ "x": 734.0001983642578,
+ "y": 237.00009441375732,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "c64a9e95.de368",
+ "type": "set",
+ "name": "set tmp.service-data to service-data",
+ "xml": "<set>\n<parameter name = 'service-data. ' value = \"`$tmp.service-data.`\"/>\n",
+ "comments": "",
+ "x": 837.0003814697266,
+ "y": 816.0001068115234,
+ "z": "4c77a098.14bed",
+ "wires": []
+ },
+ {
+ "id": "f4c6a746.18c888",
+ "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": 758.0001831054688,
+ "y": 860.0000267028809,
+ "z": "4c77a098.14bed",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_validate-sotn-network-input-parameters.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_validate-sotn-network-input-parameters.json
new file mode 100644
index 00000000..f7ddb437
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_validate-sotn-network-input-parameters.json
@@ -0,0 +1,1201 @@
+[
+ {
+ "id": "e0ea16ce.30b528",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 129,
+ "y": 55.76192092895508,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "421503a6.f5b1fc"
+ ]
+ ]
+ },
+ {
+ "id": "421503a6.f5b1fc",
+ "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": 374.2857131958008,
+ "y": 55,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "39c1834a.bed64c"
+ ]
+ ]
+ },
+ {
+ "id": "39c1834a.bed64c",
+ "type": "method",
+ "name": "validate-sotn-network-input-parameters",
+ "xml": "<method rpc='validate-sotn-network-input-parameters' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 331.91668701171875,
+ "y": 130.0149383544922,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "8c035f21.9908d"
+ ]
+ ]
+ },
+ {
+ "id": "8c035f21.9908d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 615.9166946411133,
+ "y": 118.01496315002441,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "71b449ba.b5b6e8",
+ "58081ff8.7b99b"
+ ]
+ ]
+ },
+ {
+ "id": "71b449ba.b5b6e8",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 896.9166946411133,
+ "y": 113.01494884490967,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "2e891b63.abe3c4"
+ ]
+ ]
+ },
+ {
+ "id": "2e891b63.abe3c4",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1087.6309967041016,
+ "y": 114.01494979858398,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "87e5a766.06c0f8"
+ ]
+ ]
+ },
+ {
+ "id": "87e5a766.06c0f8",
+ "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
+ "comments": "",
+ "x": 1262.0595474243164,
+ "y": 113.01494216918945,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "58081ff8.7b99b",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 197.91664123535156,
+ "y": 389.0149631500244,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "244d88a8.8b34f8",
+ "ed647530.fd1808",
+ "e7e5dea9.76643",
+ "e66827c9.add5d8",
+ "708e7f97.f011a"
+ ]
+ ]
+ },
+ {
+ "id": "244d88a8.8b34f8",
+ "type": "outcome",
+ "name": "create",
+ "xml": "<outcome value='create'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 406.50001525878906,
+ "y": 218.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "77a0c94f.323ad8"
+ ]
+ ]
+ },
+ {
+ "id": "77a0c94f.323ad8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 567.5000152587891,
+ "y": 218.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "45b5c3e7.7e8fdc"
+ ]
+ ]
+ },
+ {
+ "id": "ed647530.fd1808",
+ "type": "outcome",
+ "name": "deactivate",
+ "xml": "<outcome value='deactivate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 379.49200439453125,
+ "y": 827.1904592514038,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "d552d87c.91c978"
+ ]
+ ]
+ },
+ {
+ "id": "e7e5dea9.76643",
+ "type": "outcome",
+ "name": "delete",
+ "xml": "<outcome value='delete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 383.2063865661621,
+ "y": 997.9050168991089,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "dfce9d99.75939"
+ ]
+ ]
+ },
+ {
+ "id": "e66827c9.add5d8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 382.96827697753906,
+ "y": 1171.3333024978638,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "25d5e03b.c57d5"
+ ]
+ ]
+ },
+ {
+ "id": "25d5e03b.c57d5",
+ "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=\"`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
+ "comments": "",
+ "x": 566.5398101806641,
+ "y": 1171.9524431228638,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "45b5c3e7.7e8fdc",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 791.0000152587891,
+ "y": 218.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "5607ba9c.a01254",
+ "5b72d140.94b19"
+ ]
+ ]
+ },
+ {
+ "id": "5607ba9c.a01254",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 966.5000152587891,
+ "y": 238.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "e3e018a8.e54428"
+ ]
+ ]
+ },
+ {
+ "id": "e3e018a8.e54428",
+ "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=\"request-information.request-action is required to be SOTN CreateVPNNetworkInstance for svc-action=create\" />\n",
+ "comments": "",
+ "x": 1104.000015258789,
+ "y": 238.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "c81e309.24d38d",
+ "type": "other",
+ "name": "DeleteSOTNConnectivityInstance",
+ "xml": "<outcome value='DeleteSOTNConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 805.0634269714355,
+ "y": 998.4602870941162,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "b9972944.66ec38"
+ ]
+ ]
+ },
+ {
+ "id": "b2f524af.680db8",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 740.6189727783203,
+ "y": 1070.6825561523438,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "ced4fad3.246c68"
+ ]
+ ]
+ },
+ {
+ "id": "ced4fad3.246c68",
+ "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=\"request-information.request-action is required to be SOTN DeleteVPNNetworkInstance for svc-action=delete\" />\n",
+ "comments": "",
+ "x": 900.952392578125,
+ "y": 1072.7936935424805,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "b9972944.66ec38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1048.9523010253906,
+ "y": 1000.682538986206,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "61c91a24.083064",
+ "fa32e176.13d09",
+ "11242577.05a18b",
+ "5728f3e8.67ddbc"
+ ]
+ ]
+ },
+ {
+ "id": "708e7f97.f011a",
+ "type": "outcome",
+ "name": "activate",
+ "xml": "<outcome value='activate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 400.4285697937012,
+ "y": 481.47623348236084,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "96fbea47.53b048"
+ ]
+ ]
+ },
+ {
+ "id": "96fbea47.53b048",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 583.2857360839844,
+ "y": 478.619083404541,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "74c54cdd.16f624",
+ "eb74a3dc.cd3c3"
+ ]
+ ]
+ },
+ {
+ "id": "74c54cdd.16f624",
+ "type": "other",
+ "name": "ActivateSOTNConnectivityInstance",
+ "xml": "<outcome value='ActivateSOTNConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 836.5000152587891,
+ "y": 458.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "5309ed2f.aa6f94"
+ ]
+ ]
+ },
+ {
+ "id": "eb74a3dc.cd3c3",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 766.5000152587891,
+ "y": 498.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "dce7936d.fb9c7"
+ ]
+ ]
+ },
+ {
+ "id": "dce7936d.fb9c7",
+ "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=\"request-information.request-action is required to be SOTN ActivateVPNNetworkInstance for svc-action=activate\" />\n",
+ "comments": "",
+ "x": 924.0000152587891,
+ "y": 498.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "5309ed2f.aa6f94",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1067.500015258789,
+ "y": 458.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "11242577.05a18b",
+ "61c91a24.083064",
+ "fa32e176.13d09",
+ "decc2f59.1541d"
+ ]
+ ]
+ },
+ {
+ "id": "f16eb507.dd9548",
+ "type": "other",
+ "name": "DeactivateSOTNConnectivityInstance",
+ "xml": "<outcome value='DeactivateSOTNConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 822.9206314086914,
+ "y": 828.9048528671265,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "a0749457.21f388"
+ ]
+ ]
+ },
+ {
+ "id": "a74c9bd7.c78918",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 737.9206237792969,
+ "y": 897.904860496521,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "432b7019.21a33"
+ ]
+ ]
+ },
+ {
+ "id": "432b7019.21a33",
+ "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=\"request-information.request-action is required to be SOTN DeactivateVPNNetworkInstance for svc-action=deactivate\" />\n",
+ "comments": "",
+ "x": 918.9206390380859,
+ "y": 898.904860496521,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "d552d87c.91c978",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 559.7776870727539,
+ "y": 829.3806867599487,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "f16eb507.dd9548",
+ "a74c9bd7.c78918"
+ ]
+ ]
+ },
+ {
+ "id": "dfce9d99.75939",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 563.5554885864258,
+ "y": 997.7142407894135,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "c81e309.24d38d",
+ "b2f524af.680db8"
+ ]
+ ]
+ },
+ {
+ "id": "a0749457.21f388",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1065.8887939453125,
+ "y": 828.7142333984375,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "61c91a24.083064",
+ "fa32e176.13d09",
+ "11242577.05a18b",
+ "260e1e66.250fe2"
+ ]
+ ]
+ },
+ {
+ "id": "5b72d140.94b19",
+ "type": "other",
+ "name": "CreateSOTNConnectivityInstance",
+ "xml": "<outcome value='CreateSOTNConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1032.500015258789,
+ "y": 198.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "71db169.8db0ce8"
+ ]
+ ]
+ },
+ {
+ "id": "71db169.8db0ce8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1247.500015258789,
+ "y": 198.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "555e685a.dea178"
+ ]
+ ]
+ },
+ {
+ "id": "555e685a.dea178",
+ "type": "for",
+ "name": "for loop i - Network input parameters",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1498.000015258789,
+ "y": 198.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "b5d38a93.c445f8"
+ ]
+ ]
+ },
+ {
+ "id": "b5d38a93.c445f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1726.500015258789,
+ "y": 198.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "663493d6.882fcc",
+ "25318af6.c353a6",
+ "2f66aae0.b823b6"
+ ]
+ ]
+ },
+ {
+ "id": "663493d6.882fcc",
+ "type": "set",
+ "name": "clear tmp-data",
+ "xml": "<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n",
+ "comments": "",
+ "x": 1909.500015258789,
+ "y": 158.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "25318af6.c353a6",
+ "type": "set",
+ "name": "set tmp-data",
+ "xml": "<set>\n<parameter name='tmp.name' value=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$i].name`\"/>\n<parameter name='tmp.value' value=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$i].value`\"/>\n",
+ "comments": "",
+ "x": 1904.000015258789,
+ "y": 198.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "2f66aae0.b823b6",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$tmp.name`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1904.000015258789,
+ "y": 238.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "eb2e473.c9088b8",
+ "b4eb27a6.d1dc38",
+ "db337906.a847b8"
+ ]
+ ]
+ },
+ {
+ "id": "e4f121ba.30fe6",
+ "type": "switchNode",
+ "name": "switch value",
+ "xml": "<switch test=\"`$tmp.value`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2364.0001831054688,
+ "y": 190.42861139774323,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "a8215ff9.64a2b"
+ ]
+ ]
+ },
+ {
+ "id": "db337906.a847b8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2123.5003509521484,
+ "y": 256.4285989999771,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "9b19d225.785e"
+ ]
+ ]
+ },
+ {
+ "id": "9b19d225.785e",
+ "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=\"`'network-topology-operation-input.network-request-input.network-input-parameters.param[' + $i + ']' + '.name is a required input'`\" />\n",
+ "comments": "",
+ "x": 2298.5003547668457,
+ "y": 255.4285989999771,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "eb2e473.c9088b8",
+ "type": "other",
+ "name": "name",
+ "xml": "<outcome value='name'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2123.5003509521484,
+ "y": 140.4285932779312,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "e4f121ba.30fe6"
+ ]
+ ]
+ },
+ {
+ "id": "b4eb27a6.d1dc38",
+ "type": "other",
+ "name": "description",
+ "xml": "<outcome value='description'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2135.5001068115234,
+ "y": 194.09525549411774,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "e4f121ba.30fe6"
+ ]
+ ]
+ },
+ {
+ "id": "a8215ff9.64a2b",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2507.5001831054688,
+ "y": 190.42861139774323,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "12290ec0.ce8691"
+ ]
+ ]
+ },
+ {
+ "id": "12290ec0.ce8691",
+ "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=\"`'network-request-input.network-input-parameters.param '+ $tmp.name +' is a required input'`\" />\n",
+ "comments": "",
+ "x": 2665.5001831054688,
+ "y": 190.42861139774323,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "11242577.05a18b",
+ "type": "switchNode",
+ "name": "switch service-data.networks.network_length",
+ "xml": "<switch test='`$service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1372.3888778686523,
+ "y": 501.7619037628174,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "58eed4d5.00134c",
+ "e4c0c5bb.6ddd38"
+ ]
+ ]
+ },
+ {
+ "id": "58eed4d5.00134c",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1626.000015258789,
+ "y": 478.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "5cea3771.9a9808"
+ ]
+ ]
+ },
+ {
+ "id": "5cea3771.9a9808",
+ "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
+ "comments": "",
+ "x": 1804.000015258789,
+ "y": 478.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "e4c0c5bb.6ddd38",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1606.500015258789,
+ "y": 518.4285907745361,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "134578c4.184aa7"
+ ]
+ ]
+ },
+ {
+ "id": "134578c4.184aa7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1767.500015258789,
+ "y": 518.4285907745361,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "c72c7291.2c7c8",
+ "78223b76.7839b4"
+ ]
+ ]
+ },
+ {
+ "id": "c72c7291.2c7c8",
+ "type": "for",
+ "name": "for nidx..service-data.networks.network[]",
+ "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2030.000015258789,
+ "y": 498.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "982e1437.a4b908"
+ ]
+ ]
+ },
+ {
+ "id": "982e1437.a4b908",
+ "type": "switchNode",
+ "name": "switch networkid found",
+ "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2316.000015258789,
+ "y": 498.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "ac9a1fa9.bdd22"
+ ]
+ ]
+ },
+ {
+ "id": "ac9a1fa9.bdd22",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2486.500015258789,
+ "y": 498.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "ec9e80f0.5ec38"
+ ]
+ ]
+ },
+ {
+ "id": "6fad3509.6130ec",
+ "type": "set",
+ "name": "set tmp.nidx and ctx.network-data",
+ "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].network-data.`' />\n",
+ "comments": "",
+ "x": 2883.5,
+ "y": 501.4286193847656,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "93e38c19.231d",
+ "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
+ "comments": "",
+ "x": 2244.000015258789,
+ "y": 538.4285907745361,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "428fac3b.062274",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2106.500015258789,
+ "y": 538.4285907745361,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "93e38c19.231d"
+ ]
+ ]
+ },
+ {
+ "id": "78223b76.7839b4",
+ "type": "switchNode",
+ "name": "switch tmp.nidx ",
+ "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1952.500015258789,
+ "y": 538.4285907745361,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "428fac3b.062274"
+ ]
+ ]
+ },
+ {
+ "id": "decc2f59.1541d",
+ "type": "switchNode",
+ "name": "switch network-level-oper-status",
+ "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1331.6667022705078,
+ "y": 577.3174686431885,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "f48d98e8.f89ba8",
+ "184fe59.3a0381a"
+ ]
+ ]
+ },
+ {
+ "id": "f48d98e8.f89ba8",
+ "type": "outcome",
+ "name": "outcome Created",
+ "xml": "<outcome value='Created'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628.5001182556152,
+ "y": 577.3174667358398,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "a8cf04ce.747cb8"
+ ]
+ ]
+ },
+ {
+ "id": "184fe59.3a0381a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1596.5001182556152,
+ "y": 617.3174667358398,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "3cd001a0.c45e6e"
+ ]
+ ]
+ },
+ {
+ "id": "3cd001a0.c45e6e",
+ "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=\"`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+ "comments": "",
+ "x": 1754.0001182556152,
+ "y": 617.3174667358398,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "fa32e176.13d09",
+ "type": "switchNode",
+ "name": "switch network-id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-information.network-id`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1278.500015258789,
+ "y": 438.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "d8c5d1a3.b04f7"
+ ]
+ ]
+ },
+ {
+ "id": "d8c5d1a3.b04f7",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.500015258789,
+ "y": 438.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "4b563acc.78f384"
+ ]
+ ]
+ },
+ {
+ "id": "4b563acc.78f384",
+ "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=\"network-request-input.network-input-parameters.name is a required input\" />\n",
+ "comments": "",
+ "x": 1644.000015258789,
+ "y": 438.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "61c91a24.083064",
+ "type": "execute",
+ "name": "execute requiredParameters",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"network-topology-operation-input.network-information.network-id\" value=\"$network-topology-operation-input.network-information.network-id\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1313.000015258789,
+ "y": 398.42859077453613,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "260e1e66.250fe2",
+ "type": "switchNode",
+ "name": "switch network-level-oper-status",
+ "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1359.833267211914,
+ "y": 827.3174457550049,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "91b37393.c0324",
+ "ffe16248.a4bf"
+ ]
+ ]
+ },
+ {
+ "id": "91b37393.c0324",
+ "type": "outcome",
+ "name": "outcome Active",
+ "xml": "<outcome value='Active'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1633.1666412353516,
+ "y": 801.7619037628174,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "809f3296.9b18a"
+ ]
+ ]
+ },
+ {
+ "id": "ffe16248.a4bf",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1603.1666412353516,
+ "y": 841.7619037628174,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "4b27e236.5ebf5c"
+ ]
+ ]
+ },
+ {
+ "id": "4b27e236.5ebf5c",
+ "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=\"`'Network is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+ "comments": "",
+ "x": 1769.1666412353516,
+ "y": 843.7619037628174,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "5728f3e8.67ddbc",
+ "type": "switchNode",
+ "name": "switch network-level-oper-status",
+ "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1348.722183227539,
+ "y": 998.4285297393799,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "56251f9.92115e",
+ "5f1c70a5.5c197"
+ ]
+ ]
+ },
+ {
+ "id": "56251f9.92115e",
+ "type": "outcome",
+ "name": "outcome PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1648.7222442626953,
+ "y": 966.2063255310059,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "a83a5460.627c38"
+ ]
+ ]
+ },
+ {
+ "id": "5f1c70a5.5c197",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1592.0555572509766,
+ "y": 1012.8729877471924,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "91838c11.18855"
+ ]
+ ]
+ },
+ {
+ "id": "91838c11.18855",
+ "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=\"`'Network is not in appropriate state for delete. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+ "comments": "",
+ "x": 1758.0555572509766,
+ "y": 1014.8729877471924,
+ "z": "86a643d3.ad3a2",
+ "wires": []
+ },
+ {
+ "id": "a8cf04ce.747cb8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1816.4999961853027,
+ "y": 578.4285507202148,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "809f3296.9b18a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1833.166519165039,
+ "y": 799.9100360870361,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a83a5460.627c38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1864.2777252197266,
+ "y": 966.5766620635986,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ec9e80f0.5ec38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2636.6665267944336,
+ "y": 494.7619390487671,
+ "z": "86a643d3.ad3a2",
+ "wires": [
+ [
+ "6fad3509.6130ec"
+ ]
+ ]
+ }
+]