forked from ovn-org/ovn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
treewide: Introduce OVN overlay port mirroring support.
Today the mirror feature in OVN supports only tunnel to local and remote to ports that locate outside of OVN claster. With this feature, traffic to/from a virtual port that can be mirrored to dedicated OVN port. To enable overlay port mirroring with filter functions, we have introduced the necessary schemas in the Northbound db and the associated XML configuration: 1. A field for mirror rules has been added to the mirror table to add reflection rules of mirrored traffic. 2. A new table, titled "Mirror Rule," has been established to filter overlay remote traffic. 3. A new mirror type, titled "lport", has been established for encapsulate mirror traffic to another ovn port For lport mirrors, all processing occurs within OVN, making it unnecessary to involve OVS. In the case of lport mirror we add logical flows about the necessary actions with the package. A new stages named "MIRROR" in logical flow table has been introduced, allowing specification of mirror rule filters for the lport mirror type. Added stage number 2 in the ingress pipeline of the logical switch and table number 7 in the egress pipeline of the logical switch. Packets that meet these criteria are duplicated and delivered to the target port, while the original packet follows its designated pipeline. Northbound's mirror rule table enables the creation of these filters. In case of creating a mirror with the lport type without any rules attached to it, default logical flows are added that duplicate all incoming/outgoing traffic to the target port. At the time of attaching lport mirror to logical switch port, a new port binding mp-target port is created, it's a contrainer port with parent with a parent that is the target port, tagging is unnecessary, packets are sent without VLAN header encapsulation. Signed-off-by: Alexandra Rukomoinikova <arukomoinikova@k2.cloud> Signed-off-by: Vladislav Odintsov <vlodintsov@k2.cloud> Co-authored-by: Vladislav Odintsov <vlodintsov@k2.cloud> Tested-by: Ivan Burnin <iburnin@k2.cloud> Signed-off-by: 0-day Robot <robot@bytheb.org>
- Loading branch information
Showing
18 changed files
with
997 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.