Sorry for the lack of clarity. In the learn_execute function, there is an input parameter fm, which is a flow mod. There is a line setting fm's command value to OFPFC_MODIFY_STRICT (whole line: fm->command = OFPFC_MODIFY_STRICT). I would like to add an action which is equivalent to learn, except the above line is changed to fm->command = OFPFC_DELETE_STRICT.
Making this change in Open vSwitch 2.0 would actually delete the rules, but if I attempt this change in 2.5, no rule deletion occurs. It seems that something has changed regarding the way flow_mods are processed, specifically ones with the command set to OFPFC_DELETE_STRICT. Although I haven't found anything while looking through the code which would seem to indicate this change. On Tue, Mar 22, 2016 at 1:31 PM, Ben Pfaff <b...@ovn.org> wrote: > On Mon, Mar 21, 2016 at 02:51:04PM -0400, Hoff, Adam wrote: > > I've just recently ported some changes from OVS version 2.0 to 2.5. In > 2.0, > > I was able to basically copy the learn action, and modify the flow mod's > > command to use OFPFC_DELETE, which would then delete rules (even ones > that > > weren't learned by another learn action). > > I don't understand this statement at all. An action is not anything > like a flow_mod, and an OFPFC_DELETE flow_mod does not include any > actions. Furthermore, a learn action does not have a command. What do > you mean? > > > However, in 2.5, this change doesn't seem to work. Specifically, my > > modified action gets executed, but no rule is deleted. > > > > I've tried both my code, and simply changing the command in the newest > > version of the learn action, and the rules are not deleted as expected. > Do > > you have any ideas regarding how delete changes between the versions > which > > would impact my functionality. >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss