lib/odp-util: Skip ignored fields when parsing and formatting.
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 9 Sep 2014 21:50:36 +0000 (14:50 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 9 Sep 2014 22:03:36 +0000 (15:03 -0700)
commit2d18eae86d423cc6b8aa54fe9a78299b2babc585
tree4a745bcf94a7b01179bcbcac1a296d1f75461844
parentf7c2f97d575b9d80220f7ee8963b63188ed192f0
lib/odp-util: Skip ignored fields when parsing and formatting.

When a whole field of a key value is ignored, skip it when formatting
the key, and allow it to be left out when parsing the key from a
string.  However, when the 'verbose' formatting is requested those are
still formatted, as it may help in debugging.

Now the named key fields can also be given in arbitrary order.
Duplicate field values are not checked for, so the last one will
remain in effect.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/odp-util.c
tests/bfd.at
tests/dpif-netdev.at
tests/odp.at
tests/ofproto-dpif.at
tests/tunnel.at