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

[libvirt] [PATCH 5/5] macvtap support for libvirt -- schema extensions



This part extends the domain xml schema to support the new interface type 'direct'.

Signed-off-by: Stefan Berger <stefanb us ibm com>



Index: libvirt-macvtap/docs/schemas/domain.rng
===================================================================
--- libvirt-macvtap.orig/docs/schemas/domain.rng
+++ libvirt-macvtap/docs/schemas/domain.rng
@@ -671,6 +671,25 @@
         </group>
         <group>
           <attribute name="type">
+            <value>direct</value>
+          </attribute>
+          <interleave>
+            <element name="source">
+              <attribute name="dev">
+                <ref name="deviceName"/>
+              </attribute>
+              <optional>
+                <attribute name="mode">
+                  <ref name="bridgeMode"/>
+                </attribute>
+              </optional>
+              <empty/>
+            </element>
+            <ref name="interface-options"/>
+          </interleave>
+        </group>
+        <group>
+          <attribute name="type">
             <value>user</value>
           </attribute>
           <interleave>
@@ -1466,6 +1485,11 @@
       <param name="pattern">[a-zA-Z0-9_\.\-:/]+</param>
     </data>
   </define>
+  <define name="bridgeMode">
+    <data type="string">
+      <param name="pattern">(vepa|bridge|private)</param>
+    </data>
+  </define>
   <define name="addrMAC">
     <data type="string">
       <param name="pattern">([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}</param>

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