]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: use virYesNo definition in more schemas
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 10 Jan 2022 11:08:01 +0000 (11:08 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 14 Jan 2022 18:56:37 +0000 (18:56 +0000)
A few places are still using an expend yes/no choice instead of the
common virYesNo definition.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
docs/schemas/capability.rng
docs/schemas/domainbackup.rng
docs/schemas/domaincaps.rng
docs/schemas/domaincommon.rng

index 7747a01558546d010f5a583ef7f8e66f71031144..c7e72c6f394e4a138de475c0ea9fce4e00e7d659 100644 (file)
       </optional>
       <optional>
         <attribute name="deprecated">
-          <choice>
-            <value>yes</value>
-            <value>no</value>
-          </choice>
+          <ref name="virYesNo"/>
         </attribute>
       </optional>
       <text/>
index 05cc28ab002cd5f0039d8fa862a7341a97fdcf3d..1ac9da62c112b3d4f9ad7b852ead76e6041adfd1 100644 (file)
               <element name="server">
                 <optional>
                   <attribute name="tls">
-                    <choice>
-                      <value>yes</value>
-                      <value>no</value>
-                    </choice>
+                    <ref name="virYesNo"/>
                   </attribute>
                 </optional>
                 <choice>
index b40ee0f35a2470c9d388777beeb52193f7e55b83..9cbc2467ab22811666a6d15c5a354ba43228d37e 100644 (file)
           </attribute>
           <optional>
             <attribute name="deprecated">
-              <choice>
-                <value>yes</value>
-                <value>no</value>
-              </choice>
+              <ref name="virYesNo"/>
             </attribute>
           </optional>
           <text/>
index 7fa5c2b8b525f4f0b578e684dcd5875ce407a965..169b8d8deebfc69bd8ef1fb78dff7e8ace3a91cc 100644 (file)
           <element name="loader">
             <optional>
               <attribute name="readonly">
-                <choice>
-                  <value>yes</value>
-                  <value>no</value>
-                </choice>
+                <ref name="virYesNo"/>
               </attribute>
             </optional>
             <optional>
               <attribute name="secure">
-                <choice>
-                  <value>yes</value>
-                  <value>no</value>
-                </choice>
+                <ref name="virYesNo"/>
               </attribute>
             </optional>
             <optional>
           <ref name="tpm-backend-emulator-active-pcr-banks"/>
           <optional>
             <attribute name="persistent_state">
-              <choice>
-                <value>yes</value>
-                <value>no</value>
-              </choice>
-           </attribute>
+              <ref name="virYesNo"/>
+            </attribute>
           </optional>
         </group>
       </choice>