[libvirt] PATCH: update the XML domain RelaxNG schemas

Daniel Veillard veillard at redhat.com
Thu Apr 2 09:19:58 UTC 2009


  pritesh raised the issue on IRC, so I checked the schemas against the
current parsing routines and found a few missing items, I also sorted
the device lice to match the enum sequence in the C file.
  One thing missing and still TODO is the interface definition block,
the C parser accepts the "server", "client" and "mcast" types but the
RNG doesn't list them in the choice for "interface"

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
-------------- next part --------------
Index: docs/schemas/domain.rng
===================================================================
RCS file: /data/cvs/libxen/docs/schemas/domain.rng,v
retrieving revision 1.6
diff -u -r1.6 domain.rng
--- docs/schemas/domain.rng	19 Mar 2009 14:26:51 -0000	1.6
+++ docs/schemas/domain.rng	2 Apr 2009 09:14:03 -0000
@@ -430,10 +430,12 @@
          <attribute name='bus'>
            <choice>
              <value>ide</value>
-             <value>virtio</value>
              <value>fdc</value>
+             <value>scsi</value>
+             <value>virtio</value>
              <value>xen</value>
              <value>usb</value>
+             <value>uml</value>
            </choice>
          </attribute>
       </optional>
@@ -1005,16 +1007,17 @@
 	</optional>
 	<zeroOrMore>
 	  <choice>
-	    <ref name='graphic'/>
 	    <ref name='disk'/>
 	    <ref name='filesystem'/>
 	    <ref name='interface'/>
-	    <ref name='console'/>
+            <ref name='input'/>
             <ref name='sound'/>
+            <ref name='hostdev'/>
+
+	    <ref name='graphic'/>
+	    <ref name='console'/>
             <ref name='parallel'/>
             <ref name='serial'/>
-            <ref name='input'/>
-            <ref name='hostdev'/>
 	  </choice>
 	</zeroOrMore>
       </interleave>


More information about the libvir-list mailing list