Laine Stump 3f7cba3f5e util: suppress unimportant ovs-vsctl errors when getting interface stats
commit edaf13565 modified the stats retrieval for OVS interfaces to
not fail when one of the fields was unrecognized by the ovs-vsctl
command, but ovs-vsctl was still returning an error, and libvirt was
cluttering the logs with these inconsequential error messages.

This patch modifies the GET_STAT macro to add "--if-exists" to the
ovs-vsctl command, which causes it to return an empty string (and exit
with success) if the requested statistic isn't in its database, thus
eliminating the ugly error messages from the log.

Resolves: https://bugzilla.redhat.com/1683175

Signed-off-by: Laine Stump <laine@laine.org>
2019-03-28 11:19:03 -04:00
..
2018-08-24 13:23:36 +02:00
2019-02-22 10:05:45 +01:00
2019-02-14 14:09:38 +01:00
2019-01-28 14:46:58 +01:00
2017-06-12 19:11:30 -04:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2019-02-14 14:09:38 +01:00
2018-03-14 12:46:26 +01:00
2019-03-12 09:53:48 +01:00
2019-02-14 14:09:38 +01:00
2017-12-05 11:28:19 +01:00
2019-02-14 14:09:38 +01:00
2018-05-29 15:42:03 +02:00