ofp-util: Add missing 'break;' in bad_group_cmd().
authorBen Pfaff <blp@nicira.com>
Wed, 22 Apr 2015 03:00:50 +0000 (20:00 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 22 Apr 2015 03:02:45 +0000 (20:02 -0700)
commit9dd30b0571020a012650e3907328fc8dc41b381a
treebe4e4aa705643d50a587f0f28366b3830c5d82c2
parent966904d27f15f0c93499d79cb8bd726750369831
ofp-util: Add missing 'break;' in bad_group_cmd().

Otherwise you get an assertion failure in place of a helpful error message.

Also fix typo where the "remove-bucket" command was output as
"insert-bucket".

Also fix a nearby style violation and add a pair of tests to prevent
regression.

Found by LLVM scan-build.

Reported-by: Kevin Lo <kevlo@FreeBSD.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/ofp-util.c
tests/ofproto.at