[virt-tools-list] [libosinfo PATCHv2 02/11] loader: Load datamaps

Christophe Fergeau cfergeau at redhat.com
Wed Dec 12 14:30:28 UTC 2012


On Wed, Dec 12, 2012 at 10:59:17AM +0000, Daniel P. Berrange wrote:
> On Tue, Dec 11, 2012 at 07:20:06PM +0100, Christophe Fergeau wrote:
> > Install scripts can add a 'datamap' attribute when they declare
> > their config parameters. The value of this attribute is the ID
> > of a datamap, which is an XML file containing key/value pairs:
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <libosinfo version="0.0.1">
> >   <datamap id="http://example.com/osinfo/test">
> >     <entry>
> >       <inval>generic-val1</inval>
> >       <outval>foo</outval>
> >     </entry>
> >     <entry>
> >       <inval>generic-val2</inval>
> >       <outval>bar</outval>
> >     </entry>
> >   </datamap>
> > </libosinfo>
> 
> I'm thinking this format is rather verbose. Could we do it like
> 
>    <datamap id="......">
>      <entry inval="XXXX" outval="YYYY"/>
>      <entry inval="XXXX" outval="YYYY"/>
>      <entry inval="XXXX" outval="YYYY"/>
>      <entry inval="XXXX" outval="YYYY"/>
>      <entry inval="XXXX" outval="YYYY"/>
>    </datamap>

Sure, I'll change it

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20121212/0e3ef75e/attachment.sig>


More information about the virt-tools-list mailing list