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-activate-async.json
1 [
2     {
3         "id": "5b66f619.481ca8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 102.5,
8         "y": 87.41365623474121,
9         "z": "a7f7f582.4f3378",
10         "wires": [
11             [
12                 "9093334f.03cc8"
13             ]
14         ]
15     },
16     {
17         "id": "9093334f.03cc8",
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": 216.11902618408203,
26         "y": 127.65176963806152,
27         "z": "a7f7f582.4f3378",
28         "wires": [
29             [
30                 "46eaf795.4ef9e8"
31             ]
32         ]
33     },
34     {
35         "id": "46eaf795.4ef9e8",
36         "type": "method",
37         "name": "method port-mirror-topology-operation-activate-async",
38         "xml": "<method rpc='port-mirror-topology-operation-activate-async' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 237.78578186035156,
42         "y": 168.84222412109375,
43         "z": "a7f7f582.4f3378",
44         "wires": [
45             [
46                 "4baa79f1.773a78"
47             ]
48         ]
49     },
50     {
51         "id": "5ade5695.4e98b8",
52         "type": "comment",
53         "name": "port-mirror-topology-operation-activate-async",
54         "info": "",
55         "comments": "",
56         "x": 496.84485626220703,
57         "y": 35,
58         "z": "a7f7f582.4f3378",
59         "wires": []
60     },
61     {
62         "id": "9dfceaea.eb6098",
63         "type": "returnSuccess",
64         "name": "return success",
65         "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n",
66         "comments": "",
67         "x": 426.19053649902344,
68         "y": 1876.2829875946045,
69         "z": "a7f7f582.4f3378",
70         "wires": []
71     },
72     {
73         "id": "4baa79f1.773a78",
74         "type": "block",
75         "name": "block : atomic",
76         "xml": "<block atomic=\"true\">",
77         "atomic": "true",
78         "outputs": 1,
79         "x": 130.11906051635742,
80         "y": 919.7945442199707,
81         "z": "a7f7f582.4f3378",
82         "wires": [
83             [
84                 "9dfceaea.eb6098",
85                 "9d7c2f24.883c3",
86                 "c318a2df.7e96a",
87                 "20309f96.3358a",
88                 "1c40385c.325dd8",
89                 "cf922003.19ed6",
90                 "42b72587.aeabfc",
91                 "cc56f026.30c05",
92                 "2720d8dd.1d2888",
93                 "1a03c81f.4db2c8",
94                 "2301271e.b9e618",
95                 "76f4edeb.848074",
96                 "4a2861ff.8c4dd",
97                 "66b97c5c.100cc4"
98             ]
99         ]
100     },
101     {
102         "id": "9d7c2f24.883c3",
103         "type": "set",
104         "name": "set tmp variables",
105         "xml": "<set>\n<parameter name='tmp.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n\n\n",
106         "comments": "",
107         "x": 438.4523506164551,
108         "y": 258.12796211242676,
109         "z": "a7f7f582.4f3378",
110         "wires": []
111     },
112     {
113         "id": "c318a2df.7e96a",
114         "type": "set",
115         "name": "set port-mirror-configuration data from input",
116         "xml": "<set>\n<parameter name='pm.configuration-data.configuration-operation-information.sdnc-request-header.'\n  value='`$port-mirror-topology-operation-input.sdnc-request-header.`' />\n",
117         "comments": "",
118         "x": 517.2619323730469,
119         "y": 593.3659725189209,
120         "z": "a7f7f582.4f3378",
121         "wires": []
122     },
123     {
124         "id": "1a03c81f.4db2c8",
125         "type": "execute",
126         "name": "execute RestApiCallNode - PUT port-mirror-configuration",
127         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.portmirrorconfig.templatefile`\" />\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='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-pmc\" />\n",
128         "comments": "",
129         "outputs": 1,
130         "x": 559.9405288696289,
131         "y": 1737.2946586608887,
132         "z": "a7f7f582.4f3378",
133         "wires": [
134             [
135                 "20d19532.83d93a",
136                 "46b3d868.4e0598",
137                 "c179bec7.58ec"
138             ]
139         ]
140     },
141     {
142         "id": "20309f96.3358a",
143         "type": "execute",
144         "name": "execute readProperties",
145         "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",
146         "comments": "",
147         "outputs": 1,
148         "x": 457.7381057739258,
149         "y": 306.2231864929199,
150         "z": "a7f7f582.4f3378",
151         "wires": [
152             []
153         ]
154     },
155     {
156         "id": "1c40385c.325dd8",
157         "type": "execute",
158         "name": "generate port-mirror-configuration url",
159         "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",
160         "comments": "",
161         "outputs": 1,
162         "x": 499.40484619140625,
163         "y": 354.37803649902344,
164         "z": "a7f7f582.4f3378",
165         "wires": [
166             []
167         ]
168     },
169     {
170         "id": "669414b9.13962c",
171         "type": "comment",
172         "name": "rpc-port-mirror 1070",
173         "info": "",
174         "comments": "",
175         "x": 427.0238342285156,
176         "y": 690.508918762207,
177         "z": "a7f7f582.4f3378",
178         "wires": []
179     },
180     {
181         "id": "518cb61a.5d7d28",
182         "type": "comment",
183         "name": "step 4 - for each source port:",
184         "info": "",
185         "comments": "",
186         "x": 477.0238800048828,
187         "y": 845.2708034515381,
188         "z": "a7f7f582.4f3378",
189         "wires": []
190     },
191     {
192         "id": "36ffd2a4.3fef6e",
193         "type": "comment",
194         "name": "1. turn on packet mirroring in contrail (see input parameters spreadsheet)",
195         "info": "",
196         "comments": "",
197         "x": 822.7381591796875,
198         "y": 938.127875328064,
199         "z": "a7f7f582.4f3378",
200         "wires": []
201     },
202     {
203         "id": "3743c99d.19d286",
204         "type": "comment",
205         "name": "2. set is-port-mirrored in A&AI (aai-port-mirror-1040) ",
206         "info": "",
207         "comments": "",
208         "x": 625.8334121704102,
209         "y": 1294.0804176330566,
210         "z": "a7f7f582.4f3378",
211         "wires": []
212     },
213     {
214         "id": "84422f16.c64f1",
215         "type": "comment",
216         "name": "step 5 - update configuration object (aai-port-mirror-1070)",
217         "info": "",
218         "comments": "",
219         "x": 560.3573226928711,
220         "y": 1421.4613437652588,
221         "z": "a7f7f582.4f3378",
222         "wires": []
223     },
224     {
225         "id": "1e115862.718808",
226         "type": "comment",
227         "name": "step 6 - update oper status",
228         "info": "",
229         "comments": "",
230         "x": 554.642936706543,
231         "y": 1591.4613199234009,
232         "z": "a7f7f582.4f3378",
233         "wires": []
234     },
235     {
236         "id": "cf922003.19ed6",
237         "type": "set",
238         "name": "set oper-status",
239         "xml": "<set>\n<parameter name='pm.configuration-data.configuration-oper-status.order-status'\n  value='Active' />\n<parameter name='pm.configuration-data.configuration-oper-status.last-action'\n  value='`$port-mirror-topology-operation-input.request-information.request-action`' />\n<parameter name='pm.configuration-data.configuration-oper-status.last-rpc-action'\n  value='`$port-mirror-topology-operation-input.sdnc-request-header.svc-action`' />\n",
240         "comments": "",
241         "x": 431.07147216796875,
242         "y": 1635.747018814087,
243         "z": "a7f7f582.4f3378",
244         "wires": []
245     },
246     {
247         "id": "b5f3f5f0.9a29c8",
248         "type": "returnFailure",
249         "name": "return failure",
250         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'$error-message'`\" />\n",
251         "comments": "",
252         "x": 1636.3096771240234,
253         "y": 2031.9372997283936,
254         "z": "a7f7f582.4f3378",
255         "wires": []
256     },
257     {
258         "id": "a94cb68e.ce8ec8",
259         "type": "configure",
260         "name": "send error to MSO",
261         "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$port-mirror-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$port-mirror-topology-operation-input.service-information.service-instance-id`\" />\n",
262         "comments": "",
263         "outputs": 1,
264         "x": 1654.001766204834,
265         "y": 1985.4032258987427,
266         "z": "a7f7f582.4f3378",
267         "wires": [
268             []
269         ]
270     },
271     {
272         "id": "cb2b8a7c.9946e8",
273         "type": "block",
274         "name": "block : atomic",
275         "xml": "<block atomic=\"true\">",
276         "atomic": "true",
277         "outputs": 1,
278         "x": 1446.3096771240234,
279         "y": 2004.7944774627686,
280         "z": "a7f7f582.4f3378",
281         "wires": [
282             [
283                 "a94cb68e.ce8ec8",
284                 "b5f3f5f0.9a29c8"
285             ]
286         ]
287     },
288     {
289         "id": "c179bec7.58ec",
290         "type": "not-found",
291         "name": "not-found",
292         "xml": "<outcome value='not-found'>\n",
293         "comments": "",
294         "outputs": 1,
295         "x": 867.2618789672852,
296         "y": 1776.6993389129639,
297         "z": "a7f7f582.4f3378",
298         "wires": [
299             [
300                 "46404dc.0055ab4"
301             ]
302         ]
303     },
304     {
305         "id": "46b3d868.4e0598",
306         "type": "failure",
307         "name": "failure",
308         "xml": "<outcome value='failure'>\n",
309         "comments": "",
310         "outputs": 1,
311         "x": 859.6905136108398,
312         "y": 1735.1993589401245,
313         "z": "a7f7f582.4f3378",
314         "wires": [
315             [
316                 "46404dc.0055ab4"
317             ]
318         ]
319     },
320     {
321         "id": "20d19532.83d93a",
322         "type": "success",
323         "name": "success",
324         "xml": "<outcome value='success'>\n",
325         "comments": "",
326         "outputs": 1,
327         "x": 863.4405059814453,
328         "y": 1695.556456565857,
329         "z": "a7f7f582.4f3378",
330         "wires": [
331             [
332                 "43655533.51c43c"
333             ]
334         ]
335     },
336     {
337         "id": "43655533.51c43c",
338         "type": "block",
339         "name": "block",
340         "xml": "<block>\n",
341         "atomic": "false",
342         "comments": "",
343         "outputs": 1,
344         "x": 1000.8107757568359,
345         "y": 1694.6057996749878,
346         "z": "a7f7f582.4f3378",
347         "wires": [
348             []
349         ]
350     },
351     {
352         "id": "52a144a4.16f3bc",
353         "type": "configure",
354         "name": "set error-message",
355         "xml": "<set>\n<parameter name=\"error-message\" value=\"Error updating md-sal for port-mirror-configuration\" />\n",
356         "comments": "",
357         "outputs": 1,
358         "x": 1226.6801223754883,
359         "y": 1743.2721109390259,
360         "z": "a7f7f582.4f3378",
361         "wires": [
362             []
363         ]
364     },
365     {
366         "id": "46404dc.0055ab4",
367         "type": "block",
368         "name": "block : atomic",
369         "xml": "<block atomic=\"true\">",
370         "atomic": "true",
371         "outputs": 1,
372         "x": 1022.6800231933594,
373         "y": 1749.2721853256226,
374         "z": "a7f7f582.4f3378",
375         "wires": [
376             [
377                 "52a144a4.16f3bc",
378                 "17d97b45.54b115"
379             ]
380         ]
381     },
382     {
383         "id": "2301271e.b9e618",
384         "type": "execute",
385         "name": "execute RestApiCallNode - get port-mirror-configuration",
386         "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",
387         "comments": "",
388         "outputs": 1,
389         "x": 552.5,
390         "y": 442.17554473876953,
391         "z": "a7f7f582.4f3378",
392         "wires": [
393             [
394                 "87629ab5.d3e158",
395                 "b1aab94e.c85a18",
396                 "62a4327.1f6e7cc"
397             ]
398         ]
399     },
400     {
401         "id": "87629ab5.d3e158",
402         "type": "success",
403         "name": "success",
404         "xml": "<outcome value='success'>\n",
405         "comments": "",
406         "outputs": 1,
407         "x": 857.7959594726562,
408         "y": 398.4595613479614,
409         "z": "a7f7f582.4f3378",
410         "wires": [
411             [
412                 "25dfdff8.aaf1a"
413             ]
414         ]
415     },
416     {
417         "id": "b1aab94e.c85a18",
418         "type": "failure",
419         "name": "failure",
420         "xml": "<outcome value='failure'>\n",
421         "comments": "",
422         "outputs": 1,
423         "x": 853.9285430908203,
424         "y": 440.5088119506836,
425         "z": "a7f7f582.4f3378",
426         "wires": [
427             [
428                 "907e66e7.8ae6a8"
429             ]
430         ]
431     },
432     {
433         "id": "25dfdff8.aaf1a",
434         "type": "block",
435         "name": "block",
436         "xml": "<block>\n",
437         "atomic": "false",
438         "comments": "",
439         "outputs": 1,
440         "x": 1009.6427993774414,
441         "y": 398.8420944213867,
442         "z": "a7f7f582.4f3378",
443         "wires": [
444             []
445         ]
446     },
447     {
448         "id": "62a4327.1f6e7cc",
449         "type": "not-found",
450         "name": "not-found",
451         "xml": "<outcome value='not-found'>\n",
452         "comments": "",
453         "outputs": 1,
454         "x": 860.8333129882812,
455         "y": 483.8422203063965,
456         "z": "a7f7f582.4f3378",
457         "wires": [
458             [
459                 "83c77205.8a342"
460             ]
461         ]
462     },
463     {
464         "id": "907e66e7.8ae6a8",
465         "type": "block",
466         "name": "block : atomic",
467         "xml": "<block atomic=\"true\">",
468         "atomic": "true",
469         "outputs": 1,
470         "x": 1032.5,
471         "y": 440.5088863372803,
472         "z": "a7f7f582.4f3378",
473         "wires": [
474             [
475                 "af67f274.d2307",
476                 "cb2b8a7c.9946e8"
477             ]
478         ]
479     },
480     {
481         "id": "83c77205.8a342",
482         "type": "block",
483         "name": "block : atomic",
484         "xml": "<block atomic=\"true\">",
485         "atomic": "true",
486         "outputs": 1,
487         "x": 1030.833251953125,
488         "y": 482.1755428314209,
489         "z": "a7f7f582.4f3378",
490         "wires": [
491             [
492                 "36634427.23548c",
493                 "cb2b8a7c.9946e8"
494             ]
495         ]
496     },
497     {
498         "id": "af67f274.d2307",
499         "type": "configure",
500         "name": "set error-message",
501         "xml": "<set>\n<parameter name=\"error-message\" value=\"Failed to read port-mirror-configuration from MD-SAL\" />\n",
502         "comments": "",
503         "outputs": 1,
504         "x": 1237.5,
505         "y": 438.8421993255615,
506         "z": "a7f7f582.4f3378",
507         "wires": [
508             []
509         ]
510     },
511     {
512         "id": "36634427.23548c",
513         "type": "configure",
514         "name": "set error-message",
515         "xml": "<set>\n<parameter name=\"error-message\" value=\"Cannot find port-mirror-configuration in MD-SAL\" />\n",
516         "comments": "",
517         "outputs": 1,
518         "x": 1234.1666259765625,
519         "y": 483.8421993255615,
520         "z": "a7f7f582.4f3378",
521         "wires": [
522             []
523         ]
524     },
525     {
526         "id": "42b72587.aeabfc",
527         "type": "set",
528         "name": "set pm",
529         "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",
530         "comments": "",
531         "x": 404.16667556762695,
532         "y": 545.5088768005371,
533         "z": "a7f7f582.4f3378",
534         "wires": []
535     },
536     {
537         "id": "5f135d1f.6da3d4",
538         "type": "comment",
539         "name": "step 3 - call DG to apply route policy",
540         "info": "",
541         "comments": "",
542         "x": 497.50000762939453,
543         "y": 737.1755886077881,
544         "z": "a7f7f582.4f3378",
545         "wires": []
546     },
547     {
548         "id": "33f08c48.ac39c4",
549         "type": "call",
550         "name": "call api-contrail-route-topology-operation-activate",
551         "xml": "<call module='GENERIC-RESOURCE-API' rpc='api-contrail-route-topology-operation-activate' mode='sync' >\n\n",
552         "comments": "",
553         "outputs": 1,
554         "x": 1112.0236740112305,
555         "y": 802.8891315460205,
556         "z": "a7f7f582.4f3378",
557         "wires": [
558             [
559                 "409f455d.7e97cc"
560             ]
561         ]
562     },
563     {
564         "id": "409f455d.7e97cc",
565         "type": "failure",
566         "name": "failure",
567         "xml": "<outcome value='failure'>\n",
568         "comments": "",
569         "outputs": 1,
570         "x": 1403.2142181396484,
571         "y": 801.4604616165161,
572         "z": "a7f7f582.4f3378",
573         "wires": [
574             [
575                 "cb2b8a7c.9946e8"
576             ]
577         ]
578     },
579     {
580         "id": "1f339ae1.7e9945",
581         "type": "set",
582         "name": "set parameters",
583         "xml": "<set>\n<parameter name='cto-api.default-domain' value='default-domain' />\n<parameter name='cto-api.default-project'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant`' />\n<parameter name='cto-api.cloud-region-id'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-region-id`' />\n<parameter name='cto-api.contrail-route-allotted-resource-id'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.route-allotted-resource-id`' />\n<parameter name='cto-api.src-contrail-network-fqdn'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-network-fqdn`' />\n<parameter name='cto-api.collector-contrail-network-fqdn'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-network-fqdn`' />\n<parameter name='cto-api.owning-entity'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.owning-entity`' />\n",
584         "comments": "",
585         "x": 1007.0236892700195,
586         "y": 759.555980682373,
587         "z": "a7f7f582.4f3378",
588         "wires": []
589     },
590     {
591         "id": "cc56f026.30c05",
592         "type": "for",
593         "name": "for each mapped source port",
594         "xml": "<for silentFailure='true' index='src-idx' start='0' end='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`' >\n",
595         "comments": "",
596         "outputs": 1,
597         "x": 466.0712890625,
598         "y": 893.1271686553955,
599         "z": "a7f7f582.4f3378",
600         "wires": [
601             [
602                 "d2de6b9.c85cf98"
603             ]
604         ]
605     },
606     {
607         "id": "d2de6b9.c85cf98",
608         "type": "block",
609         "name": "block : atomic",
610         "xml": "<block atomic=\"true\">",
611         "atomic": "true",
612         "outputs": 1,
613         "x": 454.1664810180664,
614         "y": 1166.221978187561,
615         "z": "a7f7f582.4f3378",
616         "wires": [
617             [
618                 "156f04a3.ab4e6b",
619                 "8c26df81.34a5a",
620                 "f887cdd.0a0d33"
621             ]
622         ]
623     },
624     {
625         "id": "2c2fabce.b42c34",
626         "type": "execute",
627         "name": "execute ContrailAdaptor to enable port mirroring",
628         "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",
629         "comments": "",
630         "outputs": 1,
631         "x": 1174.6428909301758,
632         "y": 1194.5563316345215,
633         "z": "a7f7f582.4f3378",
634         "wires": [
635             [
636                 "8e6a90d8.54e6d",
637                 "9bb8036f.2b542"
638             ]
639         ]
640     },
641     {
642         "id": "8e6a90d8.54e6d",
643         "type": "failure",
644         "name": "failure",
645         "xml": "<outcome value='failure'>\n",
646         "comments": "",
647         "outputs": 1,
648         "x": 1463.9284362792969,
649         "y": 1245.2707290649414,
650         "z": "a7f7f582.4f3378",
651         "wires": [
652             [
653                 "ecf4f173.580a"
654             ]
655         ]
656     },
657     {
658         "id": "b9f3fac3.bb5568",
659         "type": "configure",
660         "name": "set error-message",
661         "xml": "<set>\n    <parameter name=\"error-message\" value=\"`'Failed to update policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
662         "comments": "",
663         "outputs": 1,
664         "x": 1796.7857818603516,
665         "y": 1245.270746231079,
666         "z": "a7f7f582.4f3378",
667         "wires": [
668             []
669         ]
670     },
671     {
672         "id": "ecf4f173.580a",
673         "type": "block",
674         "name": "block : atomic",
675         "xml": "<block atomic=\"true\">",
676         "atomic": "true",
677         "outputs": 1,
678         "x": 1609.6427917480469,
679         "y": 1245.2707290649414,
680         "z": "a7f7f582.4f3378",
681         "wires": [
682             [
683                 "b9f3fac3.bb5568",
684                 "cb2b8a7c.9946e8"
685             ]
686         ]
687     },
688     {
689         "id": "156f04a3.ab4e6b",
690         "type": "switchNode",
691         "name": "switch ipv4-address",
692         "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",
693         "comments": "",
694         "outputs": 1,
695         "x": 685.1190872192383,
696         "y": 982.4136581420898,
697         "z": "a7f7f582.4f3378",
698         "wires": [
699             [
700                 "9ca91e45.69dae",
701                 "d44612d6.5899b"
702             ]
703         ]
704     },
705     {
706         "id": "d44612d6.5899b",
707         "type": "other",
708         "name": "NULL",
709         "xml": "<outcome value=''>\n",
710         "comments": "",
711         "outputs": 1,
712         "x": 850.8332824707031,
713         "y": 1023.8422298431396,
714         "z": "a7f7f582.4f3378",
715         "wires": [
716             [
717                 "c8d71660.7cd7f8"
718             ]
719         ]
720     },
721     {
722         "id": "9ca91e45.69dae",
723         "type": "other",
724         "name": "other",
725         "xml": "<outcome value='Other'>\n",
726         "comments": "",
727         "outputs": 1,
728         "x": 853.6904296875,
729         "y": 980.9851217269897,
730         "z": "a7f7f582.4f3378",
731         "wires": [
732             [
733                 "166a986c.b15718"
734             ]
735         ]
736     },
737     {
738         "id": "166a986c.b15718",
739         "type": "set",
740         "name": "set tmp.analyzer.ip-address",
741         "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",
742         "comments": "",
743         "x": 1045.1191177368164,
744         "y": 979.5565509796143,
745         "z": "a7f7f582.4f3378",
746         "wires": []
747     },
748     {
749         "id": "c8d71660.7cd7f8",
750         "type": "switchNode",
751         "name": "switch ipv6-address",
752         "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",
753         "comments": "",
754         "outputs": 1,
755         "x": 1022.2619476318359,
756         "y": 1023.8421955108643,
757         "z": "a7f7f582.4f3378",
758         "wires": [
759             [
760                 "2e56fc40.6f6d44",
761                 "d6835a48.98f2c8"
762             ]
763         ]
764     },
765     {
766         "id": "d6835a48.98f2c8",
767         "type": "other",
768         "name": "NULL",
769         "xml": "<outcome value=''>\n",
770         "comments": "",
771         "outputs": 1,
772         "x": 1183.6905364990234,
773         "y": 1066.6993732452393,
774         "z": "a7f7f582.4f3378",
775         "wires": [
776             [
777                 "672a9034.4db54"
778             ]
779         ]
780     },
781     {
782         "id": "2e56fc40.6f6d44",
783         "type": "other",
784         "name": "other",
785         "xml": "<outcome value='Other'>\n",
786         "comments": "",
787         "outputs": 1,
788         "x": 1186.5476837158203,
789         "y": 1023.8422651290894,
790         "z": "a7f7f582.4f3378",
791         "wires": [
792             [
793                 "934fa49b.ab4b48"
794             ]
795         ]
796     },
797     {
798         "id": "934fa49b.ab4b48",
799         "type": "set",
800         "name": "set tmp.analyzer.ip-address",
801         "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",
802         "comments": "",
803         "x": 1377.9763717651367,
804         "y": 1022.4136943817139,
805         "z": "a7f7f582.4f3378",
806         "wires": []
807     },
808     {
809         "id": "672a9034.4db54",
810         "type": "switchNode",
811         "name": "switch vipv4-address",
812         "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",
813         "comments": "",
814         "outputs": 1,
815         "x": 1355.1192016601562,
816         "y": 1066.6993389129639,
817         "z": "a7f7f582.4f3378",
818         "wires": [
819             [
820                 "71ee4607.c8dec8",
821                 "d7e38600.c720f8"
822             ]
823         ]
824     },
825     {
826         "id": "d7e38600.c720f8",
827         "type": "other",
828         "name": "NULL",
829         "xml": "<outcome value=''>\n",
830         "comments": "",
831         "outputs": 1,
832         "x": 1517.9761810302734,
833         "y": 1106.6993732452393,
834         "z": "a7f7f582.4f3378",
835         "wires": [
836             [
837                 "5d222c5f.7e8574"
838             ]
839         ]
840     },
841     {
842         "id": "71ee4607.c8dec8",
843         "type": "other",
844         "name": "other",
845         "xml": "<outcome value='Other'>\n",
846         "comments": "",
847         "outputs": 1,
848         "x": 1519.40474319458,
849         "y": 1065.2709398269653,
850         "z": "a7f7f582.4f3378",
851         "wires": [
852             [
853                 "5973e388.4447dc"
854             ]
855         ]
856     },
857     {
858         "id": "5973e388.4447dc",
859         "type": "set",
860         "name": "set tmp.analyzer.ip-address",
861         "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",
862         "comments": "",
863         "x": 1712.2620162963867,
864         "y": 1062.4136943817139,
865         "z": "a7f7f582.4f3378",
866         "wires": []
867     },
868     {
869         "id": "5d222c5f.7e8574",
870         "type": "switchNode",
871         "name": "switch vipv6-address",
872         "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",
873         "comments": "",
874         "outputs": 1,
875         "x": 1689.4048461914062,
876         "y": 1106.6993389129639,
877         "z": "a7f7f582.4f3378",
878         "wires": [
879             [
880                 "37537bc8.5de5c4",
881                 "141ebb8.809aa45"
882             ]
883         ]
884     },
885     {
886         "id": "141ebb8.809aa45",
887         "type": "other",
888         "name": "NULL",
889         "xml": "<outcome value=''>\n",
890         "comments": "",
891         "outputs": 1,
892         "x": 1859.8810005187988,
893         "y": 1149.7947750091553,
894         "z": "a7f7f582.4f3378",
895         "wires": [
896             [
897                 "ff1880e.8c26e8"
898             ]
899         ]
900     },
901     {
902         "id": "37537bc8.5de5c4",
903         "type": "other",
904         "name": "other",
905         "xml": "<outcome value='Other'>\n",
906         "comments": "",
907         "outputs": 1,
908         "x": 1857.976276397705,
909         "y": 1106.6995286941528,
910         "z": "a7f7f582.4f3378",
911         "wires": [
912             [
913                 "2b3161dd.2d635e"
914             ]
915         ]
916     },
917     {
918         "id": "2b3161dd.2d635e",
919         "type": "set",
920         "name": "set tmp.analyzer.ip-address",
921         "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",
922         "comments": "",
923         "x": 2050.8335494995117,
924         "y": 1103.8422832489014,
925         "z": "a7f7f582.4f3378",
926         "wires": []
927     },
928     {
929         "id": "c1b0625d.b0c22",
930         "type": "configure",
931         "name": "set error-message",
932         "xml": "<set>\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",
933         "comments": "",
934         "outputs": 1,
935         "x": 2193.6905364990234,
936         "y": 1148.1279621124268,
937         "z": "a7f7f582.4f3378",
938         "wires": [
939             []
940         ]
941     },
942     {
943         "id": "ff1880e.8c26e8",
944         "type": "block",
945         "name": "block : atomic",
946         "xml": "<block atomic=\"true\">",
947         "atomic": "true",
948         "outputs": 1,
949         "x": 2006.5475463867188,
950         "y": 1148.127944946289,
951         "z": "a7f7f582.4f3378",
952         "wires": [
953             [
954                 "c1b0625d.b0c22",
955                 "17d97b45.54b115"
956             ]
957         ]
958     },
959     {
960         "id": "8c26df81.34a5a",
961         "type": "save",
962         "name": "update l-interface object",
963         "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\n",
964         "comments": "",
965         "outputs": 1,
966         "x": 688.9286422729492,
967         "y": 1335.50901222229,
968         "z": "a7f7f582.4f3378",
969         "wires": [
970             [
971                 "2ac43ee8.92b012",
972                 "423c6134.c60e6",
973                 "e4b0b593.a44888"
974             ]
975         ]
976     },
977     {
978         "id": "2ac43ee8.92b012",
979         "type": "failure",
980         "name": "failure",
981         "xml": "<outcome value='failure'>\n",
982         "comments": "",
983         "outputs": 1,
984         "x": 909.9525451660156,
985         "y": 1336.2710342407227,
986         "z": "a7f7f582.4f3378",
987         "wires": [
988             [
989                 "642dae65.a043d"
990             ]
991         ]
992     },
993     {
994         "id": "423c6134.c60e6",
995         "type": "not-found",
996         "name": "not-found",
997         "xml": "<outcome value='not-found'>\n",
998         "comments": "",
999         "outputs": 1,
1000         "x": 918.5239944458008,
1001         "y": 1291.2712287902832,
1002         "z": "a7f7f582.4f3378",
1003         "wires": [
1004             [
1005                 "642dae65.a043d"
1006             ]
1007         ]
1008     },
1009     {
1010         "id": "642dae65.a043d",
1011         "type": "block",
1012         "name": "block : atomic",
1013         "xml": "<block atomic=\"true\">",
1014         "atomic": "true",
1015         "outputs": 1,
1016         "x": 1087.976173400879,
1017         "y": 1311.6993608474731,
1018         "z": "a7f7f582.4f3378",
1019         "wires": [
1020             [
1021                 "a5024b1c.62a428",
1022                 "17d97b45.54b115"
1023             ]
1024         ]
1025     },
1026     {
1027         "id": "a5024b1c.62a428",
1028         "type": "configure",
1029         "name": "set error-message",
1030         "xml": "<set>\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",
1031         "comments": "",
1032         "outputs": 1,
1033         "x": 1284.642707824707,
1034         "y": 1310.0325956344604,
1035         "z": "a7f7f582.4f3378",
1036         "wires": [
1037             []
1038         ]
1039     },
1040     {
1041         "id": "2720d8dd.1d2888",
1042         "type": "save",
1043         "name": "update configuration object",
1044         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"configuration\"\n   key=\"configuration.configuration-id = $tmp.configuration-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"operational-status\" value=\"in-service-path\" />\n",
1045         "comments": "",
1046         "outputs": 1,
1047         "x": 468.4524154663086,
1048         "y": 1491.4614448547363,
1049         "z": "a7f7f582.4f3378",
1050         "wires": [
1051             [
1052                 "4a933093.ed2b5",
1053                 "baf9eee7.66408"
1054             ]
1055         ]
1056     },
1057     {
1058         "id": "4a933093.ed2b5",
1059         "type": "failure",
1060         "name": "failure",
1061         "xml": "<outcome value='failure'>\n",
1062         "comments": "",
1063         "outputs": 1,
1064         "x": 672.8097343444824,
1065         "y": 1515.0807542800903,
1066         "z": "a7f7f582.4f3378",
1067         "wires": [
1068             [
1069                 "d1df8438.f8a798"
1070             ]
1071         ]
1072     },
1073     {
1074         "id": "baf9eee7.66408",
1075         "type": "not-found",
1076         "name": "not-found",
1077         "xml": "<outcome value='not-found'>\n",
1078         "comments": "",
1079         "outputs": 1,
1080         "x": 681.3811492919922,
1081         "y": 1464.3665571212769,
1082         "z": "a7f7f582.4f3378",
1083         "wires": [
1084             [
1085                 "a3982d20.86c2c"
1086             ]
1087         ]
1088     },
1089     {
1090         "id": "d1df8438.f8a798",
1091         "type": "block",
1092         "name": "block : atomic",
1093         "xml": "<block atomic=\"true\">",
1094         "atomic": "true",
1095         "outputs": 1,
1096         "x": 855.1190795898438,
1097         "y": 1516.4610977172852,
1098         "z": "a7f7f582.4f3378",
1099         "wires": [
1100             [
1101                 "f7fc2fc5.e0c0e",
1102                 "17d97b45.54b115"
1103             ]
1104         ]
1105     },
1106     {
1107         "id": "a3982d20.86c2c",
1108         "type": "block",
1109         "name": "block : atomic",
1110         "xml": "<block atomic=\"true\">",
1111         "atomic": "true",
1112         "outputs": 1,
1113         "x": 855.1190567016602,
1114         "y": 1464.7947645187378,
1115         "z": "a7f7f582.4f3378",
1116         "wires": [
1117             [
1118                 "f1da12be.e4fe3",
1119                 "17d97b45.54b115"
1120             ]
1121         ]
1122     },
1123     {
1124         "id": "f7fc2fc5.e0c0e",
1125         "type": "configure",
1126         "name": "set error-message",
1127         "xml": "<set>\n<parameter name=\"error-message\" value=\"Failure updating configuration object in AAI\" />\n",
1128         "comments": "",
1129         "outputs": 1,
1130         "x": 1041.7857055664062,
1131         "y": 1516.4610977172852,
1132         "z": "a7f7f582.4f3378",
1133         "wires": [
1134             []
1135         ]
1136     },
1137     {
1138         "id": "f1da12be.e4fe3",
1139         "type": "configure",
1140         "name": "set error-message",
1141         "xml": "<set>\n<parameter name=\"error-message\" value=\"Unable to find configuration object in AAI\" />\n",
1142         "comments": "",
1143         "outputs": 1,
1144         "x": 1051.7856674194336,
1145         "y": 1463.1280298233032,
1146         "z": "a7f7f582.4f3378",
1147         "wires": [
1148             []
1149         ]
1150     },
1151     {
1152         "id": "9bb8036f.2b542",
1153         "type": "success",
1154         "name": "success",
1155         "xml": "<outcome value='success'>\n",
1156         "comments": "",
1157         "outputs": 1,
1158         "x": 1466.7856521606445,
1159         "y": 1193.1278247833252,
1160         "z": "a7f7f582.4f3378",
1161         "wires": [
1162             [
1163                 "b6bccbf6.e923e8"
1164             ]
1165         ]
1166     },
1167     {
1168         "id": "b6bccbf6.e923e8",
1169         "type": "set",
1170         "name": "set contrail-set[]",
1171         "xml": "<set>\n<parameter name='contrail-set[$src-idx]' value='true' />\n",
1172         "comments": "",
1173         "x": 1622.4998588562012,
1174         "y": 1191.6993570327759,
1175         "z": "a7f7f582.4f3378",
1176         "wires": []
1177     },
1178     {
1179         "id": "e4b0b593.a44888",
1180         "type": "success",
1181         "name": "success",
1182         "xml": "<outcome value='success'>\n",
1183         "comments": "",
1184         "outputs": 1,
1185         "x": 914.1666717529297,
1186         "y": 1378.3661165237427,
1187         "z": "a7f7f582.4f3378",
1188         "wires": [
1189             [
1190                 "9d1cdd1b.d4fd9"
1191             ]
1192         ]
1193     },
1194     {
1195         "id": "9d1cdd1b.d4fd9",
1196         "type": "set",
1197         "name": "set l-interface-set[]",
1198         "xml": "<set>\n<parameter name='l-interface-set[$src-idx]' value='true' />\n",
1199         "comments": "",
1200         "x": 1077.0237274169922,
1201         "y": 1379.7948369979858,
1202         "z": "a7f7f582.4f3378",
1203         "wires": []
1204     },
1205     {
1206         "id": "44a2f705.4029d8",
1207         "type": "for",
1208         "name": "for each mapped source port",
1209         "xml": "<for index='src-idx' start='0' end='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`' >\n",
1210         "comments": "",
1211         "outputs": 1,
1212         "x": 1694.1667556762695,
1213         "y": 1875.746953010559,
1214         "z": "a7f7f582.4f3378",
1215         "wires": [
1216             [
1217                 "2ef18cf0.f0c604"
1218             ]
1219         ]
1220     },
1221     {
1222         "id": "2ef18cf0.f0c604",
1223         "type": "block",
1224         "name": "block : atomic",
1225         "xml": "<block atomic=\"true\">",
1226         "atomic": "true",
1227         "outputs": 1,
1228         "x": 1927.0239334106445,
1229         "y": 1874.318242073059,
1230         "z": "a7f7f582.4f3378",
1231         "wires": [
1232             [
1233                 "6fb5c952.c67498",
1234                 "f71edbf2.13f818"
1235             ]
1236         ]
1237     },
1238     {
1239         "id": "f71edbf2.13f818",
1240         "type": "switchNode",
1241         "name": "switch contrail-set[] == 'true'",
1242         "xml": "<switch test=\"`$contrail-set[$src-idx] == 'true'`\">\n",
1243         "comments": "",
1244         "outputs": 1,
1245         "x": 2154.166961669922,
1246         "y": 1831.4612035751343,
1247         "z": "a7f7f582.4f3378",
1248         "wires": [
1249             [
1250                 "2e40dd2d.cbff82"
1251             ]
1252         ]
1253     },
1254     {
1255         "id": "6fb5c952.c67498",
1256         "type": "switchNode",
1257         "name": "switch l-interface-set[] == 'true'",
1258         "xml": "<switch test=\"`$l-interface-set[$src-idx] == 'true'`\">\n",
1259         "comments": "",
1260         "outputs": 1,
1261         "x": 2155.5954666137695,
1262         "y": 1904.318242073059,
1263         "z": "a7f7f582.4f3378",
1264         "wires": [
1265             [
1266                 "d5a055d6.de8358"
1267             ]
1268         ]
1269     },
1270     {
1271         "id": "17d97b45.54b115",
1272         "type": "block",
1273         "name": "block : atomic",
1274         "xml": "<block atomic=\"true\">",
1275         "atomic": "true",
1276         "outputs": 1,
1277         "x": 1461.309700012207,
1278         "y": 1878.604130744934,
1279         "z": "a7f7f582.4f3378",
1280         "wires": [
1281             [
1282                 "cb2b8a7c.9946e8",
1283                 "44a2f705.4029d8"
1284             ]
1285         ]
1286     },
1287     {
1288         "id": "89fa86c4.b77bd8",
1289         "type": "execute",
1290         "name": "execute ContrailAdaptor to disable port mirroring",
1291         "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-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='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",
1292         "comments": "",
1293         "outputs": 1,
1294         "x": 2612.500228881836,
1295         "y": 1830.1275453567505,
1296         "z": "a7f7f582.4f3378",
1297         "wires": [
1298             []
1299         ]
1300     },
1301     {
1302         "id": "7096d601.0c9028",
1303         "type": "save",
1304         "name": "update l-interface object",
1305         "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\" />\n\n",
1306         "comments": "",
1307         "outputs": 1,
1308         "x": 2533.6907081604004,
1309         "y": 1903.556529045105,
1310         "z": "a7f7f582.4f3378",
1311         "wires": [
1312             []
1313         ]
1314     },
1315     {
1316         "id": "2e40dd2d.cbff82",
1317         "type": "outcomeTrue",
1318         "name": "true",
1319         "xml": "<outcome value='true'>\n",
1320         "comments": "",
1321         "outputs": 1,
1322         "x": 2349.1668586730957,
1323         "y": 1830.5089178085327,
1324         "z": "a7f7f582.4f3378",
1325         "wires": [
1326             [
1327                 "89fa86c4.b77bd8"
1328             ]
1329         ]
1330     },
1331     {
1332         "id": "d5a055d6.de8358",
1333         "type": "outcomeTrue",
1334         "name": "true",
1335         "xml": "<outcome value='true'>\n",
1336         "comments": "",
1337         "outputs": 1,
1338         "x": 2350.8332595825195,
1339         "y": 1903.841923713684,
1340         "z": "a7f7f582.4f3378",
1341         "wires": [
1342             [
1343                 "7096d601.0c9028"
1344             ]
1345         ]
1346     },
1347     {
1348         "id": "76f4edeb.848074",
1349         "type": "configure",
1350         "name": "send success to MSO",
1351         "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"200\" />\n<parameter name=\"input.svc-request-id\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$port-mirror-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$port-mirror-topology-operation-input.service-information.service-instance-id`\" />\n",
1352         "comments": "",
1353         "outputs": 1,
1354         "x": 449.16666412353516,
1355         "y": 1825.5088558197021,
1356         "z": "a7f7f582.4f3378",
1357         "wires": [
1358             []
1359         ]
1360     },
1361     {
1362         "id": "66b97c5c.100cc4",
1363         "type": "switchNode",
1364         "name": "switch configuration-sub-type",
1365         "xml": "<switch test='`$tmp.configuration-sub-type`'>\n",
1366         "comments": "",
1367         "outputs": 1,
1368         "x": 472.49999237060547,
1369         "y": 781.6666774749756,
1370         "z": "a7f7f582.4f3378",
1371         "wires": [
1372             [
1373                 "80efab22.bce288"
1374             ]
1375         ]
1376     },
1377     {
1378         "id": "80efab22.bce288",
1379         "type": "outcome",
1380         "name": "vprobe",
1381         "xml": "<outcome value='vprobe'>\n",
1382         "comments": "",
1383         "outputs": 1,
1384         "x": 670.4999923706055,
1385         "y": 781.6666774749756,
1386         "z": "a7f7f582.4f3378",
1387         "wires": [
1388             [
1389                 "c8f11099.9fc8f"
1390             ]
1391         ]
1392     },
1393     {
1394         "id": "c8f11099.9fc8f",
1395         "type": "block",
1396         "name": "block : atomic",
1397         "xml": "<block atomic=\"true\">",
1398         "atomic": "true",
1399         "outputs": 1,
1400         "x": 829.166618347168,
1401         "y": 781.6667079925537,
1402         "z": "a7f7f582.4f3378",
1403         "wires": [
1404             [
1405                 "1f339ae1.7e9945",
1406                 "33f08c48.ac39c4"
1407             ]
1408         ]
1409     },
1410     {
1411         "id": "4a2861ff.8c4dd",
1412         "type": "set",
1413         "name": "set tmp.configuration-sub-type",
1414         "xml": "<set>\n<parameter name='tmp.configuration-sub-type' value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type`' />\n",
1415         "comments": "",
1416         "x": 475.83333587646484,
1417         "y": 643.3333606719971,
1418         "z": "a7f7f582.4f3378",
1419         "wires": []
1420     },
1421     {
1422         "id": "f887cdd.0a0d33",
1423         "type": "switchNode",
1424         "name": "switch configuration-sub-type",
1425         "xml": "<switch test='`$tmp.configuration-sub-type`'>\n",
1426         "comments": "",
1427         "outputs": 1,
1428         "x": 710.8333358764648,
1429         "y": 1221.6666021347046,
1430         "z": "a7f7f582.4f3378",
1431         "wires": [
1432             [
1433                 "67100eb7.3ecce",
1434                 "d0476eef.c40b5"
1435             ]
1436         ]
1437     },
1438     {
1439         "id": "67100eb7.3ecce",
1440         "type": "outcome",
1441         "name": "vprobe",
1442         "xml": "<outcome value='vprobe'>\n",
1443         "comments": "",
1444         "outputs": 1,
1445         "x": 912.1666450500488,
1446         "y": 1194.9999055862427,
1447         "z": "a7f7f582.4f3378",
1448         "wires": [
1449             [
1450                 "2c2fabce.b42c34"
1451             ]
1452         ]
1453     },
1454     {
1455         "id": "d0476eef.c40b5",
1456         "type": "outcome",
1457         "name": "pprobe",
1458         "xml": "<outcome value='pprobe'>\n",
1459         "comments": "",
1460         "outputs": 1,
1461         "x": 912.5000228881836,
1462         "y": 1244.9998540878296,
1463         "z": "a7f7f582.4f3378",
1464         "wires": [
1465             [
1466                 "4c074c9.6a81eb4"
1467             ]
1468         ]
1469     },
1470     {
1471         "id": "4c074c9.6a81eb4",
1472         "type": "execute",
1473         "name": "execute ContrailAdaptor to enable port mirroring",
1474         "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",
1475         "comments": "",
1476         "outputs": 1,
1477         "x": 1174.1666946411133,
1478         "y": 1244.9999256134033,
1479         "z": "a7f7f582.4f3378",
1480         "wires": [
1481             [
1482                 "9bb8036f.2b542",
1483                 "8e6a90d8.54e6d"
1484             ]
1485         ]
1486     }
1487 ]