Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_port-mirror-topology-operation-deactivate-async.json
1 [
2     {
3         "id": "acf1df7b.c0642",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 136.25,
8         "y": 92.5,
9         "z": "e45b58ea.d3c7a8",
10         "wires": [
11             [
12                 "d107ddee.41386"
13             ]
14         ]
15     },
16     {
17         "id": "d107ddee.41386",
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": 249.86902618408203,
26         "y": 132.7381134033203,
27         "z": "e45b58ea.d3c7a8",
28         "wires": [
29             [
30                 "7daffa47.44d444"
31             ]
32         ]
33     },
34     {
35         "id": "7daffa47.44d444",
36         "type": "method",
37         "name": "method port-mirror-topology-operation-deactivate-async",
38         "xml": "<method rpc='port-mirror-topology-operation-deactivate-async' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 277.53578186035156,
42         "y": 173.92856788635254,
43         "z": "e45b58ea.d3c7a8",
44         "wires": [
45             [
46                 "da29a24f.7f3f2"
47             ]
48         ]
49     },
50     {
51         "id": "d6997faa.63095",
52         "type": "comment",
53         "name": "port-mirror-topology-operation-deactivate-async",
54         "info": "",
55         "comments": "",
56         "x": 530.594856262207,
57         "y": 40.08634376525879,
58         "z": "e45b58ea.d3c7a8",
59         "wires": []
60     },
61     {
62         "id": "9ef6714.8e61a9",
63         "type": "returnSuccess",
64         "name": "return success",
65         "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n",
66         "comments": "",
67         "x": 480.4882011413574,
68         "y": 1612.8809957504272,
69         "z": "e45b58ea.d3c7a8",
70         "wires": []
71     },
72     {
73         "id": "da29a24f.7f3f2",
74         "type": "block",
75         "name": "block : atomic",
76         "xml": "<block atomic=\"true\">",
77         "atomic": "true",
78         "outputs": 1,
79         "x": 183.86904907226562,
80         "y": 871.5475997924805,
81         "z": "e45b58ea.d3c7a8",
82         "wires": [
83             [
84                 "9ef6714.8e61a9",
85                 "ae8a46bd.17c5a8",
86                 "ed8e386e.d66588",
87                 "33edf927.ccd256",
88                 "88b52684.3c1198",
89                 "b602cd37.9d966",
90                 "51ec1a7c.c67334",
91                 "e2a5b4bd.e39bb8",
92                 "54a5dead.83a5",
93                 "c553e730.5e7f68",
94                 "423946eb.24ca18",
95                 "914f3421.b83cc8",
96                 "3cc26a33.d0cde6",
97                 "5b4713f1.7dfb5c"
98             ]
99         ]
100     },
101     {
102         "id": "23544362.1928ac",
103         "type": "comment",
104         "name": "rpc-port-mirror-1090",
105         "info": "",
106         "comments": "",
107         "x": 483.86902618408203,
108         "y": 642.9761972427368,
109         "z": "e45b58ea.d3c7a8",
110         "wires": []
111     },
112     {
113         "id": "2d55bfb8.84d25",
114         "type": "comment",
115         "name": "step 3 - for each source port:",
116         "info": "",
117         "comments": "",
118         "x": 545.8690490722656,
119         "y": 684.1189880371094,
120         "z": "e45b58ea.d3c7a8",
121         "wires": []
122     },
123     {
124         "id": "9221cb49.d93a28",
125         "type": "comment",
126         "name": "1. turn off packet mirroring in contrail (see input parameters spreadsheet)",
127         "info": "",
128         "comments": "",
129         "x": 1131.0594940185547,
130         "y": 719.1189775466919,
131         "z": "e45b58ea.d3c7a8",
132         "wires": []
133     },
134     {
135         "id": "20a97346.cfa9dc",
136         "type": "comment",
137         "name": "2. set is-port-mirrored in A&AI (aai-port-mirror-1040)",
138         "info": "",
139         "comments": "",
140         "x": 1073.1547470092773,
141         "y": 855.4999237060547,
142         "z": "e45b58ea.d3c7a8",
143         "wires": []
144     },
145     {
146         "id": "c4a61894.c3e478",
147         "type": "comment",
148         "name": "step 4 - call DG to deactivate route policy",
149         "info": "",
150         "comments": "",
151         "x": 570.4405059814453,
152         "y": 1034.738042831421,
153         "z": "e45b58ea.d3c7a8",
154         "wires": []
155     },
156     {
157         "id": "4f611f9c.f3b72",
158         "type": "comment",
159         "name": "step 5 - update configuration object (aai-port-mirror-1070)",
160         "info": "",
161         "comments": "",
162         "x": 621.4881134033203,
163         "y": 1183.0236949920654,
164         "z": "e45b58ea.d3c7a8",
165         "wires": []
166     },
167     {
168         "id": "23dd8717.0e3808",
169         "type": "comment",
170         "name": "step 6 - update oper status",
171         "info": "",
172         "comments": "",
173         "x": 521.7737579345703,
174         "y": 1343.7856578826904,
175         "z": "e45b58ea.d3c7a8",
176         "wires": []
177     },
178     {
179         "id": "ae8a46bd.17c5a8",
180         "type": "set",
181         "name": "set tmp variables",
182         "xml": "<set>\n<parameter name='tmp.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n\n\n",
183         "comments": "",
184         "x": 496.2500228881836,
185         "y": 241.30948638916016,
186         "z": "e45b58ea.d3c7a8",
187         "wires": []
188     },
189     {
190         "id": "51ec1a7c.c67334",
191         "type": "set",
192         "name": "set port-mirror-configuration data from input",
193         "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",
194         "comments": "",
195         "x": 574.8215141296387,
196         "y": 600.3570823669434,
197         "z": "e45b58ea.d3c7a8",
198         "wires": []
199     },
200     {
201         "id": "ed8e386e.d66588",
202         "type": "execute",
203         "name": "execute readProperties",
204         "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",
205         "comments": "",
206         "outputs": 1,
207         "x": 515.5357818603516,
208         "y": 287.7380418777466,
209         "z": "e45b58ea.d3c7a8",
210         "wires": [
211             []
212         ]
213     },
214     {
215         "id": "33edf927.ccd256",
216         "type": "execute",
217         "name": "generate port-mirror-configuration url",
218         "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",
219         "comments": "",
220         "outputs": 1,
221         "x": 555.5358505249023,
222         "y": 334.22620391845703,
223         "z": "e45b58ea.d3c7a8",
224         "wires": [
225             []
226         ]
227     },
228     {
229         "id": "88b52684.3c1198",
230         "type": "execute",
231         "name": "execute RestApiCallNode - get port-mirror-configuration",
232         "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",
233         "comments": "",
234         "outputs": 1,
235         "x": 610.2976531982422,
236         "y": 420.3570556640625,
237         "z": "e45b58ea.d3c7a8",
238         "wires": [
239             [
240                 "441543d6.71cf8c",
241                 "e792a4af.424e18",
242                 "27e5f04e.c2091"
243             ]
244         ]
245     },
246     {
247         "id": "441543d6.71cf8c",
248         "type": "success",
249         "name": "success",
250         "xml": "<outcome value='success'>\n",
251         "comments": "",
252         "outputs": 1,
253         "x": 915.5936126708984,
254         "y": 376.6410722732544,
255         "z": "e45b58ea.d3c7a8",
256         "wires": [
257             [
258                 "637ff647.06cdb8"
259             ]
260         ]
261     },
262     {
263         "id": "e792a4af.424e18",
264         "type": "failure",
265         "name": "failure",
266         "xml": "<outcome value='failure'>\n",
267         "comments": "",
268         "outputs": 1,
269         "x": 911.7261962890625,
270         "y": 418.69032287597656,
271         "z": "e45b58ea.d3c7a8",
272         "wires": [
273             [
274                 "9f402faa.52bcb"
275             ]
276         ]
277     },
278     {
279         "id": "637ff647.06cdb8",
280         "type": "block",
281         "name": "block",
282         "xml": "<block>\n",
283         "atomic": "false",
284         "comments": "",
285         "outputs": 1,
286         "x": 1067.4404525756836,
287         "y": 377.0236053466797,
288         "z": "e45b58ea.d3c7a8",
289         "wires": [
290             []
291         ]
292     },
293     {
294         "id": "27e5f04e.c2091",
295         "type": "not-found",
296         "name": "not-found",
297         "xml": "<outcome value='not-found'>\n",
298         "comments": "",
299         "outputs": 1,
300         "x": 918.6309661865234,
301         "y": 462.02373123168945,
302         "z": "e45b58ea.d3c7a8",
303         "wires": [
304             [
305                 "3bc0bb76.118314"
306             ]
307         ]
308     },
309     {
310         "id": "9f402faa.52bcb",
311         "type": "block",
312         "name": "block : atomic",
313         "xml": "<block atomic=\"true\">",
314         "atomic": "true",
315         "outputs": 1,
316         "x": 1090.2976531982422,
317         "y": 418.69039726257324,
318         "z": "e45b58ea.d3c7a8",
319         "wires": [
320             [
321                 "a1ca8a01.0e3cf8",
322                 "1489c2f8.2f085d"
323             ]
324         ]
325     },
326     {
327         "id": "3bc0bb76.118314",
328         "type": "block",
329         "name": "block : atomic",
330         "xml": "<block atomic=\"true\">",
331         "atomic": "true",
332         "outputs": 1,
333         "x": 1088.6309051513672,
334         "y": 460.35705375671387,
335         "z": "e45b58ea.d3c7a8",
336         "wires": [
337             [
338                 "fc24245d.cf0bc8",
339                 "1489c2f8.2f085d"
340             ]
341         ]
342     },
343     {
344         "id": "a1ca8a01.0e3cf8",
345         "type": "configure",
346         "name": "set error-message",
347         "xml": "<set>\n<parameter name=\"error-message\" value=\"Failed to read port-mirror-configuration from MD-SAL\" />\n",
348         "comments": "",
349         "outputs": 1,
350         "x": 1295.2976531982422,
351         "y": 417.0237102508545,
352         "z": "e45b58ea.d3c7a8",
353         "wires": [
354             []
355         ]
356     },
357     {
358         "id": "fc24245d.cf0bc8",
359         "type": "configure",
360         "name": "set error-message",
361         "xml": "<set>\n<parameter name=\"error-message\" value=\"Cannot find port-mirror-configuration in MD-SAL\" />\n",
362         "comments": "",
363         "outputs": 1,
364         "x": 1291.9642791748047,
365         "y": 462.0237102508545,
366         "z": "e45b58ea.d3c7a8",
367         "wires": [
368             []
369         ]
370     },
371     {
372         "id": "b602cd37.9d966",
373         "type": "set",
374         "name": "set pm",
375         "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",
376         "comments": "",
377         "x": 460.29769134521484,
378         "y": 503.6903820037842,
379         "z": "e45b58ea.d3c7a8",
380         "wires": []
381     },
382     {
383         "id": "d10e2194.104e6",
384         "type": "returnFailure",
385         "name": "return failure",
386         "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",
387         "comments": "",
388         "x": 1728.1070671081543,
389         "y": 1601.4285154342651,
390         "z": "e45b58ea.d3c7a8",
391         "wires": []
392     },
393     {
394         "id": "699eaa77.1cb434",
395         "type": "configure",
396         "name": "send error to MSO",
397         "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",
398         "comments": "",
399         "outputs": 1,
400         "x": 1745.7991561889648,
401         "y": 1554.8944416046143,
402         "z": "e45b58ea.d3c7a8",
403         "wires": [
404             []
405         ]
406     },
407     {
408         "id": "1489c2f8.2f085d",
409         "type": "block",
410         "name": "block : atomic",
411         "xml": "<block atomic=\"true\">",
412         "atomic": "true",
413         "outputs": 1,
414         "x": 1559.5355911254883,
415         "y": 1578.5714435577393,
416         "z": "e45b58ea.d3c7a8",
417         "wires": [
418             [
419                 "699eaa77.1cb434",
420                 "d10e2194.104e6"
421             ]
422         ]
423     },
424     {
425         "id": "54a5dead.83a5",
426         "type": "execute",
427         "name": "execute RestApiCallNode - PUT port-mirror-configuration",
428         "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\n",
429         "comments": "",
430         "outputs": 1,
431         "x": 617.2738494873047,
432         "y": 1468.833387374878,
433         "z": "e45b58ea.d3c7a8",
434         "wires": [
435             [
436                 "1ab1ec64.c45d84",
437                 "2b0c94ba.0fbf0c",
438                 "1f4272e7.b9a5bd"
439             ]
440         ]
441     },
442     {
443         "id": "e2a5b4bd.e39bb8",
444         "type": "set",
445         "name": "set oper-status",
446         "xml": "<set>\n<parameter name='pm.configuration-data.configuration-oper-status.order-status'\n  value='Created' />\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",
447         "comments": "",
448         "x": 488.59523010253906,
449         "y": 1389.5713024139404,
450         "z": "e45b58ea.d3c7a8",
451         "wires": []
452     },
453     {
454         "id": "1f4272e7.b9a5bd",
455         "type": "not-found",
456         "name": "not-found",
457         "xml": "<outcome value='not-found'>\n",
458         "comments": "",
459         "outputs": 1,
460         "x": 924.5951995849609,
461         "y": 1508.2380676269531,
462         "z": "e45b58ea.d3c7a8",
463         "wires": [
464             [
465                 "b00ed1fd.f89da"
466             ]
467         ]
468     },
469     {
470         "id": "2b0c94ba.0fbf0c",
471         "type": "failure",
472         "name": "failure",
473         "xml": "<outcome value='failure'>\n",
474         "comments": "",
475         "outputs": 1,
476         "x": 917.0238342285156,
477         "y": 1466.7380876541138,
478         "z": "e45b58ea.d3c7a8",
479         "wires": [
480             [
481                 "b00ed1fd.f89da"
482             ]
483         ]
484     },
485     {
486         "id": "1ab1ec64.c45d84",
487         "type": "success",
488         "name": "success",
489         "xml": "<outcome value='success'>\n",
490         "comments": "",
491         "outputs": 1,
492         "x": 920.7738265991211,
493         "y": 1427.0951852798462,
494         "z": "e45b58ea.d3c7a8",
495         "wires": [
496             [
497                 "97768d46.52f58"
498             ]
499         ]
500     },
501     {
502         "id": "97768d46.52f58",
503         "type": "block",
504         "name": "block",
505         "xml": "<block>\n",
506         "atomic": "false",
507         "comments": "",
508         "outputs": 1,
509         "x": 1058.1440963745117,
510         "y": 1426.144528388977,
511         "z": "e45b58ea.d3c7a8",
512         "wires": [
513             []
514         ]
515     },
516     {
517         "id": "3f39b480.961f1c",
518         "type": "configure",
519         "name": "set error-message",
520         "xml": "<set>\n<parameter name=\"error-message\" value=\"Error updating md-sal for port-mirror-configuration\" />\n",
521         "comments": "",
522         "outputs": 1,
523         "x": 1277.3468208312988,
524         "y": 1479.810827255249,
525         "z": "e45b58ea.d3c7a8",
526         "wires": [
527             []
528         ]
529     },
530     {
531         "id": "b00ed1fd.f89da",
532         "type": "block",
533         "name": "block : atomic",
534         "xml": "<block atomic=\"true\">",
535         "atomic": "true",
536         "outputs": 1,
537         "x": 1080.0133438110352,
538         "y": 1480.8109140396118,
539         "z": "e45b58ea.d3c7a8",
540         "wires": [
541             [
542                 "3f39b480.961f1c",
543                 "1489c2f8.2f085d"
544             ]
545         ]
546     },
547     {
548         "id": "3810a57d.14236a",
549         "type": "call",
550         "name": "call api-contrail-route-topology-operation-deactivate",
551         "xml": "<call module='GENERIC-RESOURCE-API' rpc='api-contrail-route-topology-operation-deactivate' mode='sync' >\n\n",
552         "comments": "",
553         "outputs": 1,
554         "x": 1181.940444946289,
555         "y": 1122.285041809082,
556         "z": "e45b58ea.d3c7a8",
557         "wires": [
558             [
559                 "cb28e685.257d38"
560             ]
561         ]
562     },
563     {
564         "id": "cb28e685.257d38",
565         "type": "failure",
566         "name": "failure",
567         "xml": "<outcome value='failure'>\n",
568         "comments": "",
569         "outputs": 1,
570         "x": 1449.797664642334,
571         "y": 1122.5230445861816,
572         "z": "e45b58ea.d3c7a8",
573         "wires": [
574             [
575                 "1489c2f8.2f085d"
576             ]
577         ]
578     },
579     {
580         "id": "e62ab65d.b91da8",
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.rollback-flag' value='false' />\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": 1069.0833206176758,
586         "y": 1069.4281883239746,
587         "z": "e45b58ea.d3c7a8",
588         "wires": []
589     },
590     {
591         "id": "c553e730.5e7f68",
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": 522.7973785400391,
598         "y": 862.6658306121826,
599         "z": "e45b58ea.d3c7a8",
600         "wires": [
601             [
602                 "c54ab73a.ae8e68"
603             ]
604         ]
605     },
606     {
607         "id": "c54ab73a.ae8e68",
608         "type": "block",
609         "name": "block : atomic",
610         "xml": "<block atomic=\"true\">",
611         "atomic": "true",
612         "outputs": 1,
613         "x": 761.5592880249023,
614         "y": 862.7607879638672,
615         "z": "e45b58ea.d3c7a8",
616         "wires": [
617             [
618                 "ce7381ff.88548",
619                 "3fbcac7e.c1a1a4"
620             ]
621         ]
622     },
623     {
624         "id": "3fbcac7e.c1a1a4",
625         "type": "execute",
626         "name": "execute ContrailAdaptor to disable port mirroring",
627         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='port-mirroring' />\n<parameter name='api-action' value='disable' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='display-name'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name`' />\n<parameter name='contrail-virtual-machine-interface-name'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name`' />\n<parameter name='contrail-virtual-machine-interface-id'\n  value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-id`' />\n<parameter name='policy-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='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",
628         "comments": "",
629         "outputs": 1,
630         "x": 1067.1785430908203,
631         "y": 782.0000114440918,
632         "z": "e45b58ea.d3c7a8",
633         "wires": [
634             [
635                 "82848df0.947b5",
636                 "8c26f93.26d3a08"
637             ]
638         ]
639     },
640     {
641         "id": "82848df0.947b5",
642         "type": "failure",
643         "name": "failure",
644         "xml": "<outcome value='failure'>\n",
645         "comments": "",
646         "outputs": 1,
647         "x": 1341.4641380310059,
648         "y": 807.7143030166626,
649         "z": "e45b58ea.d3c7a8",
650         "wires": [
651             [
652                 "8e1dcd4b.eddea"
653             ]
654         ]
655     },
656     {
657         "id": "ba3b50e4.8fcda",
658         "type": "configure",
659         "name": "set error-message",
660         "xml": "<set>\n    <parameter name=\"error-message\" value=\"`'Failed to update policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
661         "comments": "",
662         "outputs": 1,
663         "x": 1674.3214836120605,
664         "y": 807.7143201828003,
665         "z": "e45b58ea.d3c7a8",
666         "wires": [
667             []
668         ]
669     },
670     {
671         "id": "8e1dcd4b.eddea",
672         "type": "block",
673         "name": "block : atomic",
674         "xml": "<block atomic=\"true\">",
675         "atomic": "true",
676         "outputs": 1,
677         "x": 1487.1784934997559,
678         "y": 807.7143030166626,
679         "z": "e45b58ea.d3c7a8",
680         "wires": [
681             [
682                 "ba3b50e4.8fcda",
683                 "1489c2f8.2f085d"
684             ]
685         ]
686     },
687     {
688         "id": "ce7381ff.88548",
689         "type": "save",
690         "name": "update l-interface object",
691         "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",
692         "comments": "",
693         "outputs": 1,
694         "x": 992.130973815918,
695         "y": 940.9523162841797,
696         "z": "e45b58ea.d3c7a8",
697         "wires": [
698             [
699                 "49f37918.005438",
700                 "38be4e8.a16eab2",
701                 "b68b2de2.f0136"
702             ]
703         ]
704     },
705     {
706         "id": "49f37918.005438",
707         "type": "failure",
708         "name": "failure",
709         "xml": "<outcome value='failure'>\n",
710         "comments": "",
711         "outputs": 1,
712         "x": 1196.4882431030273,
713         "y": 941.7144365310669,
714         "z": "e45b58ea.d3c7a8",
715         "wires": [
716             [
717                 "1c203915.556647"
718             ]
719         ]
720     },
721     {
722         "id": "38be4e8.a16eab2",
723         "type": "not-found",
724         "name": "not-found",
725         "xml": "<outcome value='not-found'>\n",
726         "comments": "",
727         "outputs": 1,
728         "x": 1205.0596923828125,
729         "y": 896.7146310806274,
730         "z": "e45b58ea.d3c7a8",
731         "wires": [
732             [
733                 "1c203915.556647"
734             ]
735         ]
736     },
737     {
738         "id": "1c203915.556647",
739         "type": "block",
740         "name": "block : atomic",
741         "xml": "<block atomic=\"true\">",
742         "atomic": "true",
743         "outputs": 1,
744         "x": 1374.5118713378906,
745         "y": 917.1427631378174,
746         "z": "e45b58ea.d3c7a8",
747         "wires": [
748             [
749                 "a3cef666.7d5688",
750                 "1489c2f8.2f085d"
751             ]
752         ]
753     },
754     {
755         "id": "a3cef666.7d5688",
756         "type": "configure",
757         "name": "set error-message",
758         "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",
759         "comments": "",
760         "outputs": 1,
761         "x": 1571.1784057617188,
762         "y": 915.4759979248047,
763         "z": "e45b58ea.d3c7a8",
764         "wires": [
765             []
766         ]
767     },
768     {
769         "id": "423946eb.24ca18",
770         "type": "save",
771         "name": "update configuration object",
772         "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=\"out-of-service-path\" />\n",
773         "comments": "",
774         "outputs": 1,
775         "x": 523.0357208251953,
776         "y": 1252.1904430389404,
777         "z": "e45b58ea.d3c7a8",
778         "wires": [
779             [
780                 "8eeeba15.39dbd8",
781                 "eea0877.1531578"
782             ]
783         ]
784     },
785     {
786         "id": "8eeeba15.39dbd8",
787         "type": "failure",
788         "name": "failure",
789         "xml": "<outcome value='failure'>\n",
790         "comments": "",
791         "outputs": 1,
792         "x": 727.3930397033691,
793         "y": 1275.8097524642944,
794         "z": "e45b58ea.d3c7a8",
795         "wires": [
796             [
797                 "d4efc164.c970a"
798             ]
799         ]
800     },
801     {
802         "id": "eea0877.1531578",
803         "type": "not-found",
804         "name": "not-found",
805         "xml": "<outcome value='not-found'>\n",
806         "comments": "",
807         "outputs": 1,
808         "x": 735.9644546508789,
809         "y": 1225.095555305481,
810         "z": "e45b58ea.d3c7a8",
811         "wires": [
812             [
813                 "1ba8ef22.aa7851"
814             ]
815         ]
816     },
817     {
818         "id": "d4efc164.c970a",
819         "type": "block",
820         "name": "block : atomic",
821         "xml": "<block atomic=\"true\">",
822         "atomic": "true",
823         "outputs": 1,
824         "x": 909.7023849487305,
825         "y": 1277.1900959014893,
826         "z": "e45b58ea.d3c7a8",
827         "wires": [
828             [
829                 "ce2dc4f8.8f4c78",
830                 "1489c2f8.2f085d"
831             ]
832         ]
833     },
834     {
835         "id": "1ba8ef22.aa7851",
836         "type": "block",
837         "name": "block : atomic",
838         "xml": "<block atomic=\"true\">",
839         "atomic": "true",
840         "outputs": 1,
841         "x": 908.2738151550293,
842         "y": 1226.9523420333862,
843         "z": "e45b58ea.d3c7a8",
844         "wires": [
845             [
846                 "b12f8aa.29d1678",
847                 "1489c2f8.2f085d"
848             ]
849         ]
850     },
851     {
852         "id": "ce2dc4f8.8f4c78",
853         "type": "configure",
854         "name": "set error-message",
855         "xml": "<set>\n<parameter name=\"error-message\" value=\"Failure updating configuration object in AAI\" />\n",
856         "comments": "",
857         "outputs": 1,
858         "x": 1096.369010925293,
859         "y": 1277.1900959014893,
860         "z": "e45b58ea.d3c7a8",
861         "wires": [
862             []
863         ]
864     },
865     {
866         "id": "b12f8aa.29d1678",
867         "type": "configure",
868         "name": "set error-message",
869         "xml": "<set>\n<parameter name=\"error-message\" value=\"Unable to find configuration object in AAI\" />\n",
870         "comments": "",
871         "outputs": 1,
872         "x": 1106.3689727783203,
873         "y": 1223.8570280075073,
874         "z": "e45b58ea.d3c7a8",
875         "wires": [
876             []
877         ]
878     },
879     {
880         "id": "8c26f93.26d3a08",
881         "type": "success",
882         "name": "success",
883         "xml": "<outcome value='success'>\n",
884         "comments": "",
885         "outputs": 1,
886         "x": 1344.3213157653809,
887         "y": 760.5713777542114,
888         "z": "e45b58ea.d3c7a8",
889         "wires": [
890             [
891                 "cdd281aa.3c357"
892             ]
893         ]
894     },
895     {
896         "id": "cdd281aa.3c357",
897         "type": "set",
898         "name": "set contrail-set[]",
899         "xml": "<set>\n<parameter name='contrail-set[$src-idx]' value='true' />\n",
900         "comments": "",
901         "x": 1500.0355224609375,
902         "y": 759.1429100036621,
903         "z": "e45b58ea.d3c7a8",
904         "wires": []
905     },
906     {
907         "id": "b68b2de2.f0136",
908         "type": "success",
909         "name": "success",
910         "xml": "<outcome value='success'>\n",
911         "comments": "",
912         "outputs": 1,
913         "x": 1200.7023696899414,
914         "y": 983.8095188140869,
915         "z": "e45b58ea.d3c7a8",
916         "wires": [
917             [
918                 "7abe579c.fe99a8"
919             ]
920         ]
921     },
922     {
923         "id": "7abe579c.fe99a8",
924         "type": "set",
925         "name": "set l-interface-set[]",
926         "xml": "<set>\n<parameter name='l-interface-set[$src-idx]' value='true' />\n",
927         "comments": "",
928         "x": 1363.559425354004,
929         "y": 985.2382392883301,
930         "z": "e45b58ea.d3c7a8",
931         "wires": []
932     },
933     {
934         "id": "914f3421.b83cc8",
935         "type": "configure",
936         "name": "send success to MSO",
937         "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",
938         "comments": "",
939         "outputs": 1,
940         "x": 506.25000381469727,
941         "y": 1552.976061820984,
942         "z": "e45b58ea.d3c7a8",
943         "wires": [
944             []
945         ]
946     },
947     {
948         "id": "3cc26a33.d0cde6",
949         "type": "set",
950         "name": "set tmp.configuration-sub-type",
951         "xml": "<set>\n<parameter name='tmp.configuration-sub-type' value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type`' />\n",
952         "comments": "",
953         "x": 531.2499847412109,
954         "y": 550.8333358764648,
955         "z": "e45b58ea.d3c7a8",
956         "wires": []
957     },
958     {
959         "id": "af216003.25212",
960         "type": "block",
961         "name": "block : atomic",
962         "xml": "<block atomic=\"true\">",
963         "atomic": "true",
964         "outputs": 1,
965         "x": 889.5833358764648,
966         "y": 1097.4999256134033,
967         "z": "e45b58ea.d3c7a8",
968         "wires": [
969             [
970                 "e62ab65d.b91da8",
971                 "3810a57d.14236a"
972             ]
973         ]
974     },
975     {
976         "id": "5b4713f1.7dfb5c",
977         "type": "switchNode",
978         "name": "switch configuration-sub-type",
979         "xml": "<switch test='`$tmp.configuration-sub-type`'>\n",
980         "comments": "",
981         "outputs": 1,
982         "x": 531.2499847412109,
983         "y": 1097.4999618530273,
984         "z": "e45b58ea.d3c7a8",
985         "wires": [
986             [
987                 "81bae171.b37e6"
988             ]
989         ]
990     },
991     {
992         "id": "81bae171.b37e6",
993         "type": "outcome",
994         "name": "vprobe",
995         "xml": "<outcome value='vprobe'>\n",
996         "comments": "",
997         "outputs": 1,
998         "x": 729.2499847412109,
999         "y": 1097.4999618530273,
1000         "z": "e45b58ea.d3c7a8",
1001         "wires": [
1002             [
1003                 "af216003.25212"
1004             ]
1005         ]
1006     }
1007 ]