Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_port-mirror-topology-operation-deactivate-sync.json
1 [
2     {
3         "id": "da0f0eae.d6e6",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 101.42857360839844,
8         "y": 80,
9         "z": "64e470a6.f1c2",
10         "wires": [
11             [
12                 "bf3f1e52.b503c"
13             ]
14         ]
15     },
16     {
17         "id": "bf3f1e52.b503c",
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": 215.04759979248047,
26         "y": 120.23811340332031,
27         "z": "64e470a6.f1c2",
28         "wires": [
29             [
30                 "113ca55d.9f806b"
31             ]
32         ]
33     },
34     {
35         "id": "113ca55d.9f806b",
36         "type": "method",
37         "name": "method port-mirror-topology-operation-deactivate-sync",
38         "xml": "<method rpc='port-mirror-topology-operation-deactivate-sync' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 239.8572006225586,
42         "y": 160,
43         "z": "64e470a6.f1c2",
44         "wires": [
45             [
46                 "291f858d.e8a8da"
47             ]
48         ]
49     },
50     {
51         "id": "f3e36ac1.5fde88",
52         "type": "comment",
53         "name": "port-mirror-topology-operation-deactivate-sync",
54         "info": "",
55         "comments": "",
56         "x": 495.77342987060547,
57         "y": 27.58634376525879,
58         "z": "64e470a6.f1c2",
59         "wires": []
60     },
61     {
62         "id": "291f858d.e8a8da",
63         "type": "block",
64         "name": "block : atomic",
65         "xml": "<block atomic=\"true\">",
66         "atomic": "true",
67         "outputs": 1,
68         "x": 161.42857360839844,
69         "y": 524.2857112884521,
70         "z": "64e470a6.f1c2",
71         "wires": [
72             [
73                 "44bf4c29.2ac2b4",
74                 "18f8a407.260c1c",
75                 "b325942e.c008a8",
76                 "e8420d4.e95eaf",
77                 "dfd22f0a.d304b",
78                 "58c32a6.c5959d4"
79             ]
80         ]
81     },
82     {
83         "id": "44bf4c29.2ac2b4",
84         "type": "returnSuccess",
85         "name": "return success",
86         "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='ack-final' value='N' />",
87         "comments": "",
88         "x": 436.8571472167969,
89         "y": 624.2856426239014,
90         "z": "64e470a6.f1c2",
91         "wires": []
92     },
93     {
94         "id": "18f8a407.260c1c",
95         "type": "set",
96         "name": "set tmp.pm.configuration-id",
97         "xml": "<set>\n<parameter name='tmp.pm.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n\n",
98         "comments": "",
99         "x": 476.1428680419922,
100         "y": 337.1428451538086,
101         "z": "64e470a6.f1c2",
102         "wires": []
103     },
104     {
105         "id": "b325942e.c008a8",
106         "type": "execute",
107         "name": "execute readProperties",
108         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 464.2857131958008,
112         "y": 385.7142734527588,
113         "z": "64e470a6.f1c2",
114         "wires": [
115             []
116         ]
117     },
118     {
119         "id": "e8420d4.e95eaf",
120         "type": "execute",
121         "name": "generate port-mirror-configuration url",
122         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.pm-configuration`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.pmc-url\"/>\n    <parameter name=\"target\" value=\"{configuration-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.pm.configuration-id`\"/>\n",
123         "comments": "",
124         "outputs": 1,
125         "x": 507.1428756713867,
126         "y": 432.857120513916,
127         "z": "64e470a6.f1c2",
128         "wires": [
129             []
130         ]
131     },
132     {
133         "id": "dfd22f0a.d304b",
134         "type": "execute",
135         "name": "execute RestApiCallNode - get port-mirror-configuration",
136         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.pmc-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-pmc\" />\n\n",
137         "comments": "",
138         "outputs": 1,
139         "x": 567.1428604125977,
140         "y": 480.00005531311035,
141         "z": "64e470a6.f1c2",
142         "wires": [
143             [
144                 "c4ace799.8ee718",
145                 "4908b83c.f73098"
146             ]
147         ]
148     },
149     {
150         "id": "c4ace799.8ee718",
151         "type": "success",
152         "name": "success",
153         "xml": "<outcome value='success'>\n",
154         "comments": "",
155         "outputs": 1,
156         "x": 865.2959823608398,
157         "y": 450.80790424346924,
158         "z": "64e470a6.f1c2",
159         "wires": [
160             [
161                 "fe1d6d18.fd8e7"
162             ]
163         ]
164     },
165     {
166         "id": "4908b83c.f73098",
167         "type": "other",
168         "name": "other",
169         "xml": "<outcome value='Other'>\n",
170         "comments": "",
171         "outputs": 1,
172         "x": 862.857120513916,
173         "y": 499.99999809265137,
174         "z": "64e470a6.f1c2",
175         "wires": [
176             [
177                 "757e722e.e4749c"
178             ]
179         ]
180     },
181     {
182         "id": "757e722e.e4749c",
183         "type": "returnFailure",
184         "name": "return failure",
185         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find port-mirror-configuration ' + $tmp.pm.configuration-id`\" />\n",
186         "comments": "",
187         "x": 1377.1427993774414,
188         "y": 497.14286041259766,
189         "z": "64e470a6.f1c2",
190         "wires": []
191     },
192     {
193         "id": "58c32a6.c5959d4",
194         "type": "switchNode",
195         "name": "switch order-status == 'Active'",
196         "xml": "<switch test=\"`$mdsal-pmc.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status == 'Active'`\">\n",
197         "comments": "",
198         "outputs": 1,
199         "x": 490.00003814697266,
200         "y": 554.2856636047363,
201         "z": "64e470a6.f1c2",
202         "wires": [
203             [
204                 "d5ac79e0.1c9168"
205             ]
206         ]
207     },
208     {
209         "id": "fe1d6d18.fd8e7",
210         "type": "switchNode",
211         "name": "switch length == 1",
212         "xml": "<switch test='`$mdsal-pmc.port-mirror-configuration_length == 1`'>\n",
213         "comments": "",
214         "outputs": 1,
215         "x": 1044.2856826782227,
216         "y": 450.0000123977661,
217         "z": "64e470a6.f1c2",
218         "wires": [
219             [
220                 "a174e8a2.7a8d78"
221             ]
222         ]
223     },
224     {
225         "id": "a174e8a2.7a8d78",
226         "type": "outcomeFalse",
227         "name": "false",
228         "xml": "<outcome value='false'>\n",
229         "comments": "",
230         "outputs": 1,
231         "x": 1214.2857131958008,
232         "y": 450.00000381469727,
233         "z": "64e470a6.f1c2",
234         "wires": [
235             [
236                 "757e722e.e4749c"
237             ]
238         ]
239     },
240     {
241         "id": "d5ac79e0.1c9168",
242         "type": "outcomeFalse",
243         "name": "false",
244         "xml": "<outcome value='false'>\n",
245         "comments": "",
246         "outputs": 1,
247         "x": 718.5714492797852,
248         "y": 554.2857513427734,
249         "z": "64e470a6.f1c2",
250         "wires": [
251             [
252                 "11d549bd.b63176"
253             ]
254         ]
255     },
256     {
257         "id": "11d549bd.b63176",
258         "type": "returnFailure",
259         "name": "return failure",
260         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Order status is ' + $mdsal-pmc.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status + ' but must be Active'`\" />\n",
261         "comments": "",
262         "x": 880.0000381469727,
263         "y": 552.8571624755859,
264         "z": "64e470a6.f1c2",
265         "wires": []
266     }
267 ]