aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json')
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json442
1 files changed, 442 insertions, 0 deletions
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