[libvirt] test driver for interface config
lutter at redhat.com
Tue Apr 14 23:41:36 UTC 2009
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.
More information about the libvir-list