Hi, i tried adding metadata to Network XML ( NOT DOMAIN XML) but it removes it as soon as i save 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
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 saveThere 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@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users >
Shashwat shagun
2018-Jan-30 20:03 UTC
Re: [libvirt-users] Cannot add metadata to network XML
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@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@redhat.com > > https://www.redhat.com/mailman/listinfo/libvirt-users > > > >