mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
schema: Fix interface link state schema
In commit edd1295e1da6bfe8e4e257e5fbfad71ac0bf7c87 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 (cherry picked from commit 8eb907b8d0fd73c8f88f9cd8df1fa0e7abf40c93)
This commit is contained in:
parent
d048e8ec9e
commit
e022ba7334
@ -2314,9 +2314,21 @@
|
||||
- the name of the script used to set up the binding
|
||||
- the target device used
|
||||
- boot order
|
||||
- link state
|
||||
-->
|
||||
<define name="interface-options">
|
||||
<interleave>
|
||||
<optional>
|
||||
<element name="link">
|
||||
<attribute name="state">
|
||||
<choice>
|
||||
<value>up</value>
|
||||
<value>down</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<empty/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name="target">
|
||||
<attribute name="dev">
|
||||
|
@ -299,17 +299,6 @@
|
||||
<optional>
|
||||
<ref name="vlan"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name="link">
|
||||
<attribute name="state">
|
||||
<choice>
|
||||
<value>up</value>
|
||||
<value>down</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<empty/>
|
||||
</element>
|
||||
</optional>
|
||||
|
||||
<!-- <ip> element -->
|
||||
<zeroOrMore>
|
||||
|
@ -39,6 +39,7 @@
|
||||
<mac address='52:54:00:e5:48:58'/>
|
||||
<model type='virtio'/>
|
||||
<driver ioeventfd='on' event_idx='on' queues='5'/>
|
||||
<link state='up'/>
|
||||
</interface>
|
||||
<serial type='pty'>
|
||||
<target port='0'/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user