[libvirt-users] Cannot add metadata to network XML

Shashwat shagun me at shashwat.tech
Tue Jan 30 20:03:25 UTC 2018


Thanks! Yeah, my version is 1.3.1. it's 2 A.M here I'll try again tomorrow.

On 31 Jan 2018 1:28 am, "Laine Stump" <laine at redhat.com> wrote:

> On 01/30/2018 10:16 AM, Shashwat shagun wrote:
> >
> > Hi, i tried adding metadata to Network XML ( NOT DOMAIN XML) but it
> > removes it as soon as i save
>
> There are two possibilities:
>
> 1) If the network is already active when you edit it, you won't see the
> change in the output off virsh net-dumpxml until the next time you
> restart that network. (alternately, you can see it immediately with
> "virsh net-dumpxml --inactive", but that will also show any other
> changes you've made to the network config that won't take effect until
> the next restart of the network).
>
> 2) Your libvirt version is older than 2.1.0 (when <metadata> was
> introduced to the network XML). You can see the version of your libvirt
> with "virsh -v".
>
> >
> >  here's my network XML
> >
> > <network>
> >   <name>bridgeTest0</name>
> >   <uuid>cf2aae7a-b459-459b-ba2c-399190607629</uuid>
> >   <metadata>
> >         <app1:foo xmlns:app1="http://app1.org/app1/">
> >                 <app1:test>testing!</app1:test>
> >         </app1:foo>
> >   </metadata>
> >   <forward mode='bridge'/>
> >   <bridge name='lxcbr0'/>
> > </network>
> >
> > --
> > Regards,
> > Shashwat Shagun
> >
> >
> > _______________________________________________
> > libvirt-users mailing list
> > libvirt-users at redhat.com
> > https://www.redhat.com/mailman/listinfo/libvirt-users
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20180131/76d04d28/attachment.htm>


More information about the libvirt-users mailing list