learn: Check learn actions after parsing in learn_parse().
authorBen Pfaff <blp@nicira.com>
Tue, 27 Sep 2011 20:12:04 +0000 (13:12 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Oct 2011 20:43:39 +0000 (13:43 -0700)
commit4cb3fde7c9224ca4f939852c5e7987fc5112d680
tree53770714aa9aee490b8b8fe54048460124f9a482
parentdb0a4375c455bbea40aa127c954d8727013e1dc2
learn: Check learn actions after parsing in learn_parse().

learn_parse() and learn_check() are supposed to apply the same checks, but
they are implemented very differently.  It seems best to have learn_parse()
actually call learn_check() just to be sure.

This would have caught the bug fixed in the previous commit, because
the tests actually contain instances of "learn" actions that trigger the
bug, but the tests only parsed the actions without ever doing anything
that checked them (like sending them to ovs-vswitchd over OpenFlow).
lib/learn.c