[PATCH 03/10] Update XML Schema for new entries

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

 



---
 docs/schemas/domain.rng |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index 891662d..99c7fd6 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -376,6 +376,19 @@
             </element>
           </optional>
           <zeroOrMore>
+            <element name="bandwidth">
+              <attribute name="vcpu">
+                <ref name="vcpuid"/>
+              </attribute>
+              <attribute name="period">
+                <ref name="cpuperiod"/>
+              </attribute>
+              <attribute name="quota">
+                <ref name="cpuquota"/>
+              </attribute>
+            </element>
+          </zeroOrMore>
+          <zeroOrMore>
             <element name="vcpupin">
               <attribute name="vcpu">
                 <ref name="vcpuid"/>
@@ -2371,7 +2384,21 @@
     <data type="unsignedInt">
       <param name="pattern">[0-9]+</param>
     </data>
-   </define>
+  </define>
+  <define name="cpuperiod">
+    <data type="unsignedLong">
+      <param name="pattern">[0-9]+</param>
+      <param name="minInclusive">1000</param>
+      <param name="maxInclusive">1000000</param>
+    </data>
+  </define>
+  <define name="cpuquota">
+    <data type="long">
+      <param name="pattern">-?[0-9]+</param>
+      <param name="maxInclusive">18446744073709511</param>
+      <param name="minInclusive">-1</param>
+    </data>
+  </define>
   <define name="hostName">
     <data type="string">
       <param name="pattern">[a-zA-Z0-9\.\-]+</param>
-- 
1.7.1

--
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]