util: suppress unimportant ovs-vsctl errors when getting interface stats
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 <c23361c43fbf79fed83e8b76173707b083d6caf5@laine.org>

olafhering/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,libvirt/libvirt,libvirt/libvirt,libvirt/libvirt,nertpinx/libvirt,jfehlig/libvirt,eskultety/libvirt,nertpinx/libvirt,crobinso/libvirt,crobinso/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,zippy2/libvirt,olafhering/libvirt,jardasgit/libvirt,jardasgit/libvirt,eskultety/libvirt,eskultety/libvirt,jardasgit/libvirt,libvirt/libvirt,olafhering/libvirt,olafhering/libvirt,jfehlig/libvirt,andreabolognani/libvirt,crobinso/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,zippy2/libvirt,jfehlig/libvirt,zippy2/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,crobinso/libvirt,eskultety/libvirt,nertpinx/libvirt,zippy2/libvirt,jardasgit/libvirt,jardasgit/libvirt,eskultety/libvirt,fabianfreyer/libvirt