summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-find-maximum-used-tpn.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-find-maximum-used-tpn.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-find-maximum-used-tpn.json289
1 files changed, 289 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-find-maximum-used-tpn.json b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-find-maximum-used-tpn.json
new file mode 100644
index 00000000..343def6f
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-find-maximum-used-tpn.json
@@ -0,0 +1,289 @@
+[
+ {
+ "id": "48a61ee8.0b719",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 173,
+ "y": 135,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "e311175c.73cf98"
+ ]
+ ]
+ },
+ {
+ "id": "e311175c.73cf98",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "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='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 309,
+ "y": 248,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "f0c04bab.58634"
+ ]
+ ]
+ },
+ {
+ "id": "f0c04bab.58634",
+ "type": "method",
+ "name": "cll-vnf-topology-operation-find-maximum-used-tpn",
+ "xml": "<method rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 425.0001220703125,
+ "y": 350,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "7e34bfe8.37391"
+ ]
+ ]
+ },
+ {
+ "id": "7e34bfe8.37391",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 599.9688720703125,
+ "y": 430.74163818359375,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "c553bcbc.9ba518",
+ "9e275680.4bddb"
+ ]
+ ]
+ },
+ {
+ "id": "c553bcbc.9ba518",
+ "type": "save",
+ "name": "get all-vpn-bindings from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.allvpnbindings\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 826,
+ "y": 431,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "dac99129.1b70d8",
+ "f2598ce0.05b6e8",
+ "6bee9d7e.dbbb84"
+ ]
+ ]
+ },
+ {
+ "id": "dac99129.1b70d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1048,
+ "y": 429,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "e7d398c3.c1aec"
+ ]
+ ]
+ },
+ {
+ "id": "f2598ce0.05b6e8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1058.490966796875,
+ "y": 305.57403564453125,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6bee9d7e.dbbb84",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1056,
+ "y": 349,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "c0d94944.aeb218"
+ ]
+ ]
+ },
+ {
+ "id": "e7d398c3.c1aec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1212,
+ "y": 430,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "f7213a60.a7bf88"
+ ]
+ ]
+ },
+ {
+ "id": "c0d94944.aeb218",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1223,
+ "y": 348,
+ "z": "4bbda34f.42b12c",
+ "wires": []
+ },
+ {
+ "id": "f7213a60.a7bf88",
+ "type": "for",
+ "name": "for allvpnbidx in allvpnbindings",
+ "xml": "<for index='allvpnbidx' start='0' end='`$tmp.aai.allvpnbindings.vpn-binding_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 200,
+ "y": 580,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "d3ed1465.8f79e8"
+ ]
+ ]
+ },
+ {
+ "id": "d3ed1465.8f79e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 463,
+ "y": 580,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "d00c4aae.149b2"
+ ]
+ ]
+ },
+ {
+ "id": "d00c4aae.149b2",
+ "type": "switchNode",
+ "name": "switch customer-vpn-id is greater than maxtpn",
+ "xml": "<switch test=\"`$tmp.aai.allvpnbindings.vpn-binding[$allvpnbidx].customer-vpn-id >= $maxtpn `\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 752,
+ "y": 580,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "e8157a5b.cfaa1",
+ "f2a0edb3.6895e"
+ ]
+ ]
+ },
+ {
+ "id": "e8157a5b.cfaa1",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1034,
+ "y": 560,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "b8fa7ef9.c40c38"
+ ]
+ ]
+ },
+ {
+ "id": "f2a0edb3.6895e",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1034,
+ "y": 609,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b8fa7ef9.c40c38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1202,
+ "y": 560,
+ "z": "4bbda34f.42b12c",
+ "wires": [
+ [
+ "66fd0662.02fed8",
+ "8abe9ad2.6ab3e"
+ ]
+ ]
+ },
+ {
+ "id": "9e275680.4bddb",
+ "type": "set",
+ "name": "set initial maxtpn and newToBeUsedMaxtpn",
+ "xml": "<set>\n<parameter name='maxtpn' value='1' />\n<parameter name='newToBeUsedMaxtpn' value='1' />\n",
+ "comments": "",
+ "x": 851,
+ "y": 244,
+ "z": "4bbda34f.42b12c",
+ "wires": []
+ },
+ {
+ "id": "66fd0662.02fed8",
+ "type": "set",
+ "name": "set maxtpn",
+ "xml": "<set>\n<parameter name='maxtpn' value='`$tmp.aai.allvpnbindings.vpn-binding[$allvpnbidx].customer-vpn-id`' />\n",
+ "comments": "",
+ "x": 1377,
+ "y": 560,
+ "z": "4bbda34f.42b12c",
+ "wires": []
+ },
+ {
+ "id": "8abe9ad2.6ab3e",
+ "type": "set",
+ "name": "set newToBeUsedMaxtpn",
+ "xml": "<set>\n<parameter name='newToBeUsedMaxtpn' value='`$maxtpn + $tmp.aai.allvpnbindings.vpn-binding[$allvpnbidx].route-distinguisher`' />\n",
+ "comments": "",
+ "x": 1407,
+ "y": 611,
+ "z": "4bbda34f.42b12c",
+ "wires": []
+ }
+] \ No newline at end of file