Re: Cannot add metadata to network XML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvirt-users
>

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux