Forward network traffic from snapA to snapB

Hi there, I have build two snaps, snapA and snapB, may I know is there any way to forward all network traffic from snapA to snapB on ubuntu core?

On ubuntu desktop, I create a data network namespace and two virtual interface, one interface (vthA)in new namespace, one(vthB) in default namespace, appA is running in new namespace, and appA’s network traffic will be forwarded to vthB over vthA.

Now I convert the app to snap, but I don’t know how to achieve this in snaps in ubuntu core.

May I have some suggestion here?

Thank you very much!