提交 8eb907b8 编写于 作者: P Peter Krempa

schema: Fix interface link state schema

In commit edd1295e I've introduced an
XML element that allows to configure state of the network interface
link. Somehow the RNG schema hunk ended up in a weird place in the
network schema definition. Move it to the right place and add a test
case.

Note that the link state is set up via the monitor at VM startup so I
originally didn't think of adding a test case.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1173468
上级 2fd5880b
...@@ -2314,9 +2314,21 @@ ...@@ -2314,9 +2314,21 @@
- the name of the script used to set up the binding - the name of the script used to set up the binding
- the target device used - the target device used
- boot order - boot order
- link state
--> -->
<define name="interface-options"> <define name="interface-options">
<interleave> <interleave>
<optional>
<element name="link">
<attribute name="state">
<choice>
<value>up</value>
<value>down</value>
</choice>
</attribute>
<empty/>
</element>
</optional>
<optional> <optional>
<element name="target"> <element name="target">
<attribute name="dev"> <attribute name="dev">
......
...@@ -299,17 +299,6 @@ ...@@ -299,17 +299,6 @@
<optional> <optional>
<ref name="vlan"/> <ref name="vlan"/>
</optional> </optional>
<optional>
<element name="link">
<attribute name="state">
<choice>
<value>up</value>
<value>down</value>
</choice>
</attribute>
<empty/>
</element>
</optional>
<!-- <ip> element --> <!-- <ip> element -->
<zeroOrMore> <zeroOrMore>
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<mac address='52:54:00:e5:48:58'/> <mac address='52:54:00:e5:48:58'/>
<model type='virtio'/> <model type='virtio'/>
<driver ioeventfd='on' event_idx='on' queues='5'/> <driver ioeventfd='on' event_idx='on' queues='5'/>
<link state='up'/>
</interface> </interface>
<serial type='pty'> <serial type='pty'>
<target port='0'/> <target port='0'/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册