macvtap support for libvirt -- schema extensions

* docs/schemas/domain.rng: extends the domain xml schema to support the
  new interface type 'direct'
This commit is contained in:
Stefan Berger 2010-02-15 17:43:42 +01:00 committed by Daniel Veillard
parent a1b1ab1478
commit c841a1fa7f
1 changed files with 24 additions and 0 deletions

View File

@ -669,6 +669,25 @@
<ref name="interface-options"/>
</interleave>
</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>
@ -1483,6 +1502,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>