[libvirt] [PATCHv2] docs: schema: Add missing <interleave> element to input device

Lily Zhu posted 1 patch 5 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1528972011-29474-1-git-send-email-lizhu@redhat.com
Test syntax-check passed
docs/schemas/domaincommon.rng | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
[libvirt] [PATCHv2] docs: schema: Add missing <interleave> element to input device
Posted by Lily Zhu 5 years, 10 months ago
For the 2 optional sub-elements - <alias> and <address> of input device, make the
order of them interchangeable in the XML.

Signed-off-by: Lily Zhu <lizhu@redhat.com>
---
 docs/schemas/domaincommon.rng | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 1d06a5e..7c7f956 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -4309,12 +4309,14 @@
           </element>
         </group>
       </choice>
-      <optional>
-        <ref name="alias"/>
-      </optional>
-      <optional>
-        <ref name="address"/>
-      </optional>
+      <interleave>
+        <optional>
+          <ref name="alias"/>
+        </optional>
+        <optional>
+          <ref name="address"/>
+        </optional>
+      </interleave>
     </element>
   </define>
   <define name="hub">
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCHv2] docs: schema: Add missing <interleave> element to input device
Posted by Ján Tomko 5 years, 10 months ago
On Thu, Jun 14, 2018 at 06:26:51PM +0800, Lily Zhu wrote:
>For the 2 optional sub-elements - <alias> and <address> of input device, make the
>order of them interchangeable in the XML.
>

They should be interchangeable even with the other sub-elements. In
other words, every sub-element of <input> should be in a big
<interleave>.

Jano

>Signed-off-by: Lily Zhu <lizhu@redhat.com>
>---
> docs/schemas/domaincommon.rng | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
>
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list