]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: networkport: Allow interleaving of subelements of 'driver' subelement of...
authorPeter Krempa <pkrempa@redhat.com>
Thu, 13 Oct 2022 16:21:30 +0000 (18:21 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Nov 2022 12:07:20 +0000 (13:07 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/schemas/networkport.rng

index 2ca76c10df7acfe6488c206f502b5ab797011d0d..14db949578f46bff02d23edae1b4f4a6b204951d 100644 (file)
         <ref name="virYesNo"/>
       </attribute>
     </optional>
-    <optional>
-      <element name="driver">
-        <attribute name="name">
-          <choice>
-            <value>kvm</value>
-            <value>vfio</value>
-          </choice>
-        </attribute>
-        <empty/>
+    <interleave>
+      <optional>
+        <element name="driver">
+          <attribute name="name">
+            <choice>
+              <value>kvm</value>
+              <value>vfio</value>
+            </choice>
+          </attribute>
+          <empty/>
+        </element>
+      </optional>
+      <element name="address">
+        <ref name="pciaddress"/>
       </element>
-    </optional>
-    <element name="address">
-      <ref name="pciaddress"/>
-    </element>
+    </interleave>
   </define>
 
 </grammar>