<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">There is no reason for duplication, other than the reason for symmetricity of APIs, "send_flow_rem"(which already exists) and "send_flow_add"(could be added).</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">-Vasu</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p style="margin:0px;font-family:Papyrus"><span style="letter-spacing:0px"><b><font size="2">Vasu Dasari</font></b></span></p></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 9, 2020 at 11:41 AM Ben Pfaff <<a href="mailto:blp@ovn.org">blp@ovn.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Wed, Dec 09, 2020 at 10:37:42AM -0500, Vasu Dasari wrote:<br>
> Ben,<br>
> <br>
> Thanks for the response.<br>
> <br>
> I expect the Learning event to come to the controller when a "learn"<br>
> happens. In this case(as in tutorial), when a learn event happens, a new<br>
> mac entry is added to table 10. Controller just needs to know that a learn<br>
> event happened on this {port, Mac, Vlan}. This information is sufficiently<br>
> populated in new flow information being added to table "10". So, I am<br>
> leaning towards using a flow-monitoring on the table to see when an entry<br>
> is added or removed to rely on MAC entry got added or removed to the<br>
> switching pipeline.<br>
> <br>
> "learn" action has options like "limit" which limits number of entries<br>
> added to a table, "send_flow_rem" which tells the controller when a flow is<br>
> removed, etc. All these flags are applied on top of the flows that are<br>
> added. I was hoping to see an option like "send_flow_add" which tells the<br>
> controller when a flow is added. Maybe this could be an enhancement to<br>
> "learn" action. What do you think?<br>
<br>
It sounds like flow monitoring already covers that.  Is there a reason<br>
to duplicate the functionality?<br>
</blockquote></div>