3 "id": "8bbb7374.4b98a",
9 "z": "57b283d9.2c73ac",
17 "id": "772f4378.64823c",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
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}'>",
25 "x": 229.61902618408203,
26 "y": 130.2381134033203,
27 "z": "57b283d9.2c73ac",
35 "id": "58997f12.7afb3",
37 "name": "method port-mirror-topology-operation-unassign",
38 "xml": "<method rpc='port-mirror-topology-operation-unassign' mode='sync'>\n",
41 "x": 234.09529876708984,
42 "y": 171.66666793823242,
43 "z": "57b283d9.2c73ac",
51 "id": "b44412dc.e6821",
53 "name": "port-mirror-topology-operation-unassign",
56 "x": 510.34485626220703,
57 "y": 37.58634376525879,
58 "z": "57b283d9.2c73ac",
62 "id": "5c090ffc.79e3e",
64 "name": "block : atomic",
65 "xml": "<block atomic=\"true\">",
68 "x": 168.85714721679688,
69 "y": 687.1428813934326,
70 "z": "57b283d9.2c73ac",
89 "id": "a00881e6.27503",
90 "type": "returnSuccess",
91 "name": "return success",
92 "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='ack-final' value='Y' />",
94 "x": 440.4762268066406,
95 "y": 1303.5712909698486,
96 "z": "57b283d9.2c73ac",
100 "id": "3cd15e0b.8a9242",
102 "name": "set tmp.configuration-id",
103 "xml": "<set>\n<parameter name='tmp.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n<parameter name='tmp.service-instance-id' value='`$port-mirror-topology-operation-input.service-information.service-instance-id`' />\n",
105 "x": 477.8571548461914,
106 "y": 288.57142639160156,
107 "z": "57b283d9.2c73ac",
111 "id": "c02c29b9.8c7e88",
113 "name": "execute readProperties",
114 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
117 "x": 478.8571472167969,
118 "y": 334.28567695617676,
119 "z": "57b283d9.2c73ac",
125 "id": "6dad1b2d.44e274",
127 "name": "generate port-mirror-configuration url",
128 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.pm-configuration`\"/>\n <parameter name=\"outputPath\" value=\"tmp.pmc-url\"/>\n <parameter name=\"target\" value=\"{configuration-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.configuration-id`\"/>\n",
131 "x": 518.8571548461914,
132 "y": 375.7142524719238,
133 "z": "57b283d9.2c73ac",
139 "id": "970129e3.7b30e8",
141 "name": "execute RestApiCallNode - get port-mirror-configuration",
142 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.pmc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"pm-mdsal\" />\n\n",
145 "x": 577.4286193847656,
146 "y": 440.00006103515625,
147 "z": "57b283d9.2c73ac",
156 "id": "3dcfdbe4.afb2f4",
159 "xml": "<outcome value='success'>\n",
162 "x": 875.5817413330078,
163 "y": 410.80790996551514,
164 "z": "57b283d9.2c73ac",
172 "id": "8f7d6134.c5be7",
175 "xml": "<outcome value='Other'>\n",
178 "x": 873.142879486084,
179 "y": 460.00000381469727,
180 "z": "57b283d9.2c73ac",
188 "id": "a00d5b26.695c08",
189 "type": "returnFailure",
190 "name": "return failure",
191 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find port-mirror-configuration ' + $tmp.configuration-id`\" />\n",
193 "x": 1387.4285583496094,
194 "y": 457.14286613464355,
195 "z": "57b283d9.2c73ac",
199 "id": "9bbcaeed.5bcb1",
200 "type": "switchNode",
201 "name": "switch order-status == 'Created'",
202 "xml": "<switch test=\"`$pm-mdsal.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status == 'Created'`\">\n",
205 "x": 503.1428909301758,
206 "y": 507.1428031921387,
207 "z": "57b283d9.2c73ac",
215 "id": "75cc3cfd.cbd064",
216 "type": "switchNode",
217 "name": "switch length == 1",
218 "xml": "<switch test='`$pm-mdsal.port-mirror-configuration_length == 1`'>\n",
221 "x": 1054.5714416503906,
222 "y": 410.000018119812,
223 "z": "57b283d9.2c73ac",
231 "id": "edc73da3.d8892",
232 "type": "outcomeFalse",
234 "xml": "<outcome value='false'>\n",
237 "x": 1224.5714721679688,
238 "y": 410.00000953674316,
239 "z": "57b283d9.2c73ac",
247 "id": "3c7b307b.3b6f6",
248 "type": "outcomeFalse",
250 "xml": "<outcome value='false'>\n",
253 "x": 721.7143020629883,
254 "y": 507.1428909301758,
255 "z": "57b283d9.2c73ac",
263 "id": "8e30c079.587fb",
264 "type": "returnFailure",
265 "name": "return failure",
266 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Order status is ' + $mdsal-pmc.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status + ' but must be Created'`\" />\n",
268 "x": 883.1428909301758,
269 "y": 505.7143020629883,
270 "z": "57b283d9.2c73ac",
274 "id": "91831f7f.9b292",
276 "name": "rpc-port-mirror-1100",
279 "x": 428.142822265625,
280 "y": 679.2856960296631,
281 "z": "57b283d9.2c73ac",
285 "id": "60c9f952.f4f188",
287 "name": "step 2 - call DG to delete route policy",
290 "x": 509.3332977294922,
291 "y": 730.238130569458,
292 "z": "57b283d9.2c73ac",
296 "id": "fc0ac42c.952338",
298 "name": "step 4 - delete logical-link objects (aai-port-mirror-1080)",
301 "x": 565.0477142333984,
302 "y": 864.5237045288086,
303 "z": "57b283d9.2c73ac",
307 "id": "7d49d03a.924b7",
309 "name": "step 5 - update configuration object (aai-port-mirror-1070)",
312 "x": 569.333366394043,
313 "y": 1027.1428117752075,
314 "z": "57b283d9.2c73ac",
318 "id": "decb832b.7756e",
320 "name": "step 6 - remove port mirror configuration instance ",
323 "x": 544.8094940185547,
324 "y": 1160.9523677825928,
325 "z": "57b283d9.2c73ac",
329 "id": "b0105555.232da8",
331 "name": "execute RestApiCallNode - get port-mirror-configuration",
332 "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='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-pmc\" />\n\n",
335 "x": 569.0952301025391,
336 "y": 1217.3809337615967,
337 "z": "57b283d9.2c73ac",
346 "id": "e5926e1f.9d417",
349 "xml": "<outcome value='success'>\n",
352 "x": 890.1055297851562,
353 "y": 1192.474473953247,
354 "z": "57b283d9.2c73ac",
362 "id": "a0df149e.9ba658",
365 "xml": "<outcome value='Other'>\n",
368 "x": 887.6666679382324,
369 "y": 1241.6665678024292,
370 "z": "57b283d9.2c73ac",
378 "id": "bfee39f8.3ed2a8",
379 "type": "returnFailure",
380 "name": "return failure",
381 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failed to delete port-mirror-configuration object in MD-SAL\" />\n",
383 "x": 1050.2856979370117,
384 "y": 1242.1427536010742,
385 "z": "57b283d9.2c73ac",
389 "id": "ddd7e984.1b33f8",
396 "x": 1031.9524269104004,
397 "y": 1191.66667842865,
398 "z": "57b283d9.2c73ac",
404 "id": "f67563da.36229",
406 "name": "call api-contrail-route-topology-operation-delete",
407 "xml": "<call module='GENERIC-RESOURCE-API' rpc='api-contrail-route-topology-operation-delete' mode='sync' >\n\n",
410 "x": 1155.7617301940918,
411 "y": 767.3809356689453,
412 "z": "57b283d9.2c73ac",
420 "id": "88c7692a.dfbb88",
423 "xml": "<outcome value='failure'>\n",
426 "x": 1419.5714073181152,
427 "y": 767.618992805481,
428 "z": "57b283d9.2c73ac",
436 "id": "dd3beea5.003a",
438 "name": "set parameters",
439 "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.rollback-flag' value='false' />\n<parameter name='cto-api.configuration-id' value='`$tmp.configuration-id`' />\n<parameter name='cto-api.owning-entity'\n value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.owning-entity`' />\n",
441 "x": 1053.8571815490723,
442 "y": 717.8573741912842,
443 "z": "57b283d9.2c73ac",
447 "id": "e130765d.952908",
448 "type": "returnFailure",
449 "name": "return failure",
450 "xml": "<return status='failure'>\n",
452 "x": 1592.6666374206543,
453 "y": 766.1904449462891,
454 "z": "57b283d9.2c73ac",
458 "id": "a3ed1438.144d08",
461 "xml": "<outcome value='failure'>\n",
464 "x": 1067.0237274169922,
465 "y": 946.3470678329468,
466 "z": "57b283d9.2c73ac",
474 "id": "71dc471a.140258",
477 "xml": "<outcome value='not-found'>\n",
480 "x": 1075.595157623291,
481 "y": 990.6327810287476,
482 "z": "57b283d9.2c73ac",
490 "id": "af3a37ae.9c69a8",
492 "name": "for each mapped source port",
493 "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",
496 "x": 493.6189651489258,
497 "y": 932.3801527023315,
498 "z": "57b283d9.2c73ac",
506 "id": "f9221a0.27240e8",
508 "name": "block : atomic",
509 "xml": "<block atomic=\"true\">",
512 "x": 714.0951461791992,
513 "y": 932.6180410385132,
514 "z": "57b283d9.2c73ac",
523 "id": "29114eb1.e42792",
525 "name": "delete logical-link",
526 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\" \n\tkey=\"logical-link.link-name = $tmp.link-name\" >\n",
529 "x": 902.1903915405273,
530 "y": 965.4754810333252,
531 "z": "57b283d9.2c73ac",
540 "id": "1b255416.32a90c",
542 "name": "set tmp.link-name",
543 "xml": "<set>\n<parameter name='tmp.link-name' value=\"`'PMC_' + $tmp.configuration-id\n + '_Source' + $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 + '_Dest' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name`\" />\n",
545 "x": 905.5237846374512,
546 "y": 903.8086490631104,
547 "z": "57b283d9.2c73ac",
551 "id": "25107429.8cfe6c",
553 "name": "block : atomic",
554 "xml": "<block atomic=\"true\">",
557 "x": 1235.5236892700195,
558 "y": 945.4752893447876,
559 "z": "57b283d9.2c73ac",
567 "id": "d47baa6a.fa3238",
568 "type": "returnFailure",
569 "name": "return failure",
570 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to delete logical-link in AAI: ' + $tmp.link-name`\" />\n",
572 "x": 1411.7143325805664,
573 "y": 944.7618818283081,
574 "z": "57b283d9.2c73ac",
578 "id": "a3b37ff7.c3c35",
580 "name": "update configuration object",
581 "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",
584 "x": 482.19054412841797,
585 "y": 1090.000015258789,
586 "z": "57b283d9.2c73ac",
595 "id": "6d22e53b.f9793c",
598 "xml": "<outcome value='failure'>\n",
601 "x": 686.5478630065918,
602 "y": 1113.619324684143,
603 "z": "57b283d9.2c73ac",
611 "id": "5df9b73.caf0d48",
614 "xml": "<outcome value='not-found'>\n",
617 "x": 695.1192779541016,
618 "y": 1062.9051275253296,
619 "z": "57b283d9.2c73ac",
627 "id": "44175244.a650bc",
628 "type": "returnFailure",
629 "name": "return failure",
630 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Unable to find configuration object in AAI\" />\n",
632 "x": 855.0476608276367,
633 "y": 1062.8571319580078,
634 "z": "57b283d9.2c73ac",
638 "id": "b4115912.041598",
639 "type": "returnFailure",
640 "name": "return failure",
641 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure updating configuration object in AAI\" />\n",
643 "x": 853.6191329956055,
644 "y": 1114.285659790039,
645 "z": "57b283d9.2c73ac",
649 "id": "fb90193b.a54318",
652 "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",
654 "x": 425.76184844970703,
655 "y": 550.9523181915283,
656 "z": "57b283d9.2c73ac",
660 "id": "71960fd3.a6f9d",
662 "name": "block : atomic",
663 "xml": "<block atomic=\"true\">",
666 "x": 1239.0952529907227,
667 "y": 989.2856588363647,
668 "z": "57b283d9.2c73ac",
674 "id": "6cdc1207.ebd5dc",
675 "type": "switchNode",
676 "name": "switch tmp.configuration-sub-type",
677 "xml": "<switch test='`$tmp.configuration-sub-type`'>\n",
680 "x": 507.6667175292969,
681 "y": 789.9999523162842,
682 "z": "57b283d9.2c73ac",
690 "id": "5808e94d.02aa98",
693 "xml": "<outcome value='vprobe'>\n",
696 "x": 720.6667251586914,
697 "y": 789.9999370574951,
698 "z": "57b283d9.2c73ac",
706 "id": "2d69de80.1eff82",
708 "name": "block : atomic",
709 "xml": "<block atomic=\"true\">",
712 "x": 865.9999847412109,
713 "y": 789.9999885559082,
714 "z": "57b283d9.2c73ac",
724 "id": "93d9487f.f05578",
726 "name": "call port-mirror-rollback-capacity-db",
727 "xml": "<call module='GENERIC-RESOURCE-API' rpc='port-mirror-rollback-capacity-db' mode='sync' >\n\n",
730 "x": 1114.333236694336,
731 "y": 851.6666440963745,
732 "z": "57b283d9.2c73ac",
740 "id": "639e5c15.feeb14",
742 "name": "step 3 - undo DB capacity data",
745 "x": 1114.3332748413086,
746 "y": 810.000036239624,
747 "z": "57b283d9.2c73ac",
751 "id": "ff59022f.79e16",
754 "xml": "<outcome value='failure'>\n",
757 "x": 1344.3333129882812,
758 "y": 849.9999876022339,
759 "z": "57b283d9.2c73ac",
767 "id": "64c8888e.67e758",
768 "type": "returnFailure",
769 "name": "return failure",
770 "xml": "<return status='failure'>\n",
772 "x": 1517.4285430908203,
773 "y": 848.571439743042,
774 "z": "57b283d9.2c73ac",
778 "id": "942856b4.633be8",
780 "name": "set tmp.configuration-sub-type",
781 "xml": "<set>\n<parameter name='tmp.configuration-sub-type' value='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type`' />\n",
783 "x": 497.6666717529297,
784 "y": 596.666633605957,
785 "z": "57b283d9.2c73ac",