]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rng: Separate virtio serial port and ccid slot from driveUnit
authorHan Han <hhan@redhat.com>
Wed, 4 Dec 2019 09:35:38 +0000 (17:35 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Dec 2019 12:20:57 +0000 (13:20 +0100)
Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/domaincommon.rng

index a83c9ae7a53bcc2563e611ad48d1c4bc94343168..d60d94e9ae6815bd0e6af372142cb0849c1ea8a2 100644 (file)
     </optional>
     <optional>
       <attribute name="port">
-        <ref name="driveUnit"/>
+        <ref name="virtioserialPort"/>
       </attribute>
     </optional>
   </define>
     </attribute>
     <optional>
       <attribute name="slot">
-        <ref name="driveUnit"/>
+        <ref name="ccidSlot"/>
       </attribute>
     </optional>
   </define>
       <param name="pattern">[a-zA-Z0-9_\-.]+</param>
     </data>
   </define>
+  <define name="virtioserialPort">
+    <data type="string">
+      <param name="pattern">[0-9]{1,2}</param>
+    </data>
+  </define>
+  <define name="ccidSlot">
+    <data type="string">
+      <param name="pattern">[0-9]{1,2}</param>
+    </data>
+  </define>
   <define name='alias'>
     <element name='alias'>
       <attribute name='name'>