[PATCHv2 1/4] schema: fix some problems in network/interface schemas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<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 |  3 +++
 docs/schemas/network.rng      | 11 ++++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index c85d763..238e57e 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -1409,6 +1409,9 @@
                 <empty/>
               </element>
             </optional>
+            <optional>
+              <ref name="virtualPortProfile"/>
+            </optional>
             <ref name="interface-options"/>
           </interleave>
         </group>
diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng
index 2ae879e..30c5a31 100644
--- a/docs/schemas/network.rng
+++ b/docs/schemas/network.rng
@@ -123,9 +123,14 @@
                 </choice>
               </attribute>
             </optional>
-            <optional>
-              <ref name="virtualPortProfile"/>
-            </optional>
+            <interleave>
+              <optional>
+                <ref name="virtualPortProfile"/>
+              </optional>
+              <optional>
+                <ref name="bandwidth"/>
+              </optional>
+            </interleave>
           </element>
         </zeroOrMore>
 
-- 
1.7.11.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]