[ovs-discuss] Disable MAC learning on certain ports

Ben Pfaff blp at ovn.org
Mon May 2 21:19:10 UTC 2016


On Tue, Apr 19, 2016 at 05:30:21PM +0000, Farhad Sunavala wrote:
> >"normal" consists of a number of more or less independent steps:
> >        * Drop certain malformed or invalid frames.
> >        * Check VLAN.
> >        * Check for other inadmissible frames.
> >        * Learn source MAC.
> >       * Decide on output interface(s).
> >       * Output to each output interface.
> Yes, that sounds good too.Does a flow rule as shown below make sense ?
> 
> table=20, actions=normal,no_learn_inport:4,no_learn_inport:5 
> (If the packet hits table 20, do normal actions but no SRC MAC learning on OF ports 4 and 5).

That's not what I had in mind.  The way you wrote it, it's like a set of
options to "normal".  Instead, I suggest creating a collection of
actions, each of which performs one of the steps that makes up "normal".
Then you can use flow matching to decide, for example, that for packets
arrive with in_port=4 or in_port=5 one should not execute the action
that performs learning.



More information about the discuss mailing list