Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_port-mirror-rollback-capacity-db.json
1 [
2     {
3         "id": "3b7d475e.717be8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 102.85714721679688,
8         "y": 92.85714721679688,
9         "z": "41e68dff.7b4254",
10         "wires": [
11             [
12                 "d74e703a.20613"
13             ]
14         ]
15     },
16     {
17         "id": "d74e703a.20613",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
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}'>",
24         "outputs": 1,
25         "x": 216.71428298950195,
26         "y": 132.66668510437012,
27         "z": "41e68dff.7b4254",
28         "wires": [
29             [
30                 "cb52845f.272378"
31             ]
32         ]
33     },
34     {
35         "id": "cb52845f.272378",
36         "type": "method",
37         "name": "method port-mirror-rollback-capacity-db",
38         "xml": "<method rpc='port-mirror-rollback-capacity-db' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 196.28577423095703,
42         "y": 173.85714721679688,
43         "z": "41e68dff.7b4254",
44         "wires": [
45             [
46                 "f6902b28.e39428"
47             ]
48         ]
49     },
50     {
51         "id": "4ca6c070.6907e",
52         "type": "comment",
53         "name": "port-mirror-rollback-capacity-db",
54         "info": "",
55         "comments": "",
56         "x": 508.1782455444336,
57         "y": 35.83284664154053,
58         "z": "41e68dff.7b4254",
59         "wires": []
60     },
61     {
62         "id": "f6902b28.e39428",
63         "type": "block",
64         "name": "block",
65         "xml": "<block>\n",
66         "atomic": "false",
67         "comments": "",
68         "outputs": 1,
69         "x": 203.9523696899414,
70         "y": 338.4761772155762,
71         "z": "41e68dff.7b4254",
72         "wires": [
73             [
74                 "923db1f2.d4148",
75                 "3ee9cda9.644ed2",
76                 "19e81c3c.942fa4"
77             ]
78         ]
79     },
80     {
81         "id": "9f4506c7.640918",
82         "type": "update",
83         "name": "update VNICS_CAPACITY",
84         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"update VNICS_CAPACITY\n     set available_capacity = $tmp.avail-capacity\n     where vnics_group_id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.vnics-group-id\n     and vnic_port_name = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name\n\" >",
85         "comments": "",
86         "outputs": 1,
87         "x": 1524.6665267944336,
88         "y": 286.3333053588867,
89         "z": "41e68dff.7b4254",
90         "wires": [
91             []
92         ]
93     },
94     {
95         "id": "f24a7712.96c968",
96         "type": "get-resource",
97         "name": "get-resource VNICS_CAPACITY",
98         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='select available_capacity\n    from VNICS_CAPACITY\n    where vnics_group_id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.vnics-group-id\n    and vnic_port_name = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name'\n  pfx='db.vnics-capacity'>\n",
99         "comments": "",
100         "outputs": 1,
101         "x": 909.6664810180664,
102         "y": 263.000093460083,
103         "z": "41e68dff.7b4254",
104         "wires": [
105             [
106                 "b048d9ab.c070f8"
107             ]
108         ]
109     },
110     {
111         "id": "cf81b663.384118",
112         "type": "set",
113         "name": "add source capacity back",
114         "xml": "<set>\n<parameter name='tmp.avail-capacity' value='`$db.vnics-capacity.available-capacity + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-capacity`' />\n",
115         "comments": "",
116         "x": 1522.9998588562012,
117         "y": 234.6667184829712,
118         "z": "41e68dff.7b4254",
119         "wires": []
120     },
121     {
122         "id": "b048d9ab.c070f8",
123         "type": "success",
124         "name": "success",
125         "xml": "<outcome value='success'>\n",
126         "comments": "",
127         "outputs": 1,
128         "x": 1157.999885559082,
129         "y": 261.333345413208,
130         "z": "41e68dff.7b4254",
131         "wires": [
132             [
133                 "cd281a51.6ede38"
134             ]
135         ]
136     },
137     {
138         "id": "cd281a51.6ede38",
139         "type": "block",
140         "name": "block",
141         "xml": "<block>\n",
142         "atomic": "false",
143         "comments": "",
144         "outputs": 1,
145         "x": 1318.0000457763672,
146         "y": 261.333327293396,
147         "z": "41e68dff.7b4254",
148         "wires": [
149             [
150                 "cf81b663.384118",
151                 "9f4506c7.640918"
152             ]
153         ]
154     },
155     {
156         "id": "923db1f2.d4148",
157         "type": "delete",
158         "name": "delete VNICS_CONFIGURATION_ID record",
159         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='delete from VNICS_CONFIGURATION_ID\n  \twhere configuration_id = $tmp.configuration-id\n    and vnics_group_id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.vnics-group-id' >",
160         "comments": "",
161         "outputs": 1,
162         "x": 482.9999694824219,
163         "y": 341.33331298828125,
164         "z": "41e68dff.7b4254",
165         "wires": [
166             []
167         ]
168     },
169     {
170         "id": "3ee9cda9.644ed2",
171         "type": "get-resource",
172         "name": "get-resource VNICS_CONFIGURATION_ID for vnics-group-id",
173         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='select configuration_id\n    from VNICS_CONFIGURATION_ID\n    where vnics_group_id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.vnics-group-id'\n  pfx='db.vnics-confid'>\n",
174         "comments": "",
175         "outputs": 1,
176         "x": 540.666618347168,
177         "y": 427.9999084472656,
178         "z": "41e68dff.7b4254",
179         "wires": [
180             [
181                 "374e0adc.26a606"
182             ]
183         ]
184     },
185     {
186         "id": "374e0adc.26a606",
187         "type": "not-found",
188         "name": "not-found",
189         "xml": "<outcome value='not-found'>\n",
190         "comments": "",
191         "outputs": 1,
192         "x": 855.6666030883789,
193         "y": 426.33338356018066,
194         "z": "41e68dff.7b4254",
195         "wires": [
196             [
197                 "8af09ab.de69f68"
198             ]
199         ]
200     },
201     {
202         "id": "35222c7a.050654",
203         "type": "delete",
204         "name": "delete VNICS_CAPACITY records",
205         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='delete from VNICS_CAPACITY\n  \twhere vnics_group_id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.vnics-group-id' >",
206         "comments": "",
207         "outputs": 1,
208         "x": 1222.3333854675293,
209         "y": 392.99996757507324,
210         "z": "41e68dff.7b4254",
211         "wires": [
212             []
213         ]
214     },
215     {
216         "id": "8af09ab.de69f68",
217         "type": "block",
218         "name": "block",
219         "xml": "<block>\n",
220         "atomic": "false",
221         "comments": "",
222         "outputs": 1,
223         "x": 1000.6665878295898,
224         "y": 424.6666736602783,
225         "z": "41e68dff.7b4254",
226         "wires": [
227             [
228                 "35222c7a.050654",
229                 "338f14c9.07a05c"
230             ]
231         ]
232     },
233     {
234         "id": "338f14c9.07a05c",
235         "type": "delete",
236         "name": "delete VNICS_CAPACITY_GROUP record",
237         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='delete from VNICS_CAPACITY_GROUP\n  \twhere vnics_group_id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.vnics-group-id' >",
238         "comments": "",
239         "outputs": 1,
240         "x": 1247.3332633972168,
241         "y": 452.9999294281006,
242         "z": "41e68dff.7b4254",
243         "wires": [
244             []
245         ]
246     },
247     {
248         "id": "19e81c3c.942fa4",
249         "type": "for",
250         "name": "for each mapped source port",
251         "xml": "<for index='src-idx' start='0' end='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`' >\n",
252         "comments": "",
253         "outputs": 1,
254         "x": 437.3333053588867,
255         "y": 263.6666564941406,
256         "z": "41e68dff.7b4254",
257         "wires": [
258             [
259                 "547c6970.9036e8"
260             ]
261         ]
262     },
263     {
264         "id": "547c6970.9036e8",
265         "type": "block",
266         "name": "block : atomic",
267         "xml": "<block atomic=\"true\">",
268         "atomic": "true",
269         "outputs": 1,
270         "x": 660.666633605957,
271         "y": 263.33308029174805,
272         "z": "41e68dff.7b4254",
273         "wires": [
274             [
275                 "f24a7712.96c968"
276             ]
277         ]
278     }
279 ]