libvirt/tests/interfaceschemadata/ethernet-dhcp.xml
Laine Stump 0b33d7c921 interface: clean up virInterfaceDefDevFormat
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.
2014-06-20 11:50:41 +03:00

10 lines
223 B
XML

<interface type='ethernet' name='eth0'>
<start mode='none'/>
<mtu size='1492'/>
<protocol family='ipv4'>
<dhcp peerdns='no'/>
</protocol>
<link state='down'/>
<mac address='aa:bb:cc:dd:ee:ff'/>
</interface>