]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: Don't use ERR_NO_SUPPORT for invalid net-update requests
authorCole Robinson <crobinso@redhat.com>
Tue, 19 Apr 2016 18:48:30 +0000 (14:48 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 20 Apr 2016 12:55:09 +0000 (08:55 -0400)
commitcdb4caac81606b8c1bb6ed6f3c0e5d06e4b8b3d6
tree7295ae1caa3e505403fbb6b04e166b86aca57313
parent0496063f1473f5d00a304efa8111e476235f8351
network: Don't use ERR_NO_SUPPORT for invalid net-update requests

VIR_ERR_NO_SUPPORT maps to the error string

    this function is not supported by the connection driver

and is largely only used for when a driver doesn't have any
implementation for a public API. So its usage with invalid
net-update requests is a bit out of place. Instead use
VIR_ERR_OPERATION_UNSUPPORTED which maps to:

    Operation not supported

And is what qemu's hotplug routines use in similar scenarios
src/conf/network_conf.c