summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-find-maximum-used-tpn.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-find-maximum-used-tpn.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-find-maximum-used-tpn.json277
1 files changed, 277 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-find-maximum-used-tpn.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-find-maximum-used-tpn.json
new file mode 100644
index 00000000..f1c1bcb8
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-find-maximum-used-tpn.json
@@ -0,0 +1,277 @@
+[
+ {
+ "id": "dcad323c.dc4798",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 128,
+ "y": 72,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "2c6d583b.e0ed6"
+ ]
+ ]
+ },
+ {
+ "id": "2c6d583b.e0ed6",
+ "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": 264,
+ "y": 185,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "710efd23.956604"
+ ]
+ ]
+ },
+ {
+ "id": "710efd23.956604",
+ "type": "method",
+ "name": "tsli-vnf-topology-operation-find-maximum-used-tpn",
+ "xml": "<method rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 380.0001220703125,
+ "y": 287,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "86a8a352.0226a"
+ ]
+ ]
+ },
+ {
+ "id": "86a8a352.0226a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 554.9688720703125,
+ "y": 367.74163818359375,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "d7203925.27f628",
+ "5563cab3.b9ec1c"
+ ]
+ ]
+ },
+ {
+ "id": "d7203925.27f628",
+ "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": 781,
+ "y": 368,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "8a1cac64.d9f088",
+ "28ca26e4.951a3a",
+ "79b4f344.796bac"
+ ]
+ ]
+ },
+ {
+ "id": "8a1cac64.d9f088",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1003,
+ "y": 366,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "cb805cfc.55e7f"
+ ]
+ ]
+ },
+ {
+ "id": "28ca26e4.951a3a",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1013.490966796875,
+ "y": 242.57403564453125,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "79b4f344.796bac",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1011,
+ "y": 286,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "e9ad4f40.e410c8"
+ ]
+ ]
+ },
+ {
+ "id": "cb805cfc.55e7f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1167,
+ "y": 367,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "d1872098.535da"
+ ]
+ ]
+ },
+ {
+ "id": "e9ad4f40.e410c8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1178,
+ "y": 285,
+ "z": "ad0d9df6.18fd58",
+ "wires": []
+ },
+ {
+ "id": "d1872098.535da",
+ "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": 155,
+ "y": 517,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "867efd8f.191748"
+ ]
+ ]
+ },
+ {
+ "id": "867efd8f.191748",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 418,
+ "y": 517,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "3686747b.9b8034"
+ ]
+ ]
+ },
+ {
+ "id": "3686747b.9b8034",
+ "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": 707,
+ "y": 517,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "56c65c47.d113d4",
+ "dfa2f5df.4bb658"
+ ]
+ ]
+ },
+ {
+ "id": "56c65c47.d113d4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 989,
+ "y": 497,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "25625bbf.e04704"
+ ]
+ ]
+ },
+ {
+ "id": "dfa2f5df.4bb658",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 989,
+ "y": 546,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "25625bbf.e04704",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1157,
+ "y": 497,
+ "z": "ad0d9df6.18fd58",
+ "wires": [
+ [
+ "a0dd57a5.212ef"
+ ]
+ ]
+ },
+ {
+ "id": "5563cab3.b9ec1c",
+ "type": "set",
+ "name": "set maxtpn",
+ "xml": "<set>\n<parameter name='maxtpn' value='0' />\n\n\n",
+ "comments": "",
+ "x": 747,
+ "y": 305,
+ "z": "ad0d9df6.18fd58",
+ "wires": []
+ },
+ {
+ "id": "a0dd57a5.212ef",
+ "type": "set",
+ "name": "set maxtpn",
+ "xml": "<set>\n<parameter name='maxtpn' value='`$tmp.aai.allvpnbindings.vpn-binding[$allvpnbidx].customer-vpn-id`' />\n",
+ "comments": "",
+ "x": 1332,
+ "y": 497,
+ "z": "ad0d9df6.18fd58",
+ "wires": []
+ }
+] \ No newline at end of file