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