multipath: Validate multipath actions more thoroughly in multipath_parse().
authorBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 00:24:19 +0000 (16:24 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 17:42:32 +0000 (09:42 -0800)
commit770f1f66bb9dc4e784e6c2c5351089c62b9a5919
tree1644362c7317b82d350508e88bf9f21cd9ad91f7
parentc4894ed48f0c727a87fc64629623bd62aef1e95b
multipath: Validate multipath actions more thoroughly in multipath_parse().

The stricter validation requires updates to the calls to test-multipath
to supply a valid n_links value.  test-multipath doesn't actually use
that value (it runs over different values in an internal "for" loop), so
this doesn't change any behavior.

Also adds a test to exercise each possible multipath_parse() error message.

Reported-by: Reid Price <reid@nicira.com>
Bug #4462.
lib/multipath.c
tests/multipath.at
utilities/ovs-ofctl.c