]> xenbits.xensource.com Git - libvirt.git/commitdiff
512069 fix domain XML schemas for backward compatibility
authorDaniel Veillard <veillard@redhat.com>
Wed, 18 Nov 2009 10:25:20 +0000 (11:25 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 20 Nov 2009 14:48:19 +0000 (15:48 +0100)
For backward compatibility we used to add the tty path as
a tty attribute on console of type pty, duplicating the value
now found in source/@path, but the Relax-NG grammar wasn't
extended for this
    <console type='pty' tty='/dev/pts/8'>
      <source path='/dev/pts/8'/>
      <target port='0'/>
    </console>

* docs/schemas/domain.rng: allow an optional tty attribute
  containing a devicePath

docs/schemas/domain.rng

index 1bf44fde0549b60d4edae9d72693f7d7792d4f48..e726801fe173b1093ee71fb573f8b626576b13fc 100644 (file)
     -->
   <define name="qemucdev">
     <ref name="qemucdevSrcType"/>
+    <optional>
+      <attribute name="tty">
+        <ref name="devicePath"/>
+      </attribute>
+    </optional>
     <interleave>
       <ref name="qemucdevSrcDef"/>
       <optional>