mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
a1b1ab1478
commit
c841a1fa7f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue