Question about the way to achieve mirror in SDN controller

The tofino switch should be achieved mirror by $mirror.cfg in bfrt python, but so many P4 applications need this mirror operation, My question is could I achieve this mirror operation in SDN controller ONOS in hardware P4 switch?

Please do not repeat questions. If we cannot provide a fast answer is because 1) people do this in their free time and 2) we might not know the answer, and it can take longer to respond properly.

I would maybe close or remove this question, and we can talk in the other one you posted.

Follow up here in case this question remains open: https://forum.p4.org/t/question-about-mirror/472

Cheers,