3 "id": "3b7d475e.717be8",
7 "x": 102.85714721679688,
8 "y": 92.85714721679688,
9 "z": "41e68dff.7b4254",
17 "id": "d74e703a.20613",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
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}'>",
25 "x": 216.71428298950195,
26 "y": 132.66668510437012,
27 "z": "41e68dff.7b4254",
35 "id": "cb52845f.272378",
37 "name": "method port-mirror-rollback-capacity-db",
38 "xml": "<method rpc='port-mirror-rollback-capacity-db' mode='sync'>\n",
41 "x": 196.28577423095703,
42 "y": 173.85714721679688,
43 "z": "41e68dff.7b4254",
51 "id": "4ca6c070.6907e",
53 "name": "port-mirror-rollback-capacity-db",
56 "x": 508.1782455444336,
57 "y": 35.83284664154053,
58 "z": "41e68dff.7b4254",
62 "id": "f6902b28.e39428",
69 "x": 203.9523696899414,
70 "y": 338.4761772155762,
71 "z": "41e68dff.7b4254",
81 "id": "9f4506c7.640918",
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\" >",
87 "x": 1524.6665267944336,
88 "y": 286.3333053588867,
89 "z": "41e68dff.7b4254",
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",
101 "x": 909.6664810180664,
102 "y": 263.000093460083,
103 "z": "41e68dff.7b4254",
111 "id": "cf81b663.384118",
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",
116 "x": 1522.9998588562012,
117 "y": 234.6667184829712,
118 "z": "41e68dff.7b4254",
122 "id": "b048d9ab.c070f8",
125 "xml": "<outcome value='success'>\n",
128 "x": 1157.999885559082,
129 "y": 261.333345413208,
130 "z": "41e68dff.7b4254",
138 "id": "cd281a51.6ede38",
145 "x": 1318.0000457763672,
146 "y": 261.333327293396,
147 "z": "41e68dff.7b4254",
156 "id": "923db1f2.d4148",
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' >",
162 "x": 482.9999694824219,
163 "y": 341.33331298828125,
164 "z": "41e68dff.7b4254",
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",
176 "x": 540.666618347168,
177 "y": 427.9999084472656,
178 "z": "41e68dff.7b4254",
186 "id": "374e0adc.26a606",
189 "xml": "<outcome value='not-found'>\n",
192 "x": 855.6666030883789,
193 "y": 426.33338356018066,
194 "z": "41e68dff.7b4254",
202 "id": "35222c7a.050654",
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' >",
208 "x": 1222.3333854675293,
209 "y": 392.99996757507324,
210 "z": "41e68dff.7b4254",
216 "id": "8af09ab.de69f68",
223 "x": 1000.6665878295898,
224 "y": 424.6666736602783,
225 "z": "41e68dff.7b4254",
234 "id": "338f14c9.07a05c",
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' >",
240 "x": 1247.3332633972168,
241 "y": 452.9999294281006,
242 "z": "41e68dff.7b4254",
248 "id": "19e81c3c.942fa4",
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",
254 "x": 437.3333053588867,
255 "y": 263.6666564941406,
256 "z": "41e68dff.7b4254",
264 "id": "547c6970.9036e8",
266 "name": "block : atomic",
267 "xml": "<block atomic=\"true\">",
270 "x": 660.666633605957,
271 "y": 263.33308029174805,
272 "z": "41e68dff.7b4254",