[libvirt] [PATCH 0/2] Fix interface state transitions logic
Eric Blake
eblake at redhat.com
Thu Dec 12 14:54:34 UTC 2013
On 12/12/2013 07:41 AM, Daniel P. Berrange wrote:
>
> The usage you describe here is not within the scope of the
> virInterfaceCreate() API IMHO. If we want users to have the
> ability to "re start" an interface without taking it offline
> first, then we should add another API that explicitly supports
> that use case.
Or even a flag to the existing argument that says to restart if already
running, where the normal case of not having the flag is an error if
already running.
> Overloading a single virInterfaceCreate to support two different use
> cases puts applications in an impossible position if they *want* to
> see an error from attempting to start an already active interface.
Overloading without the use of a flag bit, that is.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131212/7e2fcc2c/attachment-0001.sig>
More information about the libvir-list
mailing list