[libvirt] adding more element to <interface>

Michal Privoznik mprivozn at redhat.com
Thu Jun 28 11:30:27 UTC 2012


On 28.06.2012 10:23, Rashid Zamani wrote:
> Hello people,
> 
> I am considering adding more elements into <interface> name space in
> order to support more features of different hypervisors (specificly
> qemu). I have discuss this
> <https://www.redhat.com/archives/libvirt-users/2012-June/msg00141.html>
> in user thread, and I have been told to propose an xml syntax for it.
> 
> What exactly I have in mind is adding elements like <dns>, <hostname>
> and etc. to set the these variables from within the <interface> instead
> of having <qemu:commandline> at the end of the file, in case of using
> qemu. So the final xml file should look something like below:
> 
> <domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
> .
> .
> .
>   <interface type='user'>
>       <mac address=/>
>       <model type=/>
>       <bandwidth>
>       </bandwidth>
>       <address=/>*
>       <**hostname=/>
>       <dns=/>
>       *  .
>         .
>         . 
>   </interface>
> .
> .
> .
> </domain>
> 
> I am wondering, firstly if such a thing is plausible. And if so, how I
> can contribute and where I can start from.
> Thank you in advance.
> 
> Zamani
> 

There is how-to add an XML extension on libvirt site:

   http://libvirt.org/api_extension.html

Since you'll be adding just an XML elements not an API you may skip some
steps there.

Michal




More information about the libvir-list mailing list