Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-find-maximum-used-tpn.json
1 [\r
2     {\r
3         "id": "48a61ee8.0b719",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 173,\r
8         "y": 135,\r
9         "z": "4bbda34f.42b12c",\r
10         "wires": [\r
11             [\r
12                 "e311175c.73cf98"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "e311175c.73cf98",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "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}'>",\r
24         "outputs": 1,\r
25         "x": 309,\r
26         "y": 248,\r
27         "z": "4bbda34f.42b12c",\r
28         "wires": [\r
29             [\r
30                 "f0c04bab.58634"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "f0c04bab.58634",\r
36         "type": "method",\r
37         "name": "cll-vnf-topology-operation-find-maximum-used-tpn",\r
38         "xml": "<method rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 425.0001220703125,\r
42         "y": 350,\r
43         "z": "4bbda34f.42b12c",\r
44         "wires": [\r
45             [\r
46                 "7e34bfe8.37391"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "7e34bfe8.37391",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "outputs": 1,\r
57         "x": 599.9688720703125,\r
58         "y": 430.74163818359375,\r
59         "z": "4bbda34f.42b12c",\r
60         "wires": [\r
61             [\r
62                 "c553bcbc.9ba518",\r
63                 "9e275680.4bddb"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "c553bcbc.9ba518",\r
69         "type": "save",\r
70         "name": "get all-vpn-bindings from aai",\r
71         "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",\r
72         "comments": "",\r
73         "outputs": 1,\r
74         "x": 826,\r
75         "y": 431,\r
76         "z": "4bbda34f.42b12c",\r
77         "wires": [\r
78             [\r
79                 "dac99129.1b70d8",\r
80                 "f2598ce0.05b6e8",\r
81                 "6bee9d7e.dbbb84"\r
82             ]\r
83         ]\r
84     },\r
85     {\r
86         "id": "dac99129.1b70d8",\r
87         "type": "success",\r
88         "name": "success",\r
89         "xml": "<outcome value='success'>\n",\r
90         "comments": "",\r
91         "outputs": 1,\r
92         "x": 1048,\r
93         "y": 429,\r
94         "z": "4bbda34f.42b12c",\r
95         "wires": [\r
96             [\r
97                 "e7d398c3.c1aec"\r
98             ]\r
99         ]\r
100     },\r
101     {\r
102         "id": "f2598ce0.05b6e8",\r
103         "type": "not-found",\r
104         "name": "not-found",\r
105         "xml": "<outcome value='not-found'>\n",\r
106         "comments": "",\r
107         "outputs": 1,\r
108         "x": 1058.490966796875,\r
109         "y": 305.57403564453125,\r
110         "z": "4bbda34f.42b12c",\r
111         "wires": [\r
112             []\r
113         ]\r
114     },\r
115     {\r
116         "id": "6bee9d7e.dbbb84",\r
117         "type": "failure",\r
118         "name": "failure",\r
119         "xml": "<outcome value='failure'>\n",\r
120         "comments": "",\r
121         "outputs": 1,\r
122         "x": 1056,\r
123         "y": 349,\r
124         "z": "4bbda34f.42b12c",\r
125         "wires": [\r
126             [\r
127                 "c0d94944.aeb218"\r
128             ]\r
129         ]\r
130     },\r
131     {\r
132         "id": "e7d398c3.c1aec",\r
133         "type": "block",\r
134         "name": "block : atomic",\r
135         "xml": "<block atomic=\"true\">",\r
136         "atomic": "true",\r
137         "outputs": 1,\r
138         "x": 1212,\r
139         "y": 430,\r
140         "z": "4bbda34f.42b12c",\r
141         "wires": [\r
142             [\r
143                 "f7213a60.a7bf88"\r
144             ]\r
145         ]\r
146     },\r
147     {\r
148         "id": "c0d94944.aeb218",\r
149         "type": "returnFailure",\r
150         "name": "return failure",\r
151         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
152         "comments": "",\r
153         "x": 1223,\r
154         "y": 348,\r
155         "z": "4bbda34f.42b12c",\r
156         "wires": []\r
157     },\r
158     {\r
159         "id": "f7213a60.a7bf88",\r
160         "type": "for",\r
161         "name": "for allvpnbidx in allvpnbindings",\r
162         "xml": "<for index='allvpnbidx' start='0' end='`$tmp.aai.allvpnbindings.vpn-binding_length`' >\n",\r
163         "comments": "",\r
164         "outputs": 1,\r
165         "x": 200,\r
166         "y": 580,\r
167         "z": "4bbda34f.42b12c",\r
168         "wires": [\r
169             [\r
170                 "d3ed1465.8f79e8"\r
171             ]\r
172         ]\r
173     },\r
174     {\r
175         "id": "d3ed1465.8f79e8",\r
176         "type": "block",\r
177         "name": "block : atomic",\r
178         "xml": "<block atomic='true'>",\r
179         "atomic": "true",\r
180         "comments": "",\r
181         "outputs": 1,\r
182         "x": 463,\r
183         "y": 580,\r
184         "z": "4bbda34f.42b12c",\r
185         "wires": [\r
186             [\r
187                 "d00c4aae.149b2"\r
188             ]\r
189         ]\r
190     },\r
191     {\r
192         "id": "d00c4aae.149b2",\r
193         "type": "switchNode",\r
194         "name": "switch customer-vpn-id is greater than maxtpn",\r
195         "xml": "<switch test=\"`$tmp.aai.allvpnbindings.vpn-binding[$allvpnbidx].customer-vpn-id >= $maxtpn `\">\n\n",\r
196         "comments": "",\r
197         "outputs": 1,\r
198         "x": 752,\r
199         "y": 580,\r
200         "z": "4bbda34f.42b12c",\r
201         "wires": [\r
202             [\r
203                 "e8157a5b.cfaa1",\r
204                 "f2a0edb3.6895e"\r
205             ]\r
206         ]\r
207     },\r
208     {\r
209         "id": "e8157a5b.cfaa1",\r
210         "type": "outcomeTrue",\r
211         "name": "true",\r
212         "xml": "<outcome value='true'>\n",\r
213         "comments": "",\r
214         "outputs": 1,\r
215         "x": 1034,\r
216         "y": 560,\r
217         "z": "4bbda34f.42b12c",\r
218         "wires": [\r
219             [\r
220                 "b8fa7ef9.c40c38"\r
221             ]\r
222         ]\r
223     },\r
224     {\r
225         "id": "f2a0edb3.6895e",\r
226         "type": "outcomeFalse",\r
227         "name": "false",\r
228         "xml": "<outcome value='false'>\n",\r
229         "comments": "",\r
230         "outputs": 1,\r
231         "x": 1034,\r
232         "y": 609,\r
233         "z": "4bbda34f.42b12c",\r
234         "wires": [\r
235             []\r
236         ]\r
237     },\r
238     {\r
239         "id": "b8fa7ef9.c40c38",\r
240         "type": "block",\r
241         "name": "block : atomic",\r
242         "xml": "<block atomic='true'>",\r
243         "atomic": "true",\r
244         "comments": "",\r
245         "outputs": 1,\r
246         "x": 1202,\r
247         "y": 560,\r
248         "z": "4bbda34f.42b12c",\r
249         "wires": [\r
250             [\r
251                 "66fd0662.02fed8",\r
252                 "8abe9ad2.6ab3e"\r
253             ]\r
254         ]\r
255     },\r
256     {\r
257         "id": "9e275680.4bddb",\r
258         "type": "set",\r
259         "name": "set initial maxtpn and newToBeUsedMaxtpn",\r
260         "xml": "<set>\n<parameter name='maxtpn' value='1' />\n<parameter name='newToBeUsedMaxtpn' value='1' />\n",\r
261         "comments": "",\r
262         "x": 851,\r
263         "y": 244,\r
264         "z": "4bbda34f.42b12c",\r
265         "wires": []\r
266     },\r
267     {\r
268         "id": "66fd0662.02fed8",\r
269         "type": "set",\r
270         "name": "set maxtpn",\r
271         "xml": "<set>\n<parameter name='maxtpn' value='`$tmp.aai.allvpnbindings.vpn-binding[$allvpnbidx].customer-vpn-id`' />\n",\r
272         "comments": "",\r
273         "x": 1377,\r
274         "y": 560,\r
275         "z": "4bbda34f.42b12c",\r
276         "wires": []\r
277     },\r
278     {\r
279         "id": "8abe9ad2.6ab3e",\r
280         "type": "set",\r
281         "name": "set newToBeUsedMaxtpn",\r
282         "xml": "<set>\n<parameter name='newToBeUsedMaxtpn' value='`$maxtpn + $tmp.aai.allvpnbindings.vpn-binding[$allvpnbidx].route-distinguisher`' />\n",\r
283         "comments": "",\r
284         "x": 1407,\r
285         "y": 611,\r
286         "z": "4bbda34f.42b12c",\r
287         "wires": []\r
288     }\r
289 ]