]> xenbits.xensource.com Git - libvirt.git/commitdiff
rng: Move sgio attr definition to a separate block
authorErik Skultety <eskultet@redhat.com>
Mon, 20 Apr 2015 07:49:36 +0000 (09:49 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 20 Apr 2015 08:13:36 +0000 (10:13 +0200)
it might be worth having sgio attribute defined in a separate block the same way
as rawio attribute.

docs/schemas/domaincommon.rng

index 9cc5e769aa8716dab8f54a98701b196d58059dd6..19461f5c54a4dca1779501d1ed84f9cf01b8e59d 100644 (file)
             <ref name="rawIO"/>
           </optional>
           <optional>
-            <attribute name="sgio">
-              <choice>
-                <value>filtered</value>
-                <value>unfiltered</value>
-              </choice>
-            </attribute>
+            <ref name="sgIO"/>
           </optional>
           <interleave>
             <choice>
       <value>scsi</value>
     </attribute>
     <optional>
-      <attribute name="sgio">
-        <choice>
-          <value>filtered</value>
-          <value>unfiltered</value>
-        </choice>
-      </attribute>
+        <ref name="sgIO"/>
     </optional>
     <optional>
       <ref name="rawIO"/>
       <ref name="virYesNo"/>
     </attribute>
   </define>
+  <define name="sgIO">
+    <attribute name="sgio">
+      <choice>
+        <value>filtered</value>
+        <value>unfiltered</value>
+      </choice>
+    </attribute>
+  </define>
 </grammar>