DG'S added for MDONS use case 12/102712/1
authorMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Mon, 2 Mar 2020 06:35:43 +0000 (06:35 +0000)
committerMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Mon, 2 Mar 2020 06:36:45 +0000 (06:36 +0000)
Change-Id: Ie9570b9be519e54d43b547bcfbffc16d12b16123
Issue-ID: SDNC-928
Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Former-commit-id: 6493900ed7a55ff00b2f31f8802f30f54bf335ae

35 files changed:
platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu2.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu3.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu4.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_call-bandwidth-update-pinterface.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_create-service-async.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu1.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu2.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu3.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu4.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-service-async.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_handle-async-notif.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_service-create-tapi.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_service-delete-tapi.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json [new file with mode: 0644]
platform-logic/optical-service/src/main/resources/graph.versions
platform-logic/optical-service/src/main/xml/optical-service_aai-delete-service-handling.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu1.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu2.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu3.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu4.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_call-bandwidth-update-pinterface.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu1.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu2.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu3.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu4.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-service-async.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_handle-async-notif.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_service-create-tapi.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_service-delete-tapi.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml [new file with mode: 0644]

diff --git a/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json b/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json
new file mode 100644 (file)
index 0000000..6cf5663
--- /dev/null
@@ -0,0 +1,258 @@
+[\r
+    {\r
+        "id": "168f1b9b.e0d8a4",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 290,\r
+        "y": 256.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "69efd249.69fbdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "69efd249.69fbdc",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 477,\r
+        "y": 205.66665649414062,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "7c805408.44c49c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c805408.44c49c",\r
+        "type": "method",\r
+        "name": "method",\r
+        "xml": "<method rpc='aai-delete-service-handling' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 331,\r
+        "y": 379.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "9d8283a.657188"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d8283a.657188",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 504,\r
+        "y": 378.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "f165a108.8a699",\r
+                "940496d9.dec278",\r
+                "32c002b0.0f4fce",\r
+                "2caf6515.aa94aa",\r
+                "a8c5a8ab.1bde18",\r
+                "a1d8c39f.8281b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f165a108.8a699",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 735,\r
+        "y": 265.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "940496d9.dec278",\r
+        "type": "get-resource",\r
+        "name": "Get service from AAI",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\n key='customer.global-customer-id = $output.global-customer-id AND\n     service-subscription.service-type = $output.service-type AND\n     service-instance.service-instance-id = $output.service-instance-id' \npfx='aai.service'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 754,\r
+        "y": 381.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "32c002b0.0f4fce",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n<parameter name=\"field2\" value=\"`$aai.service.orchestration-status`\"/>\n<parameter name=\"field3\" value=\"`$aai.service.relationship-list.relationship_length`\"/>\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 764,\r
+        "y": 447.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2caf6515.aa94aa",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='`$aai.service.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 737,\r
+        "y": 510.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "c68f711c.1667a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e030001.bace",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\n<parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\n\n",\r
+        "comments": "",\r
+        "x": 1147,\r
+        "y": 197.66665649414062,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e3a487a2.2e5338",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n<parameter name=\"field2\" value=\"`$pnf-name`\"/>\n<parameter name=\"field3\" value=\"`$pinterface-name`\"/>\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1170,\r
+        "y": 266.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8c5a8ab.1bde18",\r
+        "type": "delete",\r
+        "name": "delete service instance AAI",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $output.global-customer-id AND\nservice-subscription.service-type = $output.service-type AND\nservice-instance.service-instance-id = $output.service-instance-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 757,\r
+        "y": 586.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c68f711c.1667a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 921,\r
+        "y": 514.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "1e030001.bace",\r
+                "e3a487a2.2e5338",\r
+                "2c623e61.ef3c52",\r
+                "46559965.50bc28",\r
+                "c493aa8c.c04b68",\r
+                "d87c55e6.d344b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1d8c39f.8281b",\r
+        "type": "delete",\r
+        "name": "delete from db",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n    resource=\"SQL\"\n    key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 694,\r
+        "y": 643.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c493aa8c.c04b68",\r
+        "type": "get-resource",\r
+        "name": "get p-interface total capacity",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name ' \npfx='p.in.details'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1266.8887939453125,\r
+        "y": 322.77777099609375,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d87c55e6.d344b8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$p.in.details.speed-value`' />\n",\r
+        "comments": "",\r
+        "x": 1207.111083984375,\r
+        "y": 413,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c623e61.ef3c52",\r
+        "type": "update",\r
+        "name": "update p-interface capacity AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='p-interface'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name '\n      local-only='false'>\n<parameter name='available-capacity' value='`$new-rate`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1174,\r
+        "y": 518.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "46559965.50bc28",\r
+        "type": "save",\r
+        "name": "update pinterface rate DB",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET rate = $new-rate WHERE interface_name = $pinterface-name '\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1165,\r
+        "y": 586.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json
new file mode 100644 (file)
index 0000000..7cfc441
--- /dev/null
@@ -0,0 +1,442 @@
+[\r
+    {\r
+        "id": "7fb6b53d.9b40ac",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 914,\r
+        "y": 180,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "d89ee2bf.9fb95",\r
+                "489955f7.b8044c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d89ee2bf.9fb95",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1047,\r
+        "y": 149,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "861165e4.072d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "408487d0.188348",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 919,\r
+        "y": 102,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a318d25.4d1703",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='mul' value='`$odu-number * 1.25`' />\n<parameter name='sub' value='`$mul - 1.25`' />\n<parameter name='new-odu-number' value='`$sub / 1.25`' />\n\n",\r
+        "comments": "",\r
+        "x": 1281,\r
+        "y": 77,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "42556171.da338",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 638,\r
+        "y": 126,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "b03c2fe2.e7ca6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3256d64.31dae2a",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 562,\r
+        "y": 244,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "42556171.da338",\r
+                "3f9ae2a7.46b9ee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b03c2fe2.e7ca6",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 776,\r
+        "y": 133,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "7fb6b53d.9b40ac",\r
+                "408487d0.188348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "489955f7.b8044c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1046,\r
+        "y": 264,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "aa954ac8.c12048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5d7b43a.ff8d18",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1321,\r
+        "y": 232,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "16da9b23.f12fc5",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 928,\r
+        "y": 460,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "6a47243c.bf922c",\r
+                "d39786ac.f9ffc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a47243c.bf922c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1069,\r
+        "y": 452,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "945b4572.2a9d18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a491e8e.6ef662",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 933,\r
+        "y": 382,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "52b46c06.224904",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1271,\r
+        "y": 385,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3f9ae2a7.46b9ee",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 639,\r
+        "y": 406,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "ba6bed77.7ecf2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba6bed77.7ecf2",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 790,\r
+        "y": 413,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "16da9b23.f12fc5",\r
+                "3a491e8e.6ef662"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d39786ac.f9ffc8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1053,\r
+        "y": 583,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "1229605a.bcb7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bdb03da8.db153",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1298,\r
+        "y": 539,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "75dd10a.39260f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 405,\r
+        "y": 235,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "3256d64.31dae2a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e7327e.e63f7d8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 121.5,\r
+        "y": 184,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "e15dddc3.ed1ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e15dddc3.ed1ff",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 244,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "eb187c1b.5aa9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb187c1b.5aa9",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu1",\r
+        "xml": "<method rpc='bandwidth-update-odu1' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 318.5,\r
+        "y": 137,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "75dd10a.39260f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2a66fb.f71b39",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1284,\r
+        "y": 144,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a32257d4.77af48",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1297,\r
+        "y": 287,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba783ab9.044e18",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1317,\r
+        "y": 441,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b0a9685.46e438",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1248,\r
+        "y": 610,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "861165e4.072d78",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1154,\r
+        "y": 77,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "a318d25.4d1703",\r
+                "c2a66fb.f71b39"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aa954ac8.c12048",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1177,\r
+        "y": 228,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "e5d7b43a.ff8d18",\r
+                "a32257d4.77af48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "945b4572.2a9d18",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1151,\r
+        "y": 375,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "52b46c06.224904",\r
+                "ba783ab9.044e18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1229605a.bcb7e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1171,\r
+        "y": 542,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "bdb03da8.db153",\r
+                "5b0a9685.46e438"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu2.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu2.json
new file mode 100644 (file)
index 0000000..1088731
--- /dev/null
@@ -0,0 +1,860 @@
+[\r
+    {\r
+        "id": "d2167b55.82b018",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 405,\r
+        "y": 203,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "17fa8fe8.9bf91"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "811b077a.d09798",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1046,\r
+        "y": 248,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "d1adad05.70436",\r
+                "21b9545b.56d0dc",\r
+                "f3d86763.54a138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1adad05.70436",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1122,\r
+        "y": 214,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "ac2b88c8.8664e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "62f5d265.23ab0c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 1028,\r
+        "y": 152,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e87013c.8fc8ce",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1410,\r
+        "y": 182,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c5d3d95.cc5f74",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 703,\r
+        "y": 202,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "2c622caf.eaa2a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17fa8fe8.9bf91",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 559,\r
+        "y": 202,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "7c5d3d95.cc5f74",\r
+                "2f408a05.a33d16",\r
+                "f3c2b240.a115b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b7f98e2.94bee7",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 886,\r
+        "y": 190,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "811b077a.d09798",\r
+                "62f5d265.23ab0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21b9545b.56d0dc",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1135,\r
+        "y": 350,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "15e3e9b.8ba2616"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a06a5535.b89f68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1434,\r
+        "y": 303,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6a12dbc4.c2c474",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 927,\r
+        "y": 61,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f3d86763.54a138",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1099,\r
+        "y": 453,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "6365557.81351ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0a7f453.296058",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1403,\r
+        "y": 425,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "354fa1c1.f1f6ae",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 974,\r
+        "y": 638,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "2cba8af9.f08436",\r
+                "c67aa5c9.f4db98",\r
+                "613274fc.a6713c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cba8af9.f08436",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1096,\r
+        "y": 592,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "afd7c951.cf6a88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47a078bd.631e68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 965,\r
+        "y": 547,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "20e37e98.d28f12",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 - 2.5`' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1419,\r
+        "y": 564,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2f408a05.a33d16",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 677,\r
+        "y": 580,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "9cbe7dee.94883"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "682f2695.e292e8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 851,\r
+        "y": 611,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "354fa1c1.f1f6ae",\r
+                "47a078bd.631e68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c67aa5c9.f4db98",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1109,\r
+        "y": 728,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "849d925b.74177"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4523229.d6783",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1417,\r
+        "y": 680,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8aef3377.3c117",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 895,\r
+        "y": 473,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "613274fc.a6713c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1073,\r
+        "y": 831,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "6eb2648c.81a19c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "deaaf26b.10d53",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1334,\r
+        "y": 797,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "99b2b453.ad7458",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 942,\r
+        "y": 1049,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "4187876d.dc02e8",\r
+                "761e3130.940b3",\r
+                "b24927d8.4257b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4187876d.dc02e8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1162,\r
+        "y": 1000,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "a1a3c897.76f2c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd35744a.032178",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 932,\r
+        "y": 966,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "58773dca.32a9d4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1435,\r
+        "y": 964,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f3c2b240.a115b",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 450,\r
+        "y": 1017,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "1dd9e0cc.abefff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1dd9e0cc.abefff",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 734,\r
+        "y": 1039,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "99b2b453.ad7458",\r
+                "fd35744a.032178"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "761e3130.940b3",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1174,\r
+        "y": 1110,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "b3ea3cfa.44044"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee22130b.ddcc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1456,\r
+        "y": 1105,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b24927d8.4257b8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1139,\r
+        "y": 1239,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "b43c1f4d.37883"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6ed6d86.a3142",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1434,\r
+        "y": 1203,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d3ed497f.e63998",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 121.5,\r
+        "y": 152,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "5490e45b.ec8f7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5490e45b.ec8f7c",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 212,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "c1ead28d.6c8d3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c1ead28d.6c8d3",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu2",\r
+        "xml": "<method rpc='bandwidth-update-odu2' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 318.5,\r
+        "y": 105,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "d2167b55.82b018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96acfef0.2597f",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1474,\r
+        "y": 244,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "506c233c.43ef1c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1500,\r
+        "y": 377,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "45d21d06.df7524",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1477,\r
+        "y": 471,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7f985a4.c76918",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1489,\r
+        "y": 613,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4a35a6d.5c6478",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1492,\r
+        "y": 740,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "97a76dca.636f9",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1407,\r
+        "y": 844,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a9c10315.e0892",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1512,\r
+        "y": 1020,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cfce80.51afa18",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1518,\r
+        "y": 1148,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "13bea178.4cb18f",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1504,\r
+        "y": 1275,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac2b88c8.8664e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1258,\r
+        "y": 212,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "2e87013c.8fc8ce",\r
+                "96acfef0.2597f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15e3e9b.8ba2616",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1283,\r
+        "y": 348,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "a06a5535.b89f68",\r
+                "506c233c.43ef1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6365557.81351ac",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1249,\r
+        "y": 453,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "b0a7f453.296058",\r
+                "45d21d06.df7524"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "afd7c951.cf6a88",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1247,\r
+        "y": 591,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "20e37e98.d28f12",\r
+                "c7f985a4.c76918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "849d925b.74177",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1249,\r
+        "y": 724,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "a4523229.d6783",\r
+                "b4a35a6d.5c6478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6eb2648c.81a19c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1212,\r
+        "y": 826,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "deaaf26b.10d53",\r
+                "97a76dca.636f9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1a3c897.76f2c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1296,\r
+        "y": 999,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "58773dca.32a9d4",\r
+                "a9c10315.e0892"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3ea3cfa.44044",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1310,\r
+        "y": 1110,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "ee22130b.ddcc",\r
+                "1cfce80.51afa18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b43c1f4d.37883",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1296,\r
+        "y": 1236,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "c6ed6d86.a3142",\r
+                "13bea178.4cb18f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c622caf.eaa2a4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 814,\r
+        "y": 110,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "6a12dbc4.c2c474",\r
+                "1b7f98e2.94bee7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cbe7dee.94883",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 750,\r
+        "y": 495,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "8aef3377.3c117",\r
+                "682f2695.e292e8"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu3.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu3.json
new file mode 100644 (file)
index 0000000..cfc383b
--- /dev/null
@@ -0,0 +1,1369 @@
+[\r
+    {\r
+        "id": "59bd3927.592868",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 906.5,\r
+        "y": 146,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "686976fa.e39a38",\r
+                "5a90cb29.5918e4",\r
+                "9ff85014.553ad",\r
+                "7f3619a0.9e0de8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "686976fa.e39a38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1045.5,\r
+        "y": 105,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1d32ea36.ac6196"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7f141cc.723c8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 914.5,\r
+        "y": 60,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a32f2439.cb6ab8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1338.5,\r
+        "y": 76,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c8f08a5.d0cd38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 626.5,\r
+        "y": 93,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "7a765f28.8bea6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25cd1da9.b3f392",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 495.5,\r
+        "y": 149,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "4c8f08a5.d0cd38",\r
+                "f16923b.76bace",\r
+                "d50cccac.ae255",\r
+                "d6e62384.c44eb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb046504.a184d8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 770.5,\r
+        "y": 111,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "59bd3927.592868",\r
+                "d7f141cc.723c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a90cb29.5918e4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1075.5,\r
+        "y": 194,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "e76aea9c.e12bd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5aa343d7.14c6fc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1342.5,\r
+        "y": 179,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1b913f9a.27c49",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 858.5,\r
+        "y": 20,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9ff85014.553ad",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1044.5,\r
+        "y": 294,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "80d48ef5.9912"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cef4b295.6c496",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1330.5,\r
+        "y": 291,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7f3619a0.9e0de8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 972,\r
+        "y": 402,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "8c7e1bd7.f41a68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "59568bd7.60cba4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1259,\r
+        "y": 387,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b8915894.bda8e8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847,\r
+        "y": 671,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "d416a38f.22749",\r
+                "50b4be98.ddf0c",\r
+                "d2192c61.4bdf7",\r
+                "728f7fb2.a1cac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d416a38f.22749",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 986,\r
+        "y": 630,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "606ba16.524bc6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "318f9aba.df2006",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 855,\r
+        "y": 585,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "17a117e5.591708",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1263,\r
+        "y": 590,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f16923b.76bace",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 567,\r
+        "y": 618,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "7d7cd2ec.065b2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13b57033.9951",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 754,\r
+        "y": 615,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "b8915894.bda8e8",\r
+                "318f9aba.df2006"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50b4be98.ddf0c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1021,\r
+        "y": 723,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "31b7a978.6ce366"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d2e684.a340898",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1294,\r
+        "y": 707,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f02b9dc0.9a744",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 787,\r
+        "y": 512,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d2192c61.4bdf7",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 979,\r
+        "y": 814,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "5aa134da.c5d79c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f96115b6.ae0958",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1284,\r
+        "y": 813,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "728f7fb2.a1cac",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 885.5,\r
+        "y": 984,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "c49e735f.4d186"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aad0db15.cc7c18",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1151.5,\r
+        "y": 952,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c012ace.64f805",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 710,\r
+        "y": 1209,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "5289693d.e0a268",\r
+                "31d3f86f.e846f8",\r
+                "7d5fdc36.750854",\r
+                "99806796.f1f338"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5289693d.e0a268",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 897,\r
+        "y": 1149,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "de9cb28.9f9d45"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30fb08fd.b5dda8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 736,\r
+        "y": 1103,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d67ef568.42cc38",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1197,\r
+        "y": 1112,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d50cccac.ae255",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 417,\r
+        "y": 1154,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "712de01.298dd2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3523aa7.075c48",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 589,\r
+        "y": 1148,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1c012ace.64f805",\r
+                "30fb08fd.b5dda8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31d3f86f.e846f8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 919,\r
+        "y": 1240,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "6fab0d4e.49f804"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17e177eb.a9a758",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1210,\r
+        "y": 1227,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d69e06e0.b960b8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 628,\r
+        "y": 950,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7d5fdc36.750854",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 913,\r
+        "y": 1340,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "ea510da.c129ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cffb56f.5f74cb",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1216,\r
+        "y": 1325,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "99806796.f1f338",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 859.5,\r
+        "y": 1463,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "ffafbd3d.43709"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea23ac7b.49a0e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1171.5,\r
+        "y": 1433,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1fdbfea9.06f971",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 599,\r
+        "y": 1735,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "b234c218.56c75",\r
+                "d7567c2b.d744d",\r
+                "da086275.9fed4",\r
+                "9dc682c9.2b9f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b234c218.56c75",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 738,\r
+        "y": 1694,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "9e0dc2de.70214"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8370fc5d.bbbb6",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 607,\r
+        "y": 1649,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "76e5208f.cb277",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1065,\r
+        "y": 1662,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "624e9330.541bbc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1077,\r
+        "y": 1720,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6e62384.c44eb",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 169,\r
+        "y": 1712,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "14677342.8acb9d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14677342.8acb9d",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 415,\r
+        "y": 1711,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1fdbfea9.06f971",\r
+                "8370fc5d.bbbb6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7567c2b.d744d",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 751,\r
+        "y": 1830,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "ad4c759a.2f2898"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "986204b7.0e72d8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 1021,\r
+        "y": 1796,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5e457023.84189",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1092,\r
+        "y": 1850,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "da086275.9fed4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 715,\r
+        "y": 1933,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "287e67.d378d19a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2bbf429f.61555e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 1032,\r
+        "y": 1901,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d21d0e47.828fe",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1084,\r
+        "y": 1981,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9dc682c9.2b9f6",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 637.5,\r
+        "y": 2048,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "5ba96bee.3ec3d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "22448edc.1c06a2",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 930.5,\r
+        "y": 2014,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "43ae63f9.14b1dc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 986.5,\r
+        "y": 2088,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf7cf5bd.6cd3f8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 121.5,\r
+        "y": 106,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "f1e26e1a.6f29c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1e26e1a.6f29c",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 166,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "79406a70.446d04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79406a70.446d04",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu3",\r
+        "xml": "<method rpc='bandwidth-update-odu3' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321.5,\r
+        "y": 59,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "37af137e.e2f76c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37af137e.e2f76c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 369,\r
+        "y": 203,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "25cd1da9.b3f392"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42b178a2.3d8ba8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1384,\r
+        "y": 134,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "aef28b8.b6c4b78",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1397,\r
+        "y": 233,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "170418bf.9dd4e7",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1376,\r
+        "y": 337,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "767736d7.c19918",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1320,\r
+        "y": 437,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8cb02fdb.f9b1f",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1230,\r
+        "y": 1005,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "39614b88.12fe44",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1314,\r
+        "y": 859,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7fbf2795.5c7328",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1343,\r
+        "y": 757,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "97e385a2.e3b1f8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1329,\r
+        "y": 647,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd933a2b.a244e8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1257,\r
+        "y": 1165,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cd728ae.126d18",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1264,\r
+        "y": 1273,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f6653fd.04dd4c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1244,\r
+        "y": 1383,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "48b19296.b91e8c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1238,\r
+        "y": 1496,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d32ea36.ac6196",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1188,\r
+        "y": 105,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "a32f2439.cb6ab8",\r
+                "42b178a2.3d8ba8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e76aea9c.e12bd8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1205,\r
+        "y": 191,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "5aa343d7.14c6fc",\r
+                "aef28b8.b6c4b78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "80d48ef5.9912",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1195,\r
+        "y": 296,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "cef4b295.6c496",\r
+                "170418bf.9dd4e7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c7e1bd7.f41a68",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1107,\r
+        "y": 399,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "59568bd7.60cba4",\r
+                "767736d7.c19918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "606ba16.524bc6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1129,\r
+        "y": 628,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "17a117e5.591708",\r
+                "97e385a2.e3b1f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31b7a978.6ce366",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1155,\r
+        "y": 724,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "2d2e684.a340898",\r
+                "7fbf2795.5c7328"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5aa134da.c5d79c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1125,\r
+        "y": 813,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "f96115b6.ae0958",\r
+                "39614b88.12fe44"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c49e735f.4d186",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1021,\r
+        "y": 982,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "aad0db15.cc7c18",\r
+                "8cb02fdb.f9b1f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de9cb28.9f9d45",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1039,\r
+        "y": 1146,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "d67ef568.42cc38",\r
+                "fd933a2b.a244e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6fab0d4e.49f804",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1064,\r
+        "y": 1240,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "17e177eb.a9a758",\r
+                "3cd728ae.126d18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea510da.c129ff",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1064,\r
+        "y": 1335,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1cffb56f.5f74cb",\r
+                "3f6653fd.04dd4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffafbd3d.43709",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1001,\r
+        "y": 1460,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "ea23ac7b.49a0e",\r
+                "48b19296.b91e8c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e0dc2de.70214",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 887,\r
+        "y": 1688,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "76e5208f.cb277",\r
+                "624e9330.541bbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad4c759a.2f2898",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 891,\r
+        "y": 1827,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "986204b7.0e72d8",\r
+                "5e457023.84189"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "287e67.d378d19a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 861,\r
+        "y": 1930,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "2bbf429f.61555e",\r
+                "d21d0e47.828fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ba96bee.3ec3d4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 769,\r
+        "y": 2044,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "22448edc.1c06a2",\r
+                "43ae63f9.14b1dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a765f28.8bea6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 712,\r
+        "y": 27,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1b913f9a.27c49",\r
+                "eb046504.a184d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d7cd2ec.065b2c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 653,\r
+        "y": 524,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "f02b9dc0.9a744",\r
+                "13b57033.9951"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "712de01.298dd2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 528,\r
+        "y": 1012,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "d69e06e0.b960b8",\r
+                "d3523aa7.075c48"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu4.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu4.json
new file mode 100644 (file)
index 0000000..47d4391
--- /dev/null
@@ -0,0 +1,1998 @@
+[\r
+    {\r
+        "id": "e3feee36.dfc57",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 911,\r
+        "y": 188,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "8c8b0340.fea55",\r
+                "bbae384a.c600d8",\r
+                "81fb76a8.ffe2f8",\r
+                "ec837101.493ce",\r
+                "4f3806a1.3db668"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c8b0340.fea55",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1050,\r
+        "y": 147,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "349a0c0c.fe1ba4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2e27b7b.5c60a8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 919,\r
+        "y": 102,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d77d3b20.4deaf8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1353,\r
+        "y": 85,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b7144f81.df566",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 631,\r
+        "y": 135,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f63ce118.af64a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79a768dc.a905b8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 500,\r
+        "y": 191,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b7144f81.df566",\r
+                "c9bcd5cc.2d7a38",\r
+                "bb3aa450.7afcd8",\r
+                "3fe43b1f.6606f4",\r
+                "c20ced2c.54286"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e749c854.0dc6c8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 821,\r
+        "y": 139,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "e3feee36.dfc57",\r
+                "d2e27b7b.5c60a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bbae384a.c600d8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1063,\r
+        "y": 283,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "38c2eecb.ad0df2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95485793.c9cb48",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1320,\r
+        "y": 238,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1dc3bc82.c95123",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 788,\r
+        "y": 39,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "81fb76a8.ffe2f8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1027,\r
+        "y": 386,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "54d432b1.c4d86c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2edcadd.b7afc8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1324,\r
+        "y": 358,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ec837101.493ce",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 949.5,\r
+        "y": 501,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d3c54b7f.d37ce8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd9d755f.f70388",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 1251.5,\r
+        "y": 473,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cce12306.4f347",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 126,\r
+        "y": 148,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d14b0a8.027a7f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d14b0a8.027a7f8",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 139,\r
+        "y": 208,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "da99be36.fe011"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da99be36.fe011",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu4",\r
+        "xml": "<method rpc='bandwidth-update-odu4' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 323,\r
+        "y": 101,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "c5e7c025.0f62c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5e7c025.0f62c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 373.5,\r
+        "y": 245,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "79a768dc.a905b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f3806a1.3db668",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 859,\r
+        "y": 632,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f41938e6.1bebe8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2adc2f40.dc7d4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1194,\r
+        "y": 607,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4cf1c380.32bbdc",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 704,\r
+        "y": 829,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "265152f.0b59fae",\r
+                "9ce3dd24.3e3c7",\r
+                "a19a912a.fe52f",\r
+                "f470a7e3.298178",\r
+                "f79cb52.e73e448"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "265152f.0b59fae",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 843,\r
+        "y": 788,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "fd01f978.0f3698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d185c07.cc41d4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 712,\r
+        "y": 743,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1a2eb6ab.8d8199",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.5 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1123,\r
+        "y": 765,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c9bcd5cc.2d7a38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 424,\r
+        "y": 776,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "30b73784.022928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4b29e77.0b02a",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 612,\r
+        "y": 786,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "4cf1c380.32bbdc",\r
+                "4d185c07.cc41d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ce3dd24.3e3c7",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 856,\r
+        "y": 924,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "952f6f66.9b3a7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3389c8d8.7dc548",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1170,\r
+        "y": 898,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "57d6620f.6163cc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 715,\r
+        "y": 613,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a19a912a.fe52f",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 820,\r
+        "y": 1027,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "50fc2c72.542084"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e807b52.3b6674",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1118,\r
+        "y": 1015,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f470a7e3.298178",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 742.5,\r
+        "y": 1142,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "e42e2444.15dd28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0c44c3f.e472",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 995.5,\r
+        "y": 1143,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f79cb52.e73e448",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 652,\r
+        "y": 1273,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "74474581.b5e87c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9570111b.094dd",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 915,\r
+        "y": 1252,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bf7d6c6b.e0ece",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 555,\r
+        "y": 1476,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b561742b.cd28e8",\r
+                "fa15bcfc.6af83",\r
+                "61666fc.db1569",\r
+                "f1e48908.aaabd8",\r
+                "8f4f4b48.14a0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b561742b.cd28e8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 694,\r
+        "y": 1435,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "23fa6a55.3ea336"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "985f9b24.eeace8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 563,\r
+        "y": 1390,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3049243b.bf71ec",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 10 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 961,\r
+        "y": 1437,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bb3aa450.7afcd8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 275,\r
+        "y": 1423,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "61e4c74f.7d0068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f1ddc4f.602e34",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 419,\r
+        "y": 1441,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "bf7d6c6b.e0ece",\r
+                "985f9b24.eeace8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa15bcfc.6af83",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 707,\r
+        "y": 1571,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f9ec6aee.e4c848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79ac5779.cefe88",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 969,\r
+        "y": 1546,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "99a06c04.fc087",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 498,\r
+        "y": 1306,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "61666fc.db1569",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 671,\r
+        "y": 1674,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "94357a7.a130f88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15aa4115.225e1f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 953,\r
+        "y": 1646,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f1e48908.aaabd8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 593.5,\r
+        "y": 1789,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "8dce08fb.34cdb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d72c3e8d.b95f1",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 874.5,\r
+        "y": 1784,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8f4f4b48.14a0b8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 503,\r
+        "y": 1920,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "425a258e.6c173c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "29176cbc.abf4c4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 781,\r
+        "y": 1914,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c8cc7f5b.29157",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 485,\r
+        "y": 2130,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "95fe5423.8d72f8",\r
+                "c6923f1c.db161",\r
+                "c2f012bc.b8b8b",\r
+                "e958d54f.06a758",\r
+                "66b70ac8.ccefd4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95fe5423.8d72f8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 624,\r
+        "y": 2089,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "1bf49ff2.464d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77e3b83.e43a648",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 493,\r
+        "y": 2044,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d19285ad.4d90a8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 40 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 891,\r
+        "y": 2066,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3fe43b1f.6606f4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 205,\r
+        "y": 2077,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "c2791d26.93119"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7726f454.56bf9c",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 386,\r
+        "y": 2070,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "c8cc7f5b.29157",\r
+                "77e3b83.e43a648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6923f1c.db161",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 637,\r
+        "y": 2225,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "55d9ef5.6d3f01"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2271a07.74ec28",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 889,\r
+        "y": 2221,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "89ba325e.4bc83",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 436,\r
+        "y": 1984,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c2f012bc.b8b8b",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 601,\r
+        "y": 2328,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "924b471a.324748"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1edcf75.5da63",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 887,\r
+        "y": 2326,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e958d54f.06a758",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 523.5,\r
+        "y": 2443,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "4afed28.6e4ed2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d286e908.53cd68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 794.5,\r
+        "y": 2437,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "66b70ac8.ccefd4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 433,\r
+        "y": 2574,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "49cef9bf.0a62e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99bb505e.aea4d",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 741,\r
+        "y": 2566,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "763ed9fe.b41af8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 467,\r
+        "y": 2803,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "3c67a2b6.56ec0e",\r
+                "5db1fe3e.c50c4",\r
+                "3f5a2e5b.807e42",\r
+                "a57f36b0.498bb8",\r
+                "e74b0463.901ba8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c67a2b6.56ec0e",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 606,\r
+        "y": 2762,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "7b44fdae.dba374"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ccbab50d.fb1c08",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 475,\r
+        "y": 2717,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b6bdc28d.0a9d1",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 878,\r
+        "y": 2740,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c20ced2c.54286",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 187,\r
+        "y": 2750,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "80ac6d40.b471f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "80ac6d40.b471f",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 331,\r
+        "y": 2768,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "763ed9fe.b41af8",\r
+                "ccbab50d.fb1c08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5db1fe3e.c50c4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 619,\r
+        "y": 2898,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "a1a1153c.aaf6a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37f02bd6.a3bc34",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 874,\r
+        "y": 2872,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3f5a2e5b.807e42",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 583,\r
+        "y": 3001,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "9682ea99.385bb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5fa94b20.fa80a4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 856,\r
+        "y": 3001,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a57f36b0.498bb8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 505.5,\r
+        "y": 3116,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d48499c7.7a7708"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "48180881.455f58",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 850.5,\r
+        "y": 3113,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e74b0463.901ba8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 415,\r
+        "y": 3247,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "984049b4.f3f768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "194a38c2.ba5f17",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 732,\r
+        "y": 3226,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "692a2465.ed0e4c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1396,\r
+        "y": 156,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "349a0c0c.fe1ba4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1183,\r
+        "y": 143,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d77d3b20.4deaf8",\r
+                "692a2465.ed0e4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38c2eecb.ad0df2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1191,\r
+        "y": 282,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "95485793.c9cb48",\r
+                "1bb4b679.b5f7aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54d432b1.c4d86c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1152,\r
+        "y": 384,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f2edcadd.b7afc8",\r
+                "a605a893.aa9e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3c54b7f.d37ce8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1089,\r
+        "y": 500,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "dd9d755f.f70388",\r
+                "9a31744f.663728"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f41938e6.1bebe8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1000,\r
+        "y": 629,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "2adc2f40.dc7d4",\r
+                "db36b1ce.29afa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1bb4b679.b5f7aa",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1391,\r
+        "y": 295,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a605a893.aa9e08",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1347,\r
+        "y": 418,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a31744f.663728",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1299,\r
+        "y": 535,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "db36b1ce.29afa",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1252,\r
+        "y": 664,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd01f978.0f3698",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 974,\r
+        "y": 791,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "1a2eb6ab.8d8199",\r
+                "7b8b1c71.d4b564"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "952f6f66.9b3a7",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 995,\r
+        "y": 917,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "3389c8d8.7dc548",\r
+                "89e6c787.5eaec8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50fc2c72.542084",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 959,\r
+        "y": 1022,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "5e807b52.3b6674",\r
+                "dd906860.1e0508"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e42e2444.15dd28",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 877,\r
+        "y": 1142,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b0c44c3f.e472",\r
+                "a4b23de1.e4be2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74474581.b5e87c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 792,\r
+        "y": 1266,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "9570111b.094dd",\r
+                "ad791da9.09703"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b8b1c71.d4b564",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1176,\r
+        "y": 820,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "89e6c787.5eaec8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1217,\r
+        "y": 952,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd906860.1e0508",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1186,\r
+        "y": 1063,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4b23de1.e4be2",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1103,\r
+        "y": 1194,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad791da9.09703",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 979,\r
+        "y": 1297,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "23fa6a55.3ea336",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 831,\r
+        "y": 1436,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "3049243b.bf71ec",\r
+                "d3f85039.043cd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9ec6aee.e4c848",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 840,\r
+        "y": 1569,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "79ac5779.cefe88",\r
+                "38258153.d7527e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "94357a7.a130f88",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 806,\r
+        "y": 1672,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "15aa4115.225e1f",\r
+                "91a910f5.57bfe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8dce08fb.34cdb8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 739,\r
+        "y": 1787,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d72c3e8d.b95f1",\r
+                "87d5be5d.2b207"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "425a258e.6c173c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 643,\r
+        "y": 1915,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "29176cbc.abf4c4",\r
+                "649070e6.751a3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3f85039.043cd",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1018,\r
+        "y": 1488,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "38258153.d7527e",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1041,\r
+        "y": 1599,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "91a910f5.57bfe",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 996,\r
+        "y": 1706,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "87d5be5d.2b207",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 950,\r
+        "y": 1844,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "649070e6.751a3",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 870,\r
+        "y": 1963,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1bf49ff2.464d4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 766,\r
+        "y": 2066,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d19285ad.4d90a8",\r
+                "79bcc46a.422fdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "55d9ef5.6d3f01",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 766,\r
+        "y": 2225,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b2271a07.74ec28",\r
+                "cc056ff9.228ea"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "924b471a.324748",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 726,\r
+        "y": 2329,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f1edcf75.5da63",\r
+                "93cf8bc1.5dacb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4afed28.6e4ed2c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 670,\r
+        "y": 2445,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d286e908.53cd68",\r
+                "6c9cc97c.0f7638"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49cef9bf.0a62e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 572,\r
+        "y": 2564,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "99bb505e.aea4d",\r
+                "1a3d11cb.c21c6e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79bcc46a.422fdc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 966,\r
+        "y": 2115,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc056ff9.228ea",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 973,\r
+        "y": 2273,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "93cf8bc1.5dacb8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 934,\r
+        "y": 2384,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c9cc97c.0f7638",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 869,\r
+        "y": 2491,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a3d11cb.c21c6e",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 746,\r
+        "y": 2627,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c0951d6c.a967f",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 946,\r
+        "y": 2788,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d11608f.d4f13",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 938,\r
+        "y": 2930,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fbbe414c.78665",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 915,\r
+        "y": 3046,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8ac631c.1e37",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 873,\r
+        "y": 3163,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "44c3bcb0.5e6ad4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 817,\r
+        "y": 3284,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b44fdae.dba374",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 751,\r
+        "y": 2753,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b6bdc28d.0a9d1",\r
+                "c0951d6c.a967f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1a1153c.aaf6a8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 760,\r
+        "y": 2898,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "37f02bd6.a3bc34",\r
+                "9d11608f.d4f13"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9682ea99.385bb8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 714,\r
+        "y": 3000,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "5fa94b20.fa80a4",\r
+                "fbbe414c.78665"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d48499c7.7a7708",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 663,\r
+        "y": 3116,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "48180881.455f58",\r
+                "e8ac631c.1e37"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "984049b4.f3f768",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 563,\r
+        "y": 3243,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "194a38c2.ba5f17",\r
+                "44c3bcb0.5e6ad4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f63ce118.af64a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 680,\r
+        "y": 80,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "1dc3bc82.c95123",\r
+                "e749c854.0dc6c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30b73784.022928",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 598,\r
+        "y": 667,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "57d6620f.6163cc",\r
+                "c4b29e77.0b02a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "61e4c74f.7d0068",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 372,\r
+        "y": 1313,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "99a06c04.fc087",\r
+                "3f1ddc4f.602e34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2791d26.93119",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 301,\r
+        "y": 1959,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "89ba325e.4bc83",\r
+                "7726f454.56bf9c"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update.json
new file mode 100644 (file)
index 0000000..4a83b13
--- /dev/null
@@ -0,0 +1,535 @@
+[\r
+    {\r
+        "id": "18085ebe.2080b1",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 491,\r
+        "y": 263,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "18152330.c91add"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18152330.c91add",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 612,\r
+        "y": 162,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "c668a8ef.03ace8",\r
+                "d1cff404.96b3b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66893dd3.7d6d44",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 974,\r
+        "y": 344,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "81ac4ffe.df305"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "81ac4ffe.df305",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1097,\r
+        "y": 339,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "3c2d54e2.97184c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "915a7aed.6d9c68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 1029,\r
+        "y": 243,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3133f444.5a5e1c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`0`' />\n",\r
+        "comments": "",\r
+        "x": 1371,\r
+        "y": 313,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6b05b797.6dcc48",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1423,\r
+        "y": 372,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "da084d00.a23f5",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 897,\r
+        "y": 187,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "632c39.072c73c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c668a8ef.03ace8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 770,\r
+        "y": 187,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "da084d00.a23f5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "632c39.072c73c8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 781,\r
+        "y": 294,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "47c4c7c8.0b4c88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97eda245.3bd94",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$pin.speed-value`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 258,\r
+        "y": 277,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "18085ebe.2080b1",\r
+                "6336ec43.215354",\r
+                "4af01397.f0721c",\r
+                "13671476.30978c",\r
+                "8fdcca3.ccd1438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6336ec43.215354",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 535,\r
+        "y": 377,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "2ac5f263.9388fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4af01397.f0721c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 514,\r
+        "y": 479,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "4c19e4dc.f77c2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13671476.30978c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 457,\r
+        "y": 578,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "8fbd05d3.328318"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8fdcca3.ccd1438",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321,\r
+        "y": 705,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "89103495.e05898"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ac5f263.9388fe",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 691,\r
+        "y": 378,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "5316c08.338af4",\r
+                "e98e80e5.101d1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c19e4dc.f77c2c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 684,\r
+        "y": 482,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "50c6b9ba.7e87b8",\r
+                "5d79d201.e7950c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8fbd05d3.328318",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 641,\r
+        "y": 576,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "c6c0c526.a7b418",\r
+                "ca06e916.be11d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89103495.e05898",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 478,\r
+        "y": 707,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "153b1907.652237",\r
+                "b455fb41.56e658"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5316c08.338af4",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu1 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 870,\r
+        "y": 384,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "50c6b9ba.7e87b8",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu2 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 861,\r
+        "y": 481,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6c0c526.a7b418",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu3 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 807,\r
+        "y": 576,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "153b1907.652237",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu4 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 650,\r
+        "y": 676,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1cff404.96b3b8",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu0 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 789,\r
+        "y": 125,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca06e916.be11d8",\r
+        "type": "call",\r
+        "name": "call bandwidth-update-odu3",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update-odu3' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847,\r
+        "y": 629,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b455fb41.56e658",\r
+        "type": "call",\r
+        "name": "call bandwidth-update-odu4",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update-odu4' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 697,\r
+        "y": 739,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e98e80e5.101d1",\r
+        "type": "call",\r
+        "name": "call bandwidth-update-odu1",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update-odu1' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 921,\r
+        "y": 430,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5d79d201.e7950c",\r
+        "type": "call",\r
+        "name": "call bandwidth-update-odu2",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update-odu2' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 907,\r
+        "y": 533,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "24d31db6.2991f2",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 107.5,\r
+        "y": 96,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "e91758dd.a9f1e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e91758dd.a9f1e8",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 166,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "9d59d2a1.9e885"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d59d2a1.9e885",\r
+        "type": "method",\r
+        "name": "method bandwidth-update",\r
+        "xml": "<method rpc='bandwidth-update' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321.5,\r
+        "y": 59,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "2cba60b2.bce73"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cba60b2.bce73",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 369,\r
+        "y": 203,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "97eda245.3bd94"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c2d54e2.97184c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1242,\r
+        "y": 329,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "3133f444.5a5e1c",\r
+                "6b05b797.6dcc48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47c4c7c8.0b4c88",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 903,\r
+        "y": 290,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "915a7aed.6d9c68",\r
+                "66893dd3.7d6d44"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_call-bandwidth-update-pinterface.json b/platform-logic/optical-service/src/main/json/optical-service_call-bandwidth-update-pinterface.json
new file mode 100644 (file)
index 0000000..120045b
--- /dev/null
@@ -0,0 +1,263 @@
+[\r
+    {\r
+        "id": "eea3e631.4d9b68",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 186,\r
+        "y": 126,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "cb6680a1.3045c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb6680a1.3045c",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 199,\r
+        "y": 186,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "fe24bdb7.c56f2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe24bdb7.c56f2",\r
+        "type": "method",\r
+        "name": "method call-bandwidth-update-pinterface",\r
+        "xml": "<method rpc='call-bandwidth-update-pinterface' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 219,\r
+        "y": 266,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "f4138d82.af408"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4138d82.af408",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 465.5,\r
+        "y": 265,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "644acd06.205cc4",\r
+                "9946b93e.6bd4e8",\r
+                "35af83ac.5dff5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "644acd06.205cc4",\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/test.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$div`\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 621,\r
+        "y": 105,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f55c6dd9.5cdaa",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`0`' />\n",\r
+        "comments": "",\r
+        "x": 1768,\r
+        "y": 299,\r
+        "z": "75b8fd05.797274",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "79209df4.edd3e4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1823,\r
+        "y": 353,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9946b93e.6bd4e8",\r
+        "type": "get-resource",\r
+        "name": "find if interface is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND depth = 'all'\"\npfx='pin'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 754,\r
+        "y": 179,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "35af83ac.5dff5c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$pin.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 644,\r
+        "y": 262,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "e2e8e64.ad89518",\r
+                "2d42a8a.f473958"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60b2bda3.41fbd4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 951,\r
+        "y": 250,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "301928f8.f38eb8",\r
+                "64426912.b5d438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "301928f8.f38eb8",\r
+        "type": "call",\r
+        "name": "call bandwidth update",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1160,\r
+        "y": 249,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2e8e64.ad89518",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 756,\r
+        "y": 360,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "97cc233d.bc8a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97cc233d.bc8a6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 926,\r
+        "y": 365,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "7a8337c7.492958",\r
+                "118d5528.b1e21b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a8337c7.492958",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name' \n      local-only='false'>\n<parameter name='available-capacity' value='0' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1161,\r
+        "y": 399,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "64426912.b5d438",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Port is NNI\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1092,\r
+        "y": 191,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "118d5528.b1e21b",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Port is UNI\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1110,\r
+        "y": 308,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d42a8a.f473958",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 790,\r
+        "y": 264,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "60b2bda3.41fbd4"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json b/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json
new file mode 100644 (file)
index 0000000..6926f79
--- /dev/null
@@ -0,0 +1,325 @@
+[\r
+    {\r
+        "id": "ef271e98.1343d",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 225.5555419921875,\r
+        "y": 244.44442749023438,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "69929ea4.2407d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "69929ea4.2407d",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 412.5555419921875,\r
+        "y": 193.44442749023438,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "926e362a.257c68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "926e362a.257c68",\r
+        "type": "method",\r
+        "name": "method",\r
+        "xml": "<method rpc='create-service-async' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 266.5555419921875,\r
+        "y": 367.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "1e677fcc.18edb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e677fcc.18edb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 439.5555419921875,\r
+        "y": 366.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "570787b6.c60918",\r
+                "8b32ac88.06a0b",\r
+                "d11ad8e1.0343c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "570787b6.c60918",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Create Service Async\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 612.5555419921875,\r
+        "y": 277.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "28c538c4.2302f8",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Finished updating service in AAI and DB to CREATED\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1140.5555419921875,\r
+        "y": 359.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e382c44.972184",\r
+        "type": "update",\r
+        "name": "update AAI service 'CREATED'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='service-instance'\n     key='customer.global-customer-id = $output.global-customer-id AND\n     service-subscription.service-type = $output.service-type AND\n     service-instance.service-instance-id = $output.service-instance-id' \n      local-only='false'>\n<parameter name='orchestration-status' value='CREATED' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1163.5555419921875,\r
+        "y": 227.44442749023438,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "11f258cf.0cfbe7",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='200'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 744.5555419921875,\r
+        "y": 328.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "6823decd.1c0f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f9398a1.9403f7",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 735.5555419921875,\r
+        "y": 440.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "a0d9ffaf.322a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6823decd.1c0f4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 914.5555419921875,\r
+        "y": 306.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "28c538c4.2302f8",\r
+                "5e382c44.972184",\r
+                "8124c756.1dde88",\r
+                "15476d01.4a1043"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a0d9ffaf.322a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 907.5555419921875,\r
+        "y": 443.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "20546055.63c8f",\r
+                "7353aa4c.564df4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b32ac88.06a0b",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$response-code`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 613.5555419921875,\r
+        "y": 366.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "11f258cf.0cfbe7",\r
+                "1f9398a1.9403f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8124c756.1dde88",\r
+        "type": "save",\r
+        "name": "update DB 'CREATED'",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE REQUEST_DETAILS SET status = \"CREATED\" WHERE request_id = $request-id'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1177.5555419921875,\r
+        "y": 299.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "20546055.63c8f",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1058.5555419921875,\r
+        "y": 471.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d11ad8e1.0343c8",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.template.so.response.filename`\" />\n<parameter name=\"restapiUrl\" value=\"`$output.notification-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.so.username`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.so.password`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 600.5555419921875,\r
+        "y": 501.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "7c0eb31b.04d7bc",\r
+                "f4076cb2.329c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c0eb31b.04d7bc",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 762.5555419921875,\r
+        "y": 494.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "d698b0bd.4bbda"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4076cb2.329c4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 764.5555419921875,\r
+        "y": 564.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "43f03cc3.9bf324"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d698b0bd.4bbda",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service create\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 904.5555419921875,\r
+        "y": 494.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "43f03cc3.9bf324",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO Success for service create\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 904.5555419921875,\r
+        "y": 564.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "15476d01.4a1043",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",\r
+        "comments": "",\r
+        "x": 1073.5555419921875,\r
+        "y": 146.44442749023438,\r
+        "z": "d7735114.f6066",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7353aa4c.564df4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",\r
+        "comments": "",\r
+        "x": 1052.5555419921875,\r
+        "y": 401.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu1.json b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu1.json
new file mode 100644 (file)
index 0000000..d9ec517
--- /dev/null
@@ -0,0 +1,454 @@
+[\r
+    {\r
+        "id": "14cf1df4.f54662",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 993.5,\r
+        "y": 264,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "4b4c9586.60ad3c",\r
+                "50fa7b63.da3bc4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b4c9586.60ad3c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1126.5,\r
+        "y": 233,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "306779ca.c7fe56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9426ab97.b5f1b8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 998.5,\r
+        "y": 186,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "932a9498.ee5f98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='mul' value='`$odu-number * 1.25`' />\n<parameter name='add' value='`$new-rate + $mul + 1.25`' />\n<parameter name='new-odu-number' value='`$add / 1.25`' />\n\n",\r
+        "comments": "",\r
+        "x": 1360.5,\r
+        "y": 161,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c328c57.512f64",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 717.5,\r
+        "y": 210,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "f515e19a.c4eb9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "147a7157.aff1bf",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 641.5,\r
+        "y": 328,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "2c328c57.512f64",\r
+                "6b124827.5aa0d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f515e19a.c4eb9",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 855.5,\r
+        "y": 217,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "14cf1df4.f54662",\r
+                "9426ab97.b5f1b8",\r
+                "540fc918.04e698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50fa7b63.da3bc4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1125.5,\r
+        "y": 348,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "3aa7a5af.1f725a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98ca9a7a.b1da28",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1400.5,\r
+        "y": 316,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bcd896ea.134ef8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1007.5,\r
+        "y": 544,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "734120af.333b1",\r
+                "e334adc6.74e18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "734120af.333b1",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1148.5,\r
+        "y": 536,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "dcf100f.11c2f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dedfd85.da6a228",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 1012.5,\r
+        "y": 466,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "759d5016.edc78",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1350.5,\r
+        "y": 469,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6b124827.5aa0d8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 718.5,\r
+        "y": 490,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "6b0aeeeb.a0e81"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b0aeeeb.a0e81",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 869.5,\r
+        "y": 497,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "bcd896ea.134ef8",\r
+                "dedfd85.da6a228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e334adc6.74e18",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1132.5,\r
+        "y": 667,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "d26ccdca.365ae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf4ea28f.11fc6",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='1' />\n",\r
+        "comments": "",\r
+        "x": 1377.5,\r
+        "y": 623,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "27d03218.2c866e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 484.5,\r
+        "y": 319,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "147a7157.aff1bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2abadb85.1dc3d4",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 201,\r
+        "y": 268,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "bec96b67.883f28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bec96b67.883f28",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 214,\r
+        "y": 328,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "78d1d1d9.cb848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78d1d1d9.cb848",\r
+        "type": "method",\r
+        "name": "method delete bandwidth-update-odu1",\r
+        "xml": "<method rpc='delete-bandwidth-update-odu1' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 398,\r
+        "y": 221,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "27d03218.2c866e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "351de7e6.d55ea8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1363.5,\r
+        "y": 228,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6aa1cc4f.711764",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1376.5,\r
+        "y": 371,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "97686f7.b4f569",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1396.5,\r
+        "y": 525,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddeda7ad.8f0998",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1327.5,\r
+        "y": 694,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "306779ca.c7fe56",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1233.5,\r
+        "y": 161,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "932a9498.ee5f98",\r
+                "351de7e6.d55ea8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3aa7a5af.1f725a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1256.5,\r
+        "y": 312,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "98ca9a7a.b1da28",\r
+                "6aa1cc4f.711764"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcf100f.11c2f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1230.5,\r
+        "y": 459,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "759d5016.edc78",\r
+                "97686f7.b4f569"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d26ccdca.365ae",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1250.5,\r
+        "y": 626,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "cf4ea28f.11fc6",\r
+                "ddeda7ad.8f0998"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "540fc918.04e698",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 946,\r
+        "y": 104,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu2.json b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu2.json
new file mode 100644 (file)
index 0000000..656b365
--- /dev/null
@@ -0,0 +1,860 @@
+[\r
+    {\r
+        "id": "b084fa89.f01ea8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 438,\r
+        "y": 232,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "4a97ff4f.bfd68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96e5a34.59f306",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1079,\r
+        "y": 277,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "3237c518.883aea",\r
+                "17eeb3ce.47776c",\r
+                "f581aa2a.165e38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3237c518.883aea",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1155,\r
+        "y": 243,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "8941d396.ae578"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d4152ec.e45f7c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 1061,\r
+        "y": 181,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "90fbbfdf.89335",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1443,\r
+        "y": 211,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7de90141.291c1",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 736,\r
+        "y": 231,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "2095e985.399556"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a97ff4f.bfd68",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 592,\r
+        "y": 231,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "7de90141.291c1",\r
+                "ab83f93d.af31c8",\r
+                "8918a3a1.0f4c3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bbd68719.94eee8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 919,\r
+        "y": 219,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "96e5a34.59f306",\r
+                "4d4152ec.e45f7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17eeb3ce.47776c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1168,\r
+        "y": 379,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "cd9a6f0d.03ece"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "998f566b.d4d9e8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1467,\r
+        "y": 332,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "790b63ef.5c774c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 960,\r
+        "y": 90,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f581aa2a.165e38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1132,\r
+        "y": 482,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "dfcbed36.411bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39a8fb6b.0b40a4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1436,\r
+        "y": 454,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "12b025be.1f759a",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1007,\r
+        "y": 667,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "3061fe37.c208d2",\r
+                "2365bc21.8d3944",\r
+                "725b3549.24459c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3061fe37.c208d2",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1129,\r
+        "y": 621,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "c7c40fab.6345"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96e86968.dc5e98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 998,\r
+        "y": 576,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a3c6d00a.fa619",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 + 2.5`' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1452,\r
+        "y": 593,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ab83f93d.af31c8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 710,\r
+        "y": 609,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "b066df18.02cae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98be1322.5dbe2",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 884,\r
+        "y": 640,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "12b025be.1f759a",\r
+                "96e86968.dc5e98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2365bc21.8d3944",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1142,\r
+        "y": 757,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "68cdb2e2.1beadc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a7b0de3.f782f4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1450,\r
+        "y": 709,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9c6b03eb.4ea26",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 928,\r
+        "y": 502,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "725b3549.24459c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1106,\r
+        "y": 860,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "421b157.4c954ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddc39868.09efe8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />",\r
+        "comments": "",\r
+        "x": 1367,\r
+        "y": 826,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1bd73569.83c83b",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 975,\r
+        "y": 1078,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "d2d3fe29.bb8c5",\r
+                "7053f4c5.cb96fc",\r
+                "e891798c.221d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2d3fe29.bb8c5",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1195,\r
+        "y": 1029,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "65623413.b6a16c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5799259.1501c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 965,\r
+        "y": 995,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bc2d2f17.5283e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1468,\r
+        "y": 993,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8918a3a1.0f4c3",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 483,\r
+        "y": 1046,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "9bd6ab5e.2aa3f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9bd6ab5e.2aa3f8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 767,\r
+        "y": 1068,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "1bd73569.83c83b",\r
+                "e5799259.1501c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7053f4c5.cb96fc",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1207,\r
+        "y": 1139,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "4fbc165e.af8b28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ec7cd6b.270684",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1489,\r
+        "y": 1134,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e891798c.221d78",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1172,\r
+        "y": 1268,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "ad049b10.0853d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7954d64.7fafd28",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='1' />\n",\r
+        "comments": "",\r
+        "x": 1467,\r
+        "y": 1232,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f31d8438.407118",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 154.5,\r
+        "y": 181,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "a3c96eae.dff1a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3c96eae.dff1a",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 167.5,\r
+        "y": 241,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "38a440d1.a85fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38a440d1.a85fc",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu2",\r
+        "xml": "<method rpc='delete-bandwidth-update-odu2' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 351.5,\r
+        "y": 134,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "b084fa89.f01ea8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ee205eb.afea4c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1507,\r
+        "y": 273,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "73d5ca4b.b372c4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1533,\r
+        "y": 406,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd46f3c0.e51ed",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1510,\r
+        "y": 500,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3eb9c961.16b566",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1522,\r
+        "y": 642,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5662332b.e46ebc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1525,\r
+        "y": 769,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d29d5b74.ba8d28",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1440,\r
+        "y": 873,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "37487968.375e66",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1545,\r
+        "y": 1049,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "80e964ca.f77f08",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1551,\r
+        "y": 1177,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2b35aea.618608",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1537,\r
+        "y": 1304,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8941d396.ae578",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1291,\r
+        "y": 241,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "90fbbfdf.89335",\r
+                "6ee205eb.afea4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd9a6f0d.03ece",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1316,\r
+        "y": 377,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "998f566b.d4d9e8",\r
+                "73d5ca4b.b372c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfcbed36.411bf",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1282,\r
+        "y": 482,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "39a8fb6b.0b40a4",\r
+                "fd46f3c0.e51ed"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7c40fab.6345",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1280,\r
+        "y": 620,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "a3c6d00a.fa619",\r
+                "3eb9c961.16b566"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "68cdb2e2.1beadc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1282,\r
+        "y": 753,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "4a7b0de3.f782f4",\r
+                "5662332b.e46ebc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "421b157.4c954ec",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1245,\r
+        "y": 855,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "ddc39868.09efe8",\r
+                "d29d5b74.ba8d28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65623413.b6a16c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1329,\r
+        "y": 1028,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "bc2d2f17.5283e",\r
+                "37487968.375e66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4fbc165e.af8b28",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1343,\r
+        "y": 1139,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "5ec7cd6b.270684",\r
+                "80e964ca.f77f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad049b10.0853d8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1329,\r
+        "y": 1265,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "7954d64.7fafd28",\r
+                "c2b35aea.618608"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2095e985.399556",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847,\r
+        "y": 139,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "790b63ef.5c774c",\r
+                "bbd68719.94eee8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b066df18.02cae",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 783,\r
+        "y": 524,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "9c6b03eb.4ea26",\r
+                "98be1322.5dbe2"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu3.json b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu3.json
new file mode 100644 (file)
index 0000000..7d7bf57
--- /dev/null
@@ -0,0 +1,1369 @@
+[\r
+    {\r
+        "id": "8d41b76e.8319d8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 988,\r
+        "y": 236,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d69353a4.24ec8",\r
+                "15df8587.d012ba",\r
+                "e34c472c.7e9bf8",\r
+                "245e3f1e.5d3a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d69353a4.24ec8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1127,\r
+        "y": 195,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "dad51fb1.76c5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df03b509.c3f478",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 996,\r
+        "y": 150,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3609827f.fcb6ce",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1420,\r
+        "y": 166,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eebdd00f.806a1",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 708,\r
+        "y": 183,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "1626d84d.ac5288"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c473b1.dfd6cc5",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 577,\r
+        "y": 239,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "eebdd00f.806a1",\r
+                "57db244d.168dec",\r
+                "e47d3f3c.c7eee",\r
+                "9d8b96fe.e35c18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6696470.4af878",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 852,\r
+        "y": 201,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "8d41b76e.8319d8",\r
+                "df03b509.c3f478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15df8587.d012ba",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1157,\r
+        "y": 284,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "9aebc906.7ec828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7af77373.08ef3c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1424,\r
+        "y": 269,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f8bfac2.36eb75",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 940,\r
+        "y": 110,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e34c472c.7e9bf8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1126,\r
+        "y": 384,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "320538e5.459798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49d2e14a.e0831",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1412,\r
+        "y": 381,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "245e3f1e.5d3a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1053.5,\r
+        "y": 492,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "15c7f37b.3ce5cd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a44f2f93.e33ee",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 1340.5,\r
+        "y": 477,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4f82d59f.d7878c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 928.5,\r
+        "y": 761,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "63ef2910.e15ea8",\r
+                "13e7fbbe.8224c4",\r
+                "545acf83.d977a",\r
+                "e76578e3.fa2b68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "63ef2910.e15ea8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1067.5,\r
+        "y": 720,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "2eed2013.3103b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ce84401.de74fc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 936.5,\r
+        "y": 675,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5d046c24.a94904",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1344.5,\r
+        "y": 680,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "57db244d.168dec",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 648.5,\r
+        "y": 708,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "1d988fc7.aaa8d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9af7bf20.b6eca",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 835.5,\r
+        "y": 705,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "4f82d59f.d7878c",\r
+                "2ce84401.de74fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13e7fbbe.8224c4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1102.5,\r
+        "y": 813,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "de8e79cb.6adff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34140f7a.d40ac",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1375.5,\r
+        "y": 797,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a1d8630c.b5301",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 868.5,\r
+        "y": 602,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "545acf83.d977a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1060.5,\r
+        "y": 904,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "cd07167a.fb6828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2cf346e.d8f528",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1365.5,\r
+        "y": 903,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e76578e3.fa2b68",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 967,\r
+        "y": 1074,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d55a158d.d18d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a05435f.d4353",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n\n",\r
+        "comments": "",\r
+        "x": 1233,\r
+        "y": 1042,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "adf37b81.78f9d8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 791.5,\r
+        "y": 1299,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "123b2c6c.87d394",\r
+                "764640ee.5307a",\r
+                "640e28ad.70c758",\r
+                "199e7d83.d11602"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "123b2c6c.87d394",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 978.5,\r
+        "y": 1239,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "163bb21d.b7402e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfe59ec0.7b47f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 817.5,\r
+        "y": 1193,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a5ceaad0.7b2e98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1278.5,\r
+        "y": 1202,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e47d3f3c.c7eee",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 498.5,\r
+        "y": 1244,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "94b9cb3e.7a7908"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e4dfd94a.f3f8a8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 670.5,\r
+        "y": 1238,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "adf37b81.78f9d8",\r
+                "dfe59ec0.7b47f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "764640ee.5307a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1000.5,\r
+        "y": 1330,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "6db1b75e.333138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70caefc5.35b37",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1291.5,\r
+        "y": 1317,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "42aeb489.01833c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 709.5,\r
+        "y": 1040,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "640e28ad.70c758",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 994.5,\r
+        "y": 1430,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "e683a53a.2cb798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bce56334.cef35",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1297.5,\r
+        "y": 1415,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "199e7d83.d11602",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941,\r
+        "y": 1553,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "b2417e73.3411e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c33b36cc.bdba48",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n\n",\r
+        "comments": "",\r
+        "x": 1253,\r
+        "y": 1523,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "661a2b7a.180074",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 680.5,\r
+        "y": 1825,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "dd12f2f0.8a68a",\r
+                "66a31a3b.1c8154",\r
+                "b0413d9c.7600e",\r
+                "96922755.f96fc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd12f2f0.8a68a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 819.5,\r
+        "y": 1784,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "9abceb9d.617848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8601a47a.8c3ed8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 688.5,\r
+        "y": 1739,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2d4dab4.8c6e454",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='32' />\n",\r
+        "comments": "",\r
+        "x": 1146.5,\r
+        "y": 1752,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e01f4ec9.b4c58",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1158.5,\r
+        "y": 1810,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d8b96fe.e35c18",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 250.5,\r
+        "y": 1802,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "e6692338.1522b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6692338.1522b",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 496.5,\r
+        "y": 1801,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "661a2b7a.180074",\r
+                "8601a47a.8c3ed8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66a31a3b.1c8154",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 832.5,\r
+        "y": 1920,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "12a7c275.a1dfbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d62119c.036fc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='16' />",\r
+        "comments": "",\r
+        "x": 1102.5,\r
+        "y": 1886,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "33303232.af288e",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1173.5,\r
+        "y": 1940,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0413d9c.7600e",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 796.5,\r
+        "y": 2023,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d89df4a1.349488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d03beaa6.c50d48",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='4' />",\r
+        "comments": "",\r
+        "x": 1113.5,\r
+        "y": 1991,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ec61d318.4a068",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1165.5,\r
+        "y": 2071,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "96922755.f96fc8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 719,\r
+        "y": 2138,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "e8da0845.d7dd68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0f4bd54.3df3c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='1' />",\r
+        "comments": "",\r
+        "x": 1012,\r
+        "y": 2104,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "93d95bab.ebebf8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1068,\r
+        "y": 2178,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8787e989.ccd598",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 203,\r
+        "y": 196,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "3c964252.555eae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c964252.555eae",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 216,\r
+        "y": 256,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "e7c3d6b.cd1a228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7c3d6b.cd1a228",\r
+        "type": "method",\r
+        "name": "method delete-bandwidth-update-odu3",\r
+        "xml": "<method rpc='delete-bandwidth-update-odu3' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 403,\r
+        "y": 149,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "da1e03d2.0ead3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da1e03d2.0ead3",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 450.5,\r
+        "y": 293,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "c473b1.dfd6cc5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7004d549.5cff0c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1465.5,\r
+        "y": 224,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "22d5f51.6d8c50a",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1478.5,\r
+        "y": 323,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a656ecb.418852",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1457.5,\r
+        "y": 427,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cf809fa.4e86d8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1401.5,\r
+        "y": 527,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b5fea7b.ea5c58",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1311.5,\r
+        "y": 1095,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d90c61bd.7df73",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1395.5,\r
+        "y": 949,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e86a4f54.8b60c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1424.5,\r
+        "y": 847,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d30a43c5.05e1",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1410.5,\r
+        "y": 737,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "15df0c5e.685b84",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1338.5,\r
+        "y": 1255,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c63d1802.0a2cc8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1345.5,\r
+        "y": 1363,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c14fd025.9a0ba",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1325.5,\r
+        "y": 1473,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3320388.be5e4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1319.5,\r
+        "y": 1586,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dad51fb1.76c5",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1269.5,\r
+        "y": 195,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "3609827f.fcb6ce",\r
+                "7004d549.5cff0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9aebc906.7ec828",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1286.5,\r
+        "y": 281,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "7af77373.08ef3c",\r
+                "22d5f51.6d8c50a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "320538e5.459798",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1276.5,\r
+        "y": 386,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "49d2e14a.e0831",\r
+                "3a656ecb.418852"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15c7f37b.3ce5cd",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1188.5,\r
+        "y": 489,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "a44f2f93.e33ee",\r
+                "9cf809fa.4e86d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2eed2013.3103b",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1210.5,\r
+        "y": 718,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "5d046c24.a94904",\r
+                "d30a43c5.05e1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de8e79cb.6adff8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1236.5,\r
+        "y": 814,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "34140f7a.d40ac",\r
+                "e86a4f54.8b60c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd07167a.fb6828",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1206.5,\r
+        "y": 903,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "c2cf346e.d8f528",\r
+                "d90c61bd.7df73"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d55a158d.d18d78",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1102.5,\r
+        "y": 1072,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "8a05435f.d4353",\r
+                "9b5fea7b.ea5c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "163bb21d.b7402e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1120.5,\r
+        "y": 1236,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "a5ceaad0.7b2e98",\r
+                "15df0c5e.685b84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6db1b75e.333138",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1145.5,\r
+        "y": 1330,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "70caefc5.35b37",\r
+                "c63d1802.0a2cc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e683a53a.2cb798",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1145.5,\r
+        "y": 1425,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "bce56334.cef35",\r
+                "c14fd025.9a0ba"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2417e73.3411e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1082.5,\r
+        "y": 1550,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "c33b36cc.bdba48",\r
+                "c3320388.be5e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9abceb9d.617848",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 968.5,\r
+        "y": 1778,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "2d4dab4.8c6e454",\r
+                "e01f4ec9.b4c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12a7c275.a1dfbe",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 972.5,\r
+        "y": 1917,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "4d62119c.036fc",\r
+                "33303232.af288e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d89df4a1.349488",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 942.5,\r
+        "y": 2020,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d03beaa6.c50d48",\r
+                "ec61d318.4a068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8da0845.d7dd68",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 850.5,\r
+        "y": 2134,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d0f4bd54.3df3c",\r
+                "93d95bab.ebebf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1626d84d.ac5288",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 793.5,\r
+        "y": 117,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "f8bfac2.36eb75",\r
+                "d6696470.4af878"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d988fc7.aaa8d",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 734.5,\r
+        "y": 614,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "a1d8630c.b5301",\r
+                "9af7bf20.b6eca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "94b9cb3e.7a7908",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 609.5,\r
+        "y": 1102,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "42aeb489.01833c",\r
+                "e4dfd94a.f3f8a8"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu4.json b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu4.json
new file mode 100644 (file)
index 0000000..dd24ec2
--- /dev/null
@@ -0,0 +1,1998 @@
+[\r
+    {\r
+        "id": "cc88740a.d18858",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 906.5,\r
+        "y": 234,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "ec6a20fb.4d35",\r
+                "dadcc749.b32938",\r
+                "ddd6d57c.9ced78",\r
+                "7bbf1a7c.4bd704",\r
+                "b6932950.974d38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec6a20fb.4d35",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1045.5,\r
+        "y": 193,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "71b54a1e.76d464"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fdb469ba.aea598",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 914.5,\r
+        "y": 148,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "31a50a41.c4f296",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1348.5,\r
+        "y": 131,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "29663dcb.c50a22",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 626.5,\r
+        "y": 181,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "f6326386.3110b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fda877ca.d8efd8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 495.5,\r
+        "y": 237,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "29663dcb.c50a22",\r
+                "61e3284a.786fc8",\r
+                "65399e41.006f5",\r
+                "8331c6db.d82208",\r
+                "6866fd25.085604"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83b38caf.77a65",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 816.5,\r
+        "y": 185,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "cc88740a.d18858",\r
+                "fdb469ba.aea598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dadcc749.b32938",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1058.5,\r
+        "y": 329,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "cc0ff801.9a2c88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abfe89e5.77de78",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1315.5,\r
+        "y": 284,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c8150f72.a6ddb",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 783.5,\r
+        "y": 85,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ddd6d57c.9ced78",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1022.5,\r
+        "y": 432,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "55f9b5d1.30b88c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b8a271c.f86558",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1319.5,\r
+        "y": 404,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7bbf1a7c.4bd704",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 945,\r
+        "y": 547,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "19f2ff00.f00971"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe790a3c.9a15a8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 1247,\r
+        "y": 519,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "30e9996b.2eae46",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 121.5,\r
+        "y": 194,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "56814f30.ccf4f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "56814f30.ccf4f",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 254,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "34f5e2a6.0519ce"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34f5e2a6.0519ce",\r
+        "type": "method",\r
+        "name": "method delete bandwidth-update-odu4",\r
+        "xml": "<method rpc='delete-bandwidth-update-odu4' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 318.5,\r
+        "y": 147,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2a403491.3f102c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a403491.3f102c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 369,\r
+        "y": 291,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "fda877ca.d8efd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b6932950.974d38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 854.5,\r
+        "y": 678,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "33ef2100.94a93"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d44cfa3.e1f37",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",\r
+        "comments": "",\r
+        "x": 1189.5,\r
+        "y": 653,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f2e5ec12.72084",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 699.5,\r
+        "y": 875,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "66ff3db3.558494",\r
+                "166020fb.4fc2ff",\r
+                "5d58dc53.9a5524",\r
+                "56d61ee2.93f6f",\r
+                "6214d8db.707218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66ff3db3.558494",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 838.5,\r
+        "y": 834,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "ee090cfa.47d82"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b5e27ff.1e1a68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 707.5,\r
+        "y": 789,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e500448.b3e17c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.5 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1118.5,\r
+        "y": 811,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "61e3284a.786fc8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 419.5,\r
+        "y": 822,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "18e66372.38fbfd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab02c8a.fb9e538",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 607.5,\r
+        "y": 832,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "f2e5ec12.72084",\r
+                "6b5e27ff.1e1a68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "166020fb.4fc2ff",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 851.5,\r
+        "y": 970,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "93138ec2.21291"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c90177ab.d9e9e8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1165.5,\r
+        "y": 944,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd2246c4.c9d9d8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 710.5,\r
+        "y": 659,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5d58dc53.9a5524",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 815.5,\r
+        "y": 1073,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "fcf70703.de8018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b7bb736.873f58",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1113.5,\r
+        "y": 1061,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "56d61ee2.93f6f",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 738,\r
+        "y": 1188,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "187f78f0.1f0e47"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "59ab82e8.b2d06c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 991,\r
+        "y": 1189,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6214d8db.707218",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 647.5,\r
+        "y": 1319,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "db42f47f.bab0a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10540582.e5e31a",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",\r
+        "comments": "",\r
+        "x": 910.5,\r
+        "y": 1298,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2894aeeb.098f92",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 550.5,\r
+        "y": 1522,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "bb22ab08.091558",\r
+                "75052fc5.0c7e5",\r
+                "5061896a.175198",\r
+                "835735a8.f975c8",\r
+                "60b9cb5b.d389f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb22ab08.091558",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 689.5,\r
+        "y": 1481,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "d78b1e27.6807d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cd7515f.85632e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 558.5,\r
+        "y": 1436,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "79dc39fc.d92468",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 956.5,\r
+        "y": 1483,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "65399e41.006f5",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 270.5,\r
+        "y": 1469,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "27260d94.bdce02"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f27c3bdd.40a7d8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 414.5,\r
+        "y": 1487,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2894aeeb.098f92",\r
+                "3cd7515f.85632e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75052fc5.0c7e5",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 702.5,\r
+        "y": 1617,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "a64dd5fd.979978"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a8b4f9c.99a4f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 964.5,\r
+        "y": 1592,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ae596d23.ffcbe",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 493.5,\r
+        "y": 1352,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5061896a.175198",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 666.5,\r
+        "y": 1720,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "d3f23744.959668"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "708f1f3.59cc6e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 948.5,\r
+        "y": 1692,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "835735a8.f975c8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 589,\r
+        "y": 1835,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "9c31fdd3.8019"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e74b995.080ac8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 870,\r
+        "y": 1830,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "60b9cb5b.d389f4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 498.5,\r
+        "y": 1966,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "e13be75e.0ed828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e46ae81.a94fb",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",\r
+        "comments": "",\r
+        "x": 776.5,\r
+        "y": 1960,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1344723c.62dc8e",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 480.5,\r
+        "y": 2176,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "63adf83d.fa8608",\r
+                "8f6d26d0.a90738",\r
+                "1c4b4a71.f99166",\r
+                "88a94576.a532f8",\r
+                "197bee79.743762"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "63adf83d.fa8608",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 619.5,\r
+        "y": 2135,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "bb8717d.98063e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c68fdd6d.064e2",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 488.5,\r
+        "y": 2090,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2813c51b.3b520a",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 40 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 886.5,\r
+        "y": 2112,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8331c6db.d82208",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 200.5,\r
+        "y": 2123,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "968f3953.080178"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6440a99f.61bf28",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 381.5,\r
+        "y": 2116,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "1344723c.62dc8e",\r
+                "c68fdd6d.064e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f6d26d0.a90738",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 632.5,\r
+        "y": 2271,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "5da983c3.e1d2ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6da5650d.a39a7c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 884.5,\r
+        "y": 2267,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4964d358.105f0c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 431.5,\r
+        "y": 2030,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c4b4a71.f99166",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 596.5,\r
+        "y": 2374,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "b0f60bb.3262cf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ff4f8f6.86a188",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 882.5,\r
+        "y": 2372,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "88a94576.a532f8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 519,\r
+        "y": 2489,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "cc232935.3f9f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad946015.e587d",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 790,\r
+        "y": 2483,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "197bee79.743762",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 428.5,\r
+        "y": 2620,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "7c05d82.d12ef28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1275394e.236567",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",\r
+        "comments": "",\r
+        "x": 736.5,\r
+        "y": 2612,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72dd2cf4.351f54",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 462.5,\r
+        "y": 2849,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "18416ef2.ba5491",\r
+                "3f9e5c53.79ce24",\r
+                "8387bf46.cfc03",\r
+                "86469ccf.d4a69",\r
+                "703bcbd8.ccaa24"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18416ef2.ba5491",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 601.5,\r
+        "y": 2808,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "e620b730.716308"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca7bfd42.04981",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 470.5,\r
+        "y": 2763,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "302523c5.0f8d8c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='80' />\n",\r
+        "comments": "",\r
+        "x": 873.5,\r
+        "y": 2786,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6866fd25.085604",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 182.5,\r
+        "y": 2796,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "7ea41c4e.513904"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ea41c4e.513904",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 326.5,\r
+        "y": 2814,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "72dd2cf4.351f54",\r
+                "ca7bfd42.04981"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f9e5c53.79ce24",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614.5,\r
+        "y": 2944,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "130aaf8d.b9dfc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f3050bc.f5300f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='40' />",\r
+        "comments": "",\r
+        "x": 869.5,\r
+        "y": 2918,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8387bf46.cfc03",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 578.5,\r
+        "y": 3047,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "dae1085f.bbf3d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "626c25fe.549ccc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='10' />",\r
+        "comments": "",\r
+        "x": 851.5,\r
+        "y": 3047,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "86469ccf.d4a69",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 501,\r
+        "y": 3162,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "635d7956.0a1708"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a636bfd.78de84",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='2' />",\r
+        "comments": "",\r
+        "x": 846,\r
+        "y": 3159,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "703bcbd8.ccaa24",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 410.5,\r
+        "y": 3293,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "567ca1e0.2a9b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c248fb50.5e9388",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='1' />",\r
+        "comments": "",\r
+        "x": 727.5,\r
+        "y": 3272,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd09ca1f.383d68",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1391.5,\r
+        "y": 202,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "71b54a1e.76d464",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1178.5,\r
+        "y": 189,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "31a50a41.c4f296",\r
+                "bd09ca1f.383d68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc0ff801.9a2c88",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1186.5,\r
+        "y": 328,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "abfe89e5.77de78",\r
+                "e979a386.df595"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "55f9b5d1.30b88c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1147.5,\r
+        "y": 430,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "9b8a271c.f86558",\r
+                "48073d25.db9f14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19f2ff00.f00971",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1084.5,\r
+        "y": 546,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "fe790a3c.9a15a8",\r
+                "8ed3505f.cc695"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33ef2100.94a93",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 995.5,\r
+        "y": 675,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "4d44cfa3.e1f37",\r
+                "1dc0e5b7.0c161a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e979a386.df595",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1386.5,\r
+        "y": 341,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "48073d25.db9f14",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1342.5,\r
+        "y": 464,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ed3505f.cc695",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1294.5,\r
+        "y": 581,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1dc0e5b7.0c161a",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1247.5,\r
+        "y": 710,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee090cfa.47d82",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 969.5,\r
+        "y": 837,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2e500448.b3e17c",\r
+                "90a042a7.aabef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93138ec2.21291",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 990.5,\r
+        "y": 963,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "c90177ab.d9e9e8",\r
+                "79fe4e64.bfbc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fcf70703.de8018",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 954.5,\r
+        "y": 1068,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "7b7bb736.873f58",\r
+                "5305fd9.d71ef04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "187f78f0.1f0e47",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 872.5,\r
+        "y": 1188,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "59ab82e8.b2d06c",\r
+                "5a68e84d.f32638"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db42f47f.bab0a8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 787.5,\r
+        "y": 1312,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "10540582.e5e31a",\r
+                "8f58142a.864268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "90a042a7.aabef",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1171.5,\r
+        "y": 866,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "79fe4e64.bfbc8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1212.5,\r
+        "y": 998,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5305fd9.d71ef04",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1181.5,\r
+        "y": 1109,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a68e84d.f32638",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1098.5,\r
+        "y": 1240,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f58142a.864268",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 974.5,\r
+        "y": 1343,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d78b1e27.6807d",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 826.5,\r
+        "y": 1482,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "79dc39fc.d92468",\r
+                "a1897bb9.653598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a64dd5fd.979978",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 835.5,\r
+        "y": 1615,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "4a8b4f9c.99a4f",\r
+                "cbf4e316.c0ca2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3f23744.959668",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 801.5,\r
+        "y": 1718,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "708f1f3.59cc6e",\r
+                "fa009921.006868"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c31fdd3.8019",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 734.5,\r
+        "y": 1833,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "4e74b995.080ac8",\r
+                "267e668.24a139a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e13be75e.0ed828",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 638.5,\r
+        "y": 1961,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "6e46ae81.a94fb",\r
+                "b78e12a0.1a95c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1897bb9.653598",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1013.5,\r
+        "y": 1534,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbf4e316.c0ca2",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1036.5,\r
+        "y": 1645,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa009921.006868",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 991.5,\r
+        "y": 1752,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "267e668.24a139a",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 945.5,\r
+        "y": 1890,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b78e12a0.1a95c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 865.5,\r
+        "y": 2009,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb8717d.98063e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 761.5,\r
+        "y": 2112,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2813c51b.3b520a",\r
+                "7ff69d68.ab21b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5da983c3.e1d2ec",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 761.5,\r
+        "y": 2271,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "6da5650d.a39a7c",\r
+                "b5b12f9b.59f5b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0f60bb.3262cf8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 721.5,\r
+        "y": 2375,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2ff4f8f6.86a188",\r
+                "d438523d.2ad33"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc232935.3f9f08",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 665.5,\r
+        "y": 2491,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "ad946015.e587d",\r
+                "79f90431.6699bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c05d82.d12ef28",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 567.5,\r
+        "y": 2610,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "1275394e.236567",\r
+                "9879906b.d8a7a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ff69d68.ab21b4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 961.5,\r
+        "y": 2161,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5b12f9b.59f5b",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 968.5,\r
+        "y": 2319,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d438523d.2ad33",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 929.5,\r
+        "y": 2430,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "79f90431.6699bc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 864.5,\r
+        "y": 2537,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9879906b.d8a7a",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 741.5,\r
+        "y": 2673,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9ec2030.df9cf",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941.5,\r
+        "y": 2834,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd357b79.64c228",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 933.5,\r
+        "y": 2976,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9fb9dba.4badb",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 910.5,\r
+        "y": 3092,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d474ed3.c62d4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 868.5,\r
+        "y": 3209,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "334c0710.add048",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 812.5,\r
+        "y": 3330,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e620b730.716308",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 746.5,\r
+        "y": 2799,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "302523c5.0f8d8c",\r
+                "f9ec2030.df9cf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "130aaf8d.b9dfc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 755.5,\r
+        "y": 2944,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "1f3050bc.f5300f",\r
+                "dd357b79.64c228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dae1085f.bbf3d8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 709.5,\r
+        "y": 3046,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "626c25fe.549ccc",\r
+                "f9fb9dba.4badb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "635d7956.0a1708",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 658.5,\r
+        "y": 3162,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "1a636bfd.78de84",\r
+                "4d474ed3.c62d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "567ca1e0.2a9b8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 558.5,\r
+        "y": 3289,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "c248fb50.5e9388",\r
+                "334c0710.add048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f6326386.3110b",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 675.5,\r
+        "y": 126,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "c8150f72.a6ddb",\r
+                "83b38caf.77a65"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18e66372.38fbfd",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 593.5,\r
+        "y": 713,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "bd2246c4.c9d9d8",\r
+                "ab02c8a.fb9e538"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27260d94.bdce02",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 367.5,\r
+        "y": 1359,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "ae596d23.ffcbe",\r
+                "f27c3bdd.40a7d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "968f3953.080178",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 296.5,\r
+        "y": 2005,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "4964d358.105f0c",\r
+                "6440a99f.61bf28"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-service-async.json b/platform-logic/optical-service/src/main/json/optical-service_delete-service-async.json
new file mode 100644 (file)
index 0000000..b63fca0
--- /dev/null
@@ -0,0 +1,310 @@
+[\r
+    {\r
+        "id": "8cc3da66.4f40d8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 207.77777099609375,\r
+        "y": 274.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "1e550516.1038fb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e550516.1038fb",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 394.77777099609375,\r
+        "y": 223.33332633972168,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "8bf17f5d.611f3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8bf17f5d.611f3",\r
+        "type": "method",\r
+        "name": "method",\r
+        "xml": "<method rpc='delete-service-async' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 248.77777099609375,\r
+        "y": 397.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "b44c3e44.1bd1b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b44c3e44.1bd1b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 421.77777099609375,\r
+        "y": 396.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "6d08e4a5.fe6bac",\r
+                "11020991.7c7d86",\r
+                "9db1a4b5.47b0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d08e4a5.fe6bac",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Delete Service Async\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 594.7777709960938,\r
+        "y": 307.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "11020991.7c7d86",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$response-code`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 595.7777709960938,\r
+        "y": 396.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "25e55ab4.b92da6",\r
+                "b0822e31.3769c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25e55ab4.b92da6",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='200'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 763.7777709960938,\r
+        "y": 339.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "4a5e5e93.4bb0a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "26f00225.07a6ee",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1110.7777709960938,\r
+        "y": 340.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a5e5e93.4bb0a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 939.7777709960938,\r
+        "y": 339.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "26f00225.07a6ee",\r
+                "bfe4da6d.23bff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2afd11c.20c8",\r
+        "type": "update",\r
+        "name": "update AAI service 'CREATED'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='service-instance'\n     key='customer.global-customer-id = $output.global-customer-id AND\n     service-subscription.service-type = $output.service-type AND\n     service-instance.service-instance-id = $output.service-instance-id' \n      local-only='false'>\n<parameter name='orchestration-status' value='CREATED' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1164.1110534667969,\r
+        "y": 459.2222137451172,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0822e31.3769c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 738.7777709960938,\r
+        "y": 410.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "7741584b.61db58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7741584b.61db58",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 901.7777709960938,\r
+        "y": 412.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "e2afd11c.20c8",\r
+                "80fddf5d.9a9f2",\r
+                "e0a008e3.38d8a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9db1a4b5.47b0b8",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/async-response-so.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$output.notification-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.so.username`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.so.password`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 596.7777709960938,\r
+        "y": 483.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "e497ea1c.ea2f88",\r
+                "d8b75d43.49a72"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e497ea1c.ea2f88",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 758.7777709960938,\r
+        "y": 476.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "18019049.2a70d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8b75d43.49a72",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 760.7777709960938,\r
+        "y": 546.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "9194dca2.b34f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18019049.2a70d",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service delete\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 904.7777709960938,\r
+        "y": 476.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9194dca2.b34f",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service delete\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 900.7777709960938,\r
+        "y": 546.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfe4da6d.23bff8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",\r
+        "comments": "",\r
+        "x": 1093.7777709960938,\r
+        "y": 276.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "80fddf5d.9a9f2",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",\r
+        "comments": "",\r
+        "x": 1103.7777709960938,\r
+        "y": 397.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e0a008e3.38d8a8",\r
+        "type": "save",\r
+        "name": "update DB 'CREATED'",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE REQUEST_DETAILS SET status = \"CREATED\" WHERE request_id = $request-id'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1127.7777404785156,\r
+        "y": 515.5554885864258,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_handle-async-notif.json b/platform-logic/optical-service/src/main/json/optical-service_handle-async-notif.json
new file mode 100644 (file)
index 0000000..a71017e
--- /dev/null
@@ -0,0 +1,286 @@
+[\r
+    {\r
+        "id": "6f3be679.102eb8",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 326.6666564941406,\r
+        "y": 225.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "af4b79a2.a55f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af4b79a2.a55f08",\r
+        "type": "method",\r
+        "name": "method",\r
+        "xml": "<method rpc='handle-async-notif' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 180.66665649414062,\r
+        "y": 399.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "86d5028d.c5258"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86d5028d.c5258",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 368.6666564941406,\r
+        "y": 399.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "d24a17f7.d6a648",\r
+                "2faf78f7.30e068",\r
+                "ffe6e86b.e5f058"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d24a17f7.d6a648",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Reached async graph\"/>\n<parameter name=\"field2\" value=\"`$request-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 495.6666564941406,\r
+        "y": 281.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2faf78f7.30e068",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$ack-final-indicator`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 504.6666564941406,\r
+        "y": 469.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "7b60ff0d.907ce",\r
+                "1bcf360f.7e976a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b60ff0d.907ce",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='N'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 674.6666564941406,\r
+        "y": 392.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "b40d70d0.112e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a88f7bf8.d91d78",\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/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Ack indicator in 'N'\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1025.6666564941406,\r
+        "y": 238.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b40d70d0.112e5",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 849.6666564941406,\r
+        "y": 239.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "a88f7bf8.d91d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1bcf360f.7e976a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='Y'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 658.6666564941406,\r
+        "y": 533.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "d1db50fc.60a86"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1db50fc.60a86",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 812.6666564941406,\r
+        "y": 481.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "920fb578.d225d8",\r
+                "199a9ce9.ce53b3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffe6e86b.e5f058",\r
+        "type": "execute",\r
+        "name": "execute: read properties",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n<parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\n<parameter name='contextPrefix' value='prop' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614.6666564941406,\r
+        "y": 337.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "920fb578.d225d8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$output.status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 987.6666564941406,\r
+        "y": 527.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "13be4531.42948b",\r
+                "db9a79a3.a1b058"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "199a9ce9.ce53b3",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\npfx='output'>\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n     \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1003.6666564941406,\r
+        "y": 434.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "13be4531.42948b",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='CREATING'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1141.6666564941406,\r
+        "y": 476.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "f57cf67a.bbe098"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db9a79a3.a1b058",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='DELETING'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1161.6666564941406,\r
+        "y": 561.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "2940e810.23a048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f57cf67a.bbe098",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='create-service-async' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1300.6666564941406,\r
+        "y": 475.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2940e810.23a048",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='delete-service-async' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1307.6666564941406,\r
+        "y": 561.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "74552b51.5e6134",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 149.66665649414062,\r
+        "y": 275.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "6f3be679.102eb8"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_service-create-tapi.json b/platform-logic/optical-service/src/main/json/optical-service_service-create-tapi.json
new file mode 100644 (file)
index 0000000..9a2ee7a
--- /dev/null
@@ -0,0 +1,1702 @@
+[\r
+    {\r
+        "id": "96e558c1.171928",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 174,\r
+        "y": 96,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "ba6338c5.40bd88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba6338c5.40bd88",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 187,\r
+        "y": 156,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "3857a42a.6b4cdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3857a42a.6b4cdc",\r
+        "type": "method",\r
+        "name": "method service-create-tapi",\r
+        "xml": "<method rpc='service-create-tapi' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 207,\r
+        "y": 236,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "bca1514.f1c7bb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bca1514.f1c7bb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 416.5,\r
+        "y": 241,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "83c30d61.39881",\r
+                "28460541.766c1a",\r
+                "58f1dbe7.901a34",\r
+                "72b2db54.6e2944",\r
+                "b90929e.4a985d8",\r
+                "65a74a39.a4d774",\r
+                "cc0f04eb.f41858",\r
+                "c7ace3b2.11081",\r
+                "3ff768b5.f99338",\r
+                "2995b56c.890f5a",\r
+                "bf3d0d8f.af5f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83c30d61.39881",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside optical service create tapi\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 416,\r
+        "y": 39,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "28460541.766c1a",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $optical-service-create-input.payload.service-aend.port-id'\npfx='db-aend'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614.9999389648438,\r
+        "y": 90.99998474121094,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "40e83861.7ed4d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58f1dbe7.901a34",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $optical-service-create-input.payload.service-zend.port-id'\npfx='db-zend'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 635.9999389648438,\r
+        "y": 155.99996948242188,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "428896b5.e069b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40e83861.7ed4d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 774.9999389648438,\r
+        "y": 92.99998474121094,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "eccba7dd.6944a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "428896b5.e069b8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 784.9999389648438,\r
+        "y": 153.99996948242188,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "37897f34.5ca9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eccba7dd.6944a8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-node-uuid' value='`$db-aend.pnf-name`' />\n<parameter name='aend-pnf-name' value='`$db-aend.pnf-id`' />\n<parameter name='aend-cep-list' value='`$db-aend.connection-point`' />\n<parameter name='aend-nep' value='`$db-aend.interface-name`' />\n<parameter name='aend-rate' value='`$db-aend.rate`' />\n",\r
+        "comments": "",\r
+        "x": 940.9999389648438,\r
+        "y": 93.99996948242188,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "37897f34.5ca9",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-node-uuid' value='`$db-zend.pnf-name`' />\n<parameter name='zend-pnf-name' value='`$db-zend.pnf-id`' />\n<parameter name='zend-cep-list' value='`$db-zend.connection-point`' />\n<parameter name='zend-nep' value='`$db-zend.interface-name`' />\n<parameter name='zend-rate' value='`$db-zend.rate`' />\n",\r
+        "comments": "",\r
+        "x": 934,\r
+        "y": 153,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72b2db54.6e2944",\r
+        "type": "execute",\r
+        "name": "execute: read properties",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n<parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\n<parameter name='contextPrefix' value='prop' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 604,\r
+        "y": 45,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b90929e.4a985d8",\r
+        "type": "get-resource",\r
+        "name": "find if aend is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $aend-node-uuid AND\n     p-interface.interface-name = $aend-nep\"\npfx='aend'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 700,\r
+        "y": 237,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "65a74a39.a4d774",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$aend.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 615,\r
+        "y": 333,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "4a9b044a.0f3ccc",\r
+                "ea6d56a1.b032a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a9b044a.0f3ccc",\r
+        "type": "outcome",\r
+        "name": "UNI",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 740,\r
+        "y": 282,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c9780ca0.f5f71"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b0b12c9.238b4c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-cep' value='`$aend-cep-list`' />\n<parameter name='aend-new' value='' />\n<parameter name='aend-new-rate' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1115,\r
+        "y": 131,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8b8d35a4.ce05f8",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$aend-cep-list`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1102,\r
+        "y": 373,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c9780ca0.f5f71",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 878,\r
+        "y": 281,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "4b0b12c9.238b4c",\r
+                "72c16e75.1a562",\r
+                "bd108f1e.ab488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ea274d9.8036ac",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 898,\r
+        "y": 396,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "8b8d35a4.ce05f8",\r
+                "e25b0e67.09bb4",\r
+                "a1b81fea.edbde",\r
+                "514a609b.d74c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3109f9ae.76da66",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.cep.details.url + $param-prefix[$idx]`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"aend-cep-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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": 1229.1111221313477,\r
+        "y": 457.22221660614014,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "11b6c81d.28de98",\r
+                "599fbaf2.e79674"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11b6c81d.28de98",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1346.77779006958,\r
+        "y": 411.0000057220459,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "d3f94b37.cc4268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "599fbaf2.e79674",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1356.2221794128418,\r
+        "y": 480.7777805328369,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "14aab0b3.9d34ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3f94b37.cc4268",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1504,\r
+        "y": 411,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7102ebf7.57bb74",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Sucessfully retrieved aend cep\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1643,\r
+        "y": 433,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e25b0e67.09bb4",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='`$param-prefix_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1090,\r
+        "y": 422,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "46da2f38.8c645"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14aab0b3.9d34ff",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1494,\r
+        "y": 483,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7102ebf7.57bb74",\r
+                "4004dd00.d10474"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d11a7c1c.7e732",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2100.5552864074707,\r
+        "y": 532.1110572814941,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a50c2dd5.e9535",\r
+        "type": "set",\r
+        "name": "set aend-local-id",\r
+        "xml": "<set>\n<parameter name='aend-local-id' value=\"`$aend-local-id + '/OTN/' + $aend-pnf-name + '/' + $aend-cep-response.sip[0].name[2].value + ':' + $aend-cep-response.sip[0].name[1].value`\" />\n<parameter name='aend-cep' value='`$param-prefix[$idx]`'/>\n\n\n",\r
+        "comments": "",\r
+        "x": 2128.3332290649414,\r
+        "y": 461.1111087799072,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c05f290.3530ac",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1922,\r
+        "y": 498,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "a50c2dd5.e9535",\r
+                "d11a7c1c.7e732"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46da2f38.8c645",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1099,\r
+        "y": 483,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "3109f9ae.76da66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1b81fea.edbde",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value='' />\n<parameter name='aend-local-id' value='' />\n\n",\r
+        "comments": "",\r
+        "x": 1066,\r
+        "y": 326,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc0f04eb.f41858",\r
+        "type": "get-resource",\r
+        "name": "find if zend is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $zend-node-uuid AND\n     p-interface.interface-name = $zend-nep\"\npfx='zend'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 719,\r
+        "y": 779,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7ace3b2.11081",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$zend.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 488,\r
+        "y": 1128,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c85fd988.301698",\r
+                "9efb19c3.6da618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c85fd988.301698",\r
+        "type": "outcome",\r
+        "name": "UNI",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614,\r
+        "y": 1048,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "b4f379c1.c24888"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c3f18e8.1c0b18",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-cep' value='`$zend-cep-list`' />\n<parameter name='zend-new' value='' />\n<parameter name='zend-new-rate' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1035,\r
+        "y": 769,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3e6ef851.b14d38",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$zend-cep-list`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix1\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 986,\r
+        "y": 1188,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4f379c1.c24888",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 894,\r
+        "y": 827,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7c3f18e8.1c0b18",\r
+                "f950d837.cb97f8",\r
+                "ccff2354.5c8d6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ae39741.d1c3c8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 776,\r
+        "y": 1245,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "3e6ef851.b14d38",\r
+                "f903e0d6.863cf",\r
+                "9bced74d.d072a8",\r
+                "943fe233.c96d1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f903e0d6.863cf",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value='' />\n<parameter name='zend-local-id' value='' />\n",\r
+        "comments": "",\r
+        "x": 987,\r
+        "y": 1136,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ea6d56a1.b032a8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 752,\r
+        "y": 398,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "2ea274d9.8036ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9efb19c3.6da618",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 610,\r
+        "y": 1243,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "2ae39741.d1c3c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ff768b5.f99338",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/optical-service-create-tapi.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$controller-ip + '/cxf/tapi/v2/connectivities/tapi-services'`\"/>\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"tapi-service-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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": 227.00006103515625,\r
+        "y": 1569,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "f2fbbd03.f2906",\r
+                "bebd84e7.a3b248"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2fbbd03.f2906",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 368.00006103515625,\r
+        "y": 1517,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "dcee484.0427eb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bebd84e7.a3b248",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 382.00006103515625,\r
+        "y": 1631,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "87a25e6a.1b2d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcee484.0427eb8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 533.0000610351562,\r
+        "y": 1516,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "58ea97a5.b3e618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "87a25e6a.1b2d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 558.0000610351562,\r
+        "y": 1631,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "df77f71.8f24908",\r
+                "e14a80e1.1f5b7",\r
+                "9510207c.71682",\r
+                "6da24e58.717bb",\r
+                "71928460.ed14cc",\r
+                "5a15ce33.45154"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58ea97a5.b3e618",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Service creation failed' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
+        "comments": "",\r
+        "x": 725.0000610351562,\r
+        "y": 1517,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "df77f71.8f24908",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Service created successfully' />\n<parameter name='ack-final-indicator' value=\"Y\" />\n",\r
+        "comments": "",\r
+        "x": 734.5556030273438,\r
+        "y": 1874.4443359375,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4a0bc718.a962f8",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='success-aai-update-tapi' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1271,\r
+        "y": 2002,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2995b56c.890f5a",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='service-name' value=\"`$optical-service-create-input.payload.service-name`\" />\n<parameter name='svc-action' value=\"CREATE\" />\n",\r
+        "comments": "",\r
+        "x": 327,\r
+        "y": 1371,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bf3d0d8f.af5f6",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A end local-id\"/>\n<parameter name=\"field2\" value=\"`$aend-local-id`\"/>\n<parameter name=\"field3\" value=\"Z end local-id\"/>\n<parameter name=\"field4\" value=\"`$zend-local-id`\"/>\n<parameter name=\"field5\" value=\"Service name\"/>\n<parameter name=\"field6\" value=\"`$service-name`\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 291,\r
+        "y": 1454,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f662c6.88da9d",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idl' start='0' end='`$param-prefix1_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1258,\r
+        "y": 1490,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "b907a417.722e98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba640497.6998e8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new + $param-prefix1[$idl]`\" />\n",\r
+        "comments": "",\r
+        "x": 1710,\r
+        "y": 1421,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b907a417.722e98",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$idl`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1393,\r
+        "y": 1491,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "91e17725.73caf8",\r
+                "c2c37dd4.88b1e",\r
+                "84a33271.66a7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "91e17725.73caf8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='`$param-prefix1_length - 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1573,\r
+        "y": 1423,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "ba640497.6998e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2c37dd4.88b1e",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1580,\r
+        "y": 1498,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7e15b45a.f1185c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e15b45a.f1185c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new + $param-prefix1[$idl] + ','`\" />\n",\r
+        "comments": "",\r
+        "x": 1736,\r
+        "y": 1500,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "84a33271.66a7e",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='`$idk`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1564,\r
+        "y": 1558,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "2fb07baa.dd5174"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fb07baa.dd5174",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value='`$zend-new`' />\n",\r
+        "comments": "",\r
+        "x": 1741,\r
+        "y": 1556,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9510207c.71682",\r
+        "type": "save",\r
+        "name": "update pinterface cep DB Zend",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 857.2222900390625,\r
+        "y": 1697.666748046875,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e14a80e1.1f5b7",\r
+        "type": "save",\r
+        "name": "update pinterface cep DB Aend",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 875,\r
+        "y": 1631,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "72c16e75.1a562",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Aend uni\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1118,\r
+        "y": 195,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f950d837.cb97f8",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Zend uni\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1054,\r
+        "y": 816,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6da24e58.717bb",\r
+        "type": "save",\r
+        "name": "save service db",\r
+        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\" key=\"INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url) VALUES ( $optical-service-create-input.request-id , $controller-id , 'CREATED' , $optical-service-create-input.payload.service-rate ,  $optical-service-create-input.service-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , null );\"> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 877,\r
+        "y": 1573,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c27a69f2.0ddb38",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1793,\r
+        "y": 466,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7c05f290.3530ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b435c8d.3fd214",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1822.222116470337,\r
+        "y": 593.3333568572998,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "d092daa9.9a37d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d092daa9.9a37d8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='No service interface points could be found for A end ' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
+        "comments": "",\r
+        "x": 1966.6666259765625,\r
+        "y": 593.3333129882812,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "71928460.ed14cc",\r
+        "type": "save",\r
+        "name": "save service aai",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \n     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-aend.port-id `\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$aend-node-uuid`\" /> \n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-zend.port-id `\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$zend-node-uuid`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 765.9999389648438,\r
+        "y": 1818.111083984375,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a15ce33.45154",\r
+        "type": "save",\r
+        "name": "save",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'  \n     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id' >\n<parameter name='service-instance-id' value='`$optical-service-create-input.service-id`' />\n<parameter name='service-instance-name' value='`$optical-service-create-input.payload.service-name`' />\n<parameter name='service-type' value='Domain-Service' />\n<parameter name='orchestration-status' value='CREATED' />\n<parameter name='service-rate' value='`$optical-service-create-input.payload.service-rate`' />\n<parameter name='service-layer' value='ODU' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 758.9999389648438,\r
+        "y": 1758,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd108f1e.ab488",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.cep.details.url + $aend-cep`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"aend-cep-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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": 1116,\r
+        "y": 256,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "6b2a855d.23024c",\r
+                "f3b11a4b.2344f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b2a855d.23024c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1274,\r
+        "y": 216,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "eef404ec.f0bb08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f3b11a4b.2344f8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1283.4443893432617,\r
+        "y": 285.777774810791,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "d15a3398.6ced1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eef404ec.f0bb08",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1431.22220993042,\r
+        "y": 215.9999942779541,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d15a3398.6ced1",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1449.22216796875,\r
+        "y": 284,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "afd9ff21.3fd56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "afd9ff21.3fd56",\r
+        "type": "set",\r
+        "name": "set aend-local-id",\r
+        "xml": "<set>\n<parameter name='aend-local-id' value=\"`'/OTN/' + $aend-pnf-name + '/' + $aend-cep-response.sip[0].name[2].value + ':' + $aend-cep-response.sip[0].name[1].value`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 1643,\r
+        "y": 284,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b74dbdb.822994",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.cep.details.url + $param-prefix1[$idk]`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"zend-cep-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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": 1341,\r
+        "y": 1242,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "e8c33d42.33806",\r
+                "d05bc068.08527"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8c33d42.33806",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1462,\r
+        "y": 1203,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "431138f7.d0a218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d05bc068.08527",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1480,\r
+        "y": 1297,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "f244762f.d3c018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "431138f7.d0a218",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get zend cep details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1610,\r
+        "y": 1200,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e69d1da.c8582",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Sucessfully retrieved zend cep\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1779,\r
+        "y": 1250,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9bced74d.d072a8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idk' start='0' end='`$param-prefix1_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 987,\r
+        "y": 1243,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "1b2a920e.3e410e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f244762f.d3c018",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1635,\r
+        "y": 1300,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7e69d1da.c8582",\r
+                "efc25f0c.a1d2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "efc25f0c.a1d2c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$zend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1789,\r
+        "y": 1314,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c32606e1.58b168",\r
+                "4ea93db7.c01e74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b2a920e.3e410e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1139,\r
+        "y": 1245,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "b74dbdb.822994"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a62b46a5.e1b858",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2177,\r
+        "y": 1325,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e5a3a6b1.5eb5b8",\r
+        "type": "set",\r
+        "name": "set zend-local-id",\r
+        "xml": "<set>\n<parameter name='zend-local-id' value=\"`$zend-local-id + '/OTN/' + $zend-pnf-name + '/' + $zend-cep-response.sip[0].name[2].value + ':' + $zend-cep-response.sip[0].name[1].value`\" />\n<parameter name='zend-cep' value='`$param-prefix1[$idk]`'/>\n\n\n\n",\r
+        "comments": "",\r
+        "x": 2210,\r
+        "y": 1215,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5608122b.ab9f6c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2059,\r
+        "y": 1271,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "e5a3a6b1.5eb5b8",\r
+                "a62b46a5.e1b858"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c32606e1.58b168",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1927.9998779296875,\r
+        "y": 1275.6666259765625,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "5608122b.ab9f6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ea93db7.c01e74",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1927.8887939453125,\r
+        "y": 1380.1109619140625,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "e720f2d5.77fdb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e720f2d5.77fdb",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='No service interface points could be found for Z end ' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
+        "comments": "",\r
+        "x": 2107.22216796875,\r
+        "y": 1383.111083984375,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "943fe233.c96d1",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$param-prefix1_length == 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941,\r
+        "y": 1395,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7c8d1f90.d20f8",\r
+                "59bf8efe.e5d3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c8d1f90.d20f8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1081,\r
+        "y": 1349,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "5a2d4b65.e557b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a2d4b65.e557b4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new`\" />\n",\r
+        "comments": "",\r
+        "x": 1216,\r
+        "y": 1349,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "59bf8efe.e5d3",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1083,\r
+        "y": 1489,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "8f662c6.88da9d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4004dd00.d10474",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$aend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1652,\r
+        "y": 501,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c27a69f2.0ddb38",\r
+                "7b435c8d.3fd214"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "514a609b.d74c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$param-prefix_length == 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1071,\r
+        "y": 550,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "191fbb7.2a4b845",\r
+                "1cd1ef71.14acd1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "191fbb7.2a4b845",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1225,\r
+        "y": 551,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "a558f9eb.613c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a558f9eb.613c58",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new`\" />\n",\r
+        "comments": "",\r
+        "x": 1387,\r
+        "y": 551,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1cd1ef71.14acd1",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1229,\r
+        "y": 602,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "93a39454.c21878"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93a39454.c21878",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idy' start='0' end='`$param-prefix_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1353,\r
+        "y": 626,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "6e31bfde.e9a2b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12b9813c.84c17f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-new + $param-prefix[$idy]`\" />\n",\r
+        "comments": "",\r
+        "x": 1803,\r
+        "y": 642,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6e31bfde.e9a2b",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$idy`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1518,\r
+        "y": 691,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "48d2ce69.6ccad",\r
+                "735daaac.0a3344",\r
+                "2e826606.462a6a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "48d2ce69.6ccad",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='`$param-prefix_length - 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1660,\r
+        "y": 642,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "12b9813c.84c17f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "735daaac.0a3344",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1690,\r
+        "y": 716,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "5f658cca.768614"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f658cca.768614",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-new + $param-prefix[$idy] + ','`\" />\n",\r
+        "comments": "",\r
+        "x": 1807,\r
+        "y": 726,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e826606.462a6a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='`$idx`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1669,\r
+        "y": 797,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "4869b073.d45ad"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4869b073.d45ad",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value='`$aend-new`' />\n",\r
+        "comments": "",\r
+        "x": 1807,\r
+        "y": 793,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ccff2354.5c8d6",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.cep.details.url + $zend-cep`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"zend-cep-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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": 1036,\r
+        "y": 902,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "f30e06ef.3ea158",\r
+                "7c8fb487.808e3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f30e06ef.3ea158",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1196,\r
+        "y": 861,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7aa077ea.c86438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c8fb487.808e3c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1205.4443893432617,\r
+        "y": 930.777774810791,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "a6409b41.3875a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7aa077ea.c86438",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1353.22220993042,\r
+        "y": 860.9999942779541,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6409b41.3875a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1371.22216796875,\r
+        "y": 929,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c469b431.4e03c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c469b431.4e03c8",\r
+        "type": "set",\r
+        "name": "set zend-local-id",\r
+        "xml": "<set>\n<parameter name='zend-local-id' value=\"`'/OTN/' + $zend-pnf-name + '/' + $zend-cep-response.sip[0].name[2].value + ':' + $zend-cep-response.sip[0].name[1].value`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 1565,\r
+        "y": 929,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_service-delete-tapi.json b/platform-logic/optical-service/src/main/json/optical-service_service-delete-tapi.json
new file mode 100644 (file)
index 0000000..cef6bc4
--- /dev/null
@@ -0,0 +1,674 @@
+[\r
+    {\r
+        "id": "22cb0f8b.7a936",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 276,\r
+        "y": 233,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "899fe88f.8b0f18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "899fe88f.8b0f18",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 289,\r
+        "y": 293,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "8c11d44e.febba8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c11d44e.febba8",\r
+        "type": "method",\r
+        "name": "method service-delete-tapi",\r
+        "xml": "<method rpc='service-delete-tapi' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 309,\r
+        "y": 373,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "4251fc90.7d3354"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4251fc90.7d3354",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 556.5,\r
+        "y": 373,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "fa22a868.cbac88",\r
+                "61c8204a.2cec1",\r
+                "613af82c.220508"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa22a868.cbac88",\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/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside optical service delete tapi\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 653,\r
+        "y": 196,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "61c8204a.2cec1",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='request-id' value='`$optical-service-delete-input.request-id`' />\n",\r
+        "comments": "",\r
+        "x": 729,\r
+        "y": 245,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "613af82c.220508",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.get.services.url + $optical-service-delete-input.payload.service-name`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"services-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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": 759.9999351501465,\r
+        "y": 378.8888759613037,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "6682edb5.3e9d24",\r
+                "894f9664.c6abc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddeadbca.081d98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-nep' value=\"`$services-response.service[0].end-point[0].connection-end-point[0].node-edge-point-uuid`\" />\n<parameter name='zend-nep' value=\"`$services-response.service[0].end-point[1].connection-end-point[0].node-edge-point-uuid`\" />\n<parameter name='aend-cep' value=\"`$services-response.service[0].end-point[0].connection-end-point[0].connection-end-point-uuid`\" />\n<parameter name='zend-cep' value=\"`$services-response.service[0].end-point[1].connection-end-point[0].connection-end-point-uuid`\" />\n",\r
+        "comments": "",\r
+        "x": 1492.2221755981445,\r
+        "y": 305.555513381958,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6682edb5.3e9d24",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 963.3332595825195,\r
+        "y": 353.33330249786377,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "894f9664.c6abc8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 939.999885559082,\r
+        "y": 435.55552768707275,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "dafe166a.8b36d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dafe166a.8b36d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1135.5554733276367,\r
+        "y": 446.6666831970215,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "ddeadbca.081d98",\r
+                "2801b4f8.38386c",\r
+                "3cf51d10.896032",\r
+                "a44318ce.afad08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2801b4f8.38386c",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $aend-nep'\npfx='db-aend'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1545.5556449890137,\r
+        "y": 367.77777004241943,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cf51d10.896032",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $zend-nep'\npfx='db-zend'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1545.555549621582,\r
+        "y": 422.2222137451172,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "852e3fe3.e39dd",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value='`$aend-cep`' />\n",\r
+        "comments": "",\r
+        "x": 1931.221923828125,\r
+        "y": 647.22216796875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4644be9d.89b97",\r
+        "type": "get-resource",\r
+        "name": "find if aend is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $db-aend.pnf-name AND\n     p-interface.interface-name = $aend-nep\"\npfx='aend'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1719.1107177734375,\r
+        "y": 562.8888549804688,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a44318ce.afad08",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.delete.service.url + $optical-service-delete-input.payload.service-name`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"tapi-service-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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": 1283.3331146240234,\r
+        "y": 514.4444074630737,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "58946d75.cedfa4",\r
+                "e7cecf42.399a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58946d75.cedfa4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1252.3331146240234,\r
+        "y": 656.4444074630737,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "1e4a35c6.1c31ca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e4a35c6.1c31ca",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1406.5553512573242,\r
+        "y": 610.666627407074,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "4644be9d.89b97",\r
+                "652250d1.df0d6",\r
+                "29655b58.ca1ca4",\r
+                "aad55652.80ccf8",\r
+                "82da300b.4f57c",\r
+                "2082255.0c982da",\r
+                "9f9c7a46.ce0ff8",\r
+                "70a0ebe0.92bcd4",\r
+                "33fa91ea.5695ce",\r
+                "425e8f1f.07ad6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7cecf42.399a6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1409.9998016357422,\r
+        "y": 498.88880443573,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "ea3eca27.8a59e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea3eca27.8a59e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1576.9998016357422,\r
+        "y": 497.88880443573,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "e7be8bd4.b55258"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7be8bd4.b55258",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Service Deletion failed' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
+        "comments": "",\r
+        "x": 1744.8886985778809,\r
+        "y": 496.66657543182373,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "652250d1.df0d6",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Service deleted successfully' />\n<parameter name='ack-final-indicator' value=\"Y\" />\n",\r
+        "comments": "",\r
+        "x": 1297.7775955200195,\r
+        "y": 1231.1110696792603,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "29655b58.ca1ca4",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$aend.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1641.1108856201172,\r
+        "y": 665.5554914474487,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "aea6fbc6.1505d8",\r
+                "2d663d56.1e55d2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aea6fbc6.1505d8",\r
+        "type": "outcome",\r
+        "name": "UNI",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1805.888671875,\r
+        "y": 647.22216796875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "852e3fe3.e39dd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d663d56.1e55d2",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1808.1108779907227,\r
+        "y": 720.5555419921875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "af008805.61eae8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aad55652.80ccf8",\r
+        "type": "save",\r
+        "name": "update pinterface cep DB Aend",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1671.1108856201172,\r
+        "y": 763.3332624435425,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "82da300b.4f57c",\r
+        "type": "get-resource",\r
+        "name": "find if zend is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $db-zend.pnf-name AND\n     p-interface.interface-name = $zend-nep\"\npfx='zend'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1647.7772598266602,\r
+        "y": 846.6665992736816,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2082255.0c982da",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$zend.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1549.9998149871826,\r
+        "y": 915.55544090271,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "3a6cd376.4295ac",\r
+                "86c6217d.bed2a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a6cd376.4295ac",\r
+        "type": "outcome",\r
+        "name": "UNI",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1740.3330764770508,\r
+        "y": 903.2221584320068,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "b35b94b1.940ff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86c6217d.bed2a",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1742.5553359985352,\r
+        "y": 970.5555419921875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "e1b5d596.201438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9f9c7a46.ce0ff8",\r
+        "type": "save",\r
+        "name": "update pinterface cep DB Zend",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1571.1112060546875,\r
+        "y": 1009.9999141693115,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "74642edb.088ea",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-cep`\" />\n",\r
+        "comments": "",\r
+        "x": 2139.999885559082,\r
+        "y": 972.2221412658691,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b35b94b1.940ff8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value='`$zend-cep`' />\n",\r
+        "comments": "",\r
+        "x": 1866.6664352416992,\r
+        "y": 902.2221622467041,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "33fa91ea.5695ce",\r
+        "type": "delete",\r
+        "name": "delete service instance AAI",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $output.global-customer-id AND\nservice-subscription.service-type = $output.service-type AND\nservice-instance.service-instance-id = $output.service-instance-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1466.6664199829102,\r
+        "y": 1124.4443254470825,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "70a0ebe0.92bcd4",\r
+        "type": "get-resource",\r
+        "name": "get service db",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\npfx='output'>\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n     \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1487.7775344848633,\r
+        "y": 1067.7777080535889,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e1b5d596.201438",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$db-zend.connection-point`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1884.4444444444443,\r
+        "y": 973.3333333333333,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "1ff79f49.8fba61",\r
+                "54376f65.aa57"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ff79f49.8fba61",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2012.2222061157227,\r
+        "y": 974.4444217681885,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "74642edb.088ea"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9bfc410.022418",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$db-zend.connection-point + ',' + $zend-cep`\" />\n",\r
+        "comments": "",\r
+        "x": 2142.221981048584,\r
+        "y": 1038.8887939453125,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "54376f65.aa57",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2024.4444444444443,\r
+        "y": 1037.7777777777778,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "f9bfc410.022418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af008805.61eae8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$db-aend.connection-point`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1935.5554428100586,\r
+        "y": 723.3333148956299,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "fdc21e7c.da331",\r
+                "ede7f03e.32c01"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ca90d2f.d086e4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-cep`\" />\n",\r
+        "comments": "",\r
+        "x": 2210,\r
+        "y": 712.22216796875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fdc21e7c.da331",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2082.2223205566406,\r
+        "y": 714.4444484710693,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "6ca90d2f.d086e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f35c33d.adfbfd",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value=\"`$db-aend.connection-point + ',' + $aend-cep`\" />\n",\r
+        "comments": "",\r
+        "x": 2212.222095489502,\r
+        "y": 778.8888206481934,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ede7f03e.32c01",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2094.4445588853623,\r
+        "y": 777.7778044806587,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "f35c33d.adfbfd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "425e8f1f.07ad6",\r
+        "type": "delete",\r
+        "name": "delete from db",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n    resource=\"SQL\"\n    key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1377.7776336669922,\r
+        "y": 1185.5554809570312,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json b/platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json
new file mode 100644 (file)
index 0000000..497a75c
--- /dev/null
@@ -0,0 +1,156 @@
+[\r
+    {\r
+        "id": "257d2596.c5ecca",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 571,\r
+        "y": 662,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "5432b538.633ffc",\r
+                "7695aa94.c622d4",\r
+                "ebe3ff74.b36dd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cc69ab0.52e865",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 101.5,\r
+        "y": 597,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "d088abd2.9587b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d088abd2.9587b8",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 249.5,\r
+        "y": 654,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "ddbd4624.086548"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddbd4624.086548",\r
+        "type": "method",\r
+        "name": "method success-aai-update-tapi",\r
+        "xml": "<method rpc='success-aai-update-tapi' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 439.5,\r
+        "y": 589,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "257d2596.c5ecca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5432b538.633ffc",\r
+        "type": "save",\r
+        "name": "save",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \n     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $aend-nep `\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$aend-node-uuid`\" /> \n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $zend-nep `\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$zend-node-uuid`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 729,\r
+        "y": 607,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7695aa94.c622d4",\r
+        "type": "get-resource",\r
+        "name": "Get service from AAI",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id'  \npfx='aai.service'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 788,\r
+        "y": 661,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebe3ff74.b36dd",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idy' start='0' end='`$aai.service.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 700,\r
+        "y": 733,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "50909009.4a074"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50909009.4a074",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847,\r
+        "y": 733,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "65d0b7bd.e13a18",\r
+                "9f8f4fb.cc3cbb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65d0b7bd.e13a18",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\n<parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\n\n",\r
+        "comments": "",\r
+        "x": 991,\r
+        "y": 637,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9f8f4fb.cc3cbb",\r
+        "type": "call",\r
+        "name": "call call-bandwidth-update-pinterface",\r
+        "xml": "<call module='optical-service' rpc='call-bandwidth-update-pinterface' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1127,\r
+        "y": 732,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index 026c2ea..1654685 100644 (file)
@@ -3,3 +3,20 @@ optical-service optical-service-create ${project.version} sync
 optical-service optical-service-create-sync-success ${project.version} sync
 optical-service service-create-msa ${project.version} sync
 optical-service optical-service-delete ${project.version} sync
+optical-service optical-service_aai-delete-service-handling ${project.version} sync
+optical-service optical-service_bandwidth-update ${project.version} sync
+optical-service optical-service_bandwidth-update-odu1 ${project.version} sync
+optical-service optical-service_bandwidth-update-odu2 ${project.version} sync
+optical-service optical-service_bandwidth-update-odu3 ${project.version} sync
+optical-service optical-service_bandwidth-update-odu4 ${project.version} sync
+optical-service optical-service_call-bandwidth-update-pinterface ${project.version} sync
+optical-service optical-service_create-service-async ${project.version} sync
+optical-service optical-service_delete-service-async ${project.version} sync
+optical-service optical-service_handle-async-notif ${project.version} sync
+optical-service optical-service_service-create-tapi ${project.version} sync
+optical-service optical-service_service-delete-tapi ${project.version} sync
+optical-service optical-service_success-aai-update-tapi ${project.version} sync
+optical-service optical-service_delete-bandwidth-update-odu1 ${project.version} sync
+optical-service optical-service_delete-bandwidth-update-odu2 ${project.version} sync
+optical-service optical-service_delete-bandwidth-update-odu3 ${project.version} sync
+optical-service optical-service_delete-bandwidth-update-odu4 ${project.version} sync
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_aai-delete-service-handling.xml b/platform-logic/optical-service/src/main/xml/optical-service_aai-delete-service-handling.xml
new file mode 100644 (file)
index 0000000..0f3e967
--- /dev/null
@@ -0,0 +1,69 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='aai-delete-service-handling' mode='sync'>\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/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside Revert PInterface details"/>\r
+            </record>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="service-instance"\r
+ key='customer.global-customer-id = $output.global-customer-id AND\r
+     service-subscription.service-type = $output.service-type AND\r
+     service-instance.service-instance-id = $output.service-instance-id' \r
+pfx='aai.service'      local-only='false'></get-resource>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside Revert PInterface details"/>\r
+                <parameter name="field2" value="`$aai.service.orchestration-status`"/>\r
+                <parameter name="field3" value="`$aai.service.relationship-list.relationship_length`"/>\r
+            </record>\r
+            <for index='idx' start='0' end='`$aai.service.relationship-list.relationship_length`' >\r
+                <block atomic='true'>\r
+                    <set>\r
+                        <parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\r
+                        <parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\r
+                    </set>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Inside Revert PInterface details"/>\r
+                        <parameter name="field2" value="`$pnf-name`"/>\r
+                        <parameter name="field3" value="`$pinterface-name`"/>\r
+                    </record>\r
+                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name ' \r
+pfx='p.in.details'      local-only='false'></get-resource>\r
+                    <set>\r
+                        <parameter name='new-rate' value='`$p.in.details.speed-value`' />\r
+                    </set>\r
+                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='p-interface'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name '\r
+      local-only='false'>\r
+                        <parameter name='available-capacity' value='`$new-rate`' />\r
+                    </update>\r
+                    <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET rate = $new-rate WHERE interface_name = $pinterface-name '\r
+force='true' pfx='save-result'></save>\r
+                </block>\r
+            </for>\r
+            <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="service-instance"\r
+key='customer.global-customer-id = $output.global-customer-id AND\r
+service-subscription.service-type = $output.service-type AND\r
+service-instance.service-instance-id = $output.service-instance-id'></delete>\r
+            <delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\r
+    resource="SQL"\r
+    key="DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id"></delete>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu1.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu1.xml
new file mode 100644 (file)
index 0000000..5ea2571
--- /dev/null
@@ -0,0 +1,100 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update-odu1' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='mul' value='`$odu-number * 1.25`' />\r
+                                        <parameter name='sub' value='`$mul - 1.25`' />\r
+                                        <parameter name='new-odu-number' value='`$sub / 1.25`' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu2.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu2.xml
new file mode 100644 (file)
index 0000000..60ed0a4
--- /dev/null
@@ -0,0 +1,205 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update-odu2' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 - 2.5`' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu3.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu3.xml
new file mode 100644 (file)
index 0000000..b527056
--- /dev/null
@@ -0,0 +1,340 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update-odu3' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU3'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu4.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu4.xml
new file mode 100644 (file)
index 0000000..1847f76
--- /dev/null
@@ -0,0 +1,509 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update-odu4' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.5 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 10 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 40 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU4'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU3'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU4'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update.xml
new file mode 100644 (file)
index 0000000..d46ca2e
--- /dev/null
@@ -0,0 +1,90 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$pin.speed-value`'>\r
+                <outcome value='ODU0'>\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/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu0 calculation"/>\r
+                        </record>\r
+                        <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                            <outcome value='ODU0'>\r
+                                <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                                        </set>\r
+                                        <switch test='`$odu-name`'>\r
+                                            <outcome value='ODU0'>\r
+                                                <block>\r
+                                                    <set>\r
+                                                        <parameter name='new-odu-number' value='`0`' />\r
+                                                    </set>\r
+                                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                                    </update>\r
+                                                </block>\r
+                                            </outcome>\r
+                                        </switch>\r
+                                    </block>\r
+                                </for>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\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/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu1 calculation"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update-odu1' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\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/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu2 calculation"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update-odu2' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\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/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu3 calculation"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update-odu3' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU4'>\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/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu4 calculation"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update-odu4' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_call-bandwidth-update-pinterface.xml b/platform-logic/optical-service/src/main/xml/optical-service_call-bandwidth-update-pinterface.xml
new file mode 100644 (file)
index 0000000..1a39aa6
--- /dev/null
@@ -0,0 +1,47 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='call-bandwidth-update-pinterface' mode='sync'>\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/test.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="`$div`"/>\r
+            </record>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND depth = 'all'"\r
+pfx='pin'      local-only='false'></get-resource>\r
+            <switch test='`$pin.network-interface-type`'>\r
+                <outcome value='Other'>\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/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Port is NNI"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='UNI'>\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/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Port is UNI"/>\r
+                        </record>\r
+                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name' \r
+      local-only='false'>\r
+                            <parameter name='available-capacity' value='0' />\r
+                        </update>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml b/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml
new file mode 100644 (file)
index 0000000..db55f38
--- /dev/null
@@ -0,0 +1,72 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='create-service-async' mode='sync'>\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/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside Create Service Async"/>\r
+            </record>\r
+            <switch test='`$response-code`'>\r
+                <outcome value='200'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='response-message' value='SUCCESS' />\r
+                        </set>\r
+                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='service-instance'\r
+     key='customer.global-customer-id = $output.global-customer-id AND\r
+     service-subscription.service-type = $output.service-type AND\r
+     service-instance.service-instance-id = $output.service-instance-id' \r
+      local-only='false'>\r
+                            <parameter name='orchestration-status' value='CREATED' />\r
+                        </update>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE REQUEST_DETAILS SET status = "CREATED" WHERE request_id = $request-id'\r
+force='true' pfx='save-result'></save>\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Finished updating service in AAI and DB to CREATED"/>\r
+                        </record>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='response-message' value='FAILURE' />\r
+                        </set>\r
+                        <call module='optical-service' rpc='aai-delete-service-handling' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.template.so.response.filename`" />\r
+                <parameter name="restapiUrl" value="`$output.notification-url`"/>\r
+                <parameter name="restapiUser" value="`$prop.so.username`" />\r
+                <parameter name="restapiPassword" value="`$prop.so.password`"/>\r
+                <parameter name="httpMethod" value="POST"/>\r
+                <parameter name="responsePrefix" value="so-response"/>\r
+                <parameter name='contentType' value='application/json' />\r
+                <parameter name='format' value='json' />\r
+                <outcome value='failure'>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Send to SO fails for service create"/>\r
+                    </record>\r
+                </outcome>\r
+                <outcome value='success'>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Send to SO Success for service create"/>\r
+                    </record>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu1.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu1.xml
new file mode 100644 (file)
index 0000000..a3ca82b
--- /dev/null
@@ -0,0 +1,103 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='delete-bandwidth-update-odu1' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <set>\r
+                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='mul' value='`$odu-number * 1.25`' />\r
+                                        <parameter name='add' value='`$new-rate + $mul + 1.25`' />\r
+                                        <parameter name='new-odu-number' value='`$add / 1.25`' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='1' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu2.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu2.xml
new file mode 100644 (file)
index 0000000..0841388
--- /dev/null
@@ -0,0 +1,205 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='delete-bandwidth-update-odu2' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 + 2.5`' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='1' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu3.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu3.xml
new file mode 100644 (file)
index 0000000..6ae2065
--- /dev/null
@@ -0,0 +1,340 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='delete-bandwidth-update-odu3' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='32' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='16' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='4' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU3'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='1' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu4.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu4.xml
new file mode 100644 (file)
index 0000000..d73a89d
--- /dev/null
@@ -0,0 +1,509 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='delete-bandwidth-update-odu4' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 100`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.5 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 100`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 100`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 40 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 100`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU4'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='80' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='40' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='10' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU3'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='2' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU4'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='1' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-service-async.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-service-async.xml
new file mode 100644 (file)
index 0000000..f00f00c
--- /dev/null
@@ -0,0 +1,67 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='delete-service-async' mode='sync'>\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/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside Delete Service Async"/>\r
+            </record>\r
+            <switch test='`$response-code`'>\r
+                <outcome value='200'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='response-message' value='SUCCESS' />\r
+                        </set>\r
+                        <call module='optical-service' rpc='aai-delete-service-handling' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='response-message' value='FAILURE' />\r
+                        </set>\r
+                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='service-instance'\r
+     key='customer.global-customer-id = $output.global-customer-id AND\r
+     service-subscription.service-type = $output.service-type AND\r
+     service-instance.service-instance-id = $output.service-instance-id' \r
+      local-only='false'>\r
+                            <parameter name='orchestration-status' value='CREATED' />\r
+                        </update>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE REQUEST_DETAILS SET status = "CREATED" WHERE request_id = $request-id'\r
+force='true' pfx='save-result'></save>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/async-response-so.json'`" />\r
+                <parameter name="restapiUrl" value="`$output.notification-url`"/>\r
+                <parameter name="restapiUser" value="`$prop.so.username`" />\r
+                <parameter name="restapiPassword" value="`$prop.so.password`"/>\r
+                <parameter name="httpMethod" value="POST"/>\r
+                <parameter name="responsePrefix" value="so-response"/>\r
+                <parameter name='contentType' value='application/json' />\r
+                <parameter name='format' value='json' />\r
+                <outcome value='failure'>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Send to SO fails for service delete"/>\r
+                    </record>\r
+                </outcome>\r
+                <outcome value='success'>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Send to SO fails for service delete"/>\r
+                    </record>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_handle-async-notif.xml b/platform-logic/optical-service/src/main/xml/optical-service_handle-async-notif.xml
new file mode 100644 (file)
index 0000000..bcae1f4
--- /dev/null
@@ -0,0 +1,44 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='handle-async-notif' mode='sync'>\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/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Reached async graph"/>\r
+                <parameter name="field2" value="`$request-id`"/>\r
+            </record>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\r
+                <parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\r
+                <parameter name='contextPrefix' value='prop' />\r
+            </execute>\r
+            <switch test='`$ack-final-indicator`'>\r
+                <outcome value='N'>\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/async-notif.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Ack indicator in 'N'"/>\r
+                        </record>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Y'>\r
+                    <block atomic='true'>\r
+                        <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \r
+key='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\r
+pfx='output'></get-resource>\r
+                        <switch test='`$output.status`'>\r
+                            <outcome value='CREATING'>\r
+                                <call module='optical-service' rpc='create-service-async' mode='sync' ></call>\r
+                            </outcome>\r
+                            <outcome value='DELETING'>\r
+                                <call module='optical-service' rpc='delete-service-async' mode='sync' ></call>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_service-create-tapi.xml b/platform-logic/optical-service/src/main/xml/optical-service_service-create-tapi.xml
new file mode 100644 (file)
index 0000000..f35446d
--- /dev/null
@@ -0,0 +1,406 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='service-create-tapi' mode='sync'>\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/service-create-tapi.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside optical service create tapi"/>\r
+            </record>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\r
+                <parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\r
+                <parameter name='contextPrefix' value='prop' />\r
+            </execute>\r
+            <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
+key='SELECT *\r
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\r
+WHERE interface_name = $optical-service-create-input.payload.service-aend.port-id'\r
+pfx='db-aend'>\r
+                <outcome value='success'>\r
+                    <set>\r
+                        <parameter name='aend-node-uuid' value='`$db-aend.pnf-name`' />\r
+                        <parameter name='aend-pnf-name' value='`$db-aend.pnf-id`' />\r
+                        <parameter name='aend-cep-list' value='`$db-aend.connection-point`' />\r
+                        <parameter name='aend-nep' value='`$db-aend.interface-name`' />\r
+                        <parameter name='aend-rate' value='`$db-aend.rate`' />\r
+                    </set>\r
+                </outcome>\r
+            </get-resource>\r
+            <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
+key='SELECT *\r
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\r
+WHERE interface_name = $optical-service-create-input.payload.service-zend.port-id'\r
+pfx='db-zend'>\r
+                <outcome value='success'>\r
+                    <set>\r
+                        <parameter name='zend-node-uuid' value='`$db-zend.pnf-name`' />\r
+                        <parameter name='zend-pnf-name' value='`$db-zend.pnf-id`' />\r
+                        <parameter name='zend-cep-list' value='`$db-zend.connection-point`' />\r
+                        <parameter name='zend-nep' value='`$db-zend.interface-name`' />\r
+                        <parameter name='zend-rate' value='`$db-zend.rate`' />\r
+                    </set>\r
+                </outcome>\r
+            </get-resource>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $aend-node-uuid AND\r
+     p-interface.interface-name = $aend-nep"\r
+pfx='aend'      local-only='false'></get-resource>\r
+            <switch test='`$aend.network-interface-type`'>\r
+                <outcome value='UNI'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='aend-cep' value='`$aend-cep-list`' />\r
+                            <parameter name='aend-new' value='' />\r
+                            <parameter name='aend-new-rate' value='0' />\r
+                        </set>\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Aend uni"/>\r
+                        </record>\r
+                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                            <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $aend-cep`" />\r
+                            <parameter name="restapiUser" value="admin"/>\r
+                            <parameter name="restapiPassword" value="admin"/>\r
+                            <parameter name="httpMethod" value="GET"/>\r
+                            <parameter name="responsePrefix" value="aend-cep-response"/>\r
+                            <parameter name='contentType' value='application/json' />\r
+                            <parameter name='format' value='json' />\r
+                            <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
+                            <outcome value='failure'>\r
+                                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                    <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                    <parameter name="level" value="info" />\r
+                                    <parameter name="field1" value="Failed to get Aend cep details"/>\r
+                                </record>\r
+                            </outcome>\r
+                            <outcome value='success'>\r
+                                <block atomic="true">\r
+                                    <set>\r
+                                        <parameter name='aend-local-id' value="`'/OTN/' + $aend-pnf-name + '/' + $aend-cep-response.sip[0].name[2].value + ':' + $aend-cep-response.sip[0].name[1].value`" />\r
+                                    </set>\r
+                                </block>\r
+                            </outcome>\r
+                        </execute>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='aend-new' value='' />\r
+                            <parameter name='aend-local-id' value='' />\r
+                        </set>\r
+                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                            <parameter name="original_string" value='`$aend-cep-list`'/>\r
+                            <parameter name="regex" value=","/>\r
+                            <parameter name="ctx_memory_result_key" value="param-prefix"/>\r
+                        </execute>\r
+                        <for index='idx' start='0' end='`$param-prefix_length`' >\r
+                            <block atomic="true">\r
+                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                    <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $param-prefix[$idx]`" />\r
+                                    <parameter name="restapiUser" value="admin"/>\r
+                                    <parameter name="restapiPassword" value="admin"/>\r
+                                    <parameter name="httpMethod" value="GET"/>\r
+                                    <parameter name="responsePrefix" value="aend-cep-response"/>\r
+                                    <parameter name='contentType' value='application/json' />\r
+                                    <parameter name='format' value='json' />\r
+                                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
+                                    <outcome value='failure'>\r
+                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                            <parameter name="level" value="info" />\r
+                                            <parameter name="field1" value="Failed to get Aend cep details"/>\r
+                                        </record>\r
+                                    </outcome>\r
+                                    <outcome value='success'>\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/service-create-tapi.log" />\r
+                                                <parameter name="level" value="info" />\r
+                                                <parameter name="field1" value="Sucessfully retrieved aend cep"/>\r
+                                            </record>\r
+                                            <switch test='`$aend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\r
+                                                <outcome value='true'>\r
+                                                    <block atomic='true'>\r
+                                                        <set>\r
+                                                            <parameter name='aend-local-id' value="`$aend-local-id + '/OTN/' + $aend-pnf-name + '/' + $aend-cep-response.sip[0].name[2].value + ':' + $aend-cep-response.sip[0].name[1].value`" />\r
+                                                            <parameter name='aend-cep' value='`$param-prefix[$idx]`'/>\r
+                                                        </set>\r
+                                                        <break/>\r
+                                                    </block>\r
+                                                </outcome>\r
+                                                <outcome value='false'>\r
+                                                    <return status='failure'>\r
+                                                        <parameter name='error-code' value='500' />\r
+                                                        <parameter name='error-message' value='No service interface points could be found for A end ' />\r
+                                                        <parameter name='ack-final-indicator' value="Y" />\r
+                                                    </return>\r
+                                                </outcome>\r
+                                            </switch>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </execute>\r
+                            </block>\r
+                        </for>\r
+                        <switch test='`$param-prefix_length == 1`'>\r
+                            <outcome value='true'>\r
+                                <set>\r
+                                    <parameter name='zend-new' value="`$zend-new`" />\r
+                                </set>\r
+                            </outcome>\r
+                            <outcome value='false'>\r
+                                <for index='idy' start='0' end='`$param-prefix_length`' >\r
+                                    <switch test='`$idy`'>\r
+                                        <outcome value='`$param-prefix_length - 1`'>\r
+                                            <set>\r
+                                                <parameter name='aend-new' value="`$aend-new + $param-prefix[$idy]`" />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='Other'>\r
+                                            <set>\r
+                                                <parameter name='aend-new' value="`$aend-new + $param-prefix[$idy] + ','`" />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='`$idx`'>\r
+                                            <set>\r
+                                                <parameter name='aend-new' value='`$aend-new`' />\r
+                                            </set>\r
+                                        </outcome>\r
+                                    </switch>\r
+                                </for>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $zend-node-uuid AND\r
+     p-interface.interface-name = $zend-nep"\r
+pfx='zend'      local-only='false'></get-resource>\r
+            <switch test='`$zend.network-interface-type`'>\r
+                <outcome value='UNI'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='zend-cep' value='`$zend-cep-list`' />\r
+                            <parameter name='zend-new' value='' />\r
+                            <parameter name='zend-new-rate' value='0' />\r
+                        </set>\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Zend uni"/>\r
+                        </record>\r
+                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                            <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $zend-cep`" />\r
+                            <parameter name="restapiUser" value="admin"/>\r
+                            <parameter name="restapiPassword" value="admin"/>\r
+                            <parameter name="httpMethod" value="GET"/>\r
+                            <parameter name="responsePrefix" value="zend-cep-response"/>\r
+                            <parameter name='contentType' value='application/json' />\r
+                            <parameter name='format' value='json' />\r
+                            <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
+                            <outcome value='failure'>\r
+                                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                    <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                    <parameter name="level" value="info" />\r
+                                    <parameter name="field1" value="Failed to get Aend cep details"/>\r
+                                </record>\r
+                            </outcome>\r
+                            <outcome value='success'>\r
+                                <block atomic="true">\r
+                                    <set>\r
+                                        <parameter name='zend-local-id' value="`'/OTN/' + $zend-pnf-name + '/' + $zend-cep-response.sip[0].name[2].value + ':' + $zend-cep-response.sip[0].name[1].value`" />\r
+                                    </set>\r
+                                </block>\r
+                            </outcome>\r
+                        </execute>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='zend-new' value='' />\r
+                            <parameter name='zend-local-id' value='' />\r
+                        </set>\r
+                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                            <parameter name="original_string" value='`$zend-cep-list`'/>\r
+                            <parameter name="regex" value=","/>\r
+                            <parameter name="ctx_memory_result_key" value="param-prefix1"/>\r
+                        </execute>\r
+                        <for index='idk' start='0' end='`$param-prefix1_length`' >\r
+                            <block atomic="true">\r
+                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                    <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $param-prefix1[$idk]`" />\r
+                                    <parameter name="restapiUser" value="admin"/>\r
+                                    <parameter name="restapiPassword" value="admin"/>\r
+                                    <parameter name="httpMethod" value="GET"/>\r
+                                    <parameter name="responsePrefix" value="zend-cep-response"/>\r
+                                    <parameter name='contentType' value='application/json' />\r
+                                    <parameter name='format' value='json' />\r
+                                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
+                                    <outcome value='failure'>\r
+                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                            <parameter name="level" value="info" />\r
+                                            <parameter name="field1" value="Failed to get zend cep details"/>\r
+                                        </record>\r
+                                    </outcome>\r
+                                    <outcome value='success'>\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/service-create-tapi.log" />\r
+                                                <parameter name="level" value="info" />\r
+                                                <parameter name="field1" value="Sucessfully retrieved zend cep"/>\r
+                                            </record>\r
+                                            <switch test='`$zend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\r
+                                                <outcome value='true'>\r
+                                                    <block>\r
+                                                        <set>\r
+                                                            <parameter name='zend-local-id' value="`$zend-local-id + '/OTN/' + $zend-pnf-name + '/' + $zend-cep-response.sip[0].name[2].value + ':' + $zend-cep-response.sip[0].name[1].value`" />\r
+                                                            <parameter name='zend-cep' value='`$param-prefix1[$idk]`'/>\r
+                                                        </set>\r
+                                                        <break/>\r
+                                                    </block>\r
+                                                </outcome>\r
+                                                <outcome value='false'>\r
+                                                    <return status='failure'>\r
+                                                        <parameter name='error-code' value='500' />\r
+                                                        <parameter name='error-message' value='No service interface points could be found for Z end ' />\r
+                                                        <parameter name='ack-final-indicator' value="Y" />\r
+                                                    </return>\r
+                                                </outcome>\r
+                                            </switch>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </execute>\r
+                            </block>\r
+                        </for>\r
+                        <switch test='`$param-prefix1_length == 1`'>\r
+                            <outcome value='true'>\r
+                                <set>\r
+                                    <parameter name='zend-new' value="`$zend-new`" />\r
+                                </set>\r
+                            </outcome>\r
+                            <outcome value='false'>\r
+                                <for index='idl' start='0' end='`$param-prefix1_length`' >\r
+                                    <switch test='`$idl`'>\r
+                                        <outcome value='`$param-prefix1_length - 1`'>\r
+                                            <set>\r
+                                                <parameter name='zend-new' value="`$zend-new + $param-prefix1[$idl]`" />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='Other'>\r
+                                            <set>\r
+                                                <parameter name='zend-new' value="`$zend-new + $param-prefix1[$idl] + ','`" />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='`$idk`'>\r
+                                            <set>\r
+                                                <parameter name='zend-new' value='`$zend-new`' />\r
+                                            </set>\r
+                                        </outcome>\r
+                                    </switch>\r
+                                </for>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <parameter name='service-name' value="`$optical-service-create-input.payload.service-name`" />\r
+                <parameter name='svc-action' value="CREATE" />\r
+            </set>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="A end local-id"/>\r
+                <parameter name="field2" value="`$aend-local-id`"/>\r
+                <parameter name="field3" value="Z end local-id"/>\r
+                <parameter name="field4" value="`$zend-local-id`"/>\r
+                <parameter name="field5" value="Service name"/>\r
+                <parameter name="field6" value="`$service-name`"/>\r
+            </record>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/optical-service-create-tapi.json'`" />\r
+                <parameter name="restapiUrl" value="`$controller-ip + '/cxf/tapi/v2/connectivities/tapi-services'`"/>\r
+                <parameter name="restapiUser" value="admin"/>\r
+                <parameter name="restapiPassword" value="admin"/>\r
+                <parameter name="httpMethod" value="POST"/>\r
+                <parameter name="responsePrefix" value="tapi-service-response"/>\r
+                <parameter name='contentType' value='application/json' />\r
+                <parameter name='format' value='json' />\r
+                <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
+                <outcome value='failure'>\r
+                    <block atomic='true'>\r
+                        <return status='failure'>\r
+                            <parameter name='error-code' value='500' />\r
+                            <parameter name='error-message' value='Service creation failed' />\r
+                            <parameter name='ack-final-indicator' value="Y" />\r
+                        </return>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='success'>\r
+                    <block atomic='true'>\r
+                        <save plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL" key="INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url) VALUES ( $optical-service-create-input.request-id , $controller-id , 'CREATED' , $optical-service-create-input.payload.service-rate ,  $optical-service-create-input.service-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , null );"></save>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\r
+force='true' pfx='save-result'></save>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\r
+force='true' pfx='save-result'></save>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'  \r
+     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\r
+     service-subscription.service-type = $optical-service-create-input.service-type AND\r
+     service-instance.service-instance-id = $optical-service-create-input.service-id' >\r
+                            <parameter name='service-instance-id' value='`$optical-service-create-input.service-id`' />\r
+                            <parameter name='service-instance-name' value='`$optical-service-create-input.payload.service-name`' />\r
+                            <parameter name='service-type' value='Domain-Service' />\r
+                            <parameter name='orchestration-status' value='CREATED' />\r
+                            <parameter name='service-rate' value='`$optical-service-create-input.payload.service-rate`' />\r
+                            <parameter name='service-layer' value='ODU' />\r
+                        </save>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \r
+     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\r
+     service-subscription.service-type = $optical-service-create-input.service-type AND\r
+     service-instance.service-instance-id = $optical-service-create-input.service-id' force="true" pfx="tmp.AnAI-data">\r
+                            <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />\r
+                            <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-aend.port-id `" />\r
+                            <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+                            <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$aend-node-uuid`" />\r
+                            <parameter name="relationship-list.relationship[1].related-to" value="p-interface" />\r
+                            <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-zend.port-id `" />\r
+                            <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+                            <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$zend-node-uuid`" />\r
+                        </save>\r
+                        <return status='success'>\r
+                            <parameter name='error-code' value='200' />\r
+                            <parameter name='error-message' value='Service created successfully' />\r
+                            <parameter name='ack-final-indicator' value="Y" />\r
+                        </return>\r
+                    </block>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_service-delete-tapi.xml b/platform-logic/optical-service/src/main/xml/optical-service_service-delete-tapi.xml
new file mode 100644 (file)
index 0000000..919c554
--- /dev/null
@@ -0,0 +1,152 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='service-delete-tapi' mode='sync'>\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/service-create-tapi.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside optical service delete tapi"/>\r
+            </record>\r
+            <set>\r
+                <parameter name='request-id' value='`$optical-service-delete-input.request-id`' />\r
+            </set>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.get.services.url + $optical-service-delete-input.payload.service-name`" />\r
+                <parameter name="restapiUser" value="admin"/>\r
+                <parameter name="restapiPassword" value="admin"/>\r
+                <parameter name="httpMethod" value="GET"/>\r
+                <parameter name="responsePrefix" value="services-response"/>\r
+                <parameter name='contentType' value='application/json' />\r
+                <parameter name='format' value='json' />\r
+                <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
+                <outcome value='failure'></outcome>\r
+                <outcome value='success'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='aend-nep' value="`$services-response.service[0].end-point[0].connection-end-point[0].node-edge-point-uuid`" />\r
+                            <parameter name='zend-nep' value="`$services-response.service[0].end-point[1].connection-end-point[0].node-edge-point-uuid`" />\r
+                            <parameter name='aend-cep' value="`$services-response.service[0].end-point[0].connection-end-point[0].connection-end-point-uuid`" />\r
+                            <parameter name='zend-cep' value="`$services-response.service[0].end-point[1].connection-end-point[0].connection-end-point-uuid`" />\r
+                        </set>\r
+                        <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
+key='SELECT *\r
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\r
+WHERE interface_name = $aend-nep'\r
+pfx='db-aend'></get-resource>\r
+                        <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
+key='SELECT *\r
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\r
+WHERE interface_name = $zend-nep'\r
+pfx='db-zend'></get-resource>\r
+                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                            <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.delete.service.url + $optical-service-delete-input.payload.service-name`" />\r
+                            <parameter name="restapiUser" value="admin"/>\r
+                            <parameter name="restapiPassword" value="admin"/>\r
+                            <parameter name="httpMethod" value="DELETE"/>\r
+                            <parameter name="responsePrefix" value="tapi-service-response"/>\r
+                            <parameter name='contentType' value='application/json' />\r
+                            <parameter name='format' value='json' />\r
+                            <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
+                            <outcome value='failure'>\r
+                                <block atomic='true'>\r
+                                    <return status='failure'>\r
+                                        <parameter name='error-code' value='500' />\r
+                                        <parameter name='error-message' value='Service Deletion failed' />\r
+                                        <parameter name='ack-final-indicator' value="Y" />\r
+                                    </return>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='success'>\r
+                                <block atomic='true'>\r
+                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $db-aend.pnf-name AND\r
+     p-interface.interface-name = $aend-nep"\r
+pfx='aend'      local-only='false'></get-resource>\r
+                                    <switch test='`$aend.network-interface-type`'>\r
+                                        <outcome value='UNI'>\r
+                                            <set>\r
+                                                <parameter name='aend-new' value='`$aend-cep`' />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='Other'>\r
+                                            <switch test='`$db-aend.connection-point`'>\r
+                                                <outcome value=''>\r
+                                                    <set>\r
+                                                        <parameter name='aend-new' value="`$aend-cep`" />\r
+                                                    </set>\r
+                                                </outcome>\r
+                                                <outcome value='Other'>\r
+                                                    <set>\r
+                                                        <parameter name='aend-new' value="`$db-aend.connection-point + ',' + $aend-cep`" />\r
+                                                    </set>\r
+                                                </outcome>\r
+                                            </switch>\r
+                                        </outcome>\r
+                                    </switch>\r
+                                    <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\r
+force='true' pfx='save-result'></save>\r
+                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $db-zend.pnf-name AND\r
+     p-interface.interface-name = $zend-nep"\r
+pfx='zend'      local-only='false'></get-resource>\r
+                                    <switch test='`$zend.network-interface-type`'>\r
+                                        <outcome value='UNI'>\r
+                                            <set>\r
+                                                <parameter name='zend-new' value='`$zend-cep`' />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='Other'>\r
+                                            <switch test='`$db-zend.connection-point`'>\r
+                                                <outcome value=''>\r
+                                                    <set>\r
+                                                        <parameter name='zend-new' value="`$zend-cep`" />\r
+                                                    </set>\r
+                                                </outcome>\r
+                                                <outcome value='Other'>\r
+                                                    <set>\r
+                                                        <parameter name='zend-new' value="`$db-zend.connection-point + ',' + $zend-cep`" />\r
+                                                    </set>\r
+                                                </outcome>\r
+                                            </switch>\r
+                                        </outcome>\r
+                                    </switch>\r
+                                    <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\r
+force='true' pfx='save-result'></save>\r
+                                    <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \r
+key='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\r
+pfx='output'></get-resource>\r
+                                    <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="service-instance"\r
+key='customer.global-customer-id = $output.global-customer-id AND\r
+service-subscription.service-type = $output.service-type AND\r
+service-instance.service-instance-id = $output.service-instance-id'></delete>\r
+                                    <delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\r
+    resource="SQL"\r
+    key="DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id"></delete>\r
+                                    <return status='success'>\r
+                                        <parameter name='error-code' value='200' />\r
+                                        <parameter name='error-message' value='Service deleted successfully' />\r
+                                        <parameter name='ack-final-indicator' value="Y" />\r
+                                    </return>\r
+                                </block>\r
+                            </outcome>\r
+                        </execute>\r
+                    </block>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml b/platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml
new file mode 100644 (file)
index 0000000..c3b9639
--- /dev/null
@@ -0,0 +1,36 @@
+<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='optical-service' version='${project.version}'>\r
+    <method rpc='success-aai-update-tapi' mode='sync'>\r
+        <block atomic="true">\r
+            <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \r
+     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\r
+     service-subscription.service-type = $optical-service-create-input.service-type AND\r
+     service-instance.service-instance-id = $optical-service-create-input.service-id' force="true" pfx="tmp.AnAI-data">\r
+                <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />\r
+                <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $aend-nep `" />\r
+                <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+                <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$aend-node-uuid`" />\r
+                <parameter name="relationship-list.relationship[1].related-to" value="p-interface" />\r
+                <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $zend-nep `" />\r
+                <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+                <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$zend-node-uuid`" />\r
+            </save>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="service-instance"\r
+key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\r
+     service-subscription.service-type = $optical-service-create-input.service-type AND\r
+     service-instance.service-instance-id = $optical-service-create-input.service-id'  \r
+pfx='aai.service'      local-only='false'></get-resource>\r
+            <for index='idy' start='0' end='`$aai.service.relationship-list.relationship_length`' >\r
+                <block atomic='true'>\r
+                    <set>\r
+                        <parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\r
+                        <parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\r
+                    </set>\r
+                    <call module='optical-service' rpc='call-bandwidth-update-pinterface' mode='sync' ></call>\r
+                </block>\r
+            </for>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file