]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: Be more flexible for diskSourceNetworkProtocolPropsCommon
authorJonathon Jongsma <jjongsma@redhat.com>
Wed, 15 Jun 2022 16:29:47 +0000 (11:29 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Fri, 24 Jun 2022 14:04:06 +0000 (09:04 -0500)
Add <interleave> to allow the subproperties to be specified in any
order.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/schemas/domaincommon.rng

index e2246e6b633abd72774b49984aa20a3b5cbc6041..da2fb0d5cb9c61be5b287e07df780bf1db8a94b7 100644 (file)
   </define>
 
   <define name="diskSourceNetworkProtocolPropsCommon">
-    <optional>
-      <element name="readahead">
-        <attribute name="size">
-          <ref name="positiveInteger"/>
-        </attribute>
-        <empty/>
-      </element>
-    </optional>
-    <optional>
-      <element name="timeout">
-        <attribute name="seconds">
-          <ref name="positiveInteger"/>
-        </attribute>
-        <empty/>
-      </element>
-    </optional>
+    <interleave>
+      <optional>
+        <element name="readahead">
+          <attribute name="size">
+            <ref name="positiveInteger"/>
+          </attribute>
+          <empty/>
+        </element>
+      </optional>
+      <optional>
+        <element name="timeout">
+          <attribute name="seconds">
+            <ref name="positiveInteger"/>
+          </attribute>
+          <empty/>
+        </element>
+      </optional>
+    </interleave>
   </define>
 
   <define name="diskSourceNetworkProtocolSSLVerify">