]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: fix some problems in network/interface schemas
authorLaine Stump <laine@laine.org>
Sun, 12 Aug 2012 16:01:32 +0000 (12:01 -0400)
committerLaine Stump <laine@laine.org>
Wed, 15 Aug 2012 17:10:57 +0000 (13:10 -0400)
<portgroup> allows a <bandwidth> element, but the schema didn't have
this. Since this makes for multiple elements in portgroup, they must
be interleaved.

<interface type='bridge'> needs to allow <virtualport> elements
for openvswitch, but the schema didn't allow this.

docs/schemas/domaincommon.rng
docs/schemas/network.rng

index 1b94155acfac29a5e8e49a793afaf5755f385519..767fccda0898b2761b820324221cac4fc6d71c0c 100644 (file)
                 <empty/>
               </element>
             </optional>
+            <optional>
+              <ref name="virtualPortProfile"/>
+            </optional>
             <ref name="interface-options"/>
           </interleave>
         </group>
index 25df26686a76604ddb12535518809c2d251dceb2..124c9f982ae7af2e0716f302dee4da1d468107a8 100644 (file)
                 </choice>
               </attribute>
             </optional>
-            <optional>
-              <ref name="virtualPortProfile"/>
-            </optional>
+            <interleave>
+              <optional>
+                <ref name="virtualPortProfile"/>
+              </optional>
+              <optional>
+                <ref name="bandwidth"/>
+              </optional>
+            </interleave>
           </element>
         </zeroOrMore>