Re: [libvirt] test driver for interface config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2009-04-10 at 11:47 +0100, Daniel P. Berrange wrote:
> I'm afraid this isn't really going to fly. The libvirt public interface
> is defined by C library API/ABI, and the XML format. To provide the
> guarenteed stability & consistency of this interface across releases,
> we need to have the XML parser & formatting included in libvirt & used
> by all the driver impls. We used to have the situation where XML parsing
> was delegated to individual drivers, but that ultimately caused us
> painful inconsistency between drivers. 

Here though you're going excactly in the opposite direction: you will
have two different validators that are in danger of diverging, when you
could have just one.

> Now in the case of the netcf impl for the interface APIs, things will
> be nice & simple, because the incoming XML can be simply parsed & then
> reformatted back into same schema.

You don't even need to reformat - just pass the original string on.

David


--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]