]> git.ipfire.org Git - thirdparty/libvirt.git/commit
schema: Allow lxc:namepsace children to appear individually
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Dec 2020 15:27:47 +0000 (16:27 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Dec 2020 08:39:26 +0000 (09:39 +0100)
commit4ab1e3bce75b71587d6d6e5ec79a4c4acedcc33d
treed95eeefafff83b02ed6fbcdaf21d635ae3b720c2
parent51d9af4c0cca6b211b840d4984fa6f81f99a4084
schema: Allow lxc:namepsace children to appear individually

Since its introduction in v1.2.19-rc1~8 our schema mandates that
LXC domain namespace child elements appear either all three at
once or not at all:

     <lxc:namespace>
       <lxc:sharenet type='netns' value='red'/>
       <lxc:shareipc type='pid' value='12345'/>
       <lxc:shareuts type='name' value='container1'/>
     </lxc:namespace>

This is not mandated by our parser though. Neither by code that
later uses it (virLXCProcessSetupNamespaces()). Relax the schema.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
docs/schemas/domaincommon.rng