bridge: Correctly omit unsupported interface statistics from database.
authorBen Pfaff <blp@nicira.com>
Fri, 3 May 2013 22:36:56 +0000 (15:36 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 3 May 2013 22:36:56 +0000 (15:36 -0700)
commitc2553db908eb46e75a984564a38d559c6b02b140
tree5af9166a308f33e34e4956a73339dca7c0b0ee30
parent62d86422f97986a91ab74d06de6f77cd2f244b83
bridge: Correctly omit unsupported interface statistics from database.

The database documentation says:

    If an interface does not support a given statistic, then that pair is
    omitted.

but in fact the implementation included the key-value pair for an
unsupported statistic with -1 as the value.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
vswitchd/bridge.c