This part extends the domain xml schema to support the new interface type
'direct'.
Signed-off-by: Stefan Berger <[email protected]>
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
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list