]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schemas: Make <type/> for capscsi type optional
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Sep 2021 08:29:21 +0000 (10:29 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 21 Sep 2021 12:12:17 +0000 (14:12 +0200)
The <type/> element for <capability type='scsi'> part of nodedev
XML is optional (see udevProcessSCSIDevice()) and as such might
not be formatted into nodedev XML (see
virNodeDeviceCapSCSIDefFormat()). Reflect this in our RNG.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/schemas/nodedev.rng

index 777227c38ab6ed2cdd762d47a7894bbbec5b2780..789b21b8da5e11de5d6bc151a93a5f21b3fa9800 100644 (file)
       <ref name="unsignedLong"/>
     </element>
 
-    <element name="type">
-      <text/>
-    </element>
+    <optional>
+      <element name="type">
+        <text/>
+      </element>
+    </optional>
   </define>
 
   <define name="capstorage">