[libvirt] [PATCH 5/5] macvtap support for libvirt -- schema extensions
Daniel Veillard
veillard at redhat.com
Thu Feb 11 11:09:56 UTC 2010
On Mon, Feb 08, 2010 at 02:38:09PM -0500, Stefan Berger wrote:
> This part extends the domain xml schema to support the new interface type 'direct'.
>
> Signed-off-by: Stefan Berger <stefanb at 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){1}</param>
(vepa|bridge|private) without {1} should be sufficient.
> + </data>
> + </define>
> <define name="addrMAC">
> <data type="string">
> <param name="pattern">([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}</param>
ACK,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list