[libvirt] [PATCH 03/14] docs: schemas: Move the interleave definition into network disk source

Peter Krempa posted 14 patches 8 years, 9 months ago
[libvirt] [PATCH 03/14] docs: schemas: Move the interleave definition into network disk source
Posted by Peter Krempa 8 years, 9 months ago
Move it to the place where actually interleaving elements can be placed.
---
 docs/schemas/domaincommon.rng | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 5d17809b3..eca479594 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -1525,8 +1525,8 @@
     <attribute name="type">
       <value>network</value>
     </attribute>
-    <interleave>
-      <element name="source">
+    <element name="source">
+      <interleave>
         <attribute name="protocol">
           <choice>
             <value>nbd</value>
@@ -1564,8 +1564,8 @@
           </element>
         </optional>
         <empty/>
-      </element>
-    </interleave>
+      </interleave>
+    </element>
   </define>

   <define name="diskSourceVolume">
-- 
2.12.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 03/14] docs: schemas: Move the interleave definition into network disk source
Posted by Jiri Denemark 8 years, 9 months ago
On Wed, Apr 26, 2017 at 19:52:33 +0200, Peter Krempa wrote:
> Move it to the place where actually interleaving elements can be placed.
> ---
>  docs/schemas/domaincommon.rng | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
> index 5d17809b3..eca479594 100644
> --- a/docs/schemas/domaincommon.rng
> +++ b/docs/schemas/domaincommon.rng
> @@ -1525,8 +1525,8 @@
>      <attribute name="type">
>        <value>network</value>
>      </attribute>
> -    <interleave>
> -      <element name="source">
> +    <element name="source">
> +      <interleave>
>          <attribute name="protocol">
>            <choice>
>              <value>nbd</value>
> @@ -1564,8 +1564,8 @@
>            </element>
>          </optional>
>          <empty/>
> -      </element>
> -    </interleave>
> +      </interleave>
> +    </element>
>    </define>
> 
>    <define name="diskSourceVolume">

You could have left the attributes outside <interleave>, but it doesn't
matter much.

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list