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

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

 



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

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>


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){1}</param>
+    </data>
+  </define>
   <define name="addrMAC">
     <data type="string">
       <param name="pattern">([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}</param>
--
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]