summaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/optical-service')
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json258
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json442
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu2.json860
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu3.json1369
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu4.json1998
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_bandwidth-update.json535
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_call-bandwidth-update-pinterface.json263
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_create-service-async.json325
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu1.json454
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu2.json860
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu3.json1369
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu4.json1998
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_delete-service-async.json310
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_handle-async-notif.json286
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_service-create-tapi.json1702
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_service-delete-tapi.json674
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json156
-rw-r--r--platform-logic/optical-service/src/main/resources/graph.versions17
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_aai-delete-service-handling.xml69
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu1.xml100
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu2.xml205
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu3.xml340
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu4.xml509
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update.xml90
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_call-bandwidth-update-pinterface.xml47
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml72
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu1.xml103
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu2.xml205
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu3.xml340
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu4.xml509
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_delete-service-async.xml67
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_handle-async-notif.xml44
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_service-create-tapi.xml406
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_service-delete-tapi.xml152
-rw-r--r--platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml36
35 files changed, 17170 insertions, 0 deletions
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
index 00000000..6cf5663f
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json
@@ -0,0 +1,258 @@
+[
+ {
+ "id": "168f1b9b.e0d8a4",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 290,
+ "y": 256.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ [
+ "69efd249.69fbdc"
+ ]
+ ]
+ },
+ {
+ "id": "69efd249.69fbdc",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 477,
+ "y": 205.66665649414062,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ [
+ "7c805408.44c49c"
+ ]
+ ]
+ },
+ {
+ "id": "7c805408.44c49c",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='aai-delete-service-handling' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 331,
+ "y": 379.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ [
+ "9d8283a.657188"
+ ]
+ ]
+ },
+ {
+ "id": "9d8283a.657188",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 504,
+ "y": 378.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ [
+ "f165a108.8a699",
+ "940496d9.dec278",
+ "32c002b0.0f4fce",
+ "2caf6515.aa94aa",
+ "a8c5a8ab.1bde18",
+ "a1d8c39f.8281b"
+ ]
+ ]
+ },
+ {
+ "id": "f165a108.8a699",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 735,
+ "y": 265.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "940496d9.dec278",
+ "type": "get-resource",
+ "name": "Get service from AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 754,
+ "y": 381.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "32c002b0.0f4fce",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 764,
+ "y": 447.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2caf6515.aa94aa",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='`$aai.service.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 737,
+ "y": 510.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ [
+ "c68f711c.1667a"
+ ]
+ ]
+ },
+ {
+ "id": "1e030001.bace",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1147,
+ "y": 197.66665649414062,
+ "z": "5b091ac8.c4f784",
+ "wires": []
+ },
+ {
+ "id": "e3a487a2.2e5338",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1170,
+ "y": 266.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a8c5a8ab.1bde18",
+ "type": "delete",
+ "name": "delete service instance AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 757,
+ "y": 586.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c68f711c.1667a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 921,
+ "y": 514.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ [
+ "1e030001.bace",
+ "e3a487a2.2e5338",
+ "2c623e61.ef3c52",
+ "46559965.50bc28",
+ "c493aa8c.c04b68",
+ "d87c55e6.d344b8"
+ ]
+ ]
+ },
+ {
+ "id": "a1d8c39f.8281b",
+ "type": "delete",
+ "name": "delete from db",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 694,
+ "y": 643.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c493aa8c.c04b68",
+ "type": "get-resource",
+ "name": "get p-interface total capacity",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1266.8887939453125,
+ "y": 322.77777099609375,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d87c55e6.d344b8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='`$p.in.details.speed-value`' />\n",
+ "comments": "",
+ "x": 1207.111083984375,
+ "y": 413,
+ "z": "5b091ac8.c4f784",
+ "wires": []
+ },
+ {
+ "id": "2c623e61.ef3c52",
+ "type": "update",
+ "name": "update p-interface capacity AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1174,
+ "y": 518.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "46559965.50bc28",
+ "type": "save",
+ "name": "update pinterface rate DB",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1165,
+ "y": 586.6666564941406,
+ "z": "5b091ac8.c4f784",
+ "wires": [
+ []
+ ]
+ }
+] \ 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
index 00000000..7cfc441d
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json
@@ -0,0 +1,442 @@
+[
+ {
+ "id": "7fb6b53d.9b40ac",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 914,
+ "y": 180,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "d89ee2bf.9fb95",
+ "489955f7.b8044c"
+ ]
+ ]
+ },
+ {
+ "id": "d89ee2bf.9fb95",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1047,
+ "y": 149,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "861165e4.072d78"
+ ]
+ ]
+ },
+ {
+ "id": "408487d0.188348",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 919,
+ "y": 102,
+ "z": "ea0daf8b.a0dea",
+ "wires": []
+ },
+ {
+ "id": "a318d25.4d1703",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1281,
+ "y": 77,
+ "z": "ea0daf8b.a0dea",
+ "wires": []
+ },
+ {
+ "id": "42556171.da338",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 638,
+ "y": 126,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "b03c2fe2.e7ca6"
+ ]
+ ]
+ },
+ {
+ "id": "3256d64.31dae2a",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 562,
+ "y": 244,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "42556171.da338",
+ "3f9ae2a7.46b9ee"
+ ]
+ ]
+ },
+ {
+ "id": "b03c2fe2.e7ca6",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 776,
+ "y": 133,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "7fb6b53d.9b40ac",
+ "408487d0.188348"
+ ]
+ ]
+ },
+ {
+ "id": "489955f7.b8044c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1046,
+ "y": 264,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "aa954ac8.c12048"
+ ]
+ ]
+ },
+ {
+ "id": "e5d7b43a.ff8d18",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1321,
+ "y": 232,
+ "z": "ea0daf8b.a0dea",
+ "wires": []
+ },
+ {
+ "id": "16da9b23.f12fc5",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 928,
+ "y": 460,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "6a47243c.bf922c",
+ "d39786ac.f9ffc8"
+ ]
+ ]
+ },
+ {
+ "id": "6a47243c.bf922c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1069,
+ "y": 452,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "945b4572.2a9d18"
+ ]
+ ]
+ },
+ {
+ "id": "3a491e8e.6ef662",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 933,
+ "y": 382,
+ "z": "ea0daf8b.a0dea",
+ "wires": []
+ },
+ {
+ "id": "52b46c06.224904",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1271,
+ "y": 385,
+ "z": "ea0daf8b.a0dea",
+ "wires": []
+ },
+ {
+ "id": "3f9ae2a7.46b9ee",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 639,
+ "y": 406,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "ba6bed77.7ecf2"
+ ]
+ ]
+ },
+ {
+ "id": "ba6bed77.7ecf2",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 790,
+ "y": 413,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "16da9b23.f12fc5",
+ "3a491e8e.6ef662"
+ ]
+ ]
+ },
+ {
+ "id": "d39786ac.f9ffc8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1053,
+ "y": 583,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "1229605a.bcb7e"
+ ]
+ ]
+ },
+ {
+ "id": "bdb03da8.db153",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1298,
+ "y": 539,
+ "z": "ea0daf8b.a0dea",
+ "wires": []
+ },
+ {
+ "id": "75dd10a.39260f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 405,
+ "y": 235,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "3256d64.31dae2a"
+ ]
+ ]
+ },
+ {
+ "id": "7e7327e.e63f7d8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 121.5,
+ "y": 184,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "e15dddc3.ed1ff"
+ ]
+ ]
+ },
+ {
+ "id": "e15dddc3.ed1ff",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 134.5,
+ "y": 244,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "eb187c1b.5aa9"
+ ]
+ ]
+ },
+ {
+ "id": "eb187c1b.5aa9",
+ "type": "method",
+ "name": "method bandwidth-update-odu1",
+ "xml": "<method rpc='bandwidth-update-odu1' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 318.5,
+ "y": 137,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "75dd10a.39260f"
+ ]
+ ]
+ },
+ {
+ "id": "c2a66fb.f71b39",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1284,
+ "y": 144,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a32257d4.77af48",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1297,
+ "y": 287,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ba783ab9.044e18",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1317,
+ "y": 441,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5b0a9685.46e438",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1248,
+ "y": 610,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "861165e4.072d78",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1154,
+ "y": 77,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "a318d25.4d1703",
+ "c2a66fb.f71b39"
+ ]
+ ]
+ },
+ {
+ "id": "aa954ac8.c12048",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1177,
+ "y": 228,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "e5d7b43a.ff8d18",
+ "a32257d4.77af48"
+ ]
+ ]
+ },
+ {
+ "id": "945b4572.2a9d18",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1151,
+ "y": 375,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "52b46c06.224904",
+ "ba783ab9.044e18"
+ ]
+ ]
+ },
+ {
+ "id": "1229605a.bcb7e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1171,
+ "y": 542,
+ "z": "ea0daf8b.a0dea",
+ "wires": [
+ [
+ "bdb03da8.db153",
+ "5b0a9685.46e438"
+ ]
+ ]
+ }
+] \ 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
index 00000000..10887310
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu2.json
@@ -0,0 +1,860 @@
+[
+ {
+ "id": "d2167b55.82b018",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 405,
+ "y": 203,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "17fa8fe8.9bf91"
+ ]
+ ]
+ },
+ {
+ "id": "811b077a.d09798",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1046,
+ "y": 248,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "d1adad05.70436",
+ "21b9545b.56d0dc",
+ "f3d86763.54a138"
+ ]
+ ]
+ },
+ {
+ "id": "d1adad05.70436",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1122,
+ "y": 214,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "ac2b88c8.8664e8"
+ ]
+ ]
+ },
+ {
+ "id": "62f5d265.23ab0c",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1028,
+ "y": 152,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "2e87013c.8fc8ce",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1410,
+ "y": 182,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "7c5d3d95.cc5f74",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 703,
+ "y": 202,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "2c622caf.eaa2a4"
+ ]
+ ]
+ },
+ {
+ "id": "17fa8fe8.9bf91",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 559,
+ "y": 202,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "7c5d3d95.cc5f74",
+ "2f408a05.a33d16",
+ "f3c2b240.a115b"
+ ]
+ ]
+ },
+ {
+ "id": "1b7f98e2.94bee7",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 886,
+ "y": 190,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "811b077a.d09798",
+ "62f5d265.23ab0c"
+ ]
+ ]
+ },
+ {
+ "id": "21b9545b.56d0dc",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135,
+ "y": 350,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "15e3e9b.8ba2616"
+ ]
+ ]
+ },
+ {
+ "id": "a06a5535.b89f68",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1434,
+ "y": 303,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "6a12dbc4.c2c474",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 927,
+ "y": 61,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "f3d86763.54a138",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1099,
+ "y": 453,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "6365557.81351ac"
+ ]
+ ]
+ },
+ {
+ "id": "b0a7f453.296058",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1403,
+ "y": 425,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "354fa1c1.f1f6ae",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 974,
+ "y": 638,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "2cba8af9.f08436",
+ "c67aa5c9.f4db98",
+ "613274fc.a6713c"
+ ]
+ ]
+ },
+ {
+ "id": "2cba8af9.f08436",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1096,
+ "y": 592,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "afd7c951.cf6a88"
+ ]
+ ]
+ },
+ {
+ "id": "47a078bd.631e68",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 965,
+ "y": 547,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "20e37e98.d28f12",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1419,
+ "y": 564,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "2f408a05.a33d16",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 677,
+ "y": 580,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "9cbe7dee.94883"
+ ]
+ ]
+ },
+ {
+ "id": "682f2695.e292e8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 851,
+ "y": 611,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "354fa1c1.f1f6ae",
+ "47a078bd.631e68"
+ ]
+ ]
+ },
+ {
+ "id": "c67aa5c9.f4db98",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1109,
+ "y": 728,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "849d925b.74177"
+ ]
+ ]
+ },
+ {
+ "id": "a4523229.d6783",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1417,
+ "y": 680,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "8aef3377.3c117",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 895,
+ "y": 473,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "613274fc.a6713c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1073,
+ "y": 831,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "6eb2648c.81a19c"
+ ]
+ ]
+ },
+ {
+ "id": "deaaf26b.10d53",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1334,
+ "y": 797,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "99b2b453.ad7458",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 942,
+ "y": 1049,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "4187876d.dc02e8",
+ "761e3130.940b3",
+ "b24927d8.4257b8"
+ ]
+ ]
+ },
+ {
+ "id": "4187876d.dc02e8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1162,
+ "y": 1000,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "a1a3c897.76f2c8"
+ ]
+ ]
+ },
+ {
+ "id": "fd35744a.032178",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 932,
+ "y": 966,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "58773dca.32a9d4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1435,
+ "y": 964,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "f3c2b240.a115b",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 450,
+ "y": 1017,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "1dd9e0cc.abefff"
+ ]
+ ]
+ },
+ {
+ "id": "1dd9e0cc.abefff",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 734,
+ "y": 1039,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "99b2b453.ad7458",
+ "fd35744a.032178"
+ ]
+ ]
+ },
+ {
+ "id": "761e3130.940b3",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1174,
+ "y": 1110,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "b3ea3cfa.44044"
+ ]
+ ]
+ },
+ {
+ "id": "ee22130b.ddcc",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1456,
+ "y": 1105,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "b24927d8.4257b8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1139,
+ "y": 1239,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "b43c1f4d.37883"
+ ]
+ ]
+ },
+ {
+ "id": "c6ed6d86.a3142",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1434,
+ "y": 1203,
+ "z": "d291f834.d4cbf8",
+ "wires": []
+ },
+ {
+ "id": "d3ed497f.e63998",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 121.5,
+ "y": 152,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "5490e45b.ec8f7c"
+ ]
+ ]
+ },
+ {
+ "id": "5490e45b.ec8f7c",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 134.5,
+ "y": 212,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "c1ead28d.6c8d3"
+ ]
+ ]
+ },
+ {
+ "id": "c1ead28d.6c8d3",
+ "type": "method",
+ "name": "method bandwidth-update-odu2",
+ "xml": "<method rpc='bandwidth-update-odu2' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 318.5,
+ "y": 105,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "d2167b55.82b018"
+ ]
+ ]
+ },
+ {
+ "id": "96acfef0.2597f",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1474,
+ "y": 244,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "506c233c.43ef1c",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1500,
+ "y": 377,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "45d21d06.df7524",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1477,
+ "y": 471,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c7f985a4.c76918",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1489,
+ "y": 613,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b4a35a6d.5c6478",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1492,
+ "y": 740,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97a76dca.636f9",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1407,
+ "y": 844,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a9c10315.e0892",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1512,
+ "y": 1020,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1cfce80.51afa18",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1518,
+ "y": 1148,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "13bea178.4cb18f",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1504,
+ "y": 1275,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ac2b88c8.8664e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1258,
+ "y": 212,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "2e87013c.8fc8ce",
+ "96acfef0.2597f"
+ ]
+ ]
+ },
+ {
+ "id": "15e3e9b.8ba2616",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1283,
+ "y": 348,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "a06a5535.b89f68",
+ "506c233c.43ef1c"
+ ]
+ ]
+ },
+ {
+ "id": "6365557.81351ac",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1249,
+ "y": 453,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "b0a7f453.296058",
+ "45d21d06.df7524"
+ ]
+ ]
+ },
+ {
+ "id": "afd7c951.cf6a88",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1247,
+ "y": 591,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "20e37e98.d28f12",
+ "c7f985a4.c76918"
+ ]
+ ]
+ },
+ {
+ "id": "849d925b.74177",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1249,
+ "y": 724,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "a4523229.d6783",
+ "b4a35a6d.5c6478"
+ ]
+ ]
+ },
+ {
+ "id": "6eb2648c.81a19c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1212,
+ "y": 826,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "deaaf26b.10d53",
+ "97a76dca.636f9"
+ ]
+ ]
+ },
+ {
+ "id": "a1a3c897.76f2c8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1296,
+ "y": 999,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "58773dca.32a9d4",
+ "a9c10315.e0892"
+ ]
+ ]
+ },
+ {
+ "id": "b3ea3cfa.44044",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1310,
+ "y": 1110,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "ee22130b.ddcc",
+ "1cfce80.51afa18"
+ ]
+ ]
+ },
+ {
+ "id": "b43c1f4d.37883",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1296,
+ "y": 1236,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "c6ed6d86.a3142",
+ "13bea178.4cb18f"
+ ]
+ ]
+ },
+ {
+ "id": "2c622caf.eaa2a4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 814,
+ "y": 110,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "6a12dbc4.c2c474",
+ "1b7f98e2.94bee7"
+ ]
+ ]
+ },
+ {
+ "id": "9cbe7dee.94883",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 750,
+ "y": 495,
+ "z": "d291f834.d4cbf8",
+ "wires": [
+ [
+ "8aef3377.3c117",
+ "682f2695.e292e8"
+ ]
+ ]
+ }
+] \ 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
index 00000000..cfc383bc
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu3.json
@@ -0,0 +1,1369 @@
+[
+ {
+ "id": "59bd3927.592868",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 906.5,
+ "y": 146,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "686976fa.e39a38",
+ "5a90cb29.5918e4",
+ "9ff85014.553ad",
+ "7f3619a0.9e0de8"
+ ]
+ ]
+ },
+ {
+ "id": "686976fa.e39a38",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1045.5,
+ "y": 105,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "1d32ea36.ac6196"
+ ]
+ ]
+ },
+ {
+ "id": "d7f141cc.723c8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 914.5,
+ "y": 60,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "a32f2439.cb6ab8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1338.5,
+ "y": 76,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "4c8f08a5.d0cd38",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 626.5,
+ "y": 93,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "7a765f28.8bea6"
+ ]
+ ]
+ },
+ {
+ "id": "25cd1da9.b3f392",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 495.5,
+ "y": 149,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "4c8f08a5.d0cd38",
+ "f16923b.76bace",
+ "d50cccac.ae255",
+ "d6e62384.c44eb"
+ ]
+ ]
+ },
+ {
+ "id": "eb046504.a184d8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 770.5,
+ "y": 111,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "59bd3927.592868",
+ "d7f141cc.723c8"
+ ]
+ ]
+ },
+ {
+ "id": "5a90cb29.5918e4",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1075.5,
+ "y": 194,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "e76aea9c.e12bd8"
+ ]
+ ]
+ },
+ {
+ "id": "5aa343d7.14c6fc",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1342.5,
+ "y": 179,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "1b913f9a.27c49",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 858.5,
+ "y": 20,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "9ff85014.553ad",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1044.5,
+ "y": 294,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "80d48ef5.9912"
+ ]
+ ]
+ },
+ {
+ "id": "cef4b295.6c496",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1330.5,
+ "y": 291,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "7f3619a0.9e0de8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 972,
+ "y": 402,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "8c7e1bd7.f41a68"
+ ]
+ ]
+ },
+ {
+ "id": "59568bd7.60cba4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1259,
+ "y": 387,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "b8915894.bda8e8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 847,
+ "y": 671,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "d416a38f.22749",
+ "50b4be98.ddf0c",
+ "d2192c61.4bdf7",
+ "728f7fb2.a1cac"
+ ]
+ ]
+ },
+ {
+ "id": "d416a38f.22749",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 986,
+ "y": 630,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "606ba16.524bc6"
+ ]
+ ]
+ },
+ {
+ "id": "318f9aba.df2006",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 855,
+ "y": 585,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "17a117e5.591708",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1263,
+ "y": 590,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "f16923b.76bace",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 567,
+ "y": 618,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "7d7cd2ec.065b2c"
+ ]
+ ]
+ },
+ {
+ "id": "13b57033.9951",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 754,
+ "y": 615,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "b8915894.bda8e8",
+ "318f9aba.df2006"
+ ]
+ ]
+ },
+ {
+ "id": "50b4be98.ddf0c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1021,
+ "y": 723,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "31b7a978.6ce366"
+ ]
+ ]
+ },
+ {
+ "id": "2d2e684.a340898",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1294,
+ "y": 707,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "f02b9dc0.9a744",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 787,
+ "y": 512,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "d2192c61.4bdf7",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 979,
+ "y": 814,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "5aa134da.c5d79c"
+ ]
+ ]
+ },
+ {
+ "id": "f96115b6.ae0958",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1284,
+ "y": 813,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "728f7fb2.a1cac",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 885.5,
+ "y": 984,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "c49e735f.4d186"
+ ]
+ ]
+ },
+ {
+ "id": "aad0db15.cc7c18",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1151.5,
+ "y": 952,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "1c012ace.64f805",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 710,
+ "y": 1209,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "5289693d.e0a268",
+ "31d3f86f.e846f8",
+ "7d5fdc36.750854",
+ "99806796.f1f338"
+ ]
+ ]
+ },
+ {
+ "id": "5289693d.e0a268",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 897,
+ "y": 1149,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "de9cb28.9f9d45"
+ ]
+ ]
+ },
+ {
+ "id": "30fb08fd.b5dda8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 736,
+ "y": 1103,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "d67ef568.42cc38",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1197,
+ "y": 1112,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "d50cccac.ae255",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 417,
+ "y": 1154,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "712de01.298dd2"
+ ]
+ ]
+ },
+ {
+ "id": "d3523aa7.075c48",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 589,
+ "y": 1148,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "1c012ace.64f805",
+ "30fb08fd.b5dda8"
+ ]
+ ]
+ },
+ {
+ "id": "31d3f86f.e846f8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 919,
+ "y": 1240,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "6fab0d4e.49f804"
+ ]
+ ]
+ },
+ {
+ "id": "17e177eb.a9a758",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1210,
+ "y": 1227,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "d69e06e0.b960b8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 628,
+ "y": 950,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "7d5fdc36.750854",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 913,
+ "y": 1340,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "ea510da.c129ff"
+ ]
+ ]
+ },
+ {
+ "id": "1cffb56f.5f74cb",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1216,
+ "y": 1325,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "99806796.f1f338",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 859.5,
+ "y": 1463,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "ffafbd3d.43709"
+ ]
+ ]
+ },
+ {
+ "id": "ea23ac7b.49a0e",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1171.5,
+ "y": 1433,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "1fdbfea9.06f971",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 599,
+ "y": 1735,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "b234c218.56c75",
+ "d7567c2b.d744d",
+ "da086275.9fed4",
+ "9dc682c9.2b9f6"
+ ]
+ ]
+ },
+ {
+ "id": "b234c218.56c75",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 738,
+ "y": 1694,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "9e0dc2de.70214"
+ ]
+ ]
+ },
+ {
+ "id": "8370fc5d.bbbb6",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 607,
+ "y": 1649,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "76e5208f.cb277",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1065,
+ "y": 1662,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "624e9330.541bbc",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1077,
+ "y": 1720,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d6e62384.c44eb",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 169,
+ "y": 1712,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "14677342.8acb9d"
+ ]
+ ]
+ },
+ {
+ "id": "14677342.8acb9d",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 415,
+ "y": 1711,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "1fdbfea9.06f971",
+ "8370fc5d.bbbb6"
+ ]
+ ]
+ },
+ {
+ "id": "d7567c2b.d744d",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 751,
+ "y": 1830,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "ad4c759a.2f2898"
+ ]
+ ]
+ },
+ {
+ "id": "986204b7.0e72d8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />",
+ "comments": "",
+ "x": 1021,
+ "y": 1796,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "5e457023.84189",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1092,
+ "y": 1850,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "da086275.9fed4",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 715,
+ "y": 1933,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "287e67.d378d19a"
+ ]
+ ]
+ },
+ {
+ "id": "2bbf429f.61555e",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />",
+ "comments": "",
+ "x": 1032,
+ "y": 1901,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "d21d0e47.828fe",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1084,
+ "y": 1981,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9dc682c9.2b9f6",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 637.5,
+ "y": 2048,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "5ba96bee.3ec3d4"
+ ]
+ ]
+ },
+ {
+ "id": "22448edc.1c06a2",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />",
+ "comments": "",
+ "x": 930.5,
+ "y": 2014,
+ "z": "73143c7.55534c4",
+ "wires": []
+ },
+ {
+ "id": "43ae63f9.14b1dc",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.5,
+ "y": 2088,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bf7cf5bd.6cd3f8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 121.5,
+ "y": 106,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "f1e26e1a.6f29c"
+ ]
+ ]
+ },
+ {
+ "id": "f1e26e1a.6f29c",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 134.5,
+ "y": 166,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "79406a70.446d04"
+ ]
+ ]
+ },
+ {
+ "id": "79406a70.446d04",
+ "type": "method",
+ "name": "method bandwidth-update-odu3",
+ "xml": "<method rpc='bandwidth-update-odu3' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 321.5,
+ "y": 59,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "37af137e.e2f76c"
+ ]
+ ]
+ },
+ {
+ "id": "37af137e.e2f76c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 369,
+ "y": 203,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "25cd1da9.b3f392"
+ ]
+ ]
+ },
+ {
+ "id": "42b178a2.3d8ba8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1384,
+ "y": 134,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aef28b8.b6c4b78",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1397,
+ "y": 233,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "170418bf.9dd4e7",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1376,
+ "y": 337,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "767736d7.c19918",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1320,
+ "y": 437,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8cb02fdb.f9b1f",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1230,
+ "y": 1005,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "39614b88.12fe44",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1314,
+ "y": 859,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7fbf2795.5c7328",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1343,
+ "y": 757,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97e385a2.e3b1f8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1329,
+ "y": 647,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fd933a2b.a244e8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1257,
+ "y": 1165,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3cd728ae.126d18",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1264,
+ "y": 1273,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3f6653fd.04dd4c",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1244,
+ "y": 1383,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "48b19296.b91e8c",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1238,
+ "y": 1496,
+ "z": "73143c7.55534c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1d32ea36.ac6196",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1188,
+ "y": 105,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "a32f2439.cb6ab8",
+ "42b178a2.3d8ba8"
+ ]
+ ]
+ },
+ {
+ "id": "e76aea9c.e12bd8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1205,
+ "y": 191,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "5aa343d7.14c6fc",
+ "aef28b8.b6c4b78"
+ ]
+ ]
+ },
+ {
+ "id": "80d48ef5.9912",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1195,
+ "y": 296,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "cef4b295.6c496",
+ "170418bf.9dd4e7"
+ ]
+ ]
+ },
+ {
+ "id": "8c7e1bd7.f41a68",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1107,
+ "y": 399,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "59568bd7.60cba4",
+ "767736d7.c19918"
+ ]
+ ]
+ },
+ {
+ "id": "606ba16.524bc6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1129,
+ "y": 628,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "17a117e5.591708",
+ "97e385a2.e3b1f8"
+ ]
+ ]
+ },
+ {
+ "id": "31b7a978.6ce366",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1155,
+ "y": 724,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "2d2e684.a340898",
+ "7fbf2795.5c7328"
+ ]
+ ]
+ },
+ {
+ "id": "5aa134da.c5d79c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1125,
+ "y": 813,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "f96115b6.ae0958",
+ "39614b88.12fe44"
+ ]
+ ]
+ },
+ {
+ "id": "c49e735f.4d186",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1021,
+ "y": 982,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "aad0db15.cc7c18",
+ "8cb02fdb.f9b1f"
+ ]
+ ]
+ },
+ {
+ "id": "de9cb28.9f9d45",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039,
+ "y": 1146,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "d67ef568.42cc38",
+ "fd933a2b.a244e8"
+ ]
+ ]
+ },
+ {
+ "id": "6fab0d4e.49f804",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1064,
+ "y": 1240,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "17e177eb.a9a758",
+ "3cd728ae.126d18"
+ ]
+ ]
+ },
+ {
+ "id": "ea510da.c129ff",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1064,
+ "y": 1335,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "1cffb56f.5f74cb",
+ "3f6653fd.04dd4c"
+ ]
+ ]
+ },
+ {
+ "id": "ffafbd3d.43709",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1001,
+ "y": 1460,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "ea23ac7b.49a0e",
+ "48b19296.b91e8c"
+ ]
+ ]
+ },
+ {
+ "id": "9e0dc2de.70214",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 887,
+ "y": 1688,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "76e5208f.cb277",
+ "624e9330.541bbc"
+ ]
+ ]
+ },
+ {
+ "id": "ad4c759a.2f2898",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 891,
+ "y": 1827,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "986204b7.0e72d8",
+ "5e457023.84189"
+ ]
+ ]
+ },
+ {
+ "id": "287e67.d378d19a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 861,
+ "y": 1930,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "2bbf429f.61555e",
+ "d21d0e47.828fe"
+ ]
+ ]
+ },
+ {
+ "id": "5ba96bee.3ec3d4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 769,
+ "y": 2044,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "22448edc.1c06a2",
+ "43ae63f9.14b1dc"
+ ]
+ ]
+ },
+ {
+ "id": "7a765f28.8bea6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 712,
+ "y": 27,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "1b913f9a.27c49",
+ "eb046504.a184d8"
+ ]
+ ]
+ },
+ {
+ "id": "7d7cd2ec.065b2c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 653,
+ "y": 524,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "f02b9dc0.9a744",
+ "13b57033.9951"
+ ]
+ ]
+ },
+ {
+ "id": "712de01.298dd2",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 528,
+ "y": 1012,
+ "z": "73143c7.55534c4",
+ "wires": [
+ [
+ "d69e06e0.b960b8",
+ "d3523aa7.075c48"
+ ]
+ ]
+ }
+] \ 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
index 00000000..47d4391f
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu4.json
@@ -0,0 +1,1998 @@
+[
+ {
+ "id": "e3feee36.dfc57",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 911,
+ "y": 188,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "8c8b0340.fea55",
+ "bbae384a.c600d8",
+ "81fb76a8.ffe2f8",
+ "ec837101.493ce",
+ "4f3806a1.3db668"
+ ]
+ ]
+ },
+ {
+ "id": "8c8b0340.fea55",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1050,
+ "y": 147,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "349a0c0c.fe1ba4"
+ ]
+ ]
+ },
+ {
+ "id": "d2e27b7b.5c60a8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 919,
+ "y": 102,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "d77d3b20.4deaf8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1353,
+ "y": 85,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "b7144f81.df566",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 631,
+ "y": 135,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "f63ce118.af64a"
+ ]
+ ]
+ },
+ {
+ "id": "79a768dc.a905b8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 500,
+ "y": 191,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "b7144f81.df566",
+ "c9bcd5cc.2d7a38",
+ "bb3aa450.7afcd8",
+ "3fe43b1f.6606f4",
+ "c20ced2c.54286"
+ ]
+ ]
+ },
+ {
+ "id": "e749c854.0dc6c8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 821,
+ "y": 139,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "e3feee36.dfc57",
+ "d2e27b7b.5c60a8"
+ ]
+ ]
+ },
+ {
+ "id": "bbae384a.c600d8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1063,
+ "y": 283,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "38c2eecb.ad0df2"
+ ]
+ ]
+ },
+ {
+ "id": "95485793.c9cb48",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1320,
+ "y": 238,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "1dc3bc82.c95123",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 788,
+ "y": 39,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "81fb76a8.ffe2f8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1027,
+ "y": 386,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "54d432b1.c4d86c"
+ ]
+ ]
+ },
+ {
+ "id": "f2edcadd.b7afc8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1324,
+ "y": 358,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "ec837101.493ce",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 949.5,
+ "y": 501,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "d3c54b7f.d37ce8"
+ ]
+ ]
+ },
+ {
+ "id": "dd9d755f.f70388",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 1251.5,
+ "y": 473,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "cce12306.4f347",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 126,
+ "y": 148,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "d14b0a8.027a7f8"
+ ]
+ ]
+ },
+ {
+ "id": "d14b0a8.027a7f8",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 139,
+ "y": 208,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "da99be36.fe011"
+ ]
+ ]
+ },
+ {
+ "id": "da99be36.fe011",
+ "type": "method",
+ "name": "method bandwidth-update-odu4",
+ "xml": "<method rpc='bandwidth-update-odu4' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 323,
+ "y": 101,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "c5e7c025.0f62c"
+ ]
+ ]
+ },
+ {
+ "id": "c5e7c025.0f62c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 373.5,
+ "y": 245,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "79a768dc.a905b8"
+ ]
+ ]
+ },
+ {
+ "id": "4f3806a1.3db668",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 859,
+ "y": 632,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "f41938e6.1bebe8"
+ ]
+ ]
+ },
+ {
+ "id": "2adc2f40.dc7d4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1194,
+ "y": 607,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "4cf1c380.32bbdc",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 704,
+ "y": 829,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "265152f.0b59fae",
+ "9ce3dd24.3e3c7",
+ "a19a912a.fe52f",
+ "f470a7e3.298178",
+ "f79cb52.e73e448"
+ ]
+ ]
+ },
+ {
+ "id": "265152f.0b59fae",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 843,
+ "y": 788,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "fd01f978.0f3698"
+ ]
+ ]
+ },
+ {
+ "id": "4d185c07.cc41d4",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 712,
+ "y": 743,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "1a2eb6ab.8d8199",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1123,
+ "y": 765,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "c9bcd5cc.2d7a38",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 424,
+ "y": 776,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "30b73784.022928"
+ ]
+ ]
+ },
+ {
+ "id": "c4b29e77.0b02a",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 612,
+ "y": 786,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "4cf1c380.32bbdc",
+ "4d185c07.cc41d4"
+ ]
+ ]
+ },
+ {
+ "id": "9ce3dd24.3e3c7",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 856,
+ "y": 924,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "952f6f66.9b3a7"
+ ]
+ ]
+ },
+ {
+ "id": "3389c8d8.7dc548",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1170,
+ "y": 898,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "57d6620f.6163cc",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 715,
+ "y": 613,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "a19a912a.fe52f",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 820,
+ "y": 1027,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "50fc2c72.542084"
+ ]
+ ]
+ },
+ {
+ "id": "5e807b52.3b6674",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1118,
+ "y": 1015,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "f470a7e3.298178",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 742.5,
+ "y": 1142,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "e42e2444.15dd28"
+ ]
+ ]
+ },
+ {
+ "id": "b0c44c3f.e472",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 995.5,
+ "y": 1143,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "f79cb52.e73e448",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 652,
+ "y": 1273,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "74474581.b5e87c"
+ ]
+ ]
+ },
+ {
+ "id": "9570111b.094dd",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 915,
+ "y": 1252,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "bf7d6c6b.e0ece",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 555,
+ "y": 1476,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "b561742b.cd28e8",
+ "fa15bcfc.6af83",
+ "61666fc.db1569",
+ "f1e48908.aaabd8",
+ "8f4f4b48.14a0b8"
+ ]
+ ]
+ },
+ {
+ "id": "b561742b.cd28e8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 694,
+ "y": 1435,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "23fa6a55.3ea336"
+ ]
+ ]
+ },
+ {
+ "id": "985f9b24.eeace8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 563,
+ "y": 1390,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "3049243b.bf71ec",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 961,
+ "y": 1437,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "bb3aa450.7afcd8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 275,
+ "y": 1423,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "61e4c74f.7d0068"
+ ]
+ ]
+ },
+ {
+ "id": "3f1ddc4f.602e34",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 419,
+ "y": 1441,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "bf7d6c6b.e0ece",
+ "985f9b24.eeace8"
+ ]
+ ]
+ },
+ {
+ "id": "fa15bcfc.6af83",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 707,
+ "y": 1571,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "f9ec6aee.e4c848"
+ ]
+ ]
+ },
+ {
+ "id": "79ac5779.cefe88",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 969,
+ "y": 1546,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "99a06c04.fc087",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 498,
+ "y": 1306,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "61666fc.db1569",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 671,
+ "y": 1674,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "94357a7.a130f88"
+ ]
+ ]
+ },
+ {
+ "id": "15aa4115.225e1f",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 953,
+ "y": 1646,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "f1e48908.aaabd8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 593.5,
+ "y": 1789,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "8dce08fb.34cdb8"
+ ]
+ ]
+ },
+ {
+ "id": "d72c3e8d.b95f1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 874.5,
+ "y": 1784,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "8f4f4b48.14a0b8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 503,
+ "y": 1920,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "425a258e.6c173c"
+ ]
+ ]
+ },
+ {
+ "id": "29176cbc.abf4c4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 781,
+ "y": 1914,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "c8cc7f5b.29157",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 485,
+ "y": 2130,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "95fe5423.8d72f8",
+ "c6923f1c.db161",
+ "c2f012bc.b8b8b",
+ "e958d54f.06a758",
+ "66b70ac8.ccefd4"
+ ]
+ ]
+ },
+ {
+ "id": "95fe5423.8d72f8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 624,
+ "y": 2089,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "1bf49ff2.464d4"
+ ]
+ ]
+ },
+ {
+ "id": "77e3b83.e43a648",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 493,
+ "y": 2044,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "d19285ad.4d90a8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 891,
+ "y": 2066,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "3fe43b1f.6606f4",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 205,
+ "y": 2077,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "c2791d26.93119"
+ ]
+ ]
+ },
+ {
+ "id": "7726f454.56bf9c",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 386,
+ "y": 2070,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "c8cc7f5b.29157",
+ "77e3b83.e43a648"
+ ]
+ ]
+ },
+ {
+ "id": "c6923f1c.db161",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 637,
+ "y": 2225,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "55d9ef5.6d3f01"
+ ]
+ ]
+ },
+ {
+ "id": "b2271a07.74ec28",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 889,
+ "y": 2221,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "89ba325e.4bc83",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 436,
+ "y": 1984,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "c2f012bc.b8b8b",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 601,
+ "y": 2328,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "924b471a.324748"
+ ]
+ ]
+ },
+ {
+ "id": "f1edcf75.5da63",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 887,
+ "y": 2326,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "e958d54f.06a758",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 523.5,
+ "y": 2443,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "4afed28.6e4ed2c"
+ ]
+ ]
+ },
+ {
+ "id": "d286e908.53cd68",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 794.5,
+ "y": 2437,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "66b70ac8.ccefd4",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 433,
+ "y": 2574,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "49cef9bf.0a62e8"
+ ]
+ ]
+ },
+ {
+ "id": "99bb505e.aea4d",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 741,
+ "y": 2566,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "763ed9fe.b41af8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 467,
+ "y": 2803,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "3c67a2b6.56ec0e",
+ "5db1fe3e.c50c4",
+ "3f5a2e5b.807e42",
+ "a57f36b0.498bb8",
+ "e74b0463.901ba8"
+ ]
+ ]
+ },
+ {
+ "id": "3c67a2b6.56ec0e",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 606,
+ "y": 2762,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "7b44fdae.dba374"
+ ]
+ ]
+ },
+ {
+ "id": "ccbab50d.fb1c08",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 475,
+ "y": 2717,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "b6bdc28d.0a9d1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 878,
+ "y": 2740,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "c20ced2c.54286",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 187,
+ "y": 2750,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "80ac6d40.b471f"
+ ]
+ ]
+ },
+ {
+ "id": "80ac6d40.b471f",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 331,
+ "y": 2768,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "763ed9fe.b41af8",
+ "ccbab50d.fb1c08"
+ ]
+ ]
+ },
+ {
+ "id": "5db1fe3e.c50c4",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 619,
+ "y": 2898,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "a1a1153c.aaf6a8"
+ ]
+ ]
+ },
+ {
+ "id": "37f02bd6.a3bc34",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />",
+ "comments": "",
+ "x": 874,
+ "y": 2872,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "3f5a2e5b.807e42",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 583,
+ "y": 3001,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "9682ea99.385bb8"
+ ]
+ ]
+ },
+ {
+ "id": "5fa94b20.fa80a4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />",
+ "comments": "",
+ "x": 856,
+ "y": 3001,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "a57f36b0.498bb8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 505.5,
+ "y": 3116,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "d48499c7.7a7708"
+ ]
+ ]
+ },
+ {
+ "id": "48180881.455f58",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />",
+ "comments": "",
+ "x": 850.5,
+ "y": 3113,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "e74b0463.901ba8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 415,
+ "y": 3247,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "984049b4.f3f768"
+ ]
+ ]
+ },
+ {
+ "id": "194a38c2.ba5f17",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />",
+ "comments": "",
+ "x": 732,
+ "y": 3226,
+ "z": "cf306303.ef4a7",
+ "wires": []
+ },
+ {
+ "id": "692a2465.ed0e4c",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1396,
+ "y": 156,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "349a0c0c.fe1ba4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1183,
+ "y": 143,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "d77d3b20.4deaf8",
+ "692a2465.ed0e4c"
+ ]
+ ]
+ },
+ {
+ "id": "38c2eecb.ad0df2",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1191,
+ "y": 282,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "95485793.c9cb48",
+ "1bb4b679.b5f7aa"
+ ]
+ ]
+ },
+ {
+ "id": "54d432b1.c4d86c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1152,
+ "y": 384,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "f2edcadd.b7afc8",
+ "a605a893.aa9e08"
+ ]
+ ]
+ },
+ {
+ "id": "d3c54b7f.d37ce8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1089,
+ "y": 500,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "dd9d755f.f70388",
+ "9a31744f.663728"
+ ]
+ ]
+ },
+ {
+ "id": "f41938e6.1bebe8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1000,
+ "y": 629,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "2adc2f40.dc7d4",
+ "db36b1ce.29afa"
+ ]
+ ]
+ },
+ {
+ "id": "1bb4b679.b5f7aa",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1391,
+ "y": 295,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a605a893.aa9e08",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1347,
+ "y": 418,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9a31744f.663728",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1299,
+ "y": 535,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db36b1ce.29afa",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1252,
+ "y": 664,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fd01f978.0f3698",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 974,
+ "y": 791,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "1a2eb6ab.8d8199",
+ "7b8b1c71.d4b564"
+ ]
+ ]
+ },
+ {
+ "id": "952f6f66.9b3a7",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 995,
+ "y": 917,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "3389c8d8.7dc548",
+ "89e6c787.5eaec8"
+ ]
+ ]
+ },
+ {
+ "id": "50fc2c72.542084",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 959,
+ "y": 1022,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "5e807b52.3b6674",
+ "dd906860.1e0508"
+ ]
+ ]
+ },
+ {
+ "id": "e42e2444.15dd28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 877,
+ "y": 1142,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "b0c44c3f.e472",
+ "a4b23de1.e4be2"
+ ]
+ ]
+ },
+ {
+ "id": "74474581.b5e87c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 792,
+ "y": 1266,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "9570111b.094dd",
+ "ad791da9.09703"
+ ]
+ ]
+ },
+ {
+ "id": "7b8b1c71.d4b564",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1176,
+ "y": 820,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "89e6c787.5eaec8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1217,
+ "y": 952,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dd906860.1e0508",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1186,
+ "y": 1063,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a4b23de1.e4be2",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1103,
+ "y": 1194,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ad791da9.09703",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 979,
+ "y": 1297,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "23fa6a55.3ea336",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 831,
+ "y": 1436,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "3049243b.bf71ec",
+ "d3f85039.043cd"
+ ]
+ ]
+ },
+ {
+ "id": "f9ec6aee.e4c848",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 840,
+ "y": 1569,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "79ac5779.cefe88",
+ "38258153.d7527e"
+ ]
+ ]
+ },
+ {
+ "id": "94357a7.a130f88",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 806,
+ "y": 1672,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "15aa4115.225e1f",
+ "91a910f5.57bfe"
+ ]
+ ]
+ },
+ {
+ "id": "8dce08fb.34cdb8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 739,
+ "y": 1787,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "d72c3e8d.b95f1",
+ "87d5be5d.2b207"
+ ]
+ ]
+ },
+ {
+ "id": "425a258e.6c173c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 643,
+ "y": 1915,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "29176cbc.abf4c4",
+ "649070e6.751a3"
+ ]
+ ]
+ },
+ {
+ "id": "d3f85039.043cd",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1018,
+ "y": 1488,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "38258153.d7527e",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1041,
+ "y": 1599,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "91a910f5.57bfe",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 996,
+ "y": 1706,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "87d5be5d.2b207",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 950,
+ "y": 1844,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "649070e6.751a3",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 870,
+ "y": 1963,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1bf49ff2.464d4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 766,
+ "y": 2066,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "d19285ad.4d90a8",
+ "79bcc46a.422fdc"
+ ]
+ ]
+ },
+ {
+ "id": "55d9ef5.6d3f01",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 766,
+ "y": 2225,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "b2271a07.74ec28",
+ "cc056ff9.228ea"
+ ]
+ ]
+ },
+ {
+ "id": "924b471a.324748",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 726,
+ "y": 2329,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "f1edcf75.5da63",
+ "93cf8bc1.5dacb8"
+ ]
+ ]
+ },
+ {
+ "id": "4afed28.6e4ed2c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 670,
+ "y": 2445,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "d286e908.53cd68",
+ "6c9cc97c.0f7638"
+ ]
+ ]
+ },
+ {
+ "id": "49cef9bf.0a62e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 572,
+ "y": 2564,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "99bb505e.aea4d",
+ "1a3d11cb.c21c6e"
+ ]
+ ]
+ },
+ {
+ "id": "79bcc46a.422fdc",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 966,
+ "y": 2115,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cc056ff9.228ea",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 973,
+ "y": 2273,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "93cf8bc1.5dacb8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 934,
+ "y": 2384,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6c9cc97c.0f7638",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 869,
+ "y": 2491,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1a3d11cb.c21c6e",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 746,
+ "y": 2627,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c0951d6c.a967f",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 946,
+ "y": 2788,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9d11608f.d4f13",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 938,
+ "y": 2930,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fbbe414c.78665",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 915,
+ "y": 3046,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e8ac631c.1e37",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 873,
+ "y": 3163,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44c3bcb0.5e6ad4",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 817,
+ "y": 3284,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7b44fdae.dba374",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 751,
+ "y": 2753,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "b6bdc28d.0a9d1",
+ "c0951d6c.a967f"
+ ]
+ ]
+ },
+ {
+ "id": "a1a1153c.aaf6a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 760,
+ "y": 2898,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "37f02bd6.a3bc34",
+ "9d11608f.d4f13"
+ ]
+ ]
+ },
+ {
+ "id": "9682ea99.385bb8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 714,
+ "y": 3000,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "5fa94b20.fa80a4",
+ "fbbe414c.78665"
+ ]
+ ]
+ },
+ {
+ "id": "d48499c7.7a7708",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 663,
+ "y": 3116,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "48180881.455f58",
+ "e8ac631c.1e37"
+ ]
+ ]
+ },
+ {
+ "id": "984049b4.f3f768",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 563,
+ "y": 3243,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "194a38c2.ba5f17",
+ "44c3bcb0.5e6ad4"
+ ]
+ ]
+ },
+ {
+ "id": "f63ce118.af64a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 680,
+ "y": 80,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "1dc3bc82.c95123",
+ "e749c854.0dc6c8"
+ ]
+ ]
+ },
+ {
+ "id": "30b73784.022928",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 598,
+ "y": 667,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "57d6620f.6163cc",
+ "c4b29e77.0b02a"
+ ]
+ ]
+ },
+ {
+ "id": "61e4c74f.7d0068",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 372,
+ "y": 1313,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "99a06c04.fc087",
+ "3f1ddc4f.602e34"
+ ]
+ ]
+ },
+ {
+ "id": "c2791d26.93119",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 301,
+ "y": 1959,
+ "z": "cf306303.ef4a7",
+ "wires": [
+ [
+ "89ba325e.4bc83",
+ "7726f454.56bf9c"
+ ]
+ ]
+ }
+] \ 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
index 00000000..4a83b131
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update.json
@@ -0,0 +1,535 @@
+[
+ {
+ "id": "18085ebe.2080b1",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 491,
+ "y": 263,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "18152330.c91add"
+ ]
+ ]
+ },
+ {
+ "id": "18152330.c91add",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 612,
+ "y": 162,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "c668a8ef.03ace8",
+ "d1cff404.96b3b8"
+ ]
+ ]
+ },
+ {
+ "id": "66893dd3.7d6d44",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 974,
+ "y": 344,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "81ac4ffe.df305"
+ ]
+ ]
+ },
+ {
+ "id": "81ac4ffe.df305",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1097,
+ "y": 339,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "3c2d54e2.97184c"
+ ]
+ ]
+ },
+ {
+ "id": "915a7aed.6d9c68",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1029,
+ "y": 243,
+ "z": "ad8c454f.e636c8",
+ "wires": []
+ },
+ {
+ "id": "3133f444.5a5e1c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`0`' />\n",
+ "comments": "",
+ "x": 1371,
+ "y": 313,
+ "z": "ad8c454f.e636c8",
+ "wires": []
+ },
+ {
+ "id": "6b05b797.6dcc48",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1423,
+ "y": 372,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "da084d00.a23f5",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 897,
+ "y": 187,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "632c39.072c73c8"
+ ]
+ ]
+ },
+ {
+ "id": "c668a8ef.03ace8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 770,
+ "y": 187,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "da084d00.a23f5"
+ ]
+ ]
+ },
+ {
+ "id": "632c39.072c73c8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 781,
+ "y": 294,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "47c4c7c8.0b4c88"
+ ]
+ ]
+ },
+ {
+ "id": "97eda245.3bd94",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$pin.speed-value`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 258,
+ "y": 277,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "18085ebe.2080b1",
+ "6336ec43.215354",
+ "4af01397.f0721c",
+ "13671476.30978c",
+ "8fdcca3.ccd1438"
+ ]
+ ]
+ },
+ {
+ "id": "6336ec43.215354",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535,
+ "y": 377,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "2ac5f263.9388fe"
+ ]
+ ]
+ },
+ {
+ "id": "4af01397.f0721c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 514,
+ "y": 479,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "4c19e4dc.f77c2c"
+ ]
+ ]
+ },
+ {
+ "id": "13671476.30978c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 457,
+ "y": 578,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "8fbd05d3.328318"
+ ]
+ ]
+ },
+ {
+ "id": "8fdcca3.ccd1438",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 321,
+ "y": 705,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "89103495.e05898"
+ ]
+ ]
+ },
+ {
+ "id": "2ac5f263.9388fe",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 691,
+ "y": 378,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "5316c08.338af4",
+ "e98e80e5.101d1"
+ ]
+ ]
+ },
+ {
+ "id": "4c19e4dc.f77c2c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 684,
+ "y": 482,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "50c6b9ba.7e87b8",
+ "5d79d201.e7950c"
+ ]
+ ]
+ },
+ {
+ "id": "8fbd05d3.328318",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 641,
+ "y": 576,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "c6c0c526.a7b418",
+ "ca06e916.be11d8"
+ ]
+ ]
+ },
+ {
+ "id": "89103495.e05898",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 478,
+ "y": 707,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "153b1907.652237",
+ "b455fb41.56e658"
+ ]
+ ]
+ },
+ {
+ "id": "5316c08.338af4",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 870,
+ "y": 384,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "50c6b9ba.7e87b8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 861,
+ "y": 481,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c6c0c526.a7b418",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 807,
+ "y": 576,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "153b1907.652237",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 650,
+ "y": 676,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d1cff404.96b3b8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 789,
+ "y": 125,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ca06e916.be11d8",
+ "type": "call",
+ "name": "call bandwidth-update-odu3",
+ "xml": "<call module='optical-service' rpc='bandwidth-update-odu3' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 847,
+ "y": 629,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b455fb41.56e658",
+ "type": "call",
+ "name": "call bandwidth-update-odu4",
+ "xml": "<call module='optical-service' rpc='bandwidth-update-odu4' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 697,
+ "y": 739,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e98e80e5.101d1",
+ "type": "call",
+ "name": "call bandwidth-update-odu1",
+ "xml": "<call module='optical-service' rpc='bandwidth-update-odu1' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 921,
+ "y": 430,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5d79d201.e7950c",
+ "type": "call",
+ "name": "call bandwidth-update-odu2",
+ "xml": "<call module='optical-service' rpc='bandwidth-update-odu2' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 907,
+ "y": 533,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "24d31db6.2991f2",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 107.5,
+ "y": 96,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "e91758dd.a9f1e8"
+ ]
+ ]
+ },
+ {
+ "id": "e91758dd.a9f1e8",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 134.5,
+ "y": 166,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "9d59d2a1.9e885"
+ ]
+ ]
+ },
+ {
+ "id": "9d59d2a1.9e885",
+ "type": "method",
+ "name": "method bandwidth-update",
+ "xml": "<method rpc='bandwidth-update' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 321.5,
+ "y": 59,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "2cba60b2.bce73"
+ ]
+ ]
+ },
+ {
+ "id": "2cba60b2.bce73",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 369,
+ "y": 203,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "97eda245.3bd94"
+ ]
+ ]
+ },
+ {
+ "id": "3c2d54e2.97184c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1242,
+ "y": 329,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "3133f444.5a5e1c",
+ "6b05b797.6dcc48"
+ ]
+ ]
+ },
+ {
+ "id": "47c4c7c8.0b4c88",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 903,
+ "y": 290,
+ "z": "ad8c454f.e636c8",
+ "wires": [
+ [
+ "915a7aed.6d9c68",
+ "66893dd3.7d6d44"
+ ]
+ ]
+ }
+] \ 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
index 00000000..120045ba
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_call-bandwidth-update-pinterface.json
@@ -0,0 +1,263 @@
+[
+ {
+ "id": "eea3e631.4d9b68",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 186,
+ "y": 126,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "cb6680a1.3045c"
+ ]
+ ]
+ },
+ {
+ "id": "cb6680a1.3045c",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 199,
+ "y": 186,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "fe24bdb7.c56f2"
+ ]
+ ]
+ },
+ {
+ "id": "fe24bdb7.c56f2",
+ "type": "method",
+ "name": "method call-bandwidth-update-pinterface",
+ "xml": "<method rpc='call-bandwidth-update-pinterface' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 219,
+ "y": 266,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "f4138d82.af408"
+ ]
+ ]
+ },
+ {
+ "id": "f4138d82.af408",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 465.5,
+ "y": 265,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "644acd06.205cc4",
+ "9946b93e.6bd4e8",
+ "35af83ac.5dff5c"
+ ]
+ ]
+ },
+ {
+ "id": "644acd06.205cc4",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/test.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$div`\"/>\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 621,
+ "y": 105,
+ "z": "75b8fd05.797274",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f55c6dd9.5cdaa",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`0`' />\n",
+ "comments": "",
+ "x": 1768,
+ "y": 299,
+ "z": "75b8fd05.797274",
+ "wires": []
+ },
+ {
+ "id": "79209df4.edd3e4",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1823,
+ "y": 353,
+ "z": "75b8fd05.797274",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9946b93e.6bd4e8",
+ "type": "get-resource",
+ "name": "find if interface is uni or nni or enni",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 754,
+ "y": 179,
+ "z": "75b8fd05.797274",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "35af83ac.5dff5c",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$pin.network-interface-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 644,
+ "y": 262,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "e2e8e64.ad89518",
+ "2d42a8a.f473958"
+ ]
+ ]
+ },
+ {
+ "id": "60b2bda3.41fbd4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 951,
+ "y": 250,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "301928f8.f38eb8",
+ "64426912.b5d438"
+ ]
+ ]
+ },
+ {
+ "id": "301928f8.f38eb8",
+ "type": "call",
+ "name": "call bandwidth update",
+ "xml": "<call module='optical-service' rpc='bandwidth-update' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1160,
+ "y": 249,
+ "z": "75b8fd05.797274",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e2e8e64.ad89518",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='UNI'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 756,
+ "y": 360,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "97cc233d.bc8a6"
+ ]
+ ]
+ },
+ {
+ "id": "97cc233d.bc8a6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 926,
+ "y": 365,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "7a8337c7.492958",
+ "118d5528.b1e21b"
+ ]
+ ]
+ },
+ {
+ "id": "7a8337c7.492958",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1161,
+ "y": 399,
+ "z": "75b8fd05.797274",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "64426912.b5d438",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Port is NNI\"/>\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1092,
+ "y": 191,
+ "z": "75b8fd05.797274",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "118d5528.b1e21b",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Port is UNI\"/>\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1110,
+ "y": 308,
+ "z": "75b8fd05.797274",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d42a8a.f473958",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 790,
+ "y": 264,
+ "z": "75b8fd05.797274",
+ "wires": [
+ [
+ "60b2bda3.41fbd4"
+ ]
+ ]
+ }
+] \ 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
index 00000000..6926f79a
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json
@@ -0,0 +1,325 @@
+[
+ {
+ "id": "ef271e98.1343d",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 225.5555419921875,
+ "y": 244.44442749023438,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "69929ea4.2407d"
+ ]
+ ]
+ },
+ {
+ "id": "69929ea4.2407d",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 412.5555419921875,
+ "y": 193.44442749023438,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "926e362a.257c68"
+ ]
+ ]
+ },
+ {
+ "id": "926e362a.257c68",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='create-service-async' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 266.5555419921875,
+ "y": 367.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "1e677fcc.18edb"
+ ]
+ ]
+ },
+ {
+ "id": "1e677fcc.18edb",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 439.5555419921875,
+ "y": 366.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "570787b6.c60918",
+ "8b32ac88.06a0b",
+ "d11ad8e1.0343c8"
+ ]
+ ]
+ },
+ {
+ "id": "570787b6.c60918",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Create Service Async\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 612.5555419921875,
+ "y": 277.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "28c538c4.2302f8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1140.5555419921875,
+ "y": 359.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5e382c44.972184",
+ "type": "update",
+ "name": "update AAI service 'CREATED'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1163.5555419921875,
+ "y": 227.44442749023438,
+ "z": "d7735114.f6066",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "11f258cf.0cfbe7",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='200'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 744.5555419921875,
+ "y": 328.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "6823decd.1c0f4"
+ ]
+ ]
+ },
+ {
+ "id": "1f9398a1.9403f7",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 735.5555419921875,
+ "y": 440.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "a0d9ffaf.322a"
+ ]
+ ]
+ },
+ {
+ "id": "6823decd.1c0f4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 914.5555419921875,
+ "y": 306.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "28c538c4.2302f8",
+ "5e382c44.972184",
+ "8124c756.1dde88",
+ "15476d01.4a1043"
+ ]
+ ]
+ },
+ {
+ "id": "a0d9ffaf.322a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 907.5555419921875,
+ "y": 443.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "20546055.63c8f",
+ "7353aa4c.564df4"
+ ]
+ ]
+ },
+ {
+ "id": "8b32ac88.06a0b",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$response-code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 613.5555419921875,
+ "y": 366.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "11f258cf.0cfbe7",
+ "1f9398a1.9403f7"
+ ]
+ ]
+ },
+ {
+ "id": "8124c756.1dde88",
+ "type": "save",
+ "name": "update DB 'CREATED'",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1177.5555419921875,
+ "y": 299.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "20546055.63c8f",
+ "type": "call",
+ "name": "call",
+ "xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1058.5555419921875,
+ "y": 471.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d11ad8e1.0343c8",
+ "type": "execute",
+ "name": "execute",
+ "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' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 600.5555419921875,
+ "y": 501.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "7c0eb31b.04d7bc",
+ "f4076cb2.329c4"
+ ]
+ ]
+ },
+ {
+ "id": "7c0eb31b.04d7bc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 762.5555419921875,
+ "y": 494.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "d698b0bd.4bbda"
+ ]
+ ]
+ },
+ {
+ "id": "f4076cb2.329c4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 764.5555419921875,
+ "y": 564.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "43f03cc3.9bf324"
+ ]
+ ]
+ },
+ {
+ "id": "d698b0bd.4bbda",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service create\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 904.5555419921875,
+ "y": 494.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "43f03cc3.9bf324",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO Success for service create\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 904.5555419921875,
+ "y": 564.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "15476d01.4a1043",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",
+ "comments": "",
+ "x": 1073.5555419921875,
+ "y": 146.44442749023438,
+ "z": "d7735114.f6066",
+ "wires": []
+ },
+ {
+ "id": "7353aa4c.564df4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",
+ "comments": "",
+ "x": 1052.5555419921875,
+ "y": 401.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": []
+ }
+] \ 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
index 00000000..d9ec517c
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu1.json
@@ -0,0 +1,454 @@
+[
+ {
+ "id": "14cf1df4.f54662",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 993.5,
+ "y": 264,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "4b4c9586.60ad3c",
+ "50fa7b63.da3bc4"
+ ]
+ ]
+ },
+ {
+ "id": "4b4c9586.60ad3c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1126.5,
+ "y": 233,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "306779ca.c7fe56"
+ ]
+ ]
+ },
+ {
+ "id": "9426ab97.b5f1b8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 998.5,
+ "y": 186,
+ "z": "9d563055.a9c91",
+ "wires": []
+ },
+ {
+ "id": "932a9498.ee5f98",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1360.5,
+ "y": 161,
+ "z": "9d563055.a9c91",
+ "wires": []
+ },
+ {
+ "id": "2c328c57.512f64",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 717.5,
+ "y": 210,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "f515e19a.c4eb9"
+ ]
+ ]
+ },
+ {
+ "id": "147a7157.aff1bf",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 641.5,
+ "y": 328,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "2c328c57.512f64",
+ "6b124827.5aa0d8"
+ ]
+ ]
+ },
+ {
+ "id": "f515e19a.c4eb9",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 855.5,
+ "y": 217,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "14cf1df4.f54662",
+ "9426ab97.b5f1b8",
+ "540fc918.04e698"
+ ]
+ ]
+ },
+ {
+ "id": "50fa7b63.da3bc4",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1125.5,
+ "y": 348,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "3aa7a5af.1f725a"
+ ]
+ ]
+ },
+ {
+ "id": "98ca9a7a.b1da28",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1400.5,
+ "y": 316,
+ "z": "9d563055.a9c91",
+ "wires": []
+ },
+ {
+ "id": "bcd896ea.134ef8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1007.5,
+ "y": 544,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "734120af.333b1",
+ "e334adc6.74e18"
+ ]
+ ]
+ },
+ {
+ "id": "734120af.333b1",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1148.5,
+ "y": 536,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "dcf100f.11c2f"
+ ]
+ ]
+ },
+ {
+ "id": "dedfd85.da6a228",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1012.5,
+ "y": 466,
+ "z": "9d563055.a9c91",
+ "wires": []
+ },
+ {
+ "id": "759d5016.edc78",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1350.5,
+ "y": 469,
+ "z": "9d563055.a9c91",
+ "wires": []
+ },
+ {
+ "id": "6b124827.5aa0d8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 718.5,
+ "y": 490,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "6b0aeeeb.a0e81"
+ ]
+ ]
+ },
+ {
+ "id": "6b0aeeeb.a0e81",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 869.5,
+ "y": 497,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "bcd896ea.134ef8",
+ "dedfd85.da6a228"
+ ]
+ ]
+ },
+ {
+ "id": "e334adc6.74e18",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1132.5,
+ "y": 667,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "d26ccdca.365ae"
+ ]
+ ]
+ },
+ {
+ "id": "cf4ea28f.11fc6",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='1' />\n",
+ "comments": "",
+ "x": 1377.5,
+ "y": 623,
+ "z": "9d563055.a9c91",
+ "wires": []
+ },
+ {
+ "id": "27d03218.2c866e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 484.5,
+ "y": 319,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "147a7157.aff1bf"
+ ]
+ ]
+ },
+ {
+ "id": "2abadb85.1dc3d4",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 201,
+ "y": 268,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "bec96b67.883f28"
+ ]
+ ]
+ },
+ {
+ "id": "bec96b67.883f28",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 214,
+ "y": 328,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "78d1d1d9.cb848"
+ ]
+ ]
+ },
+ {
+ "id": "78d1d1d9.cb848",
+ "type": "method",
+ "name": "method delete bandwidth-update-odu1",
+ "xml": "<method rpc='delete-bandwidth-update-odu1' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 398,
+ "y": 221,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "27d03218.2c866e"
+ ]
+ ]
+ },
+ {
+ "id": "351de7e6.d55ea8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1363.5,
+ "y": 228,
+ "z": "9d563055.a9c91",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6aa1cc4f.711764",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1376.5,
+ "y": 371,
+ "z": "9d563055.a9c91",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97686f7.b4f569",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1396.5,
+ "y": 525,
+ "z": "9d563055.a9c91",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ddeda7ad.8f0998",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1327.5,
+ "y": 694,
+ "z": "9d563055.a9c91",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "306779ca.c7fe56",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1233.5,
+ "y": 161,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "932a9498.ee5f98",
+ "351de7e6.d55ea8"
+ ]
+ ]
+ },
+ {
+ "id": "3aa7a5af.1f725a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1256.5,
+ "y": 312,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "98ca9a7a.b1da28",
+ "6aa1cc4f.711764"
+ ]
+ ]
+ },
+ {
+ "id": "dcf100f.11c2f",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1230.5,
+ "y": 459,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "759d5016.edc78",
+ "97686f7.b4f569"
+ ]
+ ]
+ },
+ {
+ "id": "d26ccdca.365ae",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1250.5,
+ "y": 626,
+ "z": "9d563055.a9c91",
+ "wires": [
+ [
+ "cf4ea28f.11fc6",
+ "ddeda7ad.8f0998"
+ ]
+ ]
+ },
+ {
+ "id": "540fc918.04e698",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 946,
+ "y": 104,
+ "z": "9d563055.a9c91",
+ "wires": []
+ }
+] \ 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
index 00000000..656b3652
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu2.json
@@ -0,0 +1,860 @@
+[
+ {
+ "id": "b084fa89.f01ea8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 438,
+ "y": 232,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "4a97ff4f.bfd68"
+ ]
+ ]
+ },
+ {
+ "id": "96e5a34.59f306",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1079,
+ "y": 277,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "3237c518.883aea",
+ "17eeb3ce.47776c",
+ "f581aa2a.165e38"
+ ]
+ ]
+ },
+ {
+ "id": "3237c518.883aea",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1155,
+ "y": 243,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "8941d396.ae578"
+ ]
+ ]
+ },
+ {
+ "id": "4d4152ec.e45f7c",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1061,
+ "y": 181,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "90fbbfdf.89335",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1443,
+ "y": 211,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "7de90141.291c1",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 736,
+ "y": 231,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "2095e985.399556"
+ ]
+ ]
+ },
+ {
+ "id": "4a97ff4f.bfd68",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 592,
+ "y": 231,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "7de90141.291c1",
+ "ab83f93d.af31c8",
+ "8918a3a1.0f4c3"
+ ]
+ ]
+ },
+ {
+ "id": "bbd68719.94eee8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 919,
+ "y": 219,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "96e5a34.59f306",
+ "4d4152ec.e45f7c"
+ ]
+ ]
+ },
+ {
+ "id": "17eeb3ce.47776c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1168,
+ "y": 379,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "cd9a6f0d.03ece"
+ ]
+ ]
+ },
+ {
+ "id": "998f566b.d4d9e8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1467,
+ "y": 332,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "790b63ef.5c774c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 960,
+ "y": 90,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "f581aa2a.165e38",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1132,
+ "y": 482,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "dfcbed36.411bf"
+ ]
+ ]
+ },
+ {
+ "id": "39a8fb6b.0b40a4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1436,
+ "y": 454,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "12b025be.1f759a",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1007,
+ "y": 667,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "3061fe37.c208d2",
+ "2365bc21.8d3944",
+ "725b3549.24459c"
+ ]
+ ]
+ },
+ {
+ "id": "3061fe37.c208d2",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1129,
+ "y": 621,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "c7c40fab.6345"
+ ]
+ ]
+ },
+ {
+ "id": "96e86968.dc5e98",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 998,
+ "y": 576,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "a3c6d00a.fa619",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1452,
+ "y": 593,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "ab83f93d.af31c8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 710,
+ "y": 609,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "b066df18.02cae"
+ ]
+ ]
+ },
+ {
+ "id": "98be1322.5dbe2",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 884,
+ "y": 640,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "12b025be.1f759a",
+ "96e86968.dc5e98"
+ ]
+ ]
+ },
+ {
+ "id": "2365bc21.8d3944",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1142,
+ "y": 757,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "68cdb2e2.1beadc"
+ ]
+ ]
+ },
+ {
+ "id": "4a7b0de3.f782f4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1450,
+ "y": 709,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "9c6b03eb.4ea26",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 928,
+ "y": 502,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "725b3549.24459c",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1106,
+ "y": 860,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "421b157.4c954ec"
+ ]
+ ]
+ },
+ {
+ "id": "ddc39868.09efe8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />",
+ "comments": "",
+ "x": 1367,
+ "y": 826,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "1bd73569.83c83b",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 975,
+ "y": 1078,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "d2d3fe29.bb8c5",
+ "7053f4c5.cb96fc",
+ "e891798c.221d78"
+ ]
+ ]
+ },
+ {
+ "id": "d2d3fe29.bb8c5",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1195,
+ "y": 1029,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "65623413.b6a16c"
+ ]
+ ]
+ },
+ {
+ "id": "e5799259.1501c",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 965,
+ "y": 995,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "bc2d2f17.5283e",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1468,
+ "y": 993,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "8918a3a1.0f4c3",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 483,
+ "y": 1046,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "9bd6ab5e.2aa3f8"
+ ]
+ ]
+ },
+ {
+ "id": "9bd6ab5e.2aa3f8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 767,
+ "y": 1068,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "1bd73569.83c83b",
+ "e5799259.1501c"
+ ]
+ ]
+ },
+ {
+ "id": "7053f4c5.cb96fc",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1207,
+ "y": 1139,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "4fbc165e.af8b28"
+ ]
+ ]
+ },
+ {
+ "id": "5ec7cd6b.270684",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",
+ "comments": "",
+ "x": 1489,
+ "y": 1134,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "e891798c.221d78",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1172,
+ "y": 1268,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "ad049b10.0853d8"
+ ]
+ ]
+ },
+ {
+ "id": "7954d64.7fafd28",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='1' />\n",
+ "comments": "",
+ "x": 1467,
+ "y": 1232,
+ "z": "a05b184c.d06448",
+ "wires": []
+ },
+ {
+ "id": "f31d8438.407118",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 154.5,
+ "y": 181,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "a3c96eae.dff1a"
+ ]
+ ]
+ },
+ {
+ "id": "a3c96eae.dff1a",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 167.5,
+ "y": 241,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "38a440d1.a85fc"
+ ]
+ ]
+ },
+ {
+ "id": "38a440d1.a85fc",
+ "type": "method",
+ "name": "method bandwidth-update-odu2",
+ "xml": "<method rpc='delete-bandwidth-update-odu2' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 351.5,
+ "y": 134,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "b084fa89.f01ea8"
+ ]
+ ]
+ },
+ {
+ "id": "6ee205eb.afea4c",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1507,
+ "y": 273,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "73d5ca4b.b372c4",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1533,
+ "y": 406,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fd46f3c0.e51ed",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1510,
+ "y": 500,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3eb9c961.16b566",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1522,
+ "y": 642,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5662332b.e46ebc",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1525,
+ "y": 769,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d29d5b74.ba8d28",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1440,
+ "y": 873,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "37487968.375e66",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1545,
+ "y": 1049,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80e964ca.f77f08",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1551,
+ "y": 1177,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c2b35aea.618608",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1537,
+ "y": 1304,
+ "z": "a05b184c.d06448",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8941d396.ae578",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1291,
+ "y": 241,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "90fbbfdf.89335",
+ "6ee205eb.afea4c"
+ ]
+ ]
+ },
+ {
+ "id": "cd9a6f0d.03ece",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1316,
+ "y": 377,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "998f566b.d4d9e8",
+ "73d5ca4b.b372c4"
+ ]
+ ]
+ },
+ {
+ "id": "dfcbed36.411bf",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1282,
+ "y": 482,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "39a8fb6b.0b40a4",
+ "fd46f3c0.e51ed"
+ ]
+ ]
+ },
+ {
+ "id": "c7c40fab.6345",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1280,
+ "y": 620,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "a3c6d00a.fa619",
+ "3eb9c961.16b566"
+ ]
+ ]
+ },
+ {
+ "id": "68cdb2e2.1beadc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1282,
+ "y": 753,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "4a7b0de3.f782f4",
+ "5662332b.e46ebc"
+ ]
+ ]
+ },
+ {
+ "id": "421b157.4c954ec",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1245,
+ "y": 855,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "ddc39868.09efe8",
+ "d29d5b74.ba8d28"
+ ]
+ ]
+ },
+ {
+ "id": "65623413.b6a16c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1329,
+ "y": 1028,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "bc2d2f17.5283e",
+ "37487968.375e66"
+ ]
+ ]
+ },
+ {
+ "id": "4fbc165e.af8b28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1343,
+ "y": 1139,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "5ec7cd6b.270684",
+ "80e964ca.f77f08"
+ ]
+ ]
+ },
+ {
+ "id": "ad049b10.0853d8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1329,
+ "y": 1265,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "7954d64.7fafd28",
+ "c2b35aea.618608"
+ ]
+ ]
+ },
+ {
+ "id": "2095e985.399556",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 847,
+ "y": 139,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "790b63ef.5c774c",
+ "bbd68719.94eee8"
+ ]
+ ]
+ },
+ {
+ "id": "b066df18.02cae",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 783,
+ "y": 524,
+ "z": "a05b184c.d06448",
+ "wires": [
+ [
+ "9c6b03eb.4ea26",
+ "98be1322.5dbe2"
+ ]
+ ]
+ }
+] \ 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
index 00000000..7d7bf571
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu3.json
@@ -0,0 +1,1369 @@
+[
+ {
+ "id": "8d41b76e.8319d8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 988,
+ "y": 236,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "d69353a4.24ec8",
+ "15df8587.d012ba",
+ "e34c472c.7e9bf8",
+ "245e3f1e.5d3a"
+ ]
+ ]
+ },
+ {
+ "id": "d69353a4.24ec8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1127,
+ "y": 195,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "dad51fb1.76c5"
+ ]
+ ]
+ },
+ {
+ "id": "df03b509.c3f478",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 996,
+ "y": 150,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "3609827f.fcb6ce",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1420,
+ "y": 166,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "eebdd00f.806a1",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 708,
+ "y": 183,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "1626d84d.ac5288"
+ ]
+ ]
+ },
+ {
+ "id": "c473b1.dfd6cc5",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 577,
+ "y": 239,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "eebdd00f.806a1",
+ "57db244d.168dec",
+ "e47d3f3c.c7eee",
+ "9d8b96fe.e35c18"
+ ]
+ ]
+ },
+ {
+ "id": "d6696470.4af878",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 852,
+ "y": 201,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "8d41b76e.8319d8",
+ "df03b509.c3f478"
+ ]
+ ]
+ },
+ {
+ "id": "15df8587.d012ba",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1157,
+ "y": 284,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "9aebc906.7ec828"
+ ]
+ ]
+ },
+ {
+ "id": "7af77373.08ef3c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1424,
+ "y": 269,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "f8bfac2.36eb75",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 940,
+ "y": 110,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "e34c472c.7e9bf8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1126,
+ "y": 384,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "320538e5.459798"
+ ]
+ ]
+ },
+ {
+ "id": "49d2e14a.e0831",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1412,
+ "y": 381,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "245e3f1e.5d3a",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1053.5,
+ "y": 492,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "15c7f37b.3ce5cd"
+ ]
+ ]
+ },
+ {
+ "id": "a44f2f93.e33ee",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 1340.5,
+ "y": 477,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "4f82d59f.d7878c",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 928.5,
+ "y": 761,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "63ef2910.e15ea8",
+ "13e7fbbe.8224c4",
+ "545acf83.d977a",
+ "e76578e3.fa2b68"
+ ]
+ ]
+ },
+ {
+ "id": "63ef2910.e15ea8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1067.5,
+ "y": 720,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "2eed2013.3103b"
+ ]
+ ]
+ },
+ {
+ "id": "2ce84401.de74fc",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 936.5,
+ "y": 675,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "5d046c24.a94904",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1344.5,
+ "y": 680,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "57db244d.168dec",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 648.5,
+ "y": 708,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "1d988fc7.aaa8d"
+ ]
+ ]
+ },
+ {
+ "id": "9af7bf20.b6eca",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 835.5,
+ "y": 705,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "4f82d59f.d7878c",
+ "2ce84401.de74fc"
+ ]
+ ]
+ },
+ {
+ "id": "13e7fbbe.8224c4",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1102.5,
+ "y": 813,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "de8e79cb.6adff8"
+ ]
+ ]
+ },
+ {
+ "id": "34140f7a.d40ac",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1375.5,
+ "y": 797,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "a1d8630c.b5301",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 868.5,
+ "y": 602,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "545acf83.d977a",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1060.5,
+ "y": 904,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "cd07167a.fb6828"
+ ]
+ ]
+ },
+ {
+ "id": "c2cf346e.d8f528",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1365.5,
+ "y": 903,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "e76578e3.fa2b68",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 967,
+ "y": 1074,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "d55a158d.d18d78"
+ ]
+ ]
+ },
+ {
+ "id": "8a05435f.d4353",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n\n",
+ "comments": "",
+ "x": 1233,
+ "y": 1042,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "adf37b81.78f9d8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 791.5,
+ "y": 1299,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "123b2c6c.87d394",
+ "764640ee.5307a",
+ "640e28ad.70c758",
+ "199e7d83.d11602"
+ ]
+ ]
+ },
+ {
+ "id": "123b2c6c.87d394",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 978.5,
+ "y": 1239,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "163bb21d.b7402e"
+ ]
+ ]
+ },
+ {
+ "id": "dfe59ec0.7b47f",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 817.5,
+ "y": 1193,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "a5ceaad0.7b2e98",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1278.5,
+ "y": 1202,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "e47d3f3c.c7eee",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 498.5,
+ "y": 1244,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "94b9cb3e.7a7908"
+ ]
+ ]
+ },
+ {
+ "id": "e4dfd94a.f3f8a8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 670.5,
+ "y": 1238,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "adf37b81.78f9d8",
+ "dfe59ec0.7b47f"
+ ]
+ ]
+ },
+ {
+ "id": "764640ee.5307a",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1000.5,
+ "y": 1330,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "6db1b75e.333138"
+ ]
+ ]
+ },
+ {
+ "id": "70caefc5.35b37",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1291.5,
+ "y": 1317,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "42aeb489.01833c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 709.5,
+ "y": 1040,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "640e28ad.70c758",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 994.5,
+ "y": 1430,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "e683a53a.2cb798"
+ ]
+ ]
+ },
+ {
+ "id": "bce56334.cef35",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1297.5,
+ "y": 1415,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "199e7d83.d11602",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 941,
+ "y": 1553,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "b2417e73.3411e"
+ ]
+ ]
+ },
+ {
+ "id": "c33b36cc.bdba48",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n\n",
+ "comments": "",
+ "x": 1253,
+ "y": 1523,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "661a2b7a.180074",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 680.5,
+ "y": 1825,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "dd12f2f0.8a68a",
+ "66a31a3b.1c8154",
+ "b0413d9c.7600e",
+ "96922755.f96fc8"
+ ]
+ ]
+ },
+ {
+ "id": "dd12f2f0.8a68a",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 819.5,
+ "y": 1784,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "9abceb9d.617848"
+ ]
+ ]
+ },
+ {
+ "id": "8601a47a.8c3ed8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 688.5,
+ "y": 1739,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "2d4dab4.8c6e454",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='32' />\n",
+ "comments": "",
+ "x": 1146.5,
+ "y": 1752,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "e01f4ec9.b4c58",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1158.5,
+ "y": 1810,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9d8b96fe.e35c18",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 250.5,
+ "y": 1802,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "e6692338.1522b"
+ ]
+ ]
+ },
+ {
+ "id": "e6692338.1522b",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 496.5,
+ "y": 1801,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "661a2b7a.180074",
+ "8601a47a.8c3ed8"
+ ]
+ ]
+ },
+ {
+ "id": "66a31a3b.1c8154",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 832.5,
+ "y": 1920,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "12a7c275.a1dfbe"
+ ]
+ ]
+ },
+ {
+ "id": "4d62119c.036fc",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='16' />",
+ "comments": "",
+ "x": 1102.5,
+ "y": 1886,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "33303232.af288e",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1173.5,
+ "y": 1940,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b0413d9c.7600e",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 796.5,
+ "y": 2023,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "d89df4a1.349488"
+ ]
+ ]
+ },
+ {
+ "id": "d03beaa6.c50d48",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='4' />",
+ "comments": "",
+ "x": 1113.5,
+ "y": 1991,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "ec61d318.4a068",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1165.5,
+ "y": 2071,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "96922755.f96fc8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 719,
+ "y": 2138,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "e8da0845.d7dd68"
+ ]
+ ]
+ },
+ {
+ "id": "d0f4bd54.3df3c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='1' />",
+ "comments": "",
+ "x": 1012,
+ "y": 2104,
+ "z": "8a2f58b1.303d78",
+ "wires": []
+ },
+ {
+ "id": "93d95bab.ebebf8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1068,
+ "y": 2178,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8787e989.ccd598",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 203,
+ "y": 196,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "3c964252.555eae"
+ ]
+ ]
+ },
+ {
+ "id": "3c964252.555eae",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 216,
+ "y": 256,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "e7c3d6b.cd1a228"
+ ]
+ ]
+ },
+ {
+ "id": "e7c3d6b.cd1a228",
+ "type": "method",
+ "name": "method delete-bandwidth-update-odu3",
+ "xml": "<method rpc='delete-bandwidth-update-odu3' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 403,
+ "y": 149,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "da1e03d2.0ead3"
+ ]
+ ]
+ },
+ {
+ "id": "da1e03d2.0ead3",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 450.5,
+ "y": 293,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "c473b1.dfd6cc5"
+ ]
+ ]
+ },
+ {
+ "id": "7004d549.5cff0c",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1465.5,
+ "y": 224,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "22d5f51.6d8c50a",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1478.5,
+ "y": 323,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3a656ecb.418852",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1457.5,
+ "y": 427,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9cf809fa.4e86d8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1401.5,
+ "y": 527,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9b5fea7b.ea5c58",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1311.5,
+ "y": 1095,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d90c61bd.7df73",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1395.5,
+ "y": 949,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e86a4f54.8b60c",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1424.5,
+ "y": 847,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d30a43c5.05e1",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1410.5,
+ "y": 737,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "15df0c5e.685b84",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1338.5,
+ "y": 1255,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c63d1802.0a2cc8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1345.5,
+ "y": 1363,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c14fd025.9a0ba",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1325.5,
+ "y": 1473,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c3320388.be5e4",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1319.5,
+ "y": 1586,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dad51fb1.76c5",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1269.5,
+ "y": 195,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "3609827f.fcb6ce",
+ "7004d549.5cff0c"
+ ]
+ ]
+ },
+ {
+ "id": "9aebc906.7ec828",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1286.5,
+ "y": 281,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "7af77373.08ef3c",
+ "22d5f51.6d8c50a"
+ ]
+ ]
+ },
+ {
+ "id": "320538e5.459798",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1276.5,
+ "y": 386,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "49d2e14a.e0831",
+ "3a656ecb.418852"
+ ]
+ ]
+ },
+ {
+ "id": "15c7f37b.3ce5cd",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1188.5,
+ "y": 489,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "a44f2f93.e33ee",
+ "9cf809fa.4e86d8"
+ ]
+ ]
+ },
+ {
+ "id": "2eed2013.3103b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1210.5,
+ "y": 718,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "5d046c24.a94904",
+ "d30a43c5.05e1"
+ ]
+ ]
+ },
+ {
+ "id": "de8e79cb.6adff8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1236.5,
+ "y": 814,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "34140f7a.d40ac",
+ "e86a4f54.8b60c"
+ ]
+ ]
+ },
+ {
+ "id": "cd07167a.fb6828",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1206.5,
+ "y": 903,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "c2cf346e.d8f528",
+ "d90c61bd.7df73"
+ ]
+ ]
+ },
+ {
+ "id": "d55a158d.d18d78",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1102.5,
+ "y": 1072,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "8a05435f.d4353",
+ "9b5fea7b.ea5c58"
+ ]
+ ]
+ },
+ {
+ "id": "163bb21d.b7402e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1120.5,
+ "y": 1236,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "a5ceaad0.7b2e98",
+ "15df0c5e.685b84"
+ ]
+ ]
+ },
+ {
+ "id": "6db1b75e.333138",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1145.5,
+ "y": 1330,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "70caefc5.35b37",
+ "c63d1802.0a2cc8"
+ ]
+ ]
+ },
+ {
+ "id": "e683a53a.2cb798",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1145.5,
+ "y": 1425,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "bce56334.cef35",
+ "c14fd025.9a0ba"
+ ]
+ ]
+ },
+ {
+ "id": "b2417e73.3411e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1082.5,
+ "y": 1550,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "c33b36cc.bdba48",
+ "c3320388.be5e4"
+ ]
+ ]
+ },
+ {
+ "id": "9abceb9d.617848",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 968.5,
+ "y": 1778,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "2d4dab4.8c6e454",
+ "e01f4ec9.b4c58"
+ ]
+ ]
+ },
+ {
+ "id": "12a7c275.a1dfbe",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 972.5,
+ "y": 1917,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "4d62119c.036fc",
+ "33303232.af288e"
+ ]
+ ]
+ },
+ {
+ "id": "d89df4a1.349488",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 942.5,
+ "y": 2020,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "d03beaa6.c50d48",
+ "ec61d318.4a068"
+ ]
+ ]
+ },
+ {
+ "id": "e8da0845.d7dd68",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 850.5,
+ "y": 2134,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "d0f4bd54.3df3c",
+ "93d95bab.ebebf8"
+ ]
+ ]
+ },
+ {
+ "id": "1626d84d.ac5288",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 793.5,
+ "y": 117,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "f8bfac2.36eb75",
+ "d6696470.4af878"
+ ]
+ ]
+ },
+ {
+ "id": "1d988fc7.aaa8d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 734.5,
+ "y": 614,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "a1d8630c.b5301",
+ "9af7bf20.b6eca"
+ ]
+ ]
+ },
+ {
+ "id": "94b9cb3e.7a7908",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 609.5,
+ "y": 1102,
+ "z": "8a2f58b1.303d78",
+ "wires": [
+ [
+ "42aeb489.01833c",
+ "e4dfd94a.f3f8a8"
+ ]
+ ]
+ }
+] \ 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
index 00000000..dd24ec2e
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu4.json
@@ -0,0 +1,1998 @@
+[
+ {
+ "id": "cc88740a.d18858",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 906.5,
+ "y": 234,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "ec6a20fb.4d35",
+ "dadcc749.b32938",
+ "ddd6d57c.9ced78",
+ "7bbf1a7c.4bd704",
+ "b6932950.974d38"
+ ]
+ ]
+ },
+ {
+ "id": "ec6a20fb.4d35",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1045.5,
+ "y": 193,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "71b54a1e.76d464"
+ ]
+ ]
+ },
+ {
+ "id": "fdb469ba.aea598",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 914.5,
+ "y": 148,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "31a50a41.c4f296",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1348.5,
+ "y": 131,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "29663dcb.c50a22",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 626.5,
+ "y": 181,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "f6326386.3110b"
+ ]
+ ]
+ },
+ {
+ "id": "fda877ca.d8efd8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 495.5,
+ "y": 237,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "29663dcb.c50a22",
+ "61e3284a.786fc8",
+ "65399e41.006f5",
+ "8331c6db.d82208",
+ "6866fd25.085604"
+ ]
+ ]
+ },
+ {
+ "id": "83b38caf.77a65",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 816.5,
+ "y": 185,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "cc88740a.d18858",
+ "fdb469ba.aea598"
+ ]
+ ]
+ },
+ {
+ "id": "dadcc749.b32938",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1058.5,
+ "y": 329,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "cc0ff801.9a2c88"
+ ]
+ ]
+ },
+ {
+ "id": "abfe89e5.77de78",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1315.5,
+ "y": 284,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "c8150f72.a6ddb",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 783.5,
+ "y": 85,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "ddd6d57c.9ced78",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1022.5,
+ "y": 432,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "55f9b5d1.30b88c"
+ ]
+ ]
+ },
+ {
+ "id": "9b8a271c.f86558",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1319.5,
+ "y": 404,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "7bbf1a7c.4bd704",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 945,
+ "y": 547,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "19f2ff00.f00971"
+ ]
+ ]
+ },
+ {
+ "id": "fe790a3c.9a15a8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 1247,
+ "y": 519,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "30e9996b.2eae46",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 121.5,
+ "y": 194,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "56814f30.ccf4f"
+ ]
+ ]
+ },
+ {
+ "id": "56814f30.ccf4f",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 134.5,
+ "y": 254,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "34f5e2a6.0519ce"
+ ]
+ ]
+ },
+ {
+ "id": "34f5e2a6.0519ce",
+ "type": "method",
+ "name": "method delete bandwidth-update-odu4",
+ "xml": "<method rpc='delete-bandwidth-update-odu4' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 318.5,
+ "y": 147,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "2a403491.3f102c"
+ ]
+ ]
+ },
+ {
+ "id": "2a403491.3f102c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 369,
+ "y": 291,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "fda877ca.d8efd8"
+ ]
+ ]
+ },
+ {
+ "id": "b6932950.974d38",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 854.5,
+ "y": 678,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "33ef2100.94a93"
+ ]
+ ]
+ },
+ {
+ "id": "4d44cfa3.e1f37",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",
+ "comments": "",
+ "x": 1189.5,
+ "y": 653,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "f2e5ec12.72084",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 699.5,
+ "y": 875,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "66ff3db3.558494",
+ "166020fb.4fc2ff",
+ "5d58dc53.9a5524",
+ "56d61ee2.93f6f",
+ "6214d8db.707218"
+ ]
+ ]
+ },
+ {
+ "id": "66ff3db3.558494",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 838.5,
+ "y": 834,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "ee090cfa.47d82"
+ ]
+ ]
+ },
+ {
+ "id": "6b5e27ff.1e1a68",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 707.5,
+ "y": 789,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "2e500448.b3e17c",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1118.5,
+ "y": 811,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "61e3284a.786fc8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 419.5,
+ "y": 822,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "18e66372.38fbfd"
+ ]
+ ]
+ },
+ {
+ "id": "ab02c8a.fb9e538",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 607.5,
+ "y": 832,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "f2e5ec12.72084",
+ "6b5e27ff.1e1a68"
+ ]
+ ]
+ },
+ {
+ "id": "166020fb.4fc2ff",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 851.5,
+ "y": 970,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "93138ec2.21291"
+ ]
+ ]
+ },
+ {
+ "id": "c90177ab.d9e9e8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 1165.5,
+ "y": 944,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "bd2246c4.c9d9d8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 710.5,
+ "y": 659,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "5d58dc53.9a5524",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 815.5,
+ "y": 1073,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "fcf70703.de8018"
+ ]
+ ]
+ },
+ {
+ "id": "7b7bb736.873f58",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 1113.5,
+ "y": 1061,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "56d61ee2.93f6f",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 738,
+ "y": 1188,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "187f78f0.1f0e47"
+ ]
+ ]
+ },
+ {
+ "id": "59ab82e8.b2d06c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 991,
+ "y": 1189,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "6214d8db.707218",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 647.5,
+ "y": 1319,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "db42f47f.bab0a8"
+ ]
+ ]
+ },
+ {
+ "id": "10540582.e5e31a",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",
+ "comments": "",
+ "x": 910.5,
+ "y": 1298,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "2894aeeb.098f92",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 550.5,
+ "y": 1522,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "bb22ab08.091558",
+ "75052fc5.0c7e5",
+ "5061896a.175198",
+ "835735a8.f975c8",
+ "60b9cb5b.d389f4"
+ ]
+ ]
+ },
+ {
+ "id": "bb22ab08.091558",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 689.5,
+ "y": 1481,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "d78b1e27.6807d"
+ ]
+ ]
+ },
+ {
+ "id": "3cd7515f.85632e",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 558.5,
+ "y": 1436,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "79dc39fc.d92468",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 956.5,
+ "y": 1483,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "65399e41.006f5",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 270.5,
+ "y": 1469,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "27260d94.bdce02"
+ ]
+ ]
+ },
+ {
+ "id": "f27c3bdd.40a7d8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 414.5,
+ "y": 1487,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "2894aeeb.098f92",
+ "3cd7515f.85632e"
+ ]
+ ]
+ },
+ {
+ "id": "75052fc5.0c7e5",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 702.5,
+ "y": 1617,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "a64dd5fd.979978"
+ ]
+ ]
+ },
+ {
+ "id": "4a8b4f9c.99a4f",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 964.5,
+ "y": 1592,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "ae596d23.ffcbe",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 493.5,
+ "y": 1352,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "5061896a.175198",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 666.5,
+ "y": 1720,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "d3f23744.959668"
+ ]
+ ]
+ },
+ {
+ "id": "708f1f3.59cc6e",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 948.5,
+ "y": 1692,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "835735a8.f975c8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 589,
+ "y": 1835,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "9c31fdd3.8019"
+ ]
+ ]
+ },
+ {
+ "id": "4e74b995.080ac8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 870,
+ "y": 1830,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "60b9cb5b.d389f4",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 498.5,
+ "y": 1966,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "e13be75e.0ed828"
+ ]
+ ]
+ },
+ {
+ "id": "6e46ae81.a94fb",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",
+ "comments": "",
+ "x": 776.5,
+ "y": 1960,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "1344723c.62dc8e",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 480.5,
+ "y": 2176,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "63adf83d.fa8608",
+ "8f6d26d0.a90738",
+ "1c4b4a71.f99166",
+ "88a94576.a532f8",
+ "197bee79.743762"
+ ]
+ ]
+ },
+ {
+ "id": "63adf83d.fa8608",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 619.5,
+ "y": 2135,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "bb8717d.98063e8"
+ ]
+ ]
+ },
+ {
+ "id": "c68fdd6d.064e2",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 488.5,
+ "y": 2090,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "2813c51b.3b520a",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 886.5,
+ "y": 2112,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "8331c6db.d82208",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 200.5,
+ "y": 2123,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "968f3953.080178"
+ ]
+ ]
+ },
+ {
+ "id": "6440a99f.61bf28",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 381.5,
+ "y": 2116,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "1344723c.62dc8e",
+ "c68fdd6d.064e2"
+ ]
+ ]
+ },
+ {
+ "id": "8f6d26d0.a90738",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 632.5,
+ "y": 2271,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "5da983c3.e1d2ec"
+ ]
+ ]
+ },
+ {
+ "id": "6da5650d.a39a7c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",
+ "comments": "",
+ "x": 884.5,
+ "y": 2267,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "4964d358.105f0c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-rate' value='' />\n",
+ "comments": "",
+ "x": 431.5,
+ "y": 2030,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "1c4b4a71.f99166",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 596.5,
+ "y": 2374,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "b0f60bb.3262cf8"
+ ]
+ ]
+ },
+ {
+ "id": "2ff4f8f6.86a188",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",
+ "comments": "",
+ "x": 882.5,
+ "y": 2372,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "88a94576.a532f8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 519,
+ "y": 2489,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "cc232935.3f9f08"
+ ]
+ ]
+ },
+ {
+ "id": "ad946015.e587d",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",
+ "comments": "",
+ "x": 790,
+ "y": 2483,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "197bee79.743762",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 428.5,
+ "y": 2620,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "7c05d82.d12ef28"
+ ]
+ ]
+ },
+ {
+ "id": "1275394e.236567",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",
+ "comments": "",
+ "x": 736.5,
+ "y": 2612,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "72dd2cf4.351f54",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$odu-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 462.5,
+ "y": 2849,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "18416ef2.ba5491",
+ "3f9e5c53.79ce24",
+ "8387bf46.cfc03",
+ "86469ccf.d4a69",
+ "703bcbd8.ccaa24"
+ ]
+ ]
+ },
+ {
+ "id": "18416ef2.ba5491",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 601.5,
+ "y": 2808,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "e620b730.716308"
+ ]
+ ]
+ },
+ {
+ "id": "ca7bfd42.04981",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 470.5,
+ "y": 2763,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "302523c5.0f8d8c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='80' />\n",
+ "comments": "",
+ "x": 873.5,
+ "y": 2786,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "6866fd25.085604",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 182.5,
+ "y": 2796,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "7ea41c4e.513904"
+ ]
+ ]
+ },
+ {
+ "id": "7ea41c4e.513904",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 326.5,
+ "y": 2814,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "72dd2cf4.351f54",
+ "ca7bfd42.04981"
+ ]
+ ]
+ },
+ {
+ "id": "3f9e5c53.79ce24",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 614.5,
+ "y": 2944,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "130aaf8d.b9dfc"
+ ]
+ ]
+ },
+ {
+ "id": "1f3050bc.f5300f",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='40' />",
+ "comments": "",
+ "x": 869.5,
+ "y": 2918,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "8387bf46.cfc03",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 578.5,
+ "y": 3047,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "dae1085f.bbf3d8"
+ ]
+ ]
+ },
+ {
+ "id": "626c25fe.549ccc",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='10' />",
+ "comments": "",
+ "x": 851.5,
+ "y": 3047,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "86469ccf.d4a69",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU3'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 501,
+ "y": 3162,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "635d7956.0a1708"
+ ]
+ ]
+ },
+ {
+ "id": "1a636bfd.78de84",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='2' />",
+ "comments": "",
+ "x": 846,
+ "y": 3159,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "703bcbd8.ccaa24",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='ODU4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 410.5,
+ "y": 3293,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "567ca1e0.2a9b8"
+ ]
+ ]
+ },
+ {
+ "id": "c248fb50.5e9388",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='new-odu-number' value='1' />",
+ "comments": "",
+ "x": 727.5,
+ "y": 3272,
+ "z": "5d7ed3a9.6228ec",
+ "wires": []
+ },
+ {
+ "id": "bd09ca1f.383d68",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1391.5,
+ "y": 202,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "71b54a1e.76d464",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1178.5,
+ "y": 189,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "31a50a41.c4f296",
+ "bd09ca1f.383d68"
+ ]
+ ]
+ },
+ {
+ "id": "cc0ff801.9a2c88",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1186.5,
+ "y": 328,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "abfe89e5.77de78",
+ "e979a386.df595"
+ ]
+ ]
+ },
+ {
+ "id": "55f9b5d1.30b88c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1147.5,
+ "y": 430,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "9b8a271c.f86558",
+ "48073d25.db9f14"
+ ]
+ ]
+ },
+ {
+ "id": "19f2ff00.f00971",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1084.5,
+ "y": 546,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "fe790a3c.9a15a8",
+ "8ed3505f.cc695"
+ ]
+ ]
+ },
+ {
+ "id": "33ef2100.94a93",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.5,
+ "y": 675,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "4d44cfa3.e1f37",
+ "1dc0e5b7.0c161a"
+ ]
+ ]
+ },
+ {
+ "id": "e979a386.df595",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1386.5,
+ "y": 341,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "48073d25.db9f14",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1342.5,
+ "y": 464,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8ed3505f.cc695",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1294.5,
+ "y": 581,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1dc0e5b7.0c161a",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1247.5,
+ "y": 710,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ee090cfa.47d82",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 969.5,
+ "y": 837,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "2e500448.b3e17c",
+ "90a042a7.aabef"
+ ]
+ ]
+ },
+ {
+ "id": "93138ec2.21291",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 990.5,
+ "y": 963,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "c90177ab.d9e9e8",
+ "79fe4e64.bfbc8"
+ ]
+ ]
+ },
+ {
+ "id": "fcf70703.de8018",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 954.5,
+ "y": 1068,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "7b7bb736.873f58",
+ "5305fd9.d71ef04"
+ ]
+ ]
+ },
+ {
+ "id": "187f78f0.1f0e47",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 872.5,
+ "y": 1188,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "59ab82e8.b2d06c",
+ "5a68e84d.f32638"
+ ]
+ ]
+ },
+ {
+ "id": "db42f47f.bab0a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 787.5,
+ "y": 1312,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "10540582.e5e31a",
+ "8f58142a.864268"
+ ]
+ ]
+ },
+ {
+ "id": "90a042a7.aabef",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1171.5,
+ "y": 866,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "79fe4e64.bfbc8",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1212.5,
+ "y": 998,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5305fd9.d71ef04",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1181.5,
+ "y": 1109,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5a68e84d.f32638",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1098.5,
+ "y": 1240,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f58142a.864268",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 974.5,
+ "y": 1343,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d78b1e27.6807d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 826.5,
+ "y": 1482,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "79dc39fc.d92468",
+ "a1897bb9.653598"
+ ]
+ ]
+ },
+ {
+ "id": "a64dd5fd.979978",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 835.5,
+ "y": 1615,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "4a8b4f9c.99a4f",
+ "cbf4e316.c0ca2"
+ ]
+ ]
+ },
+ {
+ "id": "d3f23744.959668",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 801.5,
+ "y": 1718,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "708f1f3.59cc6e",
+ "fa009921.006868"
+ ]
+ ]
+ },
+ {
+ "id": "9c31fdd3.8019",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 734.5,
+ "y": 1833,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "4e74b995.080ac8",
+ "267e668.24a139a"
+ ]
+ ]
+ },
+ {
+ "id": "e13be75e.0ed828",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 638.5,
+ "y": 1961,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "6e46ae81.a94fb",
+ "b78e12a0.1a95c"
+ ]
+ ]
+ },
+ {
+ "id": "a1897bb9.653598",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1013.5,
+ "y": 1534,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cbf4e316.c0ca2",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1036.5,
+ "y": 1645,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fa009921.006868",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 991.5,
+ "y": 1752,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "267e668.24a139a",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 945.5,
+ "y": 1890,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b78e12a0.1a95c",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 865.5,
+ "y": 2009,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bb8717d.98063e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 761.5,
+ "y": 2112,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "2813c51b.3b520a",
+ "7ff69d68.ab21b4"
+ ]
+ ]
+ },
+ {
+ "id": "5da983c3.e1d2ec",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 761.5,
+ "y": 2271,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "6da5650d.a39a7c",
+ "b5b12f9b.59f5b"
+ ]
+ ]
+ },
+ {
+ "id": "b0f60bb.3262cf8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 721.5,
+ "y": 2375,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "2ff4f8f6.86a188",
+ "d438523d.2ad33"
+ ]
+ ]
+ },
+ {
+ "id": "cc232935.3f9f08",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 665.5,
+ "y": 2491,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "ad946015.e587d",
+ "79f90431.6699bc"
+ ]
+ ]
+ },
+ {
+ "id": "7c05d82.d12ef28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 567.5,
+ "y": 2610,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "1275394e.236567",
+ "9879906b.d8a7a"
+ ]
+ ]
+ },
+ {
+ "id": "7ff69d68.ab21b4",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 961.5,
+ "y": 2161,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b5b12f9b.59f5b",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 968.5,
+ "y": 2319,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d438523d.2ad33",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 929.5,
+ "y": 2430,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "79f90431.6699bc",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 864.5,
+ "y": 2537,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9879906b.d8a7a",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 741.5,
+ "y": 2673,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f9ec2030.df9cf",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 941.5,
+ "y": 2834,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dd357b79.64c228",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 933.5,
+ "y": 2976,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f9fb9dba.4badb",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 910.5,
+ "y": 3092,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d474ed3.c62d4",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 868.5,
+ "y": 3209,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "334c0710.add048",
+ "type": "update",
+ "name": "update available bandwdth'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 812.5,
+ "y": 3330,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e620b730.716308",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 746.5,
+ "y": 2799,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "302523c5.0f8d8c",
+ "f9ec2030.df9cf"
+ ]
+ ]
+ },
+ {
+ "id": "130aaf8d.b9dfc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 755.5,
+ "y": 2944,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "1f3050bc.f5300f",
+ "dd357b79.64c228"
+ ]
+ ]
+ },
+ {
+ "id": "dae1085f.bbf3d8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 709.5,
+ "y": 3046,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "626c25fe.549ccc",
+ "f9fb9dba.4badb"
+ ]
+ ]
+ },
+ {
+ "id": "635d7956.0a1708",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 658.5,
+ "y": 3162,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "1a636bfd.78de84",
+ "4d474ed3.c62d4"
+ ]
+ ]
+ },
+ {
+ "id": "567ca1e0.2a9b8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 558.5,
+ "y": 3289,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "c248fb50.5e9388",
+ "334c0710.add048"
+ ]
+ ]
+ },
+ {
+ "id": "f6326386.3110b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 675.5,
+ "y": 126,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "c8150f72.a6ddb",
+ "83b38caf.77a65"
+ ]
+ ]
+ },
+ {
+ "id": "18e66372.38fbfd",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 593.5,
+ "y": 713,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "bd2246c4.c9d9d8",
+ "ab02c8a.fb9e538"
+ ]
+ ]
+ },
+ {
+ "id": "27260d94.bdce02",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 367.5,
+ "y": 1359,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "ae596d23.ffcbe",
+ "f27c3bdd.40a7d8"
+ ]
+ ]
+ },
+ {
+ "id": "968f3953.080178",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 296.5,
+ "y": 2005,
+ "z": "5d7ed3a9.6228ec",
+ "wires": [
+ [
+ "4964d358.105f0c",
+ "6440a99f.61bf28"
+ ]
+ ]
+ }
+] \ 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
index 00000000..b63fca09
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_delete-service-async.json
@@ -0,0 +1,310 @@
+[
+ {
+ "id": "8cc3da66.4f40d8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 207.77777099609375,
+ "y": 274.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "1e550516.1038fb"
+ ]
+ ]
+ },
+ {
+ "id": "1e550516.1038fb",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 394.77777099609375,
+ "y": 223.33332633972168,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "8bf17f5d.611f3"
+ ]
+ ]
+ },
+ {
+ "id": "8bf17f5d.611f3",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='delete-service-async' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 248.77777099609375,
+ "y": 397.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "b44c3e44.1bd1b"
+ ]
+ ]
+ },
+ {
+ "id": "b44c3e44.1bd1b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 421.77777099609375,
+ "y": 396.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "6d08e4a5.fe6bac",
+ "11020991.7c7d86",
+ "9db1a4b5.47b0b8"
+ ]
+ ]
+ },
+ {
+ "id": "6d08e4a5.fe6bac",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Delete Service Async\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 594.7777709960938,
+ "y": 307.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "11020991.7c7d86",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$response-code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 595.7777709960938,
+ "y": 396.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "25e55ab4.b92da6",
+ "b0822e31.3769c"
+ ]
+ ]
+ },
+ {
+ "id": "25e55ab4.b92da6",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='200'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 763.7777709960938,
+ "y": 339.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "4a5e5e93.4bb0a"
+ ]
+ ]
+ },
+ {
+ "id": "26f00225.07a6ee",
+ "type": "call",
+ "name": "call",
+ "xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1110.7777709960938,
+ "y": 340.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4a5e5e93.4bb0a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 939.7777709960938,
+ "y": 339.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "26f00225.07a6ee",
+ "bfe4da6d.23bff8"
+ ]
+ ]
+ },
+ {
+ "id": "e2afd11c.20c8",
+ "type": "update",
+ "name": "update AAI service 'CREATED'",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1164.1110534667969,
+ "y": 459.2222137451172,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b0822e31.3769c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 738.7777709960938,
+ "y": 410.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "7741584b.61db58"
+ ]
+ ]
+ },
+ {
+ "id": "7741584b.61db58",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 901.7777709960938,
+ "y": 412.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "e2afd11c.20c8",
+ "80fddf5d.9a9f2",
+ "e0a008e3.38d8a8"
+ ]
+ ]
+ },
+ {
+ "id": "9db1a4b5.47b0b8",
+ "type": "execute",
+ "name": "execute",
+ "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' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 596.7777709960938,
+ "y": 483.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "e497ea1c.ea2f88",
+ "d8b75d43.49a72"
+ ]
+ ]
+ },
+ {
+ "id": "e497ea1c.ea2f88",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 758.7777709960938,
+ "y": 476.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "18019049.2a70d"
+ ]
+ ]
+ },
+ {
+ "id": "d8b75d43.49a72",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 760.7777709960938,
+ "y": 546.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ [
+ "9194dca2.b34f"
+ ]
+ ]
+ },
+ {
+ "id": "18019049.2a70d",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service delete\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 904.7777709960938,
+ "y": 476.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9194dca2.b34f",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service delete\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 900.7777709960938,
+ "y": 546.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bfe4da6d.23bff8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",
+ "comments": "",
+ "x": 1093.7777709960938,
+ "y": 276.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": []
+ },
+ {
+ "id": "80fddf5d.9a9f2",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",
+ "comments": "",
+ "x": 1103.7777709960938,
+ "y": 397.3333263397217,
+ "z": "cd7e2d57.0833e",
+ "wires": []
+ },
+ {
+ "id": "e0a008e3.38d8a8",
+ "type": "save",
+ "name": "update DB 'CREATED'",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1127.7777404785156,
+ "y": 515.5554885864258,
+ "z": "cd7e2d57.0833e",
+ "wires": [
+ []
+ ]
+ }
+] \ 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
index 00000000..a71017eb
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_handle-async-notif.json
@@ -0,0 +1,286 @@
+[
+ {
+ "id": "6f3be679.102eb8",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 326.6666564941406,
+ "y": 225.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "af4b79a2.a55f08"
+ ]
+ ]
+ },
+ {
+ "id": "af4b79a2.a55f08",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='handle-async-notif' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 180.66665649414062,
+ "y": 399.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "86d5028d.c5258"
+ ]
+ ]
+ },
+ {
+ "id": "86d5028d.c5258",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 368.6666564941406,
+ "y": 399.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "d24a17f7.d6a648",
+ "2faf78f7.30e068",
+ "ffe6e86b.e5f058"
+ ]
+ ]
+ },
+ {
+ "id": "d24a17f7.d6a648",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 495.6666564941406,
+ "y": 281.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2faf78f7.30e068",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$ack-final-indicator`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 504.6666564941406,
+ "y": 469.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "7b60ff0d.907ce",
+ "1bcf360f.7e976a"
+ ]
+ ]
+ },
+ {
+ "id": "7b60ff0d.907ce",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='N'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 674.6666564941406,
+ "y": 392.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "b40d70d0.112e5"
+ ]
+ ]
+ },
+ {
+ "id": "a88f7bf8.d91d78",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Ack indicator in 'N'\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1025.6666564941406,
+ "y": 238.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b40d70d0.112e5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 849.6666564941406,
+ "y": 239.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "a88f7bf8.d91d78"
+ ]
+ ]
+ },
+ {
+ "id": "1bcf360f.7e976a",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='Y'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 658.6666564941406,
+ "y": 533.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "d1db50fc.60a86"
+ ]
+ ]
+ },
+ {
+ "id": "d1db50fc.60a86",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 812.6666564941406,
+ "y": 481.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "920fb578.d225d8",
+ "199a9ce9.ce53b3"
+ ]
+ ]
+ },
+ {
+ "id": "ffe6e86b.e5f058",
+ "type": "execute",
+ "name": "execute: read properties",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 614.6666564941406,
+ "y": 337.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "920fb578.d225d8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$output.status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 987.6666564941406,
+ "y": 527.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "13be4531.42948b",
+ "db9a79a3.a1b058"
+ ]
+ ]
+ },
+ {
+ "id": "199a9ce9.ce53b3",
+ "type": "get-resource",
+ "name": "get-resource",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1003.6666564941406,
+ "y": 434.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "13be4531.42948b",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='CREATING'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1141.6666564941406,
+ "y": 476.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "f57cf67a.bbe098"
+ ]
+ ]
+ },
+ {
+ "id": "db9a79a3.a1b058",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='DELETING'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1161.6666564941406,
+ "y": 561.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "2940e810.23a048"
+ ]
+ ]
+ },
+ {
+ "id": "f57cf67a.bbe098",
+ "type": "call",
+ "name": "call",
+ "xml": "<call module='optical-service' rpc='create-service-async' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1300.6666564941406,
+ "y": 475.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2940e810.23a048",
+ "type": "call",
+ "name": "call",
+ "xml": "<call module='optical-service' rpc='delete-service-async' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1307.6666564941406,
+ "y": 561.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "74552b51.5e6134",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 149.66665649414062,
+ "y": 275.5555419921875,
+ "z": "115af5b6.4cef8a",
+ "wires": [
+ [
+ "6f3be679.102eb8"
+ ]
+ ]
+ }
+] \ 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
index 00000000..9a2ee7af
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_service-create-tapi.json
@@ -0,0 +1,1702 @@
+[
+ {
+ "id": "96e558c1.171928",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 174,
+ "y": 96,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "ba6338c5.40bd88"
+ ]
+ ]
+ },
+ {
+ "id": "ba6338c5.40bd88",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 187,
+ "y": 156,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "3857a42a.6b4cdc"
+ ]
+ ]
+ },
+ {
+ "id": "3857a42a.6b4cdc",
+ "type": "method",
+ "name": "method service-create-tapi",
+ "xml": "<method rpc='service-create-tapi' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 207,
+ "y": 236,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "bca1514.f1c7bb"
+ ]
+ ]
+ },
+ {
+ "id": "bca1514.f1c7bb",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 416.5,
+ "y": 241,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "83c30d61.39881",
+ "28460541.766c1a",
+ "58f1dbe7.901a34",
+ "72b2db54.6e2944",
+ "b90929e.4a985d8",
+ "65a74a39.a4d774",
+ "cc0f04eb.f41858",
+ "c7ace3b2.11081",
+ "3ff768b5.f99338",
+ "2995b56c.890f5a",
+ "bf3d0d8f.af5f6"
+ ]
+ ]
+ },
+ {
+ "id": "83c30d61.39881",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 416,
+ "y": 39,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "28460541.766c1a",
+ "type": "get-resource",
+ "name": "get-resource",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 614.9999389648438,
+ "y": 90.99998474121094,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "40e83861.7ed4d8"
+ ]
+ ]
+ },
+ {
+ "id": "58f1dbe7.901a34",
+ "type": "get-resource",
+ "name": "get-resource",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 635.9999389648438,
+ "y": 155.99996948242188,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "428896b5.e069b8"
+ ]
+ ]
+ },
+ {
+ "id": "40e83861.7ed4d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 774.9999389648438,
+ "y": 92.99998474121094,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "eccba7dd.6944a8"
+ ]
+ ]
+ },
+ {
+ "id": "428896b5.e069b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 784.9999389648438,
+ "y": 153.99996948242188,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "37897f34.5ca9"
+ ]
+ ]
+ },
+ {
+ "id": "eccba7dd.6944a8",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 940.9999389648438,
+ "y": 93.99996948242188,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "37897f34.5ca9",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 934,
+ "y": 153,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "72b2db54.6e2944",
+ "type": "execute",
+ "name": "execute: read properties",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 604,
+ "y": 45,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b90929e.4a985d8",
+ "type": "get-resource",
+ "name": "find if aend is uni or nni or enni",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 700,
+ "y": 237,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "65a74a39.a4d774",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$aend.network-interface-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 615,
+ "y": 333,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "4a9b044a.0f3ccc",
+ "ea6d56a1.b032a8"
+ ]
+ ]
+ },
+ {
+ "id": "4a9b044a.0f3ccc",
+ "type": "outcome",
+ "name": "UNI",
+ "xml": "<outcome value='UNI'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 740,
+ "y": 282,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "c9780ca0.f5f71"
+ ]
+ ]
+ },
+ {
+ "id": "4b0b12c9.238b4c",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1115,
+ "y": 131,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "8b8d35a4.ce05f8",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1102,
+ "y": 373,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c9780ca0.f5f71",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 878,
+ "y": 281,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "4b0b12c9.238b4c",
+ "72c16e75.1a562",
+ "bd108f1e.ab488"
+ ]
+ ]
+ },
+ {
+ "id": "2ea274d9.8036ac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 898,
+ "y": 396,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "8b8d35a4.ce05f8",
+ "e25b0e67.09bb4",
+ "a1b81fea.edbde",
+ "514a609b.d74c"
+ ]
+ ]
+ },
+ {
+ "id": "3109f9ae.76da66",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1229.1111221313477,
+ "y": 457.22221660614014,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "11b6c81d.28de98",
+ "599fbaf2.e79674"
+ ]
+ ]
+ },
+ {
+ "id": "11b6c81d.28de98",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1346.77779006958,
+ "y": 411.0000057220459,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "d3f94b37.cc4268"
+ ]
+ ]
+ },
+ {
+ "id": "599fbaf2.e79674",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1356.2221794128418,
+ "y": 480.7777805328369,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "14aab0b3.9d34ff"
+ ]
+ ]
+ },
+ {
+ "id": "d3f94b37.cc4268",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1504,
+ "y": 411,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7102ebf7.57bb74",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Sucessfully retrieved aend cep\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1643,
+ "y": 433,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e25b0e67.09bb4",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='`$param-prefix_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1090,
+ "y": 422,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "46da2f38.8c645"
+ ]
+ ]
+ },
+ {
+ "id": "14aab0b3.9d34ff",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1494,
+ "y": 483,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "7102ebf7.57bb74",
+ "4004dd00.d10474"
+ ]
+ ]
+ },
+ {
+ "id": "d11a7c1c.7e732",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2100.5552864074707,
+ "y": 532.1110572814941,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "a50c2dd5.e9535",
+ "type": "set",
+ "name": "set aend-local-id",
+ "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",
+ "comments": "",
+ "x": 2128.3332290649414,
+ "y": 461.1111087799072,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "7c05f290.3530ac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1922,
+ "y": 498,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "a50c2dd5.e9535",
+ "d11a7c1c.7e732"
+ ]
+ ]
+ },
+ {
+ "id": "46da2f38.8c645",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1099,
+ "y": 483,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "3109f9ae.76da66"
+ ]
+ ]
+ },
+ {
+ "id": "a1b81fea.edbde",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='aend-new' value='' />\n<parameter name='aend-local-id' value='' />\n\n",
+ "comments": "",
+ "x": 1066,
+ "y": 326,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "cc0f04eb.f41858",
+ "type": "get-resource",
+ "name": "find if zend is uni or nni or enni",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 719,
+ "y": 779,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c7ace3b2.11081",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$zend.network-interface-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 488,
+ "y": 1128,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "c85fd988.301698",
+ "9efb19c3.6da618"
+ ]
+ ]
+ },
+ {
+ "id": "c85fd988.301698",
+ "type": "outcome",
+ "name": "UNI",
+ "xml": "<outcome value='UNI'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 614,
+ "y": 1048,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "b4f379c1.c24888"
+ ]
+ ]
+ },
+ {
+ "id": "7c3f18e8.1c0b18",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1035,
+ "y": 769,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "3e6ef851.b14d38",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 986,
+ "y": 1188,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b4f379c1.c24888",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 894,
+ "y": 827,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "7c3f18e8.1c0b18",
+ "f950d837.cb97f8",
+ "ccff2354.5c8d6"
+ ]
+ ]
+ },
+ {
+ "id": "2ae39741.d1c3c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 776,
+ "y": 1245,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "3e6ef851.b14d38",
+ "f903e0d6.863cf",
+ "9bced74d.d072a8",
+ "943fe233.c96d1"
+ ]
+ ]
+ },
+ {
+ "id": "f903e0d6.863cf",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value='' />\n<parameter name='zend-local-id' value='' />\n",
+ "comments": "",
+ "x": 987,
+ "y": 1136,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "ea6d56a1.b032a8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 752,
+ "y": 398,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "2ea274d9.8036ac"
+ ]
+ ]
+ },
+ {
+ "id": "9efb19c3.6da618",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 610,
+ "y": 1243,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "2ae39741.d1c3c8"
+ ]
+ ]
+ },
+ {
+ "id": "3ff768b5.f99338",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 227.00006103515625,
+ "y": 1569,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "f2fbbd03.f2906",
+ "bebd84e7.a3b248"
+ ]
+ ]
+ },
+ {
+ "id": "f2fbbd03.f2906",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 368.00006103515625,
+ "y": 1517,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "dcee484.0427eb8"
+ ]
+ ]
+ },
+ {
+ "id": "bebd84e7.a3b248",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 382.00006103515625,
+ "y": 1631,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "87a25e6a.1b2d"
+ ]
+ ]
+ },
+ {
+ "id": "dcee484.0427eb8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 533.0000610351562,
+ "y": 1516,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "58ea97a5.b3e618"
+ ]
+ ]
+ },
+ {
+ "id": "87a25e6a.1b2d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 558.0000610351562,
+ "y": 1631,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "df77f71.8f24908",
+ "e14a80e1.1f5b7",
+ "9510207c.71682",
+ "6da24e58.717bb",
+ "71928460.ed14cc",
+ "5a15ce33.45154"
+ ]
+ ]
+ },
+ {
+ "id": "58ea97a5.b3e618",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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\" />",
+ "comments": "",
+ "x": 725.0000610351562,
+ "y": 1517,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "df77f71.8f24908",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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",
+ "comments": "",
+ "x": 734.5556030273438,
+ "y": 1874.4443359375,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "4a0bc718.a962f8",
+ "type": "call",
+ "name": "call",
+ "xml": "<call module='optical-service' rpc='success-aai-update-tapi' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1271,
+ "y": 2002,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2995b56c.890f5a",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='service-name' value=\"`$optical-service-create-input.payload.service-name`\" />\n<parameter name='svc-action' value=\"CREATE\" />\n",
+ "comments": "",
+ "x": 327,
+ "y": 1371,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "bf3d0d8f.af5f6",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 291,
+ "y": 1454,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f662c6.88da9d",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idl' start='0' end='`$param-prefix1_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1258,
+ "y": 1490,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "b907a417.722e98"
+ ]
+ ]
+ },
+ {
+ "id": "ba640497.6998e8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new + $param-prefix1[$idl]`\" />\n",
+ "comments": "",
+ "x": 1710,
+ "y": 1421,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "b907a417.722e98",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$idl`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1393,
+ "y": 1491,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "91e17725.73caf8",
+ "c2c37dd4.88b1e",
+ "84a33271.66a7e"
+ ]
+ ]
+ },
+ {
+ "id": "91e17725.73caf8",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='`$param-prefix1_length - 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1573,
+ "y": 1423,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "ba640497.6998e8"
+ ]
+ ]
+ },
+ {
+ "id": "c2c37dd4.88b1e",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1580,
+ "y": 1498,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "7e15b45a.f1185c"
+ ]
+ ]
+ },
+ {
+ "id": "7e15b45a.f1185c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new + $param-prefix1[$idl] + ','`\" />\n",
+ "comments": "",
+ "x": 1736,
+ "y": 1500,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "84a33271.66a7e",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='`$idk`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1564,
+ "y": 1558,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "2fb07baa.dd5174"
+ ]
+ ]
+ },
+ {
+ "id": "2fb07baa.dd5174",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value='`$zend-new`' />\n",
+ "comments": "",
+ "x": 1741,
+ "y": 1556,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "9510207c.71682",
+ "type": "save",
+ "name": "update pinterface cep DB Zend",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 857.2222900390625,
+ "y": 1697.666748046875,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e14a80e1.1f5b7",
+ "type": "save",
+ "name": "update pinterface cep DB Aend",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 875,
+ "y": 1631,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "72c16e75.1a562",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Aend uni\"/>\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1118,
+ "y": 195,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f950d837.cb97f8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Zend uni\"/>\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1054,
+ "y": 816,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6da24e58.717bb",
+ "type": "save",
+ "name": "save service db",
+ "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 );\"> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 877,
+ "y": 1573,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c27a69f2.0ddb38",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1793,
+ "y": 466,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "7c05f290.3530ac"
+ ]
+ ]
+ },
+ {
+ "id": "7b435c8d.3fd214",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1822.222116470337,
+ "y": 593.3333568572998,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "d092daa9.9a37d8"
+ ]
+ ]
+ },
+ {
+ "id": "d092daa9.9a37d8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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\" />",
+ "comments": "",
+ "x": 1966.6666259765625,
+ "y": 593.3333129882812,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "71928460.ed14cc",
+ "type": "save",
+ "name": "save service aai",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 765.9999389648438,
+ "y": 1818.111083984375,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5a15ce33.45154",
+ "type": "save",
+ "name": "save",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 758.9999389648438,
+ "y": 1758,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd108f1e.ab488",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1116,
+ "y": 256,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "6b2a855d.23024c",
+ "f3b11a4b.2344f8"
+ ]
+ ]
+ },
+ {
+ "id": "6b2a855d.23024c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1274,
+ "y": 216,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "eef404ec.f0bb08"
+ ]
+ ]
+ },
+ {
+ "id": "f3b11a4b.2344f8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1283.4443893432617,
+ "y": 285.777774810791,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "d15a3398.6ced1"
+ ]
+ ]
+ },
+ {
+ "id": "eef404ec.f0bb08",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1431.22220993042,
+ "y": 215.9999942779541,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d15a3398.6ced1",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1449.22216796875,
+ "y": 284,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "afd9ff21.3fd56"
+ ]
+ ]
+ },
+ {
+ "id": "afd9ff21.3fd56",
+ "type": "set",
+ "name": "set aend-local-id",
+ "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",
+ "comments": "",
+ "x": 1643,
+ "y": 284,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "b74dbdb.822994",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1341,
+ "y": 1242,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "e8c33d42.33806",
+ "d05bc068.08527"
+ ]
+ ]
+ },
+ {
+ "id": "e8c33d42.33806",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1462,
+ "y": 1203,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "431138f7.d0a218"
+ ]
+ ]
+ },
+ {
+ "id": "d05bc068.08527",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1480,
+ "y": 1297,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "f244762f.d3c018"
+ ]
+ ]
+ },
+ {
+ "id": "431138f7.d0a218",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get zend cep details\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1610,
+ "y": 1200,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7e69d1da.c8582",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Sucessfully retrieved zend cep\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1779,
+ "y": 1250,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9bced74d.d072a8",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idk' start='0' end='`$param-prefix1_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 987,
+ "y": 1243,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "1b2a920e.3e410e"
+ ]
+ ]
+ },
+ {
+ "id": "f244762f.d3c018",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1635,
+ "y": 1300,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "7e69d1da.c8582",
+ "efc25f0c.a1d2c"
+ ]
+ ]
+ },
+ {
+ "id": "efc25f0c.a1d2c",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$zend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1789,
+ "y": 1314,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "c32606e1.58b168",
+ "4ea93db7.c01e74"
+ ]
+ ]
+ },
+ {
+ "id": "1b2a920e.3e410e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1139,
+ "y": 1245,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "b74dbdb.822994"
+ ]
+ ]
+ },
+ {
+ "id": "a62b46a5.e1b858",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2177,
+ "y": 1325,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "e5a3a6b1.5eb5b8",
+ "type": "set",
+ "name": "set zend-local-id",
+ "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",
+ "comments": "",
+ "x": 2210,
+ "y": 1215,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "5608122b.ab9f6c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2059,
+ "y": 1271,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "e5a3a6b1.5eb5b8",
+ "a62b46a5.e1b858"
+ ]
+ ]
+ },
+ {
+ "id": "c32606e1.58b168",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1927.9998779296875,
+ "y": 1275.6666259765625,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "5608122b.ab9f6c"
+ ]
+ ]
+ },
+ {
+ "id": "4ea93db7.c01e74",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1927.8887939453125,
+ "y": 1380.1109619140625,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "e720f2d5.77fdb"
+ ]
+ ]
+ },
+ {
+ "id": "e720f2d5.77fdb",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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\" />",
+ "comments": "",
+ "x": 2107.22216796875,
+ "y": 1383.111083984375,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "943fe233.c96d1",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$param-prefix1_length == 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 941,
+ "y": 1395,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "7c8d1f90.d20f8",
+ "59bf8efe.e5d3"
+ ]
+ ]
+ },
+ {
+ "id": "7c8d1f90.d20f8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1081,
+ "y": 1349,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "5a2d4b65.e557b4"
+ ]
+ ]
+ },
+ {
+ "id": "5a2d4b65.e557b4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new`\" />\n",
+ "comments": "",
+ "x": 1216,
+ "y": 1349,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "59bf8efe.e5d3",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1083,
+ "y": 1489,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "8f662c6.88da9d"
+ ]
+ ]
+ },
+ {
+ "id": "4004dd00.d10474",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$aend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1652,
+ "y": 501,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "c27a69f2.0ddb38",
+ "7b435c8d.3fd214"
+ ]
+ ]
+ },
+ {
+ "id": "514a609b.d74c",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$param-prefix_length == 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1071,
+ "y": 550,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "191fbb7.2a4b845",
+ "1cd1ef71.14acd1"
+ ]
+ ]
+ },
+ {
+ "id": "191fbb7.2a4b845",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1225,
+ "y": 551,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "a558f9eb.613c58"
+ ]
+ ]
+ },
+ {
+ "id": "a558f9eb.613c58",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new`\" />\n",
+ "comments": "",
+ "x": 1387,
+ "y": 551,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "1cd1ef71.14acd1",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1229,
+ "y": 602,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "93a39454.c21878"
+ ]
+ ]
+ },
+ {
+ "id": "93a39454.c21878",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idy' start='0' end='`$param-prefix_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1353,
+ "y": 626,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "6e31bfde.e9a2b"
+ ]
+ ]
+ },
+ {
+ "id": "12b9813c.84c17f",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-new + $param-prefix[$idy]`\" />\n",
+ "comments": "",
+ "x": 1803,
+ "y": 642,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "6e31bfde.e9a2b",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$idy`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1518,
+ "y": 691,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "48d2ce69.6ccad",
+ "735daaac.0a3344",
+ "2e826606.462a6a"
+ ]
+ ]
+ },
+ {
+ "id": "48d2ce69.6ccad",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='`$param-prefix_length - 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1660,
+ "y": 642,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "12b9813c.84c17f"
+ ]
+ ]
+ },
+ {
+ "id": "735daaac.0a3344",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1690,
+ "y": 716,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "5f658cca.768614"
+ ]
+ ]
+ },
+ {
+ "id": "5f658cca.768614",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-new + $param-prefix[$idy] + ','`\" />\n",
+ "comments": "",
+ "x": 1807,
+ "y": 726,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "2e826606.462a6a",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='`$idx`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1669,
+ "y": 797,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "4869b073.d45ad"
+ ]
+ ]
+ },
+ {
+ "id": "4869b073.d45ad",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='aend-new' value='`$aend-new`' />\n",
+ "comments": "",
+ "x": 1807,
+ "y": 793,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ },
+ {
+ "id": "ccff2354.5c8d6",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1036,
+ "y": 902,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "f30e06ef.3ea158",
+ "7c8fb487.808e3c"
+ ]
+ ]
+ },
+ {
+ "id": "f30e06ef.3ea158",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1196,
+ "y": 861,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "7aa077ea.c86438"
+ ]
+ ]
+ },
+ {
+ "id": "7c8fb487.808e3c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1205.4443893432617,
+ "y": 930.777774810791,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "a6409b41.3875a8"
+ ]
+ ]
+ },
+ {
+ "id": "7aa077ea.c86438",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1353.22220993042,
+ "y": 860.9999942779541,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a6409b41.3875a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1371.22216796875,
+ "y": 929,
+ "z": "4efb9c4a.945e04",
+ "wires": [
+ [
+ "c469b431.4e03c8"
+ ]
+ ]
+ },
+ {
+ "id": "c469b431.4e03c8",
+ "type": "set",
+ "name": "set zend-local-id",
+ "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",
+ "comments": "",
+ "x": 1565,
+ "y": 929,
+ "z": "4efb9c4a.945e04",
+ "wires": []
+ }
+] \ 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
index 00000000..cef6bc48
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_service-delete-tapi.json
@@ -0,0 +1,674 @@
+[
+ {
+ "id": "22cb0f8b.7a936",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 276,
+ "y": 233,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "899fe88f.8b0f18"
+ ]
+ ]
+ },
+ {
+ "id": "899fe88f.8b0f18",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 289,
+ "y": 293,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "8c11d44e.febba8"
+ ]
+ ]
+ },
+ {
+ "id": "8c11d44e.febba8",
+ "type": "method",
+ "name": "method service-delete-tapi",
+ "xml": "<method rpc='service-delete-tapi' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 309,
+ "y": 373,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "4251fc90.7d3354"
+ ]
+ ]
+ },
+ {
+ "id": "4251fc90.7d3354",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 556.5,
+ "y": 373,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "fa22a868.cbac88",
+ "61c8204a.2cec1",
+ "613af82c.220508"
+ ]
+ ]
+ },
+ {
+ "id": "fa22a868.cbac88",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 653,
+ "y": 196,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "61c8204a.2cec1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='request-id' value='`$optical-service-delete-input.request-id`' />\n",
+ "comments": "",
+ "x": 729,
+ "y": 245,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "613af82c.220508",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 759.9999351501465,
+ "y": 378.8888759613037,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "6682edb5.3e9d24",
+ "894f9664.c6abc8"
+ ]
+ ]
+ },
+ {
+ "id": "ddeadbca.081d98",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 1492.2221755981445,
+ "y": 305.555513381958,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "6682edb5.3e9d24",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 963.3332595825195,
+ "y": 353.33330249786377,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "894f9664.c6abc8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 939.999885559082,
+ "y": 435.55552768707275,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "dafe166a.8b36d8"
+ ]
+ ]
+ },
+ {
+ "id": "dafe166a.8b36d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135.5554733276367,
+ "y": 446.6666831970215,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "ddeadbca.081d98",
+ "2801b4f8.38386c",
+ "3cf51d10.896032",
+ "a44318ce.afad08"
+ ]
+ ]
+ },
+ {
+ "id": "2801b4f8.38386c",
+ "type": "get-resource",
+ "name": "get-resource",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1545.5556449890137,
+ "y": 367.77777004241943,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3cf51d10.896032",
+ "type": "get-resource",
+ "name": "get-resource",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1545.555549621582,
+ "y": 422.2222137451172,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "852e3fe3.e39dd",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='aend-new' value='`$aend-cep`' />\n",
+ "comments": "",
+ "x": 1931.221923828125,
+ "y": 647.22216796875,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "4644be9d.89b97",
+ "type": "get-resource",
+ "name": "find if aend is uni or nni or enni",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1719.1107177734375,
+ "y": 562.8888549804688,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a44318ce.afad08",
+ "type": "execute",
+ "name": "execute",
+ "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\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1283.3331146240234,
+ "y": 514.4444074630737,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "58946d75.cedfa4",
+ "e7cecf42.399a6"
+ ]
+ ]
+ },
+ {
+ "id": "58946d75.cedfa4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1252.3331146240234,
+ "y": 656.4444074630737,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "1e4a35c6.1c31ca"
+ ]
+ ]
+ },
+ {
+ "id": "1e4a35c6.1c31ca",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1406.5553512573242,
+ "y": 610.666627407074,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "4644be9d.89b97",
+ "652250d1.df0d6",
+ "29655b58.ca1ca4",
+ "aad55652.80ccf8",
+ "82da300b.4f57c",
+ "2082255.0c982da",
+ "9f9c7a46.ce0ff8",
+ "70a0ebe0.92bcd4",
+ "33fa91ea.5695ce",
+ "425e8f1f.07ad6"
+ ]
+ ]
+ },
+ {
+ "id": "e7cecf42.399a6",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1409.9998016357422,
+ "y": 498.88880443573,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "ea3eca27.8a59e8"
+ ]
+ ]
+ },
+ {
+ "id": "ea3eca27.8a59e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1576.9998016357422,
+ "y": 497.88880443573,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "e7be8bd4.b55258"
+ ]
+ ]
+ },
+ {
+ "id": "e7be8bd4.b55258",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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\" />",
+ "comments": "",
+ "x": 1744.8886985778809,
+ "y": 496.66657543182373,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "652250d1.df0d6",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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",
+ "comments": "",
+ "x": 1297.7775955200195,
+ "y": 1231.1110696792603,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "29655b58.ca1ca4",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$aend.network-interface-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1641.1108856201172,
+ "y": 665.5554914474487,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "aea6fbc6.1505d8",
+ "2d663d56.1e55d2"
+ ]
+ ]
+ },
+ {
+ "id": "aea6fbc6.1505d8",
+ "type": "outcome",
+ "name": "UNI",
+ "xml": "<outcome value='UNI'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1805.888671875,
+ "y": 647.22216796875,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "852e3fe3.e39dd"
+ ]
+ ]
+ },
+ {
+ "id": "2d663d56.1e55d2",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1808.1108779907227,
+ "y": 720.5555419921875,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "af008805.61eae8"
+ ]
+ ]
+ },
+ {
+ "id": "aad55652.80ccf8",
+ "type": "save",
+ "name": "update pinterface cep DB Aend",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1671.1108856201172,
+ "y": 763.3332624435425,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "82da300b.4f57c",
+ "type": "get-resource",
+ "name": "find if zend is uni or nni or enni",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1647.7772598266602,
+ "y": 846.6665992736816,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2082255.0c982da",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$zend.network-interface-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1549.9998149871826,
+ "y": 915.55544090271,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "3a6cd376.4295ac",
+ "86c6217d.bed2a"
+ ]
+ ]
+ },
+ {
+ "id": "3a6cd376.4295ac",
+ "type": "outcome",
+ "name": "UNI",
+ "xml": "<outcome value='UNI'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1740.3330764770508,
+ "y": 903.2221584320068,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "b35b94b1.940ff8"
+ ]
+ ]
+ },
+ {
+ "id": "86c6217d.bed2a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1742.5553359985352,
+ "y": 970.5555419921875,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "e1b5d596.201438"
+ ]
+ ]
+ },
+ {
+ "id": "9f9c7a46.ce0ff8",
+ "type": "save",
+ "name": "update pinterface cep DB Zend",
+ "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'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1571.1112060546875,
+ "y": 1009.9999141693115,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "74642edb.088ea",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-cep`\" />\n",
+ "comments": "",
+ "x": 2139.999885559082,
+ "y": 972.2221412658691,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "b35b94b1.940ff8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value='`$zend-cep`' />\n",
+ "comments": "",
+ "x": 1866.6664352416992,
+ "y": 902.2221622467041,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "33fa91ea.5695ce",
+ "type": "delete",
+ "name": "delete service instance AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1466.6664199829102,
+ "y": 1124.4443254470825,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "70a0ebe0.92bcd4",
+ "type": "get-resource",
+ "name": "get service db",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1487.7775344848633,
+ "y": 1067.7777080535889,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e1b5d596.201438",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$db-zend.connection-point`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1884.4444444444443,
+ "y": 973.3333333333333,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "1ff79f49.8fba61",
+ "54376f65.aa57"
+ ]
+ ]
+ },
+ {
+ "id": "1ff79f49.8fba61",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2012.2222061157227,
+ "y": 974.4444217681885,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "74642edb.088ea"
+ ]
+ ]
+ },
+ {
+ "id": "f9bfc410.022418",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='zend-new' value=\"`$db-zend.connection-point + ',' + $zend-cep`\" />\n",
+ "comments": "",
+ "x": 2142.221981048584,
+ "y": 1038.8887939453125,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "54376f65.aa57",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2024.4444444444443,
+ "y": 1037.7777777777778,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "f9bfc410.022418"
+ ]
+ ]
+ },
+ {
+ "id": "af008805.61eae8",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$db-aend.connection-point`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1935.5554428100586,
+ "y": 723.3333148956299,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "fdc21e7c.da331",
+ "ede7f03e.32c01"
+ ]
+ ]
+ },
+ {
+ "id": "6ca90d2f.d086e4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-cep`\" />\n",
+ "comments": "",
+ "x": 2210,
+ "y": 712.22216796875,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "fdc21e7c.da331",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2082.2223205566406,
+ "y": 714.4444484710693,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "6ca90d2f.d086e4"
+ ]
+ ]
+ },
+ {
+ "id": "f35c33d.adfbfd",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='aend-new' value=\"`$db-aend.connection-point + ',' + $aend-cep`\" />\n",
+ "comments": "",
+ "x": 2212.222095489502,
+ "y": 778.8888206481934,
+ "z": "ecded786.86d6f8",
+ "wires": []
+ },
+ {
+ "id": "ede7f03e.32c01",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2094.4445588853623,
+ "y": 777.7778044806587,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ [
+ "f35c33d.adfbfd"
+ ]
+ ]
+ },
+ {
+ "id": "425e8f1f.07ad6",
+ "type": "delete",
+ "name": "delete from db",
+ "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\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1377.7776336669922,
+ "y": 1185.5554809570312,
+ "z": "ecded786.86d6f8",
+ "wires": [
+ []
+ ]
+ }
+] \ 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
index 00000000..497a75c8
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json
@@ -0,0 +1,156 @@
+[
+ {
+ "id": "257d2596.c5ecca",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 571,
+ "y": 662,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ [
+ "5432b538.633ffc",
+ "7695aa94.c622d4",
+ "ebe3ff74.b36dd"
+ ]
+ ]
+ },
+ {
+ "id": "1cc69ab0.52e865",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 101.5,
+ "y": 597,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ [
+ "d088abd2.9587b8"
+ ]
+ ]
+ },
+ {
+ "id": "d088abd2.9587b8",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 249.5,
+ "y": 654,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ [
+ "ddbd4624.086548"
+ ]
+ ]
+ },
+ {
+ "id": "ddbd4624.086548",
+ "type": "method",
+ "name": "method success-aai-update-tapi",
+ "xml": "<method rpc='success-aai-update-tapi' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 439.5,
+ "y": 589,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ [
+ "257d2596.c5ecca"
+ ]
+ ]
+ },
+ {
+ "id": "5432b538.633ffc",
+ "type": "save",
+ "name": "save",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 729,
+ "y": 607,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7695aa94.c622d4",
+ "type": "get-resource",
+ "name": "Get service from AAI",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 788,
+ "y": 661,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ebe3ff74.b36dd",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idy' start='0' end='`$aai.service.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 700,
+ "y": 733,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ [
+ "50909009.4a074"
+ ]
+ ]
+ },
+ {
+ "id": "50909009.4a074",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 847,
+ "y": 733,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ [
+ "65d0b7bd.e13a18",
+ "9f8f4fb.cc3cbb"
+ ]
+ ]
+ },
+ {
+ "id": "65d0b7bd.e13a18",
+ "type": "set",
+ "name": "set",
+ "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",
+ "comments": "",
+ "x": 991,
+ "y": 637,
+ "z": "2ef02d36.ca2f92",
+ "wires": []
+ },
+ {
+ "id": "9f8f4fb.cc3cbb",
+ "type": "call",
+ "name": "call call-bandwidth-update-pinterface",
+ "xml": "<call module='optical-service' rpc='call-bandwidth-update-pinterface' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1127,
+ "y": 732,
+ "z": "2ef02d36.ca2f92",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/resources/graph.versions b/platform-logic/optical-service/src/main/resources/graph.versions
index 026c2ea3..16546853 100644
--- a/platform-logic/optical-service/src/main/resources/graph.versions
+++ b/platform-logic/optical-service/src/main/resources/graph.versions
@@ -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
index 00000000..0f3e967b
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_aai-delete-service-handling.xml
@@ -0,0 +1,69 @@
+<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}'>
+ <method rpc='aai-delete-service-handling' mode='sync'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside Revert PInterface details"/>
+ </record>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="service-instance"
+ key='customer.global-customer-id = $output.global-customer-id AND
+ service-subscription.service-type = $output.service-type AND
+ service-instance.service-instance-id = $output.service-instance-id'
+pfx='aai.service' local-only='false'></get-resource>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside Revert PInterface details"/>
+ <parameter name="field2" value="`$aai.service.orchestration-status`"/>
+ <parameter name="field3" value="`$aai.service.relationship-list.relationship_length`"/>
+ </record>
+ <for index='idx' start='0' end='`$aai.service.relationship-list.relationship_length`' >
+ <block atomic='true'>
+ <set>
+ <parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />
+ <parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside Revert PInterface details"/>
+ <parameter name="field2" value="`$pnf-name`"/>
+ <parameter name="field3" value="`$pinterface-name`"/>
+ </record>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="p-interface"
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name '
+pfx='p.in.details' local-only='false'></get-resource>
+ <set>
+ <parameter name='new-rate' value='`$p.in.details.speed-value`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='p-interface'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name '
+ local-only='false'>
+ <parameter name='available-capacity' value='`$new-rate`' />
+ </update>
+ <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+resource='SQL'
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET rate = $new-rate WHERE interface_name = $pinterface-name '
+force='true' pfx='save-result'></save>
+ </block>
+ </for>
+ <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="service-instance"
+key='customer.global-customer-id = $output.global-customer-id AND
+service-subscription.service-type = $output.service-type AND
+service-instance.service-instance-id = $output.service-instance-id'></delete>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+ resource="SQL"
+ key="DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id"></delete>
+ </block>
+ </method>
+</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
index 00000000..5ea2571e
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu1.xml
@@ -0,0 +1,100 @@
+<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}'>
+ <method rpc='bandwidth-update-odu1' mode='sync'>
+ <block atomic="true">
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='mul' value='`$odu-number * 1.25`' />
+ <parameter name='sub' value='`$mul - 1.25`' />
+ <parameter name='new-odu-number' value='`$sub / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='ODU1'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..60ed0a47
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu2.xml
@@ -0,0 +1,205 @@
+<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}'>
+ <method rpc='bandwidth-update-odu2' mode='sync'>
+ <block atomic="true">
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 - 2.5`' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..b527056c
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu3.xml
@@ -0,0 +1,340 @@
+<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}'>
+ <method rpc='bandwidth-update-odu3' mode='sync'>
+ <block atomic="true">
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $aend-pnf-name AND
+ p-interface.interface-name = $aend-nep AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $aend-pnf-name AND
+ p-interface.interface-name = $aend-nep AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $aend-pnf-name AND
+ p-interface.interface-name = $aend-nep AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $aend-pnf-name AND
+ p-interface.interface-name = $aend-nep AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..1847f769
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu4.xml
@@ -0,0 +1,509 @@
+<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}'>
+ <method rpc='bandwidth-update-odu4' mode='sync'>
+ <block atomic="true">
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.5 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 10 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 40 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..d46ca2ef
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update.xml
@@ -0,0 +1,90 @@
+<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}'>
+ <method rpc='bandwidth-update' mode='sync'>
+ <block atomic="true">
+ <switch test='`$pin.speed-value`'>
+ <outcome value='ODU0'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside bandwidth odu0 calculation"/>
+ </record>
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <block>
+ <set>
+ <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`0`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside bandwidth odu1 calculation"/>
+ </record>
+ <call module='optical-service' rpc='bandwidth-update-odu1' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside bandwidth odu2 calculation"/>
+ </record>
+ <call module='optical-service' rpc='bandwidth-update-odu2' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside bandwidth odu3 calculation"/>
+ </record>
+ <call module='optical-service' rpc='bandwidth-update-odu3' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside bandwidth odu4 calculation"/>
+ </record>
+ <call module='optical-service' rpc='bandwidth-update-odu4' mode='sync' ></call>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..1a39aa6b
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_call-bandwidth-update-pinterface.xml
@@ -0,0 +1,47 @@
+<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}'>
+ <method rpc='call-bandwidth-update-pinterface' mode='sync'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/test.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="`$div`"/>
+ </record>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="p-interface"
+ key="pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND depth = 'all'"
+pfx='pin' local-only='false'></get-resource>
+ <switch test='`$pin.network-interface-type`'>
+ <outcome value='Other'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Port is NNI"/>
+ </record>
+ <call module='optical-service' rpc='bandwidth-update' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='UNI'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Port is UNI"/>
+ </record>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name'
+ local-only='false'>
+ <parameter name='available-capacity' value='0' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..db55f387
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml
@@ -0,0 +1,72 @@
+<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}'>
+ <method rpc='create-service-async' mode='sync'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside Create Service Async"/>
+ </record>
+ <switch test='`$response-code`'>
+ <outcome value='200'>
+ <block atomic='true'>
+ <set>
+ <parameter name='response-message' value='SUCCESS' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='service-instance'
+ key='customer.global-customer-id = $output.global-customer-id AND
+ service-subscription.service-type = $output.service-type AND
+ service-instance.service-instance-id = $output.service-instance-id'
+ local-only='false'>
+ <parameter name='orchestration-status' value='CREATED' />
+ </update>
+ <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+resource='SQL'
+key='UPDATE REQUEST_DETAILS SET status = "CREATED" WHERE request_id = $request-id'
+force='true' pfx='save-result'></save>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Finished updating service in AAI and DB to CREATED"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <block atomic='true'>
+ <set>
+ <parameter name='response-message' value='FAILURE' />
+ </set>
+ <call module='optical-service' rpc='aai-delete-service-handling' mode='sync' ></call>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.template.so.response.filename`" />
+ <parameter name="restapiUrl" value="`$output.notification-url`"/>
+ <parameter name="restapiUser" value="`$prop.so.username`" />
+ <parameter name="restapiPassword" value="`$prop.so.password`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Send to SO fails for service create"/>
+ </record>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Send to SO Success for service create"/>
+ </record>
+ </outcome>
+ </execute>
+ </block>
+ </method>
+</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
index 00000000..a3ca82ba
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu1.xml
@@ -0,0 +1,103 @@
+<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}'>
+ <method rpc='delete-bandwidth-update-odu1' mode='sync'>
+ <block atomic="true">
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <set>
+ <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='mul' value='`$odu-number * 1.25`' />
+ <parameter name='add' value='`$new-rate + $mul + 1.25`' />
+ <parameter name='new-odu-number' value='`$add / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='ODU1'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='1' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..0841388f
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu2.xml
@@ -0,0 +1,205 @@
+<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}'>
+ <method rpc='delete-bandwidth-update-odu2' mode='sync'>
+ <block atomic="true">
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 + 2.5`' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='0' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='1' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..6ae20655
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu3.xml
@@ -0,0 +1,340 @@
+<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}'>
+ <method rpc='delete-bandwidth-update-odu3' mode='sync'>
+ <block atomic="true">
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='32' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $aend-pnf-name AND
+ p-interface.interface-name = $aend-nep AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='16' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $aend-pnf-name AND
+ p-interface.interface-name = $aend-nep AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='4' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $aend-pnf-name AND
+ p-interface.interface-name = $aend-nep AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='1' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $aend-pnf-name AND
+ p-interface.interface-name = $aend-nep AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..d73a89db
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu4.xml
@@ -0,0 +1,509 @@
+<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}'>
+ <method rpc='delete-bandwidth-update-odu4' mode='sync'>
+ <block atomic="true">
+ <switch test='`$optical-service-create-input.payload.service-rate`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 100`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.5 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 100`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 100`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='' />
+ </set>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 40 `' />
+ <parameter name='new-odu-number' value='`$new-rate / 1.25`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 2.5`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 10`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 40`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='`$new-rate / 100`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >
+ <set>
+ <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />
+ <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />
+ </set>
+ <switch test='`$odu-name`'>
+ <outcome value='ODU0'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='80' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU1'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='40' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU2'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='10' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU3'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='2' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='ODU4'>
+ <block>
+ <set>
+ <parameter name='new-odu-number' value='1' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='available-bandwidth'
+ key='pnf.pnf-name = $pnf-name AND
+ p-interface.interface-name = $pinterface-name AND
+ bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND
+ available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id'
+ local-only='false'>
+ <parameter name='number' value='`$new-odu-number`' />
+ </update>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..f00f00ce
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_delete-service-async.xml
@@ -0,0 +1,67 @@
+<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}'>
+ <method rpc='delete-service-async' mode='sync'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside Delete Service Async"/>
+ </record>
+ <switch test='`$response-code`'>
+ <outcome value='200'>
+ <block atomic='true'>
+ <set>
+ <parameter name='response-message' value='SUCCESS' />
+ </set>
+ <call module='optical-service' rpc='aai-delete-service-handling' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <block atomic='true'>
+ <set>
+ <parameter name='response-message' value='FAILURE' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='service-instance'
+ key='customer.global-customer-id = $output.global-customer-id AND
+ service-subscription.service-type = $output.service-type AND
+ service-instance.service-instance-id = $output.service-instance-id'
+ local-only='false'>
+ <parameter name='orchestration-status' value='CREATED' />
+ </update>
+ <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+resource='SQL'
+key='UPDATE REQUEST_DETAILS SET status = "CREATED" WHERE request_id = $request-id'
+force='true' pfx='save-result'></save>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/async-response-so.json'`" />
+ <parameter name="restapiUrl" value="`$output.notification-url`"/>
+ <parameter name="restapiUser" value="`$prop.so.username`" />
+ <parameter name="restapiPassword" value="`$prop.so.password`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Send to SO fails for service delete"/>
+ </record>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Send to SO fails for service delete"/>
+ </record>
+ </outcome>
+ </execute>
+ </block>
+ </method>
+</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
index 00000000..bcae1f4f
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_handle-async-notif.xml
@@ -0,0 +1,44 @@
+<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}'>
+ <method rpc='handle-async-notif' mode='sync'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Reached async graph"/>
+ <parameter name="field2" value="`$request-id`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <switch test='`$ack-final-indicator`'>
+ <outcome value='N'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Ack indicator in 'N'"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='Y'>
+ <block atomic='true'>
+ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
+key='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '
+pfx='output'></get-resource>
+ <switch test='`$output.status`'>
+ <outcome value='CREATING'>
+ <call module='optical-service' rpc='create-service-async' mode='sync' ></call>
+ </outcome>
+ <outcome value='DELETING'>
+ <call module='optical-service' rpc='delete-service-async' mode='sync' ></call>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</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
index 00000000..f35446d8
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_service-create-tapi.xml
@@ -0,0 +1,406 @@
+<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}'>
+ <method rpc='service-create-tapi' mode='sync'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside optical service create tapi"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
+key='SELECT *
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE
+WHERE interface_name = $optical-service-create-input.payload.service-aend.port-id'
+pfx='db-aend'>
+ <outcome value='success'>
+ <set>
+ <parameter name='aend-node-uuid' value='`$db-aend.pnf-name`' />
+ <parameter name='aend-pnf-name' value='`$db-aend.pnf-id`' />
+ <parameter name='aend-cep-list' value='`$db-aend.connection-point`' />
+ <parameter name='aend-nep' value='`$db-aend.interface-name`' />
+ <parameter name='aend-rate' value='`$db-aend.rate`' />
+ </set>
+ </outcome>
+ </get-resource>
+ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
+key='SELECT *
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE
+WHERE interface_name = $optical-service-create-input.payload.service-zend.port-id'
+pfx='db-zend'>
+ <outcome value='success'>
+ <set>
+ <parameter name='zend-node-uuid' value='`$db-zend.pnf-name`' />
+ <parameter name='zend-pnf-name' value='`$db-zend.pnf-id`' />
+ <parameter name='zend-cep-list' value='`$db-zend.connection-point`' />
+ <parameter name='zend-nep' value='`$db-zend.interface-name`' />
+ <parameter name='zend-rate' value='`$db-zend.rate`' />
+ </set>
+ </outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="p-interface"
+ key="pnf.pnf-name = $aend-node-uuid AND
+ p-interface.interface-name = $aend-nep"
+pfx='aend' local-only='false'></get-resource>
+ <switch test='`$aend.network-interface-type`'>
+ <outcome value='UNI'>
+ <block atomic='true'>
+ <set>
+ <parameter name='aend-cep' value='`$aend-cep-list`' />
+ <parameter name='aend-new' value='' />
+ <parameter name='aend-new-rate' value='0' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Aend uni"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $aend-cep`" />
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="admin"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="aend-cep-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to get Aend cep details"/>
+ </record>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <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`" />
+ </set>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <block atomic='true'>
+ <set>
+ <parameter name='aend-new' value='' />
+ <parameter name='aend-local-id' value='' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$aend-cep-list`'/>
+ <parameter name="regex" value=","/>
+ <parameter name="ctx_memory_result_key" value="param-prefix"/>
+ </execute>
+ <for index='idx' start='0' end='`$param-prefix_length`' >
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $param-prefix[$idx]`" />
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="admin"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="aend-cep-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to get Aend cep details"/>
+ </record>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Sucessfully retrieved aend cep"/>
+ </record>
+ <switch test='`$aend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <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`" />
+ <parameter name='aend-cep' value='`$param-prefix[$idx]`'/>
+ </set>
+ <break/>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <return status='failure'>
+ <parameter name='error-code' value='500' />
+ <parameter name='error-message' value='No service interface points could be found for A end ' />
+ <parameter name='ack-final-indicator' value="Y" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ <switch test='`$param-prefix_length == 1`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='zend-new' value="`$zend-new`" />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <for index='idy' start='0' end='`$param-prefix_length`' >
+ <switch test='`$idy`'>
+ <outcome value='`$param-prefix_length - 1`'>
+ <set>
+ <parameter name='aend-new' value="`$aend-new + $param-prefix[$idy]`" />
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='aend-new' value="`$aend-new + $param-prefix[$idy] + ','`" />
+ </set>
+ </outcome>
+ <outcome value='`$idx`'>
+ <set>
+ <parameter name='aend-new' value='`$aend-new`' />
+ </set>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="p-interface"
+ key="pnf.pnf-name = $zend-node-uuid AND
+ p-interface.interface-name = $zend-nep"
+pfx='zend' local-only='false'></get-resource>
+ <switch test='`$zend.network-interface-type`'>
+ <outcome value='UNI'>
+ <block atomic='true'>
+ <set>
+ <parameter name='zend-cep' value='`$zend-cep-list`' />
+ <parameter name='zend-new' value='' />
+ <parameter name='zend-new-rate' value='0' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Zend uni"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $zend-cep`" />
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="admin"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="zend-cep-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to get Aend cep details"/>
+ </record>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <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`" />
+ </set>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <block atomic='true'>
+ <set>
+ <parameter name='zend-new' value='' />
+ <parameter name='zend-local-id' value='' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$zend-cep-list`'/>
+ <parameter name="regex" value=","/>
+ <parameter name="ctx_memory_result_key" value="param-prefix1"/>
+ </execute>
+ <for index='idk' start='0' end='`$param-prefix1_length`' >
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $param-prefix1[$idk]`" />
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="admin"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="zend-cep-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to get zend cep details"/>
+ </record>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Sucessfully retrieved zend cep"/>
+ </record>
+ <switch test='`$zend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>
+ <outcome value='true'>
+ <block>
+ <set>
+ <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`" />
+ <parameter name='zend-cep' value='`$param-prefix1[$idk]`'/>
+ </set>
+ <break/>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <return status='failure'>
+ <parameter name='error-code' value='500' />
+ <parameter name='error-message' value='No service interface points could be found for Z end ' />
+ <parameter name='ack-final-indicator' value="Y" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ <switch test='`$param-prefix1_length == 1`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='zend-new' value="`$zend-new`" />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <for index='idl' start='0' end='`$param-prefix1_length`' >
+ <switch test='`$idl`'>
+ <outcome value='`$param-prefix1_length - 1`'>
+ <set>
+ <parameter name='zend-new' value="`$zend-new + $param-prefix1[$idl]`" />
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='zend-new' value="`$zend-new + $param-prefix1[$idl] + ','`" />
+ </set>
+ </outcome>
+ <outcome value='`$idk`'>
+ <set>
+ <parameter name='zend-new' value='`$zend-new`' />
+ </set>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='service-name' value="`$optical-service-create-input.payload.service-name`" />
+ <parameter name='svc-action' value="CREATE" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="A end local-id"/>
+ <parameter name="field2" value="`$aend-local-id`"/>
+ <parameter name="field3" value="Z end local-id"/>
+ <parameter name="field4" value="`$zend-local-id`"/>
+ <parameter name="field5" value="Service name"/>
+ <parameter name="field6" value="`$service-name`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/optical-service-create-tapi.json'`" />
+ <parameter name="restapiUrl" value="`$controller-ip + '/cxf/tapi/v2/connectivities/tapi-services'`"/>
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="admin"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="tapi-service-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <return status='failure'>
+ <parameter name='error-code' value='500' />
+ <parameter name='error-message' value='Service creation failed' />
+ <parameter name='ack-final-indicator' value="Y" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <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>
+ <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+resource='SQL'
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'
+force='true' pfx='save-result'></save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+resource='SQL'
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'
+force='true' pfx='save-result'></save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'
+ key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND
+ service-subscription.service-type = $optical-service-create-input.service-type AND
+ service-instance.service-instance-id = $optical-service-create-input.service-id' >
+ <parameter name='service-instance-id' value='`$optical-service-create-input.service-id`' />
+ <parameter name='service-instance-name' value='`$optical-service-create-input.payload.service-name`' />
+ <parameter name='service-type' value='Domain-Service' />
+ <parameter name='orchestration-status' value='CREATED' />
+ <parameter name='service-rate' value='`$optical-service-create-input.payload.service-rate`' />
+ <parameter name='service-layer' value='ODU' />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND
+ service-subscription.service-type = $optical-service-create-input.service-type AND
+ service-instance.service-instance-id = $optical-service-create-input.service-id' force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />
+ <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 `" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$aend-node-uuid`" />
+ <parameter name="relationship-list.relationship[1].related-to" value="p-interface" />
+ <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 `" />
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="pnf.pnf-name" />
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$zend-node-uuid`" />
+ </save>
+ <return status='success'>
+ <parameter name='error-code' value='200' />
+ <parameter name='error-message' value='Service created successfully' />
+ <parameter name='ack-final-indicator' value="Y" />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </method>
+</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
index 00000000..919c5548
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_service-delete-tapi.xml
@@ -0,0 +1,152 @@
+<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}'>
+ <method rpc='service-delete-tapi' mode='sync'>
+ <block atomic="true">
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inside optical service delete tapi"/>
+ </record>
+ <set>
+ <parameter name='request-id' value='`$optical-service-delete-input.request-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.get.services.url + $optical-service-delete-input.payload.service-name`" />
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="admin"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="services-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'></outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='aend-nep' value="`$services-response.service[0].end-point[0].connection-end-point[0].node-edge-point-uuid`" />
+ <parameter name='zend-nep' value="`$services-response.service[0].end-point[1].connection-end-point[0].node-edge-point-uuid`" />
+ <parameter name='aend-cep' value="`$services-response.service[0].end-point[0].connection-end-point[0].connection-end-point-uuid`" />
+ <parameter name='zend-cep' value="`$services-response.service[0].end-point[1].connection-end-point[0].connection-end-point-uuid`" />
+ </set>
+ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
+key='SELECT *
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE
+WHERE interface_name = $aend-nep'
+pfx='db-aend'></get-resource>
+ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
+key='SELECT *
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE
+WHERE interface_name = $zend-nep'
+pfx='db-zend'></get-resource>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.delete.service.url + $optical-service-delete-input.payload.service-name`" />
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="admin"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="tapi-service-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <return status='failure'>
+ <parameter name='error-code' value='500' />
+ <parameter name='error-message' value='Service Deletion failed' />
+ <parameter name='ack-final-indicator' value="Y" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="p-interface"
+ key="pnf.pnf-name = $db-aend.pnf-name AND
+ p-interface.interface-name = $aend-nep"
+pfx='aend' local-only='false'></get-resource>
+ <switch test='`$aend.network-interface-type`'>
+ <outcome value='UNI'>
+ <set>
+ <parameter name='aend-new' value='`$aend-cep`' />
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <switch test='`$db-aend.connection-point`'>
+ <outcome value=''>
+ <set>
+ <parameter name='aend-new' value="`$aend-cep`" />
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='aend-new' value="`$db-aend.connection-point + ',' + $aend-cep`" />
+ </set>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+resource='SQL'
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'
+force='true' pfx='save-result'></save>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="p-interface"
+ key="pnf.pnf-name = $db-zend.pnf-name AND
+ p-interface.interface-name = $zend-nep"
+pfx='zend' local-only='false'></get-resource>
+ <switch test='`$zend.network-interface-type`'>
+ <outcome value='UNI'>
+ <set>
+ <parameter name='zend-new' value='`$zend-cep`' />
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <switch test='`$db-zend.connection-point`'>
+ <outcome value=''>
+ <set>
+ <parameter name='zend-new' value="`$zend-cep`" />
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='zend-new' value="`$db-zend.connection-point + ',' + $zend-cep`" />
+ </set>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+resource='SQL'
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'
+force='true' pfx='save-result'></save>
+ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
+key='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '
+pfx='output'></get-resource>
+ <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="service-instance"
+key='customer.global-customer-id = $output.global-customer-id AND
+service-subscription.service-type = $output.service-type AND
+service-instance.service-instance-id = $output.service-instance-id'></delete>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
+ resource="SQL"
+ key="DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id"></delete>
+ <return status='success'>
+ <parameter name='error-code' value='200' />
+ <parameter name='error-message' value='Service deleted successfully' />
+ <parameter name='ack-final-indicator' value="Y" />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </method>
+</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
index 00000000..c3b9639b
--- /dev/null
+++ b/platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml
@@ -0,0 +1,36 @@
+<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}'>
+ <method rpc='success-aai-update-tapi' mode='sync'>
+ <block atomic="true">
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND
+ service-subscription.service-type = $optical-service-create-input.service-type AND
+ service-instance.service-instance-id = $optical-service-create-input.service-id' force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $aend-nep `" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$aend-node-uuid`" />
+ <parameter name="relationship-list.relationship[1].related-to" value="p-interface" />
+ <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $zend-nep `" />
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="pnf.pnf-name" />
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$zend-node-uuid`" />
+ </save>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="service-instance"
+key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND
+ service-subscription.service-type = $optical-service-create-input.service-type AND
+ service-instance.service-instance-id = $optical-service-create-input.service-id'
+pfx='aai.service' local-only='false'></get-resource>
+ <for index='idy' start='0' end='`$aai.service.relationship-list.relationship_length`' >
+ <block atomic='true'>
+ <set>
+ <parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />
+ <parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />
+ </set>
+ <call module='optical-service' rpc='call-bandwidth-update-pinterface' mode='sync' ></call>
+ </block>
+ </for>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file