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-enable.json
1 [
2     {
3         "id": "5adde416.25d82c",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 151.25,
8         "y": 82.5,
9         "z": "58cb31c4.064af",
10         "wires": [
11             [
12                 "f0d6c1e7.e9754"
13             ]
14         ]
15     },
16     {
17         "id": "f0d6c1e7.e9754",
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": 264.86902618408203,
26         "y": 122.73811340332031,
27         "z": "58cb31c4.064af",
28         "wires": [
29             [
30                 "1bb8c706.86cf19"
31             ]
32         ]
33     },
34     {
35         "id": "1bb8c706.86cf19",
36         "type": "method",
37         "name": "method port-mirror-topology-operation-enable",
38         "xml": "<method rpc='port-mirror-topology-operation-enable' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 262.67862701416016,
42         "y": 162.5,
43         "z": "58cb31c4.064af",
44         "wires": [
45             [
46                 "3f0e699d.ee6b26"
47             ]
48         ]
49     },
50     {
51         "id": "ca18bf42.ec464",
52         "type": "comment",
53         "name": "port-mirror-topology-operation-enable",
54         "info": "",
55         "comments": "",
56         "x": 545.594856262207,
57         "y": 30.08634376525879,
58         "z": "58cb31c4.064af",
59         "wires": []
60     },
61     {
62         "id": "3f0e699d.ee6b26",
63         "type": "block",
64         "name": "block : atomic",
65         "xml": "<block atomic=\"true\">",
66         "atomic": "true",
67         "outputs": 1,
68         "x": 171.25,
69         "y": 838.7857360839844,
70         "z": "58cb31c4.064af",
71         "wires": [
72             [
73                 "619ea22e.2d4c6c",
74                 "220efff8.59bd1",
75                 "e9a1e227.a59d4",
76                 "9e05525a.a9d25",
77                 "ec899d65.1b6fe",
78                 "1136c5cf.986f4a",
79                 "15dfeaaf.517f25",
80                 "2719e30.6219c1e",
81                 "342ea105.23807e",
82                 "804aef34.90cfa",
83                 "baf0ce69.2f35f",
84                 "32680418.d56afc",
85                 "bfcb7fe0.37cd9"
86             ]
87         ]
88     },
89     {
90         "id": "619ea22e.2d4c6c",
91         "type": "returnSuccess",
92         "name": "return success",
93         "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='ack-final' value='Y' />",
94         "comments": "",
95         "x": 473.44041442871094,
96         "y": 1300.4524230957031,
97         "z": "58cb31c4.064af",
98         "wires": []
99     },
100     {
101         "id": "220efff8.59bd1",
102         "type": "set",
103         "name": "set tmp.configuration-id",
104         "xml": "<set>\n<parameter name='tmp.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n\n",
105         "comments": "",
106         "x": 507.3928527832031,
107         "y": 247.26190280914307,
108         "z": "58cb31c4.064af",
109         "wires": []
110     },
111     {
112         "id": "e9a1e227.a59d4",
113         "type": "execute",
114         "name": "execute readProperties",
115         "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",
116         "comments": "",
117         "outputs": 1,
118         "x": 507.44049072265625,
119         "y": 291.7856664657593,
120         "z": "58cb31c4.064af",
121         "wires": [
122             []
123         ]
124     },
125     {
126         "id": "9e05525a.a9d25",
127         "type": "execute",
128         "name": "generate port-mirror-configuration url",
129         "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",
130         "comments": "",
131         "outputs": 1,
132         "x": 547.4404983520508,
133         "y": 333.21424198150635,
134         "z": "58cb31c4.064af",
135         "wires": [
136             []
137         ]
138     },
139     {
140         "id": "ec899d65.1b6fe",
141         "type": "execute",
142         "name": "execute RestApiCallNode - get port-mirror-configuration",
143         "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",
144         "comments": "",
145         "outputs": 1,
146         "x": 606.011962890625,
147         "y": 397.50005054473877,
148         "z": "58cb31c4.064af",
149         "wires": [
150             [
151                 "a3fb8257.281cc",
152                 "1dbed5b9.b3c47a"
153             ]
154         ]
155     },
156     {
157         "id": "a3fb8257.281cc",
158         "type": "success",
159         "name": "success",
160         "xml": "<outcome value='success'>\n",
161         "comments": "",
162         "outputs": 1,
163         "x": 904.1650848388672,
164         "y": 368.30789947509766,
165         "z": "58cb31c4.064af",
166         "wires": [
167             [
168                 "13e2119a.dafb2e"
169             ]
170         ]
171     },
172     {
173         "id": "1dbed5b9.b3c47a",
174         "type": "other",
175         "name": "other",
176         "xml": "<outcome value='Other'>\n",
177         "comments": "",
178         "outputs": 1,
179         "x": 901.7262229919434,
180         "y": 417.4999933242798,
181         "z": "58cb31c4.064af",
182         "wires": [
183             [
184                 "500538ee.2c9348"
185             ]
186         ]
187     },
188     {
189         "id": "500538ee.2c9348",
190         "type": "returnFailure",
191         "name": "return failure",
192         "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",
193         "comments": "",
194         "x": 1416.0119018554688,
195         "y": 414.6428556442261,
196         "z": "58cb31c4.064af",
197         "wires": []
198     },
199     {
200         "id": "1136c5cf.986f4a",
201         "type": "switchNode",
202         "name": "switch order-status == 'Active'",
203         "xml": "<switch test=\"`$pm-mdsal.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status == 'Active'`\">\n",
204         "comments": "",
205         "outputs": 1,
206         "x": 525.5357437133789,
207         "y": 566.7856979370117,
208         "z": "58cb31c4.064af",
209         "wires": [
210             [
211                 "9f9c8654.9f2f48"
212             ]
213         ]
214     },
215     {
216         "id": "13e2119a.dafb2e",
217         "type": "switchNode",
218         "name": "switch length == 1",
219         "xml": "<switch test='`$pm-mdsal.port-mirror-configuration_length == 1`'>\n",
220         "comments": "",
221         "outputs": 1,
222         "x": 1083.15478515625,
223         "y": 367.50000762939453,
224         "z": "58cb31c4.064af",
225         "wires": [
226             [
227                 "aaef652d.b8a2b8"
228             ]
229         ]
230     },
231     {
232         "id": "aaef652d.b8a2b8",
233         "type": "outcomeFalse",
234         "name": "false",
235         "xml": "<outcome value='false'>\n",
236         "comments": "",
237         "outputs": 1,
238         "x": 1253.1548156738281,
239         "y": 367.4999990463257,
240         "z": "58cb31c4.064af",
241         "wires": [
242             [
243                 "500538ee.2c9348"
244             ]
245         ]
246     },
247     {
248         "id": "9f9c8654.9f2f48",
249         "type": "outcomeFalse",
250         "name": "false",
251         "xml": "<outcome value='false'>\n",
252         "comments": "",
253         "outputs": 1,
254         "x": 754.1071548461914,
255         "y": 566.7857856750488,
256         "z": "58cb31c4.064af",
257         "wires": [
258             [
259                 "eeb6441b.99eeb8"
260             ]
261         ]
262     },
263     {
264         "id": "eeb6441b.99eeb8",
265         "type": "returnFailure",
266         "name": "return failure",
267         "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",
268         "comments": "",
269         "x": 915.5357437133789,
270         "y": 565.3571968078613,
271         "z": "58cb31c4.064af",
272         "wires": []
273     },
274     {
275         "id": "71c64fbf.2aa49",
276         "type": "comment",
277         "name": "rpc-port-mirror-1140",
278         "info": "",
279         "comments": "",
280         "x": 466.9642769949776,
281         "y": 618.2142756325857,
282         "z": "58cb31c4.064af",
283         "wires": []
284     },
285     {
286         "id": "3cb4a473.b4c24c",
287         "type": "comment",
288         "name": "step 1 - call contrail to turn on packet mirroring",
289         "info": "",
290         "comments": "",
291         "x": 569.8214721679688,
292         "y": 812.4998941421509,
293         "z": "58cb31c4.064af",
294         "wires": []
295     },
296     {
297         "id": "76580da3.d4bdd4",
298         "type": "comment",
299         "name": "step 2 - set is-port-mirroring in A&AI ",
300         "info": "",
301         "comments": "",
302         "x": 519.8214111328125,
303         "y": 1176.4999980926514,
304         "z": "58cb31c4.064af",
305         "wires": []
306     },
307     {
308         "id": "96ce9bb9.e4f948",
309         "type": "comment",
310         "name": "Find the source port",
311         "info": "",
312         "comments": "",
313         "x": 482.67856706891735,
314         "y": 663.9286046709333,
315         "z": "58cb31c4.064af",
316         "wires": []
317     },
318     {
319         "id": "15dfeaaf.517f25",
320         "type": "for",
321         "name": "for each mapped source port",
322         "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",
323         "comments": "",
324         "outputs": 1,
325         "x": 526.9642944335938,
326         "y": 703.9286308288574,
327         "z": "58cb31c4.064af",
328         "wires": [
329             [
330                 "6cf3769.0801388"
331             ]
332         ]
333     },
334     {
335         "id": "6cf3769.0801388",
336         "type": "switchNode",
337         "name": "switch mapped source port id == input source port id",
338         "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",
339         "comments": "",
340         "outputs": 1,
341         "x": 879.8214721679688,
342         "y": 702.4999618530273,
343         "z": "58cb31c4.064af",
344         "wires": [
345             [
346                 "eb6b3019.5e8e4"
347             ]
348         ]
349     },
350     {
351         "id": "eb6b3019.5e8e4",
352         "type": "outcomeTrue",
353         "name": "true",
354         "xml": "<outcome value='true'>\n",
355         "comments": "",
356         "outputs": 1,
357         "x": 1155.5357093811035,
358         "y": 701.0714426040649,
359         "z": "58cb31c4.064af",
360         "wires": [
361             [
362                 "e307c639.39c108"
363             ]
364         ]
365     },
366     {
367         "id": "a285427e.78e49",
368         "type": "set",
369         "name": "set src-idx",
370         "xml": "<set>\n<parameter name='src-idx' value='`$idx`' />\n",
371         "comments": "",
372         "x": 1505.5356369018555,
373         "y": 676.7856931686401,
374         "z": "58cb31c4.064af",
375         "wires": []
376     },
377     {
378         "id": "e307c639.39c108",
379         "type": "block",
380         "name": "block : atomic",
381         "xml": "<block atomic=\"true\">",
382         "atomic": "true",
383         "outputs": 1,
384         "x": 1308.3928527832031,
385         "y": 699.6429252624512,
386         "z": "58cb31c4.064af",
387         "wires": [
388             [
389                 "a285427e.78e49",
390                 "8c48a72.1c7bd58"
391             ]
392         ]
393     },
394     {
395         "id": "8c48a72.1c7bd58",
396         "type": "break",
397         "name": "break",
398         "xml": "<break>\n",
399         "comments": "",
400         "x": 1478.3928260803223,
401         "y": 722.5000686645508,
402         "z": "58cb31c4.064af",
403         "wires": []
404     },
405     {
406         "id": "2719e30.6219c1e",
407         "type": "switchNode",
408         "name": "switch src-idx",
409         "xml": "<switch test='`$src-idx`'>\n",
410         "comments": "",
411         "outputs": 1,
412         "x": 508.3928680419922,
413         "y": 763.9285545349121,
414         "z": "58cb31c4.064af",
415         "wires": [
416             [
417                 "c3e50276.b25e1"
418             ]
419         ]
420     },
421     {
422         "id": "c3e50276.b25e1",
423         "type": "other",
424         "name": "NULL",
425         "xml": "<outcome value=''>\n",
426         "comments": "",
427         "outputs": 1,
428         "x": 698.3928985595703,
429         "y": 762.5000295639038,
430         "z": "58cb31c4.064af",
431         "wires": [
432             [
433                 "9124ab61.7a5818"
434             ]
435         ]
436     },
437     {
438         "id": "9124ab61.7a5818",
439         "type": "returnFailure",
440         "name": "return failure",
441         "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",
442         "comments": "",
443         "x": 852.6786041259766,
444         "y": 761.0714406967163,
445         "z": "58cb31c4.064af",
446         "wires": []
447     },
448     {
449         "id": "543e2aaa.e10284",
450         "type": "execute",
451         "name": "execute ContrailAdaptor to enable port mirroring",
452         "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='enable' />\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",
453         "comments": "",
454         "outputs": 1,
455         "x": 1020.39306640625,
456         "y": 1089.2631912231445,
457         "z": "58cb31c4.064af",
458         "wires": [
459             [
460                 "b52df8e.2158508",
461                 "37e68f52.b8c84"
462             ]
463         ]
464     },
465     {
466         "id": "b52df8e.2158508",
467         "type": "failure",
468         "name": "failure",
469         "xml": "<outcome value='failure'>\n",
470         "comments": "",
471         "outputs": 1,
472         "x": 1306.107292175293,
473         "y": 1136.4061088562012,
474         "z": "58cb31c4.064af",
475         "wires": [
476             [
477                 "6f92bbb5.4e7174"
478             ]
479         ]
480     },
481     {
482         "id": "342ea105.23807e",
483         "type": "switchNode",
484         "name": "switch ipv4-address",
485         "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",
486         "comments": "",
487         "outputs": 1,
488         "x": 497.5359649658203,
489         "y": 867.8345031738281,
490         "z": "58cb31c4.064af",
491         "wires": [
492             [
493                 "709a0a15.610554",
494                 "1919fbe0.da0d04"
495             ]
496         ]
497     },
498     {
499         "id": "1919fbe0.da0d04",
500         "type": "other",
501         "name": "NULL",
502         "xml": "<outcome value=''>\n",
503         "comments": "",
504         "outputs": 1,
505         "x": 663.2501602172852,
506         "y": 909.2630748748779,
507         "z": "58cb31c4.064af",
508         "wires": [
509             [
510                 "dc45b2dd.76525"
511             ]
512         ]
513     },
514     {
515         "id": "709a0a15.610554",
516         "type": "other",
517         "name": "other",
518         "xml": "<outcome value='Other'>\n",
519         "comments": "",
520         "outputs": 1,
521         "x": 666.107307434082,
522         "y": 866.405966758728,
523         "z": "58cb31c4.064af",
524         "wires": [
525             [
526                 "ce9f0ed3.39cb8"
527             ]
528         ]
529     },
530     {
531         "id": "ce9f0ed3.39cb8",
532         "type": "set",
533         "name": "set tmp.analyzer.ip-address",
534         "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",
535         "comments": "",
536         "x": 857.5359954833984,
537         "y": 864.9773960113525,
538         "z": "58cb31c4.064af",
539         "wires": []
540     },
541     {
542         "id": "dc45b2dd.76525",
543         "type": "switchNode",
544         "name": "switch ipv6-address",
545         "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",
546         "comments": "",
547         "outputs": 1,
548         "x": 834.678825378418,
549         "y": 909.2630405426025,
550         "z": "58cb31c4.064af",
551         "wires": [
552             [
553                 "6b47b7ee.d11718",
554                 "6bac94c0.a1f64c"
555             ]
556         ]
557     },
558     {
559         "id": "6bac94c0.a1f64c",
560         "type": "other",
561         "name": "NULL",
562         "xml": "<outcome value=''>\n",
563         "comments": "",
564         "outputs": 1,
565         "x": 996.1074142456055,
566         "y": 952.1202182769775,
567         "z": "58cb31c4.064af",
568         "wires": [
569             [
570                 "34101e3d.38c422"
571             ]
572         ]
573     },
574     {
575         "id": "6b47b7ee.d11718",
576         "type": "other",
577         "name": "other",
578         "xml": "<outcome value='Other'>\n",
579         "comments": "",
580         "outputs": 1,
581         "x": 998.9645614624023,
582         "y": 909.2631101608276,
583         "z": "58cb31c4.064af",
584         "wires": [
585             [
586                 "bc0a7eb3.66ceb"
587             ]
588         ]
589     },
590     {
591         "id": "bc0a7eb3.66ceb",
592         "type": "set",
593         "name": "set tmp.analyzer.ip-address",
594         "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",
595         "comments": "",
596         "x": 1190.3932495117188,
597         "y": 907.8345394134521,
598         "z": "58cb31c4.064af",
599         "wires": []
600     },
601     {
602         "id": "34101e3d.38c422",
603         "type": "switchNode",
604         "name": "switch vipv4-address",
605         "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",
606         "comments": "",
607         "outputs": 1,
608         "x": 1167.5360794067383,
609         "y": 952.1201839447021,
610         "z": "58cb31c4.064af",
611         "wires": [
612             [
613                 "54296b64.cd6a24",
614                 "b7e8467a.afd798"
615             ]
616         ]
617     },
618     {
619         "id": "b7e8467a.afd798",
620         "type": "other",
621         "name": "NULL",
622         "xml": "<outcome value=''>\n",
623         "comments": "",
624         "outputs": 1,
625         "x": 1330.3930587768555,
626         "y": 992.1202182769775,
627         "z": "58cb31c4.064af",
628         "wires": [
629             [
630                 "22cb5011.f1c79"
631             ]
632         ]
633     },
634     {
635         "id": "54296b64.cd6a24",
636         "type": "other",
637         "name": "other",
638         "xml": "<outcome value='Other'>\n",
639         "comments": "",
640         "outputs": 1,
641         "x": 1331.821620941162,
642         "y": 950.6917848587036,
643         "z": "58cb31c4.064af",
644         "wires": [
645             [
646                 "81a229c4.e7cc48"
647             ]
648         ]
649     },
650     {
651         "id": "81a229c4.e7cc48",
652         "type": "set",
653         "name": "set tmp.analyzer.ip-address",
654         "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",
655         "comments": "",
656         "x": 1524.6788940429688,
657         "y": 947.8345394134521,
658         "z": "58cb31c4.064af",
659         "wires": []
660     },
661     {
662         "id": "22cb5011.f1c79",
663         "type": "switchNode",
664         "name": "switch vipv6-address",
665         "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",
666         "comments": "",
667         "outputs": 1,
668         "x": 1501.8217239379883,
669         "y": 992.1201839447021,
670         "z": "58cb31c4.064af",
671         "wires": [
672             [
673                 "17fa6ffd.4aef",
674                 "3594874e.b52a08"
675             ]
676         ]
677     },
678     {
679         "id": "3594874e.b52a08",
680         "type": "other",
681         "name": "NULL",
682         "xml": "<outcome value=''>\n",
683         "comments": "",
684         "outputs": 1,
685         "x": 1668.9645919799805,
686         "y": 1033.548807144165,
687         "z": "58cb31c4.064af",
688         "wires": [
689             [
690                 "9f23c2c.e727c4"
691             ]
692         ]
693     },
694     {
695         "id": "17fa6ffd.4aef",
696         "type": "other",
697         "name": "other",
698         "xml": "<outcome value='Other'>\n",
699         "comments": "",
700         "outputs": 1,
701         "x": 1670.393154144287,
702         "y": 992.1203737258911,
703         "z": "58cb31c4.064af",
704         "wires": [
705             [
706                 "e6dded52.b823a"
707             ]
708         ]
709     },
710     {
711         "id": "e6dded52.b823a",
712         "type": "set",
713         "name": "set tmp.analyzer.ip-address",
714         "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",
715         "comments": "",
716         "x": 1863.2504272460938,
717         "y": 989.2631282806396,
718         "z": "58cb31c4.064af",
719         "wires": []
720     },
721     {
722         "id": "37e68f52.b8c84",
723         "type": "success",
724         "name": "success",
725         "xml": "<outcome value='success'>\n",
726         "comments": "",
727         "outputs": 1,
728         "x": 1308.964469909668,
729         "y": 1089.26318359375,
730         "z": "58cb31c4.064af",
731         "wires": [
732             [
733                 "b43df042.63f3f"
734             ]
735         ]
736     },
737     {
738         "id": "b43df042.63f3f",
739         "type": "set",
740         "name": "set contrail-set[]",
741         "xml": "<set>\n<parameter name='contrail-set[$src-idx]' value='true' />\n",
742         "comments": "",
743         "x": 1464.6786766052246,
744         "y": 1087.8347158432007,
745         "z": "58cb31c4.064af",
746         "wires": []
747     },
748     {
749         "id": "804aef34.90cfa",
750         "type": "save",
751         "name": "update l-interface object",
752         "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=\"true\" />\n",
753         "comments": "",
754         "outputs": 1,
755         "x": 504.9165954589844,
756         "y": 1232.0713911056519,
757         "z": "58cb31c4.064af",
758         "wires": [
759             [
760                 "31db754b.638e9a",
761                 "73dc8185.75918"
762             ]
763         ]
764     },
765     {
766         "id": "31db754b.638e9a",
767         "type": "failure",
768         "name": "failure",
769         "xml": "<outcome value='failure'>\n",
770         "comments": "",
771         "outputs": 1,
772         "x": 707.6072006225586,
773         "y": 1257.8335437774658,
774         "z": "58cb31c4.064af",
775         "wires": [
776             [
777                 "73c149a8.37a3b8"
778             ]
779         ]
780     },
781     {
782         "id": "73dc8185.75918",
783         "type": "not-found",
784         "name": "not-found",
785         "xml": "<outcome value='not-found'>\n",
786         "comments": "",
787         "outputs": 1,
788         "x": 716.1786499023438,
789         "y": 1212.8337383270264,
790         "z": "58cb31c4.064af",
791         "wires": [
792             [
793                 "73c149a8.37a3b8"
794             ]
795         ]
796     },
797     {
798         "id": "9f23c2c.e727c4",
799         "type": "returnFailure",
800         "name": "return failure",
801         "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",
802         "comments": "",
803         "x": 1812.9166412353516,
804         "y": 1036.3094778060913,
805         "z": "58cb31c4.064af",
806         "wires": []
807     },
808     {
809         "id": "6f92bbb5.4e7174",
810         "type": "returnFailure",
811         "name": "return failure",
812         "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",
813         "comments": "",
814         "x": 1452.6785011291504,
815         "y": 1135.3573541641235,
816         "z": "58cb31c4.064af",
817         "wires": []
818     },
819     {
820         "id": "73c149a8.37a3b8",
821         "type": "returnFailure",
822         "name": "return failure",
823         "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",
824         "comments": "",
825         "x": 871.249870300293,
826         "y": 1234.4046754837036,
827         "z": "58cb31c4.064af",
828         "wires": []
829     },
830     {
831         "id": "baf0ce69.2f35f",
832         "type": "set",
833         "name": "set pm",
834         "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",
835         "comments": "",
836         "x": 457.9166564941406,
837         "y": 447.9761657714844,
838         "z": "58cb31c4.064af",
839         "wires": []
840     },
841     {
842         "id": "32680418.d56afc",
843         "type": "switchNode",
844         "name": "switch tmp.configuration-sub-type",
845         "xml": "<switch test='`$tmp.configuration-sub-type`'>\n",
846         "comments": "",
847         "outputs": 1,
848         "x": 539.8214263916016,
849         "y": 1115.3572463989258,
850         "z": "58cb31c4.064af",
851         "wires": [
852             [
853                 "8606aede.0e8d7",
854                 "b942b8d4.db5818"
855             ]
856         ]
857     },
858     {
859         "id": "8606aede.0e8d7",
860         "type": "outcome",
861         "name": "vprobe",
862         "xml": "<outcome value='vprobe'>\n",
863         "comments": "",
864         "outputs": 1,
865         "x": 755.6785888671875,
866         "y": 1091.0715599060059,
867         "z": "58cb31c4.064af",
868         "wires": [
869             [
870                 "543e2aaa.e10284"
871             ]
872         ]
873     },
874     {
875         "id": "b942b8d4.db5818",
876         "type": "outcome",
877         "name": "pprobe",
878         "xml": "<outcome value='pprobe'>\n",
879         "comments": "",
880         "outputs": 1,
881         "x": 756.9642791748047,
882         "y": 1138.2144260406494,
883         "z": "58cb31c4.064af",
884         "wires": [
885             [
886                 "f80f3420.bfae08"
887             ]
888         ]
889     },
890     {
891         "id": "bfcb7fe0.37cd9",
892         "type": "set",
893         "name": "set tmp.configuration-sub-type",
894         "xml": "<set>\n<parameter name='tmp.configuration-sub-type' value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type`' />\n",
895         "comments": "",
896         "x": 529.8214416503906,
897         "y": 508.2143306732178,
898         "z": "58cb31c4.064af",
899         "wires": []
900     },
901     {
902         "id": "f80f3420.bfae08",
903         "type": "execute",
904         "name": "execute ContrailAdaptor to enable port mirroring",
905         "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='enable' />\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='vni' value='1000' />\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='juniper-header' value='false' />\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",
906         "comments": "",
907         "outputs": 1,
908         "x": 1018.3928833007812,
909         "y": 1136.7857656478882,
910         "z": "58cb31c4.064af",
911         "wires": [
912             [
913                 "37e68f52.b8c84",
914                 "b52df8e.2158508"
915             ]
916         ]
917     }
918 ]