]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
interface: clean up virInterfaceDefDevFormat
authorLaine Stump <laine@laine.org>
Thu, 19 Jun 2014 09:58:56 +0000 (12:58 +0300)
committerLaine Stump <laine@laine.org>
Fri, 20 Jun 2014 08:50:41 +0000 (11:50 +0300)
commit0b33d7c921af5cf5ad4354631c4db2e156dd704c
tree606ab2c27d893c24553da6c085c50bd821f95a66
parent3aa8197393c701fc40dda16f6e15e0b6f4cbe1c0
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.
src/conf/interface_conf.c
tests/interfaceschemadata/bond.xml
tests/interfaceschemadata/bridge-no-address.xml
tests/interfaceschemadata/bridge.xml
tests/interfaceschemadata/ethernet-dhcp.xml
tests/interfaceschemadata/vlan.xml