mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
3db89662c2
Currently it is not possible to determine the speed of an interface and whether a link is actually detected from the API. Orchestrating platforms want to be able to determine when the link has failed and where multiple speeds may be available which one the interface is actually connected at. This commit introduces an extension to our interface XML (without implementation to interface driver backends): <interface type='ethernet' name='eth0'> <start mode='none'/> <mac address='aa:bb:cc:dd:ee:ff'/> <link speed='1000' state='up'/> <mtu size='1492'/> ... </interface> Where @speed is negotiated link speed in Mbits per second, and state is the current NIC state (can be one of the following: "unknown", "notpresent", "down", "lowerlayerdown","testing", "dormant", "up"). Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
16 lines
383 B
XML
16 lines
383 B
XML
<interface type='bridge' name='br0'>
|
|
<start mode='onboot'/>
|
|
<mtu size='1500'/>
|
|
<protocol family='ipv4'>
|
|
<dhcp/>
|
|
</protocol>
|
|
<bridge stp='off' delay='0.01'>
|
|
<interface type='ethernet' name='eth0'>
|
|
<mac address='ab:bb:cc:dd:ee:ff'/>
|
|
<link speed='10'/>
|
|
</interface>
|
|
<interface type='ethernet' name='eth1'>
|
|
</interface>
|
|
</bridge>
|
|
</interface>
|