infix icon indicating copy to clipboard operation
infix copied to clipboard

Add support for port mirroring

Open troglobit opened this issue 1 year ago • 0 comments

Description

  • Mirror destination port (monitor port)
  • Mirror source port(s)
  • Only do what's easy and already available in kernel, incl. DSA driver
  • At least one tuple of (dest, source port(s)).

For syntax, see tc mirred

Note: prepare (emotionally) for CPU as destination port. Coming in second release when we do capture of external traffic to SD card :sunglasses:

CLI Proposal

If no YANG model exists (check first).

  • interface X9 monitor 0
  • monitor 0
    • source [interfaces]

Limitation: The monitor port is a "choice" so it cannot at the same time be a bridge or lag port.

General Information

Anyone can help out by sponsoring development of new features or contributing pull requests. Please use this issue for discussions related to the feature.

troglobit avatar Jul 02 '24 13:07 troglobit