[ovs-discuss] MAC Learning event to Controller

Vasu Dasari vdasari at gmail.com
Wed Dec 9 15:37:42 UTC 2020


Thanks for the response.

I expect the Learning event to come to the controller when a "learn"
happens. In this case(as in tutorial), when a learn event happens, a new
mac entry is added to table 10. Controller just needs to know that a learn
event happened on this {port, Mac, Vlan}. This information is sufficiently
populated in new flow information being added to table "10". So, I am
leaning towards using a flow-monitoring on the table to see when an entry
is added or removed to rely on MAC entry got added or removed to the
switching pipeline.

"learn" action has options like "limit" which limits number of entries
added to a table, "send_flow_rem" which tells the controller when a flow is
removed, etc. All these flags are applied on top of the flows that are
added. I was hoping to see an option like "send_flow_add" which tells the
controller when a flow is added. Maybe this could be an enhancement to
"learn" action. What do you think?


*Vasu Dasari*

On Tue, Dec 8, 2020 at 11:29 PM Ben Pfaff <blp at ovn.org> wrote:

> On Sun, Dec 06, 2020 at 08:22:43AM -0500, Vasu Dasari wrote:
> > Hi,
> >
> > I have a use case similar to that presented at Open vSwitch Advanced
> > Features <https://docs.openvswitch.org/en/latest/tutorials/ovs-advanced/
> >
> >
> > Specifically, looking at the flow defined in "Implementing Table 2:
> > MAC+VLAN Learning for Ingress Port"
> >
> > ovs-ofctl add-flow br0 \
> >     "table=2 actions=learn(table=10, NXM_OF_VLAN_TCI[0..11], \
> >                            NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], \
> >                            load:NXM_OF_IN_PORT[]->NXM_NX_REG0[0..15]), \
> >                      resubmit(,3)"
> >
> >
> > This above rule adds/modifies a new flow(MAC learning entry) into table
> 10.
> > My application requires that the controller should be notified of new MAC
> > entry when it is being learnt. In summary when a new flow is added to
> table
> > 10, (not modified) the controller should be notified of the event.
> >
> > Can someone please help me how to achieve this?
> Usually this would be done by sending the packet to the controller with
> a controller action.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20201209/ba8bd602/attachment.html>

More information about the discuss mailing list