mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
0b33d7c921
This modifies the formatting function of virInterface to be a proper mirror of the parse function, including the addition of a "parentIfType" arg so that we can decide whether or not it is appropriate to emit the elements that are only in toplevel interfaces, as well as the <link> element (which isn't allowed for bridge interfaces). Since the restructuring of the code necessarily changes the order of some of the elements, some test case data had to be updated.
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'>
|
|
<link speed='10'/>
|
|
<mac address='ab:bb:cc:dd:ee:ff'/>
|
|
</interface>
|
|
<interface type='ethernet' name='eth1'>
|
|
</interface>
|
|
</bridge>
|
|
</interface>
|