We can mirror only incoming direction to some port.
show interfaces ethernet eth0 Possible completions: ... mirror Incoming packet mirroring destination
It is necessary to provide directions (in/out/both).
Old code for the handler mirror actions in the file.
https://github.com/vyos/vyatta-cfg-qos/blob/current/scripts/vyatta-qos.pl