SDWAN bandwidth update DG. 61/83861/1
authorshashikanth.vh <shashikanth.vh@huawei.com>
Mon, 1 Apr 2019 13:07:16 +0000 (18:37 +0530)
committershashikanth.vh <shashikanth.vh@huawei.com>
Mon, 1 Apr 2019 13:10:25 +0000 (18:40 +0530)
Change-Id: I4a933ae8297e4a27fa72ed53705aa8536e12f219
Issue-ID: SDNC-653
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Former-commit-id: 62721594686caa7ebe0967c7b94fd3e26dafa211

platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-bandwidth-policy-change.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-bandwidth-policy-change.xml [new file with mode: 0644]

diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-bandwidth-policy-change.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-bandwidth-policy-change.json
new file mode 100644 (file)
index 0000000..f9f7a42
--- /dev/null
@@ -0,0 +1,1990 @@
+[\r
+    {\r
+        "id": "2f944e3f.133922",\r
+        "type": "method",\r
+        "name": "method sdwan-bandwidth-policy-change",\r
+        "xml": "<method rpc='sdwan-bandwidth-policy-change' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 228,\r
+        "y": 177.58634185791016,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "ab448c0a.7a72d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5904683.1a03e8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 117,\r
+        "y": 32.00000190734863,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "6bc6460b.0fa818"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6bc6460b.0fa818",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 216.28570556640625,\r
+        "y": 83.23810958862305,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "2f944e3f.133922"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab448c0a.7a72d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 176.6666717529297,\r
+        "y": 459.6667175292969,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "12f15f6d.9827f1",\r
+                "fe00d9f.b56fd28",\r
+                "6684c99a.7427e8",\r
+                "2af6c94c.af19e6",\r
+                "e293366.5ca59c8",\r
+                "ed22f7f1.ec7288",\r
+                "1a81feba.045cb1",\r
+                "565469d0.7320a8",\r
+                "6d629a7b.45bc64",\r
+                "a9a5c4dd.f02338",\r
+                "b2fc342f.6c0b68",\r
+                "23f3a49a.a36dac",\r
+                "325ec5e8.8f682a",\r
+                "fb6cf9c5.202108",\r
+                "df7c0c81.e6dd8",\r
+                "95135039.a60aa",\r
+                "e76d9029.37f13",\r
+                "55e5acbf.fe5b24",\r
+                "bf167ea6.f9992",\r
+                "89ecf7ea.f65c78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe00d9f.b56fd28",\r
+        "type": "for",\r
+        "name": "for each vnf",\r
+        "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 554.0313873291016,\r
+        "y": 257.26914978027344,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "12817250.a42a3e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12f15f6d.9827f1",\r
+        "type": "switchNode",\r
+        "name": "switch vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 565.0000190734863,\r
+        "y": 196.00001049041748,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "b500c350.6e3d9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b500c350.6e3d9",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 745,\r
+        "y": 195,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "805afe4f.d6084"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "805afe4f.d6084",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 894.4287261962891,\r
+        "y": 196.14291763305664,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "12817250.a42a3e",\r
+        "type": "switchNode",\r
+        "name": "switch this vnf-id == input vnf-id",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 783.0000152587891,\r
+        "y": 258.00000619888306,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "b6a1534.58369b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b6a1534.58369b",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 998,\r
+        "y": 256,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "3bca8e45.080102"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3bca8e45.080102",\r
+        "type": "set",\r
+        "name": "set vnf-index",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
+        "comments": "",\r
+        "x": 1162,\r
+        "y": 251,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6684c99a.7427e8",\r
+        "type": "set",\r
+        "name": "set prop.siteAttachement_length=0",\r
+        "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",\r
+        "comments": "",\r
+        "x": 586.2857360839844,\r
+        "y": 573.3333435058594,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2af6c94c.af19e6",\r
+        "type": "for",\r
+        "name": "for vf-modules.vf-module_length",\r
+        "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 581.0312652587891,\r
+        "y": 725.531270980835,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "27cc261.a1c4eda"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27cc261.a1c4eda",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 741.0312728881836,\r
+        "y": 802.5312714576721,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "25c1741b.71156c",\r
+                "f476b4c1.90d488",\r
+                "38661728.f30148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25c1741b.71156c",\r
+        "type": "switchNode",\r
+        "name": "switch ActivateSDWANDeviceInstance",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1036.0000305175781,\r
+        "y": 726.0000219345093,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "d5c6abe5.2055e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5c6abe5.2055e8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1257.999870300293,\r
+        "y": 725.000020980835,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "2cf625ba.b60eba"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cf625ba.b60eba",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1402.3333740234375,\r
+        "y": 724.0000219345093,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "139b09d6.445b26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "139b09d6.445b26",\r
+        "type": "for",\r
+        "name": "for loop didx - Get deviceId from servicedata",\r
+        "xml": "<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1665.3334197998047,\r
+        "y": 765.9999008178711,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "21359c3d.902a24"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21359c3d.902a24",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1594.6663208007812,\r
+        "y": 849.6666679382324,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "b1f8674.56f5f98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1f8674.56f5f98",\r
+        "type": "switchNode",\r
+        "name": "switch name (DeviceName)",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$didx].name == 'name'`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1799.3342399597168,\r
+        "y": 858.0001764297485,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "708fccb5.daf804"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "708fccb5.daf804",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2022.3346977233887,\r
+        "y": 839.0002365112305,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "eb8a8320.4a5de"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb8a8320.4a5de",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1760.6675491333008,\r
+        "y": 940.0002403259277,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "f39deed1.3e3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f39deed1.3e3c",\r
+        "type": "switchNode",\r
+        "name": "switch deviceName match",\r
+        "xml": "<switch test=\"`$prop.wan.deviceName == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$didx].value`\">\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1966.3342742919922,\r
+        "y": 941.0003042221069,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "bb4cb546.fc5c48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb4cb546.fc5c48",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1735.668342590332,\r
+        "y": 1007.0003929138184,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "f77de57f.61b768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f77de57f.61b768",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1885.0003128051758,\r
+        "y": 1012.0001487731934,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "93f703bf.f8f44",\r
+                "a140338b.f48e2",\r
+                "a367096a.4c3508"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93f703bf.f8f44",\r
+        "type": "for",\r
+        "name": "for loop deviceidx - Get deviceId from servicedata",\r
+        "xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2156.197494506836,\r
+        "y": 983.0313453674316,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "16b92c49.0550e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a140338b.f48e2",\r
+        "type": "set",\r
+        "name": "set tmp.devicevidx",\r
+        "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vfidx`' />\n\n",\r
+        "comments": "",\r
+        "x": 2073.9994049072266,\r
+        "y": 1023.0001039505005,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "16b92c49.0550e4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2321.1983489990234,\r
+        "y": 1035.0314292907715,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "2c030d38.c88f02",\r
+                "27a33e60.c61c12"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c030d38.c88f02",\r
+        "type": "switchNode",\r
+        "name": "switch deviceId",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2336.6680221557617,\r
+        "y": 1077.6669998168945,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "cfe51c42.c396a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2afdbf0.691fd8",\r
+        "type": "comment",\r
+        "name": "Get deviceId from device resource created for this service",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2164.333366394043,\r
+        "y": 908.3332514762878,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cfe51c42.c396a",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2489.6683921813965,\r
+        "y": 1078.6670770645142,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "c26a319e.7f774"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c26a319e.7f774",\r
+        "type": "set",\r
+        "name": "set prop.wan.deviceId",\r
+        "xml": "<set>\n<parameter name='prop.wan.deviceId' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$deviceidx].value`' />\n",\r
+        "comments": "",\r
+        "x": 2658.6689987182617,\r
+        "y": 1077.2671117782593,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f476b4c1.90d488",\r
+        "type": "switchNode",\r
+        "name": "switch ActivateSiteInstance",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSiteInstance'`\">\n\n    \n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 989.6666870117188,\r
+        "y": 786.666690826416,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "b3e07a22.de09f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3e07a22.de09f8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1183.666862487793,\r
+        "y": 785.6667108535767,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "b9aff3fc.b88e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b9aff3fc.b88e",\r
+        "type": "set",\r
+        "name": "set tmp.siteVidx",\r
+        "xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vfidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].`' />",\r
+        "comments": "",\r
+        "x": 1346.6662979125977,\r
+        "y": 782.666711807251,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "55e5acbf.fe5b24",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.wanPortVidx",\r
+        "xml": "<switch test=\"`$tmp.wanPortVidx`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 567.0002365112305,\r
+        "y": 842.0002207756042,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "51af758e.d4a8ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf167ea6.f9992",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.siteVidx",\r
+        "xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 551.984489440918,\r
+        "y": 886.9965887069702,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "d0596a3e.d0abe8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89ecf7ea.f65c78",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.devicevidx",\r
+        "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 563.651237487793,\r
+        "y": 931.9965581893921,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "46e578eb.e7f2e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46e578eb.e7f2e8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 742.0798377990723,\r
+        "y": 932.5679111480713,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "7c5cc100.4ca9a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0596a3e.d0abe8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 735.4131698608398,\r
+        "y": 885.5678281784058,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "c0c0caa4.6e3d18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "51af758e.d4a8ec",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 737.4289398193359,\r
+        "y": 844.5715956687927,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "c3788885.5a3728"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3788885.5a3728",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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=\"ActivateSDWANPortInstance not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 878.8580017089844,\r
+        "y": 844.7145147323608,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c0c0caa4.6e3d18",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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=\"ActivateSiteInstance not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 879.8421325683594,\r
+        "y": 885.710732460022,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c5cc100.4ca9a",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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=\"ActivateSDWANDeviceInstance not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 888.508623123169,\r
+        "y": 931.7109107971191,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e293366.5ca59c8",\r
+        "type": "for",\r
+        "name": "for loop sidx - Get siteId from servicedata",\r
+        "xml": "<for index=\"sidx\" start=\"0\" end=\"`$ctx.site.vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`\">\n    \n    \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 628,\r
+        "y": 996.0000038146973,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "42f26061.cc632"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42f26061.cc632",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 890.0101928710938,\r
+        "y": 996.6768283843994,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "cb46a81.d18b858"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb46a81.d18b858",\r
+        "type": "switchNode",\r
+        "name": "switch siteId",\r
+        "xml": "<switch test=\"`$ctx.site.vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].name == 'siteId'`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1059.0003280639648,\r
+        "y": 997.0001344680786,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "a653a5d0.84bc78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a653a5d0.84bc78",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1197.0007858276367,\r
+        "y": 995.0001192092896,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "53153bf4.922eb4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "53153bf4.922eb4",\r
+        "type": "set",\r
+        "name": "set prop.wan.siteId",\r
+        "xml": "<set>\n<parameter name='prop.wan.siteId' value='`$ctx.site.vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].value`' />\n\n\n",\r
+        "comments": "",\r
+        "x": 1361.000820159912,\r
+        "y": 996.5999727249146,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7b2acf1d.5d2c4",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Get token",\r
+        "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\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 611,\r
+        "y": 1169.3333778381348,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "1d80bee.50bc541",\r
+                "eb5f900d.dda61"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "56ffc8fe.295058",\r
+        "type": "get-resource",\r
+        "name": "get-resource esr-thirdparty-sdnc",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 597.0617713928223,\r
+        "y": 1086.2122583389282,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "2d46ac01.fa3384",\r
+                "c3235371.70f16",\r
+                "11a49df.fe69062"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d46ac01.fa3384",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 832.0618362426758,\r
+        "y": 1050.212275505066,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "ec636fec.ea999"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3235371.70f16",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 834.5527191162109,\r
+        "y": 1085.7863121032715,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "1b1255b3.3b49aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11a49df.fe69062",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 829.8857269287109,\r
+        "y": 1122.11967086792,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "5e1f1c91.441454"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b1255b3.3b49aa",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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",\r
+        "comments": "",\r
+        "x": 980.1241149902344,\r
+        "y": 1084.0719995498657,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ec636fec.ea999",\r
+        "type": "set",\r
+        "name": "set controller data",\r
+        "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",\r
+        "comments": "",\r
+        "x": 992.5619468688965,\r
+        "y": 1048.212215423584,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1d80bee.50bc541",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 846.0001258850098,\r
+        "y": 1155.333366394043,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "f4c3c5fd.2e8218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb5f900d.dda61",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 845.2501258850098,\r
+        "y": 1190.9762735366821,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "e10df217.332b2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e10df217.332b2",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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",\r
+        "comments": "",\r
+        "x": 994.0001335144043,\r
+        "y": 1191.7263555526733,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f4c3c5fd.2e8218",\r
+        "type": "set",\r
+        "name": "set token-id",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
+        "comments": "",\r
+        "x": 988.0001335144043,\r
+        "y": 1154.3333673477173,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ed22f7f1.ec7288",\r
+        "type": "set",\r
+        "name": "set prop.tenant-id",\r
+        "xml": "<set>\n<parameter name='prop.tenant-id' value='d9511b64-61ae-446e-96a1-6adbff09582c' />\n",\r
+        "comments": "",\r
+        "x": 552.9999847412109,\r
+        "y": 1214.6250553131104,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fb6cf9c5.202108",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create tenant auth",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 634.9999961853027,\r
+        "y": 1256.6249332427979,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e1f1c91.441454",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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",\r
+        "comments": "",\r
+        "x": 983.6582183837891,\r
+        "y": 1119.5587577819824,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2fc342f.6c0b68",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 496,\r
+        "y": 1733.999966621399,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "be4cbaa5.a17bc8",\r
+        "type": "set",\r
+        "name": "set prop.wan.transportNetworkId",\r
+        "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n",\r
+        "comments": "",\r
+        "x": 1450.656608581543,\r
+        "y": 1367.6559944152832,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a3594760.3045f8",\r
+        "type": "switchNode",\r
+        "name": "switch transportNetworkName same",\r
+        "xml": "<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1030.666259765625,\r
+        "y": 1368.3323431015015,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "2217267e.e3931a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2217267e.e3931a",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1243.6657104492188,\r
+        "y": 1368.3322610855103,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "be4cbaa5.a17bc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab99bc56.03a1f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 817.6660118103027,\r
+        "y": 1368.9990720748901,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "a3594760.3045f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95135039.a60aa",\r
+        "type": "for",\r
+        "name": "for loop tidx - Get transportNetwork ID",\r
+        "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n    \n    \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 593.6655960083008,\r
+        "y": 1368.9987926483154,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "ab99bc56.03a1f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bc190905.6bdb08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1095.6652336120605,\r
+        "y": 1324.6654443740845,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ce813dcf.485f7",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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 transport network info rest api\" />\n",\r
+        "comments": "",\r
+        "x": 1084.66548538208,\r
+        "y": 1280.6654481887817,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ee008d39.43008",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 942.665153503418,\r
+        "y": 1281.6654481887817,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "ce813dcf.485f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "719fe2a2.cae46c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 938.6652297973633,\r
+        "y": 1325.6657705307007,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "bc190905.6bdb08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df7c0c81.e6dd8",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode get transport network info",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"transportNetworksResp\"/>\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`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 650.6655883789062,\r
+        "y": 1330.6659331321716,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "719fe2a2.cae46c",\r
+                "ee008d39.43008"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a9a5c4dd.f02338",\r
+        "type": "save",\r
+        "name": "save sdwan vpn bandwidth configuration in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='bandwidth-history' \n      key='sdwan-bandwidth-policy-id = $prop.bandwidth.bandwidth-policyId' >\n<parameter name=\"sdwan-bandwidth-policy-id\" value=\"`$prop.bandwidth.bandwidth-policyId`\" />\n<parameter name=\"sdwan-bandwidth-policy-name\" value=\"`$prop.bandwidth.bandwidth-policyId`\" />\n<parameter name=\"bandwidth-value\" value=\"`$prop.wan.inputBandwidth`\" />\n<parameter name=\"bandwidth-change-time\" value=\"`$prop.wan.bandwidth-change-time`\" />\n<parameter name=\"vpn-id\" value=\"`$prop.bandwidth.vpnId`\" />\n<!--parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' /-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 599.7565498352051,\r
+        "y": 1688.3282527923584,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "9a0d6126.e5e05",\r
+                "7f8d367f.2cb258"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "565469d0.7320a8",\r
+        "type": "for",\r
+        "name": "for loop bwidx -input-parameters",\r
+        "xml": "<for index=\"bwidx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 568.0937576293945,\r
+        "y": 1508.6650838851929,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "fe4d7e03.7b0c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe4d7e03.7b0c7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 804.0945892333984,\r
+        "y": 1507.665246963501,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "7f4a05af.27429c",\r
+                "67d8e067.207d7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f4a05af.27429c",\r
+        "type": "switchNode",\r
+        "name": "switch bandwidth",\r
+        "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].name == 'bandwidth'`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 990.563835144043,\r
+        "y": 1504.3006629943848,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "27845d4d.df4892"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27845d4d.df4892",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1156.5641689300537,\r
+        "y": 1501.3008270263672,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "7318bc58.3a78f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7318bc58.3a78f4",\r
+        "type": "set",\r
+        "name": "set prop.wan.inputBandwidth & outputBandwidth",\r
+        "xml": "<set>\n<parameter name='prop.wan.inputBandwidth' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].value`' />\n<parameter name='prop.wan.outputBandwidth' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].value`' />\n",\r
+        "comments": "",\r
+        "x": 1419.564826965332,\r
+        "y": 1499.9009237289429,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "67d8e067.207d7",\r
+        "type": "switchNode",\r
+        "name": "switch bandwidth",\r
+        "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].name == 'bandwidth-change-time'`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 993.3692321777344,\r
+        "y": 1542.3316974639893,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "d3e4fb8e.757688"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3e4fb8e.757688",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1159.3695659637451,\r
+        "y": 1539.3318614959717,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "dad668dd.f97bc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dad668dd.f97bc8",\r
+        "type": "set",\r
+        "name": "set prop.wan.bandwidth-change-time",\r
+        "xml": "<set>\n<parameter name='prop.wan.bandwidth-change-time' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].value`' />\n\n",\r
+        "comments": "",\r
+        "x": 1393.370246887207,\r
+        "y": 1537.9320068359375,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9a0d6126.e5e05",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 863.0359802246094,\r
+        "y": 1664.9988250732422,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "2fb60b95.3ca614"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f8d367f.2cb258",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 858.0359802246094,\r
+        "y": 1698.9988269805908,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "9bc825b2.9d6228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fb60b95.3ca614",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1015.0359840393066,\r
+        "y": 1661.9988255500793,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d629a7b.45bc64",\r
+        "type": "execute",\r
+        "name": "execute generate-vnf-index",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.bandwidth.bandwidth-policyId\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 540.1652374267578,\r
+        "y": 1647.998661994934,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9bc825b2.9d6228",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"Falied to add AAI bandwidth history record\" />\n",\r
+        "comments": "",\r
+        "x": 1007.1652164459229,\r
+        "y": 1698.9988269805908,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d4773b75.f02ff8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1423.831729888916,\r
+        "y": 1618.6653962135315,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "654cee32.d9b47",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1419.8355903625488,\r
+        "y": 1584.169144153595,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "496f73f1.608cec",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1279.831714630127,\r
+        "y": 1619.6655592918396,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "d4773b75.f02ff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93a36b7f.6e1e08",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1275.831745147705,\r
+        "y": 1585.6654524803162,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "654cee32.d9b47"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "62263572.725b3c",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode wan port update",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"wanPortResp\"/>\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`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1012.8321380615234,\r
+        "y": 1594.6657781600952,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "496f73f1.608cec",\r
+                "93a36b7f.6e1e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e76d9029.37f13",\r
+        "type": "switchNode",\r
+        "name": "switch prop.wanPortUpdate null",\r
+        "xml": "<switch test=\"`$prop.wanPortUpdate`\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 558.1964721679688,\r
+        "y": 1594.696870803833,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "125755f3.b6968a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "125755f3.b6968a",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 770.1965560913086,\r
+        "y": 1595.1965408325195,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "62263572.725b3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e1aff6a.3deca1",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
+        "comments": "",\r
+        "x": 911.6554641723633,\r
+        "y": 1470.9890832901,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "abee6b5b.1a5908",\r
+        "type": "set",\r
+        "name": "set ipAddress prefixLength",\r
+        "xml": "<set>\n<parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />",\r
+        "comments": "",\r
+        "x": 953.6554718017578,\r
+        "y": 1430.9890804290771,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "24145b24.9d1724",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 756.6554565429688,\r
+        "y": 1473.9890842437744,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "1e1aff6a.3deca1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "621ae9dc.5f21b8",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 756.6554527282715,\r
+        "y": 1432.9890804290771,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "abee6b5b.1a5908"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a81feba.045cb1",\r
+        "type": "execute",\r
+        "name": "execute split ip and mask",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.wan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 555.6554336547852,\r
+        "y": 1454.989089012146,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "24145b24.9d1724",\r
+                "621ae9dc.5f21b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "beaaef8c.a4de5",\r
+        "type": "comment",\r
+        "name": "Create wan port",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 519.6653251647949,\r
+        "y": 1407.999002456665,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c837b6d8.71b3e8",\r
+        "type": "comment",\r
+        "name": "TODO: split ip/mask",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 943.6651191711426,\r
+        "y": 1393.1692161560059,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "aaddefb8.d63d3",\r
+        "type": "comment",\r
+        "name": "Get network id",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 604.6652145385742,\r
+        "y": 1294.9988594055176,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "38661728.f30148",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic111.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"request-action\"/>\n<parameter name=\"field3\" value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action`'/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 945.0000343322754,\r
+        "y": 683.0000123977661,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "27a33e60.c61c12",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic113.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$deviceidx].name`'/>\n<parameter name=\"field3\" value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$deviceidx].value`'/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2473.00008392334,\r
+        "y": 1019.0000581741333,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a367096a.4c3508",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic112.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"tmp.devicevidx\"/>\n<parameter name=\"field3\" value='`$tmp.devicevidx`'/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2028.000057220459,\r
+        "y": 1074.0000247955322,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "483c2153.d1795",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1254.4840850830078,\r
+        "y": 485.00001335144043,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "600f472e.25ba58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abbfdee9.6a6e5",\r
+        "type": "switchNode",\r
+        "name": "switch ActivateSDWANPortInstance",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n\n    \n    \n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1034.7699279785156,\r
+        "y": 483.5715036392212,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "483c2153.d1795"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4affd66.4dfb2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 797.9841156005859,\r
+        "y": 484.0000114440918,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "abbfdee9.6a6e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23f3a49a.a36dac",\r
+        "type": "for",\r
+        "name": "for each existing vf-index",\r
+        "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 569.4841003417969,\r
+        "y": 477.9999713897705,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "c4affd66.4dfb2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fbf16bc4.9feaf8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 853.0000228881836,\r
+        "y": 386.222261428833,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "5652c210.116cdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "325ec5e8.8f682a",\r
+        "type": "switchNode",\r
+        "name": "switch vf-modules.vf-module_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 617,\r
+        "y": 332.2222456638701,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "49412102.9496d",\r
+                "e27deb32.e1e6a8",\r
+                "fbf16bc4.9feaf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49412102.9496d",\r
+        "type": "outcome",\r
+        "name": "0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 858.4840364456177,\r
+        "y": 303.99997469829395,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "b39cde31.8ce66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e27deb32.e1e6a8",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 860.5152254104614,\r
+        "y": 341.0312857334502,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "b39cde31.8ce66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b39cde31.8ce66",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "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=\"vf-module-operation-input.vf-module-request-input.vf-id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1018.2927408218384,\r
+        "y": 321.92023417400196,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5652c210.116cdc",\r
+        "type": "set",\r
+        "name": "set vf-module-length",\r
+        "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",\r
+        "comments": "",\r
+        "x": 1038.6666259765625,\r
+        "y": 368,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "600f472e.25ba58",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1428.0313301086426,\r
+        "y": 462.03124907566234,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "a6912dc8.5986c",\r
+                "2acae3d9.7f09cc",\r
+                "83a5b820.78ba98",\r
+                "b1b5a247.70dba"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6912dc8.5986c",\r
+        "type": "set",\r
+        "name": "set tmp.wanPortVidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.wanPortVidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
+        "comments": "",\r
+        "x": 1704.9180221557617,\r
+        "y": 430.37367010116577,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2acae3d9.7f09cc",\r
+        "type": "set",\r
+        "name": "set vf-module-request-input.",\r
+        "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
+        "comments": "",\r
+        "x": 1677.3642578125,\r
+        "y": 475.0313091278076,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "83a5b820.78ba98",\r
+        "type": "call",\r
+        "name": "call sdwan-get-wan-param",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1664.660732269287,\r
+        "y": 523.8709006602876,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "be34f62e.f9bdf8",\r
+        "type": "switchNode",\r
+        "name": "switch vf-modules.vf-module_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 463.03125,\r
+        "y": 1964.53125,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "52c232df.5401dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "52c232df.5401dc",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 699.031268119812,\r
+        "y": 2037.5312375728972,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "cadc484c.8b1958"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cadc484c.8b1958",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 843.3883123397827,\r
+        "y": 2037.4677495663054,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "4c365aae.126754",\r
+                "d7b1d5a0.b2f338",\r
+                "cd28ccaa.a0cb3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd28ccaa.a0cb3",\r
+        "type": "set",\r
+        "name": "set prop.site.deviceId_length",\r
+        "xml": "<set>\n<parameter name='prop.site.deviceId_length' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1065.515284538269,\r
+        "y": 1988.3089876174927,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d7b1d5a0.b2f338",\r
+        "type": "set",\r
+        "name": "set vf-module-length",\r
+        "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",\r
+        "comments": "",\r
+        "x": 1039.086916923523,\r
+        "y": 2024.0868644714355,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c365aae.126754",\r
+        "type": "for",\r
+        "name": "for each existing vf-index",\r
+        "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1052.5152921676636,\r
+        "y": 2060.308978051413,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "d0642297.f75c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0642297.f75c7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1354.0153493881226,\r
+        "y": 2031.3090119655244,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "1f9b5508.732aeb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f9b5508.732aeb",\r
+        "type": "switchNode",\r
+        "name": "switch vf-module-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1560.8011465072632,\r
+        "y": 2027.880497932434,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "199c63ad.ad4b1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "199c63ad.ad4b1c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1764.5153875350952,\r
+        "y": 2026.3090043361299,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "4cd80296.71966c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4cd80296.71966c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1934.8586835861206,\r
+        "y": 2030.3951397235505,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            [\r
+                "cab6ed40.1a967",\r
+                "30158b6d.c639f4",\r
+                "a23128b1.823648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cab6ed40.1a967",\r
+        "type": "set",\r
+        "name": "set tmp.vidx and ctx.vnf-data",\r
+        "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
+        "comments": "",\r
+        "x": 2185.745337486267,\r
+        "y": 2000.7375526428223,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "30158b6d.c639f4",\r
+        "type": "set",\r
+        "name": "set vf-module-request-input.",\r
+        "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
+        "comments": "",\r
+        "x": 2180.1916341781616,\r
+        "y": 2045.395192652475,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a23128b1.823648",\r
+        "type": "call",\r
+        "name": "call sdwan-get-wan-param",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2171.488085746765,\r
+        "y": 2092.2347913081758,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1b5a247.70dba",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic121.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"tmp.wanPortVidx\"/>\n<parameter name=\"field3\" value='`$tmp.wanPortVidx`'/>\n<parameter name=\"field4\" value=\"wan port i/p param len\"/>\n<parameter name=\"field5\" value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`'/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1615.0313711166382,\r
+        "y": 378.03124713897705,\r
+        "z": "fe3a5d18.ca1b6",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-bandwidth-policy-change.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-bandwidth-policy-change.xml
new file mode 100644 (file)
index 0000000..8653689
--- /dev/null
@@ -0,0 +1,318 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sdwan-bandwidth-policy-change' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$service-data.vnfs.vnf_length`'>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
+                <switch test="`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`">\r
+                    <outcome value='true'>\r
+                        <set>\r
+                            <parameter name='vnf-index' value='`$idx`' />\r
+                        </set>\r
+                    </outcome>\r
+                </switch>\r
+            </for>\r
+            <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\r
+                <outcome value='0'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vf-module-operation-input.vf-module-request-input.vf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="vf-module-operation-input.vf-module-request-input.vf-id not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <set>\r
+                        <parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\r
+                    </set>\r
+                </outcome>\r
+            </switch>\r
+            <for index='idx' start='0' end='`$vf-module-length`' >\r
+                <block atomic="true">\r
+                    <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.request-information.request-action == 'ActivateSDWANPortInstance'`">\r
+                        <outcome value='true'>\r
+                            <block atomic="true">\r
+                                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                    <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic121.log"/>\r
+                                    <parameter name="field1" value="__TIMESTAMP__"/>\r
+                                    <parameter name="field2" value="tmp.wanPortVidx"/>\r
+                                    <parameter name="field3" value='`$tmp.wanPortVidx`'/>\r
+                                    <parameter name="field4" value="wan port i/p param len"/>\r
+                                    <parameter name="field5" value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`'/>\r
+                                </record>\r
+                                <set>\r
+                                    <parameter name='tmp.wanPortVidx' value='`$idx`' />\r
+                                    <parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\r
+                                </set>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' ></call>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <set>\r
+                <parameter name='prop.siteAttachements_length' value='0' />\r
+                <parameter name='prop.siteIds_length' value='0' />\r
+            </set>\r
+            <for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\r
+                <block>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic111.log"/>\r
+                        <parameter name="field1" value="__TIMESTAMP__"/>\r
+                        <parameter name="field2" value="request-action"/>\r
+                        <parameter name="field3" value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action`'/>\r
+                    </record>\r
+                    <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`">\r
+                        <outcome value='true'>\r
+                            <block atomic="true">\r
+                                <for index="didx" start="0" end="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`">\r
+                                    <block atomic="true">\r
+                                        <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$didx].name == 'name'`">\r
+                                            <outcome value='true'>\r
+                                                <block atomic="true">\r
+                                                    <switch test="`$prop.wan.deviceName == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$didx].value`">\r
+                                                        <outcome value='true'>\r
+                                                            <block atomic="true">\r
+                                                                <for index="deviceidx" start="0" end="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`">\r
+                                                                    <block atomic="true">\r
+                                                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                                                            <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic113.log"/>\r
+                                                                            <parameter name="field1" value="__TIMESTAMP__"/>\r
+                                                                            <parameter name="field2" value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$deviceidx].name`'/>\r
+                                                                            <parameter name="field3" value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$deviceidx].value`'/>\r
+                                                                        </record>\r
+                                                                        <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$deviceidx].name == 'deviceId'`">\r
+                                                                            <outcome value='true'>\r
+                                                                                <set>\r
+                                                                                    <parameter name='prop.wan.deviceId' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$deviceidx].value`' />\r
+                                                                                </set>\r
+                                                                            </outcome>\r
+                                                                        </switch>\r
+                                                                    </block>\r
+                                                                </for>\r
+                                                                <set>\r
+                                                                    <parameter name='tmp.devicevidx' value='`$vfidx`' />\r
+                                                                </set>\r
+                                                                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                                                    <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic112.log"/>\r
+                                                                    <parameter name="field1" value="__TIMESTAMP__"/>\r
+                                                                    <parameter name="field2" value="tmp.devicevidx"/>\r
+                                                                    <parameter name="field3" value='`$tmp.devicevidx`'/>\r
+                                                                </record>\r
+                                                            </block>\r
+                                                        </outcome>\r
+                                                    </switch>\r
+                                                </block>\r
+                                            </outcome>\r
+                                        </switch>\r
+                                    </block>\r
+                                </for>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                    <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSiteInstance'`">\r
+                        <outcome value='true'>\r
+                            <set>\r
+                                <parameter name='tmp.siteVidx' value='`$vfidx`' />\r
+                                <parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vfidx].`' />\r
+                            </set>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <switch test="`$tmp.wanPortVidx`">\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="ActivateSDWANPortInstance not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <switch test="`$tmp.siteVidx`">\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="ActivateSiteInstance not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <switch test="`$tmp.devicevidx`">\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="ActivateSDWANDeviceInstance not found in service-data" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <for index="sidx" start="0" end="`$ctx.site.vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`">\r
+                <block atomic="true">\r
+                    <switch test="`$ctx.site.vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].name == 'siteId'`">\r
+                        <outcome value='true'>\r
+                            <set>\r
+                                <parameter name='prop.wan.siteId' value='`$ctx.site.vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].value`' />\r
+                            </set>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <set>\r
+                <parameter name='prop.tenant-id' value='d9511b64-61ae-446e-96a1-6adbff09582c' />\r
+            </set>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />\r
+                <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-id`" />\r
+                <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                <parameter name="format" value="json"/>\r
+                <parameter name="httpMethod" value="put"/>\r
+                <parameter name="responsePrefix" value="tenant-result"/>\r
+                <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                <parameter name="trustStorePassword" value="adminadmin"/>\r
+                <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                <parameter name="keyStorePassword" value="adminadmin"/>\r
+                <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+            </execute>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`" />\r
+                <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                <parameter name="format" value="json"/>\r
+                <parameter name="httpMethod" value="get"/>\r
+                <parameter name="responsePrefix" value="transportNetworksResp"/>\r
+                <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                <parameter name="trustStorePassword" value="adminadmin"/>\r
+                <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                <parameter name="keyStorePassword" value="adminadmin"/>\r
+                <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+                <outcome value='failure'>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="Error executing Get transport network info rest api" />\r
+                    </return>\r
+                </outcome>\r
+                <outcome value='success'>\r
+                    <block atomic="true"></block>\r
+                </outcome>\r
+            </execute>\r
+            <for index="tidx" start="0" end="`$transportNetworksResp.data.transportNetworks_length`">\r
+                <block>\r
+                    <switch test="`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`">\r
+                        <outcome value='true'>\r
+                            <set>\r
+                                <parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\r
+                            </set>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                <parameter name="original_string" value='`$prop.wan.ipAddress`'/>\r
+                <parameter name="regex" value="/"/>\r
+                <parameter name="ctx_memory_result_key" value="ipandMask"/>\r
+                <outcome value='success'>\r
+                    <set>\r
+                        <parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\r
+                        <parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />\r
+                    </set>\r
+                </outcome>\r
+                <outcome value='failure'>\r
+                    <return status='failure'>\r
+                        <parameter name='error-code' value='' />\r
+                        <parameter name='error-message' value="An error occured while splitting sna1_route" />\r
+                    </return>\r
+                </outcome>\r
+            </execute>\r
+            <for index="bwidx" start="0" end="`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`">\r
+                <block atomic="true">\r
+                    <switch test="`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].name == 'bandwidth'`">\r
+                        <outcome value='true'>\r
+                            <set>\r
+                                <parameter name='prop.wan.inputBandwidth' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].value`' />\r
+                                <parameter name='prop.wan.outputBandwidth' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].value`' />\r
+                            </set>\r
+                        </outcome>\r
+                    </switch>\r
+                    <switch test="`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].name == 'bandwidth-change-time'`">\r
+                        <outcome value='true'>\r
+                            <set>\r
+                                <parameter name='prop.wan.bandwidth-change-time' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$bwidx].value`' />\r
+                            </set>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <switch test="`$prop.wanPortUpdate`">\r
+                <outcome value=''>\r
+                    <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                        <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdwan-wan-port.json'`" />\r
+                        <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports'`" />\r
+                        <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                        <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                        <parameter name="format" value="json"/>\r
+                        <parameter name="httpMethod" value="put"/>\r
+                        <parameter name="responsePrefix" value="wanPortResp"/>\r
+                        <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>\r
+                        <parameter name="trustStorePassword" value="adminadmin"/>\r
+                        <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                        <parameter name="keyStorePassword" value="adminadmin"/>\r
+                        <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+                        <outcome value='failure'>\r
+                            <block atomic="true"></block>\r
+                        </outcome>\r
+                        <outcome value='success'>\r
+                            <block atomic="true"></block>\r
+                        </outcome>\r
+                    </execute>\r
+                </outcome>\r
+            </switch>\r
+            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\r
+                <parameter name="ctx-destination" value="prop.bandwidth.bandwidth-policyId"/>\r
+            </execute>\r
+            <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='bandwidth-history' \r
+      key='sdwan-bandwidth-policy-id = $prop.bandwidth.bandwidth-policyId' >\r
+                <parameter name="sdwan-bandwidth-policy-id" value="`$prop.bandwidth.bandwidth-policyId`" />\r
+                <parameter name="sdwan-bandwidth-policy-name" value="`$prop.bandwidth.bandwidth-policyId`" />\r
+                <parameter name="bandwidth-value" value="`$prop.wan.inputBandwidth`" />\r
+                <parameter name="bandwidth-change-time" value="`$prop.wan.bandwidth-change-time`" />\r
+                <parameter name="vpn-id" value="`$prop.bandwidth.vpnId`" />\r
+                <!--parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' /><parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' /><parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' /-->\r
+                <outcome value='success'>\r
+                    <block atomic="true"></block>\r
+                </outcome>\r
+                <outcome value='failure'>\r
+                    <return status='failure'>\r
+                        <parameter name='error-code' value='' />\r
+                        <parameter name='error-message' value="Falied to add AAI bandwidth history record" />\r
+                    </return>\r
+                </outcome>\r
+            </save>\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file