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-disable.json
1 [
2     {
3         "id": "afa5c42a.a2ebf8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 128.75,
8         "y": 86.25,
9         "z": "dca5409f.4b488",
10         "wires": [
11             [
12                 "cf1c9dc9.bb2d2"
13             ]
14         ]
15     },
16     {
17         "id": "cf1c9dc9.bb2d2",
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": 242.36902618408203,
26         "y": 126.48811340332031,
27         "z": "dca5409f.4b488",
28         "wires": [
29             [
30                 "6b44ec68.545204"
31             ]
32         ]
33     },
34     {
35         "id": "6b44ec68.545204",
36         "type": "method",
37         "name": "method port-mirror-topology-operation-disable",
38         "xml": "<method rpc='port-mirror-topology-operation-disable' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 240.17862701416016,
42         "y": 166.25,
43         "z": "dca5409f.4b488",
44         "wires": [
45             [
46                 "7aa285f3.503f3c"
47             ]
48         ]
49     },
50     {
51         "id": "de981556.6c92f8",
52         "type": "comment",
53         "name": "port-mirror-topology-operation-disable",
54         "info": "",
55         "comments": "",
56         "x": 523.094856262207,
57         "y": 33.83634376525879,
58         "z": "dca5409f.4b488",
59         "wires": []
60     },
61     {
62         "id": "7aa285f3.503f3c",
63         "type": "block",
64         "name": "block : atomic",
65         "xml": "<block atomic=\"true\">",
66         "atomic": "true",
67         "outputs": 1,
68         "x": 173.75,
69         "y": 765.5357189178467,
70         "z": "dca5409f.4b488",
71         "wires": [
72             [
73                 "5e62ea77.c8eff4",
74                 "1f8e4075.61402",
75                 "cc6aae5f.3a8c5",
76                 "186fa0f2.58675f",
77                 "81aa6fa5.1e0db",
78                 "3bcc9f6e.a7792",
79                 "c7696869.d71998",
80                 "2ba101b7.37177e",
81                 "303f390e.c7fa26",
82                 "3cd84440.1100cc",
83                 "8e3809f5.0badf8",
84                 "327c0b68.fb42d4"
85             ]
86         ]
87     },
88     {
89         "id": "5e62ea77.c8eff4",
90         "type": "returnSuccess",
91         "name": "return success",
92         "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='ack-final' value='Y' />",
93         "comments": "",
94         "x": 455.60711669921875,
95         "y": 1303.8689861297607,
96         "z": "dca5409f.4b488",
97         "wires": []
98     },
99     {
100         "id": "1f8e4075.61402",
101         "type": "set",
102         "name": "set tmp.configuration-id",
103         "xml": "<set>\n<parameter name='tmp.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n\n",
104         "comments": "",
105         "x": 481.5594940185547,
106         "y": 231.01191997528076,
107         "z": "dca5409f.4b488",
108         "wires": []
109     },
110     {
111         "id": "cc6aae5f.3a8c5",
112         "type": "execute",
113         "name": "execute readProperties",
114         "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",
115         "comments": "",
116         "outputs": 1,
117         "x": 483.2738037109375,
118         "y": 273.86901473999023,
119         "z": "dca5409f.4b488",
120         "wires": [
121             []
122         ]
123     },
124     {
125         "id": "186fa0f2.58675f",
126         "type": "execute",
127         "name": "generate port-mirror-configuration url",
128         "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.configuration-id`\"/>\n",
129         "comments": "",
130         "outputs": 1,
131         "x": 523.273811340332,
132         "y": 315.2975902557373,
133         "z": "dca5409f.4b488",
134         "wires": [
135             []
136         ]
137     },
138     {
139         "id": "81aa6fa5.1e0db",
140         "type": "execute",
141         "name": "execute RestApiCallNode - get port-mirror-configuration",
142         "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=\"pm-mdsal\" />\n\n",
143         "comments": "",
144         "outputs": 1,
145         "x": 581.8452758789062,
146         "y": 379.5833988189697,
147         "z": "dca5409f.4b488",
148         "wires": [
149             [
150                 "5160c826.6574f8",
151                 "58ec2f2e.df96f"
152             ]
153         ]
154     },
155     {
156         "id": "5160c826.6574f8",
157         "type": "success",
158         "name": "success",
159         "xml": "<outcome value='success'>\n",
160         "comments": "",
161         "outputs": 1,
162         "x": 879.9983978271484,
163         "y": 350.3912477493286,
164         "z": "dca5409f.4b488",
165         "wires": [
166             [
167                 "e5e068e4.dd8428"
168             ]
169         ]
170     },
171     {
172         "id": "58ec2f2e.df96f",
173         "type": "other",
174         "name": "other",
175         "xml": "<outcome value='Other'>\n",
176         "comments": "",
177         "outputs": 1,
178         "x": 877.5595359802246,
179         "y": 399.58334159851074,
180         "z": "dca5409f.4b488",
181         "wires": [
182             [
183                 "41f30bac.7dc954"
184             ]
185         ]
186     },
187     {
188         "id": "41f30bac.7dc954",
189         "type": "returnFailure",
190         "name": "return failure",
191         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find port-mirror-configuration ' + $tmp.configuration-id`\" />\n",
192         "comments": "",
193         "x": 1391.84521484375,
194         "y": 396.72620391845703,
195         "z": "dca5409f.4b488",
196         "wires": []
197     },
198     {
199         "id": "3bcc9f6e.a7792",
200         "type": "switchNode",
201         "name": "switch order-status == 'Active'",
202         "xml": "<switch test=\"`$pm-mdsal.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status == 'Active'`\">\n",
203         "comments": "",
204         "outputs": 1,
205         "x": 505.8928909301758,
206         "y": 503.3928031921387,
207         "z": "dca5409f.4b488",
208         "wires": [
209             [
210                 "3fc32962.070946"
211             ]
212         ]
213     },
214     {
215         "id": "e5e068e4.dd8428",
216         "type": "switchNode",
217         "name": "switch length == 1",
218         "xml": "<switch test='`$pm-mdsal.port-mirror-configuration_length == 1`'>\n",
219         "comments": "",
220         "outputs": 1,
221         "x": 1058.9880981445312,
222         "y": 349.5833559036255,
223         "z": "dca5409f.4b488",
224         "wires": [
225             [
226                 "f5f6996c.652fe8"
227             ]
228         ]
229     },
230     {
231         "id": "f5f6996c.652fe8",
232         "type": "outcomeFalse",
233         "name": "false",
234         "xml": "<outcome value='false'>\n",
235         "comments": "",
236         "outputs": 1,
237         "x": 1228.9881286621094,
238         "y": 349.58334732055664,
239         "z": "dca5409f.4b488",
240         "wires": [
241             [
242                 "41f30bac.7dc954"
243             ]
244         ]
245     },
246     {
247         "id": "3fc32962.070946",
248         "type": "outcomeFalse",
249         "name": "false",
250         "xml": "<outcome value='false'>\n",
251         "comments": "",
252         "outputs": 1,
253         "x": 734.4643020629883,
254         "y": 503.3928909301758,
255         "z": "dca5409f.4b488",
256         "wires": [
257             [
258                 "db0e50e6.2c8ce"
259             ]
260         ]
261     },
262     {
263         "id": "db0e50e6.2c8ce",
264         "type": "returnFailure",
265         "name": "return failure",
266         "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",
267         "comments": "",
268         "x": 895.8928909301758,
269         "y": 501.9643020629883,
270         "z": "dca5409f.4b488",
271         "wires": []
272     },
273     {
274         "id": "49639130.bcbb1",
275         "type": "comment",
276         "name": "rpc-port-mirror-1130",
277         "info": "",
278         "comments": "",
279         "x": 443.75,
280         "y": 560.2976331710815,
281         "z": "dca5409f.4b488",
282         "wires": []
283     },
284     {
285         "id": "5bedfddc.e597c4",
286         "type": "comment",
287         "name": "step 1 - call contrail to turn off packet mirroring",
288         "info": "",
289         "comments": "",
290         "x": 551.3690643310547,
291         "y": 758.869083404541,
292         "z": "dca5409f.4b488",
293         "wires": []
294     },
295     {
296         "id": "640a7569.398d7c",
297         "type": "comment",
298         "name": "step 2 - set is-port-mirroring in A&AI ",
299         "info": "",
300         "comments": "",
301         "x": 502.79759216308594,
302         "y": 1148.5834102630615,
303         "z": "dca5409f.4b488",
304         "wires": []
305     },
306     {
307         "id": "219abf57.0c159",
308         "type": "comment",
309         "name": "Find the source port",
310         "info": "",
311         "comments": "",
312         "x": 459.9404231480189,
313         "y": 601.7262674059186,
314         "z": "dca5409f.4b488",
315         "wires": []
316     },
317     {
318         "id": "c7696869.d71998",
319         "type": "for",
320         "name": "for each mapped source port",
321         "xml": "<for index='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",
322         "comments": "",
323         "outputs": 1,
324         "x": 504.2261505126953,
325         "y": 641.7262935638428,
326         "z": "dca5409f.4b488",
327         "wires": [
328             [
329                 "d3eaa14b.aea04"
330             ]
331         ]
332     },
333     {
334         "id": "d3eaa14b.aea04",
335         "type": "switchNode",
336         "name": "switch mapped source port id == input source port id",
337         "xml": "<switch test='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$idx].source-port-id\n  == $port-mirror-topology-operation-input.port-mirror-configuration-request-input.source-port.source-port-id`'>\n",
338         "comments": "",
339         "outputs": 1,
340         "x": 857.0833282470703,
341         "y": 640.2976245880127,
342         "z": "dca5409f.4b488",
343         "wires": [
344             [
345                 "c2e13495.7d0978"
346             ]
347         ]
348     },
349     {
350         "id": "c2e13495.7d0978",
351         "type": "outcomeTrue",
352         "name": "true",
353         "xml": "<outcome value='true'>\n",
354         "comments": "",
355         "outputs": 1,
356         "x": 1132.797565460205,
357         "y": 638.8691053390503,
358         "z": "dca5409f.4b488",
359         "wires": [
360             [
361                 "e115b87b.36f0f8"
362             ]
363         ]
364     },
365     {
366         "id": "640f5b27.a577f4",
367         "type": "set",
368         "name": "set src-idx",
369         "xml": "<set>\n<parameter name='src-idx' value='`$idx`' />\n",
370         "comments": "",
371         "x": 1482.797492980957,
372         "y": 614.5833559036255,
373         "z": "dca5409f.4b488",
374         "wires": []
375     },
376     {
377         "id": "e115b87b.36f0f8",
378         "type": "block",
379         "name": "block : atomic",
380         "xml": "<block atomic=\"true\">",
381         "atomic": "true",
382         "outputs": 1,
383         "x": 1285.6547088623047,
384         "y": 637.4405879974365,
385         "z": "dca5409f.4b488",
386         "wires": [
387             [
388                 "640f5b27.a577f4",
389                 "a7ee3026.a6e8"
390             ]
391         ]
392     },
393     {
394         "id": "a7ee3026.a6e8",
395         "type": "break",
396         "name": "break",
397         "xml": "<break>\n",
398         "comments": "",
399         "x": 1455.6546821594238,
400         "y": 660.2977313995361,
401         "z": "dca5409f.4b488",
402         "wires": []
403     },
404     {
405         "id": "2ba101b7.37177e",
406         "type": "switchNode",
407         "name": "switch src-idx",
408         "xml": "<switch test='`$src-idx`'>\n",
409         "comments": "",
410         "outputs": 1,
411         "x": 454.46424102783203,
412         "y": 708.8691101074219,
413         "z": "dca5409f.4b488",
414         "wires": [
415             [
416                 "58ac3aae.bc8044"
417             ]
418         ]
419     },
420     {
421         "id": "58ac3aae.bc8044",
422         "type": "other",
423         "name": "NULL",
424         "xml": "<outcome value=''>\n",
425         "comments": "",
426         "outputs": 1,
427         "x": 672.7975921630859,
428         "y": 707.4405879974365,
429         "z": "dca5409f.4b488",
430         "wires": [
431             [
432                 "d5822713.a71b88"
433             ]
434         ]
435     },
436     {
437         "id": "d5822713.a71b88",
438         "type": "returnFailure",
439         "name": "return failure",
440         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Unable to find source port ' + $port-mirror-topology-operation-input.port-mirror-configuration-request-input.source-port.source-port-id + ' in MD-SAL'`\" />\n",
441         "comments": "",
442         "x": 827.0832977294922,
443         "y": 706.011999130249,
444         "z": "dca5409f.4b488",
445         "wires": []
446     },
447     {
448         "id": "327c0b68.fb42d4",
449         "type": "execute",
450         "name": "execute ContrailAdaptor to disable port mirroring",
451         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='port-mirroring' />\n<parameter name='api-action' value='disable' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='display-name'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name`' />\n<parameter name='contrail-virtual-machine-interface-name'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name`' />\n<parameter name='contrail-virtual-machine-interface-id'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-id`' />\n<parameter name='default-domain' value='default-domain' />\n<parameter name='default-project'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant`' />\n<parameter name='traffic-direction' value='both' />\n<parameter name='analyzer-ip-address'\n  value='`$tmp.analyzer.ip-address`' />\n<parameter name='udp-port' value='8099' />\n<parameter name='routing-instance'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-network-fqdn`' />\n<parameter name='local-preference' value='1' />\n<parameter name='cloud-region-id'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-region-id`' />\n<parameter name='cloud-owner'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-owner`' />\n\n",
452         "comments": "",
453         "outputs": 1,
454         "x": 564.7978134155273,
455         "y": 1069.9178819656372,
456         "z": "dca5409f.4b488",
457         "wires": [
458             [
459                 "eaf862d4.043dd",
460                 "c50ee7c7.395c58"
461             ]
462         ]
463     },
464     {
465         "id": "eaf862d4.043dd",
466         "type": "failure",
467         "name": "failure",
468         "xml": "<outcome value='failure'>\n",
469         "comments": "",
470         "outputs": 1,
471         "x": 839.083438873291,
472         "y": 1095.6321649551392,
473         "z": "dca5409f.4b488",
474         "wires": [
475             [
476                 "b5b4127.7ba46f"
477             ]
478         ]
479     },
480     {
481         "id": "303f390e.c7fa26",
482         "type": "switchNode",
483         "name": "switch ipv4-address",
484         "xml": "<switch test='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-ip-addresses.ip-addresses.ipv4-address`'>\n",
485         "comments": "",
486         "outputs": 1,
487         "x": 471.94065856933594,
488         "y": 812.7750616073608,
489         "z": "dca5409f.4b488",
490         "wires": [
491             [
492                 "8298b662.2d9938",
493                 "87756d33.8ea47"
494             ]
495         ]
496     },
497     {
498         "id": "87756d33.8ea47",
499         "type": "other",
500         "name": "NULL",
501         "xml": "<outcome value=''>\n",
502         "comments": "",
503         "outputs": 1,
504         "x": 637.6548538208008,
505         "y": 854.2036333084106,
506         "z": "dca5409f.4b488",
507         "wires": [
508             [
509                 "1bac5e62.5c03a2"
510             ]
511         ]
512     },
513     {
514         "id": "8298b662.2d9938",
515         "type": "other",
516         "name": "other",
517         "xml": "<outcome value='Other'>\n",
518         "comments": "",
519         "outputs": 1,
520         "x": 640.5120010375977,
521         "y": 811.3465251922607,
522         "z": "dca5409f.4b488",
523         "wires": [
524             [
525                 "9156cd31.843db"
526             ]
527         ]
528     },
529     {
530         "id": "9156cd31.843db",
531         "type": "set",
532         "name": "set tmp.analyzer.ip-address",
533         "xml": "<set>\n<parameter name='tmp.analyzer.ip-address'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-ip-addresses.ip-addresses.ipv4-address`' />\n",
534         "comments": "",
535         "x": 831.9406890869141,
536         "y": 809.9179544448853,
537         "z": "dca5409f.4b488",
538         "wires": []
539     },
540     {
541         "id": "1bac5e62.5c03a2",
542         "type": "switchNode",
543         "name": "switch ipv6-address",
544         "xml": "<switch test='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-ip-addresses.ip-addresses.ipv6-address`'>\n",
545         "comments": "",
546         "outputs": 1,
547         "x": 809.0835189819336,
548         "y": 854.2035989761353,
549         "z": "dca5409f.4b488",
550         "wires": [
551             [
552                 "fa2aeb48.7c5db8",
553                 "b61120a5.93b57"
554             ]
555         ]
556     },
557     {
558         "id": "b61120a5.93b57",
559         "type": "other",
560         "name": "NULL",
561         "xml": "<outcome value=''>\n",
562         "comments": "",
563         "outputs": 1,
564         "x": 970.5121078491211,
565         "y": 897.0607767105103,
566         "z": "dca5409f.4b488",
567         "wires": [
568             [
569                 "9b289fea.447ed"
570             ]
571         ]
572     },
573     {
574         "id": "fa2aeb48.7c5db8",
575         "type": "other",
576         "name": "other",
577         "xml": "<outcome value='Other'>\n",
578         "comments": "",
579         "outputs": 1,
580         "x": 973.369255065918,
581         "y": 854.2036685943604,
582         "z": "dca5409f.4b488",
583         "wires": [
584             [
585                 "9a995b34.8ffdf8"
586             ]
587         ]
588     },
589     {
590         "id": "9a995b34.8ffdf8",
591         "type": "set",
592         "name": "set tmp.analyzer.ip-address",
593         "xml": "<set>\n<parameter name='tmp.analyzer.ip-address'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-ip-addresses.ip-addresses.ipv6-address`' />\n",
594         "comments": "",
595         "x": 1164.7979431152344,
596         "y": 852.7750978469849,
597         "z": "dca5409f.4b488",
598         "wires": []
599     },
600     {
601         "id": "9b289fea.447ed",
602         "type": "switchNode",
603         "name": "switch vipv4-address",
604         "xml": "<switch test='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-ip-addresses.ip-addresses.vipv4-address`'>\n",
605         "comments": "",
606         "outputs": 1,
607         "x": 1141.940773010254,
608         "y": 897.0607423782349,
609         "z": "dca5409f.4b488",
610         "wires": [
611             [
612                 "b626a219.807f2",
613                 "62515cbb.2125a4"
614             ]
615         ]
616     },
617     {
618         "id": "62515cbb.2125a4",
619         "type": "other",
620         "name": "NULL",
621         "xml": "<outcome value=''>\n",
622         "comments": "",
623         "outputs": 1,
624         "x": 1304.797752380371,
625         "y": 937.0607767105103,
626         "z": "dca5409f.4b488",
627         "wires": [
628             [
629                 "2e6d6d0b.171e12"
630             ]
631         ]
632     },
633     {
634         "id": "b626a219.807f2",
635         "type": "other",
636         "name": "other",
637         "xml": "<outcome value='Other'>\n",
638         "comments": "",
639         "outputs": 1,
640         "x": 1306.2263145446777,
641         "y": 895.6323432922363,
642         "z": "dca5409f.4b488",
643         "wires": [
644             [
645                 "71b7c0e4.601d3"
646             ]
647         ]
648     },
649     {
650         "id": "71b7c0e4.601d3",
651         "type": "set",
652         "name": "set tmp.analyzer.ip-address",
653         "xml": "<set>\n<parameter name='tmp.analyzer.ip-address'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-ip-addresses.ip-addresses.vipv4-address`' />\n",
654         "comments": "",
655         "x": 1499.0835876464844,
656         "y": 892.7750978469849,
657         "z": "dca5409f.4b488",
658         "wires": []
659     },
660     {
661         "id": "2e6d6d0b.171e12",
662         "type": "switchNode",
663         "name": "switch vipv6-address",
664         "xml": "<switch test='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-ip-addresses.ip-addresses.vipv6-address`'>\n",
665         "comments": "",
666         "outputs": 1,
667         "x": 1476.226417541504,
668         "y": 937.0607423782349,
669         "z": "dca5409f.4b488",
670         "wires": [
671             [
672                 "c630f236.09afb",
673                 "d62a09ce.06cd18"
674             ]
675         ]
676     },
677     {
678         "id": "d62a09ce.06cd18",
679         "type": "other",
680         "name": "NULL",
681         "xml": "<outcome value=''>\n",
682         "comments": "",
683         "outputs": 1,
684         "x": 1643.369285583496,
685         "y": 978.4893655776978,
686         "z": "dca5409f.4b488",
687         "wires": [
688             [
689                 "cf52a216.7bcba"
690             ]
691         ]
692     },
693     {
694         "id": "c630f236.09afb",
695         "type": "other",
696         "name": "other",
697         "xml": "<outcome value='Other'>\n",
698         "comments": "",
699         "outputs": 1,
700         "x": 1644.7978477478027,
701         "y": 937.0609321594238,
702         "z": "dca5409f.4b488",
703         "wires": [
704             [
705                 "a5b80d6a.ee8af"
706             ]
707         ]
708     },
709     {
710         "id": "a5b80d6a.ee8af",
711         "type": "set",
712         "name": "set tmp.analyzer.ip-address",
713         "xml": "<set>\n<parameter name='tmp.analyzer.ip-address'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-ip-addresses.ip-addresses.vipv6-address`' />\n",
714         "comments": "",
715         "x": 1837.6551208496094,
716         "y": 934.2036867141724,
717         "z": "dca5409f.4b488",
718         "wires": []
719     },
720     {
721         "id": "c50ee7c7.395c58",
722         "type": "success",
723         "name": "success",
724         "xml": "<outcome value='success'>\n",
725         "comments": "",
726         "outputs": 1,
727         "x": 841.940616607666,
728         "y": 1048.489239692688,
729         "z": "dca5409f.4b488",
730         "wires": [
731             [
732                 "e0872973.76a968"
733             ]
734         ]
735     },
736     {
737         "id": "e0872973.76a968",
738         "type": "set",
739         "name": "set contrail-set[]",
740         "xml": "<set>\n<parameter name='contrail-set[$src-idx]' value='true' />\n",
741         "comments": "",
742         "x": 997.6548233032227,
743         "y": 1047.0607719421387,
744         "z": "dca5409f.4b488",
745         "wires": []
746     },
747     {
748         "id": "3cd84440.1100cc",
749         "type": "save",
750         "name": "update l-interface object",
751         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"l-interface\"\n   key=\"cloud-region.cloud-region-id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-region-id\n     AND cloud-region.cloud-owner = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-owner\n     AND tenant.tenant-id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant-id\n     AND vserver.vserver-id = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-vserver-id\n     AND l-interface.interface-name = $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"is-port-mirrored\" value=\"false\" />",
752         "comments": "",
753         "outputs": 1,
754         "x": 489.3213806152344,
755         "y": 1215.5833673477173,
756         "z": "dca5409f.4b488",
757         "wires": [
758             [
759                 "8a4455b4.e26628",
760                 "6a76abbb.425c24"
761             ]
762         ]
763     },
764     {
765         "id": "8a4455b4.e26628",
766         "type": "failure",
767         "name": "failure",
768         "xml": "<outcome value='failure'>\n",
769         "comments": "",
770         "outputs": 1,
771         "x": 692.0119781494141,
772         "y": 1241.3455305099487,
773         "z": "dca5409f.4b488",
774         "wires": [
775             [
776                 "ae976edd.7993e"
777             ]
778         ]
779     },
780     {
781         "id": "6a76abbb.425c24",
782         "type": "not-found",
783         "name": "not-found",
784         "xml": "<outcome value='not-found'>\n",
785         "comments": "",
786         "outputs": 1,
787         "x": 700.5834274291992,
788         "y": 1196.3457250595093,
789         "z": "dca5409f.4b488",
790         "wires": [
791             [
792                 "ae976edd.7993e"
793             ]
794         ]
795     },
796     {
797         "id": "cf52a216.7bcba",
798         "type": "returnFailure",
799         "name": "return failure",
800         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'No dest addresses stored for source port ' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name`\" />\n",
801         "comments": "",
802         "x": 1787.3213348388672,
803         "y": 981.250036239624,
804         "z": "dca5409f.4b488",
805         "wires": []
806     },
807     {
808         "id": "b5b4127.7ba46f",
809         "type": "returnFailure",
810         "name": "return failure",
811         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
812         "comments": "",
813         "x": 985.6546478271484,
814         "y": 1094.5834102630615,
815         "z": "dca5409f.4b488",
816         "wires": []
817     },
818     {
819         "id": "ae976edd.7993e",
820         "type": "returnFailure",
821         "name": "return failure",
822         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update l-interface object in AAI for interface ' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name`\" />\n",
823         "comments": "",
824         "x": 855.6546478271484,
825         "y": 1217.9166622161865,
826         "z": "dca5409f.4b488",
827         "wires": []
828     },
829     {
830         "id": "8e3809f5.0badf8",
831         "type": "set",
832         "name": "set pm",
833         "xml": "<set>\n<parameter name='pm.configuration-id' value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.' value='`$pm-mdsal.port-mirror-configuration[0].configuration-data.`' />\n",
834         "comments": "",
835         "x": 432.55950927734375,
836         "y": 439.1071090698242,
837         "z": "dca5409f.4b488",
838         "wires": []
839     }
840 ]