Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_port-mirror-get-policy.json
1 [
2     {
3         "id": "7c240df1.6781c4",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 110,
8         "y": 91.42857360839844,
9         "z": "aabede20.89a51",
10         "wires": [
11             [
12                 "dedc83da.c4349"
13             ]
14         ]
15     },
16     {
17         "id": "dedc83da.c4349",
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": 223.85713577270508,
26         "y": 131.23811149597168,
27         "z": "aabede20.89a51",
28         "wires": [
29             [
30                 "dfb24d0c.2db3f"
31             ]
32         ]
33     },
34     {
35         "id": "dfb24d0c.2db3f",
36         "type": "method",
37         "name": "method port-mirror-get-policy",
38         "xml": "<method rpc='port-mirror-get-policy' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 172.42862701416016,
42         "y": 172.42857360839844,
43         "z": "aabede20.89a51",
44         "wires": [
45             [
46                 "4883d77b.032d28"
47             ]
48         ]
49     },
50     {
51         "id": "684506ac.6795f8",
52         "type": "comment",
53         "name": "port-mirror-get-policy",
54         "info": "",
55         "comments": "",
56         "x": 515.3210983276367,
57         "y": 34.40427303314209,
58         "z": "aabede20.89a51",
59         "wires": []
60     },
61     {
62         "id": "4883d77b.032d28",
63         "type": "block",
64         "name": "block : atomic",
65         "xml": "<block atomic=\"true\">",
66         "atomic": "true",
67         "outputs": 1,
68         "x": 153.3333511352539,
69         "y": 478.09523010253906,
70         "z": "aabede20.89a51",
71         "wires": [
72             [
73                 "f7d9a896.cf5de8",
74                 "fb8923b4.bd56c",
75                 "7801d204.937cbc",
76                 "8913e0a1.253a",
77                 "47b76e8a.2929c",
78                 "2c07a59d.60025a",
79                 "aa12e112.2f8bd"
80             ]
81         ]
82     },
83     {
84         "id": "fb8923b4.bd56c",
85         "type": "execute",
86         "name": "RestapiCallnode getConfig",
87         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.pm.getpolicy.templatefile`\" />\n    <parameter name='restapiUrl' value=\"`$prop.policy-manager.url + '/pdp/api/getConfig'`\" />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name='responsePrefix' value=\"policy\" />    \n    <parameter name='customHttpHeaders'\n      value=\"`'Authorization=Basic ' + $prop.policy-manager.authorization + ',ClientAuth=Basic ' + $prop.policy-manager.clientauth + ',Environment=' + $prop.policy-manager.environment `\" />\n",
88         "comments": "",
89         "outputs": 1,
90         "x": 446.66664123535156,
91         "y": 298.09522438049316,
92         "z": "aabede20.89a51",
93         "wires": [
94             [
95                 "827dce65.48224",
96                 "9effab4f.242cd8"
97             ]
98         ]
99     },
100     {
101         "id": "827dce65.48224",
102         "type": "success",
103         "name": "success",
104         "xml": "<outcome value='success'>\n",
105         "comments": "",
106         "outputs": 1,
107         "x": 653.8094863891602,
108         "y": 275.2381076812744,
109         "z": "aabede20.89a51",
110         "wires": [
111             [
112                 "fb7ccb16.ee0298"
113             ]
114         ]
115     },
116     {
117         "id": "fb7ccb16.ee0298",
118         "type": "block",
119         "name": "block: atomic",
120         "xml": "<block atomic=\"true\">\n",
121         "atomic": "false",
122         "comments": "",
123         "outputs": 1,
124         "x": 817.523811340332,
125         "y": 275.1665835380554,
126         "z": "aabede20.89a51",
127         "wires": [
128             []
129         ]
130     },
131     {
132         "id": "9effab4f.242cd8",
133         "type": "other",
134         "name": "other",
135         "xml": "<outcome value='Other'>\n",
136         "comments": "",
137         "outputs": 1,
138         "x": 649.9470252990723,
139         "y": 323.16132068634033,
140         "z": "aabede20.89a51",
141         "wires": [
142             [
143                 "17302ca7.ec4b13"
144             ]
145         ]
146     },
147     {
148         "id": "17302ca7.ec4b13",
149         "type": "returnFailure",
150         "name": "return failure",
151         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to get policy from Policy Manager' />\n",
152         "comments": "",
153         "x": 814.3809089660645,
154         "y": 322.8095302581787,
155         "z": "aabede20.89a51",
156         "wires": []
157     },
158     {
159         "id": "7801d204.937cbc",
160         "type": "execute",
161         "name": "convert json config to variables",
162         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx' >\n    <parameter name='source' value=\"policy.config\" />\n    <parameter name='outputPath' value=\"tmp.config-ctx\" />\n    <parameter name='isEscaped' value='false' />\n",
163         "comments": "",
164         "outputs": 1,
165         "x": 453.0951156616211,
166         "y": 397.38094329833984,
167         "z": "aabede20.89a51",
168         "wires": [
169             [
170                 "849bff9a.446d3",
171                 "c6ca48ae.e5cc58"
172             ]
173         ]
174     },
175     {
176         "id": "849bff9a.446d3",
177         "type": "success",
178         "name": "success",
179         "xml": "<outcome value='success'>\n",
180         "comments": "",
181         "outputs": 1,
182         "x": 660.2379608154297,
183         "y": 374.5238265991211,
184         "z": "aabede20.89a51",
185         "wires": [
186             [
187                 "a0c3cf22.714c7"
188             ]
189         ]
190     },
191     {
192         "id": "a0c3cf22.714c7",
193         "type": "block",
194         "name": "block: atomic",
195         "xml": "<block atomic=\"true\">\n",
196         "atomic": "false",
197         "comments": "",
198         "outputs": 1,
199         "x": 823.9522857666016,
200         "y": 374.4523024559021,
201         "z": "aabede20.89a51",
202         "wires": [
203             []
204         ]
205     },
206     {
207         "id": "c6ca48ae.e5cc58",
208         "type": "other",
209         "name": "other",
210         "xml": "<outcome value='Other'>\n",
211         "comments": "",
212         "outputs": 1,
213         "x": 656.3754997253418,
214         "y": 422.447039604187,
215         "z": "aabede20.89a51",
216         "wires": [
217             [
218                 "e9ddad6b.d165b"
219             ]
220         ]
221     },
222     {
223         "id": "e9ddad6b.d165b",
224         "type": "returnFailure",
225         "name": "return failure",
226         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to convert config variable from PolicyManager' />\n",
227         "comments": "",
228         "x": 820.809383392334,
229         "y": 422.0952491760254,
230         "z": "aabede20.89a51",
231         "wires": []
232     },
233     {
234         "id": "f7d9a896.cf5de8",
235         "type": "set",
236         "name": "set tmp.policy-name",
237         "xml": "<set>\n<parameter name='tmp.policy-name' value='`$db.cap[0].policy-name`' />\n",
238         "comments": "",
239         "x": 426.66667429606105,
240         "y": 223.09524281819654,
241         "z": "aabede20.89a51",
242         "wires": []
243     },
244     {
245         "id": "f823c40b.99b648",
246         "type": "set",
247         "name": "set tmp.dest-p-interface from productionContext",
248         "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.productionContext`' />\n",
249         "comments": "",
250         "x": 1268.750015258789,
251         "y": 578.4285373687744,
252         "z": "aabede20.89a51",
253         "wires": []
254     },
255     {
256         "id": "2c07a59d.60025a",
257         "type": "returnSuccess",
258         "name": "return success",
259         "xml": "<return status='success'>\n",
260         "comments": "",
261         "x": 407.5000991821289,
262         "y": 850.1786298751831,
263         "z": "aabede20.89a51",
264         "wires": []
265     },
266     {
267         "id": "8913e0a1.253a",
268         "type": "switchNode",
269         "name": "switch lc-tenant-context",
270         "xml": "<switch test='`$tmp.lc-tenant-context`'>\n",
271         "comments": "",
272         "outputs": 1,
273         "x": 434.166690826416,
274         "y": 574.7618494033813,
275         "z": "aabede20.89a51",
276         "wires": [
277             [
278                 "883f5bc7.851688",
279                 "89d18dfc.fe3f9"
280             ]
281         ]
282     },
283     {
284         "id": "c7d91e4f.cd2b2",
285         "type": "set",
286         "name": "set tmp.dest-p-interface from testContext",
287         "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.testContext`' />\n",
288         "comments": "",
289         "x": 1605.833396911621,
290         "y": 622.4285373687744,
291         "z": "aabede20.89a51",
292         "wires": []
293     },
294     {
295         "id": "6f1dcecb.0bf3e",
296         "type": "set",
297         "name": "set tmp.dest-p-interface from developmentContext",
298         "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.developmentContext`' />\n",
299         "comments": "",
300         "x": 1999.1666564941406,
301         "y": 663.9285373687744,
302         "z": "aabede20.89a51",
303         "wires": []
304     },
305     {
306         "id": "d0335872.4a8e58",
307         "type": "set",
308         "name": "set tmp.dest-p-interface",
309         "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.defaultContext`' />\n",
310         "comments": "",
311         "x": 2283.333282470703,
312         "y": 703.9286003112793,
313         "z": "aabede20.89a51",
314         "wires": []
315     },
316     {
317         "id": "e3391f9f.5f004",
318         "type": "returnFailure",
319         "name": "return failure",
320         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Unexpected tenant-context value of ' + $tmp.tenant-context`\" />\n",
321         "comments": "",
322         "x": 2252.0834007263184,
323         "y": 768.9285402297974,
324         "z": "aabede20.89a51",
325         "wires": []
326     },
327     {
328         "id": "47b76e8a.2929c",
329         "type": "switchNode",
330         "name": "switch tmp.dest-p-interface",
331         "xml": "<switch test='`$tmp.dest-p-interface`'>\n",
332         "comments": "",
333         "outputs": 1,
334         "x": 447.50000762939453,
335         "y": 791.8453493118286,
336         "z": "aabede20.89a51",
337         "wires": [
338             [
339                 "fe95b2b0.257d8"
340             ]
341         ]
342     },
343     {
344         "id": "fe95b2b0.257d8",
345         "type": "other",
346         "name": "NULL",
347         "xml": "<outcome value=''>\n",
348         "comments": "",
349         "outputs": 1,
350         "x": 647.5000228881836,
351         "y": 791.8452577590942,
352         "z": "aabede20.89a51",
353         "wires": [
354             [
355                 "a6b2a82a.01ec88"
356             ]
357         ]
358     },
359     {
360         "id": "a6b2a82a.01ec88",
361         "type": "returnFailure",
362         "name": "return failure",
363         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Unable to find p-interface in policy ' + tmp.policy-name`\" />\n",
364         "comments": "",
365         "x": 807.4999542236328,
366         "y": 791.8452672958374,
367         "z": "aabede20.89a51",
368         "wires": []
369     },
370     {
371         "id": "883f5bc7.851688",
372         "type": "other",
373         "name": "NULL",
374         "xml": "<outcome value=''>\n",
375         "comments": "",
376         "outputs": 1,
377         "x": 638.7500076293945,
378         "y": 533.9286003112793,
379         "z": "aabede20.89a51",
380         "wires": [
381             [
382                 "5b6d06f7.787ce8"
383             ]
384         ]
385     },
386     {
387         "id": "5b6d06f7.787ce8",
388         "type": "set",
389         "name": "set tmp.dest-p-interface from defaultContext",
390         "xml": "<set>\n<parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.defaultContext`' />\n",
391         "comments": "",
392         "x": 881.25,
393         "y": 533.9285869598389,
394         "z": "aabede20.89a51",
395         "wires": []
396     },
397     {
398         "id": "aa12e112.2f8bd",
399         "type": "execute",
400         "name": "convert tenant-context to lower case",
401         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"toLower\">\n\t<parameter name=\"source\" value=\"`$tmp.tenant-context`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.lc-tenant-context\" />\n",
402         "comments": "",
403         "outputs": 1,
404         "x": 470.00000762939453,
405         "y": 475.00000762939453,
406         "z": "aabede20.89a51",
407         "wires": [
408             []
409         ]
410     },
411     {
412         "id": "89d18dfc.fe3f9",
413         "type": "other",
414         "name": "other",
415         "xml": "<outcome value='Other'>\n",
416         "comments": "",
417         "outputs": 1,
418         "x": 640.0000076293945,
419         "y": 617.5000095367432,
420         "z": "aabede20.89a51",
421         "wires": [
422             [
423                 "d320e4c3.2e4e58"
424             ]
425         ]
426     },
427     {
428         "id": "d320e4c3.2e4e58",
429         "type": "execute",
430         "name": "lc-tenant-contains 'prod'",
431         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"contains\" emitsOutcome='true'>\n\t<parameter name=\"source\" value=\"`$tmp.lc-tenant-context`\" />\n\t<parameter name=\"target\" value=\"prod\" />\n",
432         "comments": "",
433         "outputs": 1,
434         "x": 818.75,
435         "y": 617.5,
436         "z": "aabede20.89a51",
437         "wires": [
438             [
439                 "92d9b5db.979da8",
440                 "a5418501.6535b8"
441             ]
442         ]
443     },
444     {
445         "id": "92d9b5db.979da8",
446         "type": "outcomeTrue",
447         "name": "true",
448         "xml": "<outcome value='true'>\n",
449         "comments": "",
450         "outputs": 1,
451         "x": 1012.5,
452         "y": 578.75,
453         "z": "aabede20.89a51",
454         "wires": [
455             [
456                 "f823c40b.99b648"
457             ]
458         ]
459     },
460     {
461         "id": "a5418501.6535b8",
462         "type": "other",
463         "name": "other",
464         "xml": "<outcome value='Other'>\n",
465         "comments": "",
466         "outputs": 1,
467         "x": 1012.5000152587891,
468         "y": 657.5000095367432,
469         "z": "aabede20.89a51",
470         "wires": [
471             [
472                 "21ec97e6.1cc748"
473             ]
474         ]
475     },
476     {
477         "id": "21ec97e6.1cc748",
478         "type": "execute",
479         "name": "lc-tenant-contains 'test'",
480         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"contains\" emitsOutcome='true'>\n\t<parameter name=\"source\" value=\"`$tmp.lc-tenant-context`\" />\n\t<parameter name=\"target\" value=\"test\" />\n",
481         "comments": "",
482         "outputs": 1,
483         "x": 1192.750015258789,
484         "y": 657.5000095367432,
485         "z": "aabede20.89a51",
486         "wires": [
487             [
488                 "b12ce223.87118",
489                 "17e1a4f2.79a74b"
490             ]
491         ]
492     },
493     {
494         "id": "b12ce223.87118",
495         "type": "outcomeTrue",
496         "name": "true",
497         "xml": "<outcome value='true'>\n",
498         "comments": "",
499         "outputs": 1,
500         "x": 1373.75,
501         "y": 622.5,
502         "z": "aabede20.89a51",
503         "wires": [
504             [
505                 "c7d91e4f.cd2b2"
506             ]
507         ]
508     },
509     {
510         "id": "17e1a4f2.79a74b",
511         "type": "other",
512         "name": "other",
513         "xml": "<outcome value='Other'>\n",
514         "comments": "",
515         "outputs": 1,
516         "x": 1375.0000190734863,
517         "y": 701.2500095367432,
518         "z": "aabede20.89a51",
519         "wires": [
520             [
521                 "db100bb2.6b8818"
522             ]
523         ]
524     },
525     {
526         "id": "db100bb2.6b8818",
527         "type": "execute",
528         "name": "lc-tenant-contains 'dev'",
529         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"contains\" emitsOutcome='true'>\n\t<parameter name=\"source\" value=\"`$tmp.lc-tenant-context`\" />\n\t<parameter name=\"target\" value=\"dev\" />\n",
530         "comments": "",
531         "outputs": 1,
532         "x": 1550.666618347168,
533         "y": 701.3214712142944,
534         "z": "aabede20.89a51",
535         "wires": [
536             [
537                 "6c48c803.9e2048",
538                 "b666f52e.6438e8"
539             ]
540         ]
541     },
542     {
543         "id": "6c48c803.9e2048",
544         "type": "outcomeTrue",
545         "name": "true",
546         "xml": "<outcome value='true'>\n",
547         "comments": "",
548         "outputs": 1,
549         "x": 1731.666603088379,
550         "y": 665.0714626312256,
551         "z": "aabede20.89a51",
552         "wires": [
553             [
554                 "6f1dcecb.0bf3e"
555             ]
556         ]
557     },
558     {
559         "id": "b666f52e.6438e8",
560         "type": "other",
561         "name": "other",
562         "xml": "<outcome value='Other'>\n",
563         "comments": "",
564         "outputs": 1,
565         "x": 1732.9166526794434,
566         "y": 740.0714836120605,
567         "z": "aabede20.89a51",
568         "wires": [
569             [
570                 "b7ae12df.bfc5b"
571             ]
572         ]
573     },
574     {
575         "id": "b7ae12df.bfc5b",
576         "type": "execute",
577         "name": "lc-tenant-contains 'default'",
578         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"contains\" emitsOutcome='true'>\n\t<parameter name=\"source\" value=\"`$tmp.lc-tenant-context`\" />\n\t<parameter name=\"target\" value=\"default\" />\n",
579         "comments": "",
580         "outputs": 1,
581         "x": 1915,
582         "y": 737.5,
583         "z": "aabede20.89a51",
584         "wires": [
585             [
586                 "d449adab.fe626",
587                 "e9137b95.e207f8"
588             ]
589         ]
590     },
591     {
592         "id": "d449adab.fe626",
593         "type": "outcomeTrue",
594         "name": "true",
595         "xml": "<outcome value='true'>\n",
596         "comments": "",
597         "outputs": 1,
598         "x": 2104.7499809265137,
599         "y": 706.2499914169312,
600         "z": "aabede20.89a51",
601         "wires": [
602             [
603                 "d0335872.4a8e58"
604             ]
605         ]
606     },
607     {
608         "id": "e9137b95.e207f8",
609         "type": "other",
610         "name": "other",
611         "xml": "<outcome value='Other'>\n",
612         "comments": "",
613         "outputs": 1,
614         "x": 2103.4999961853027,
615         "y": 771.2500009536743,
616         "z": "aabede20.89a51",
617         "wires": [
618             [
619                 "e3391f9f.5f004"
620             ]
621         ]
622     }
623 ]