mirror of https://gitee.com/openkylin/libvirt.git
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. |
||
---|---|---|
.. | ||
bond-arp.xml | ||
bond.xml | ||
bridge-bond.xml | ||
bridge-empty.xml | ||
bridge-no-address.xml | ||
bridge-vlan.xml | ||
bridge.xml | ||
bridge42.xml | ||
ethernet-dhcp.xml | ||
ethernet-static-no-prefix.xml | ||
ethernet-static.xml | ||
ipv6-autoconf-dhcp.xml | ||
ipv6-autoconf.xml | ||
ipv6-dhcp.xml | ||
ipv6-local.xml | ||
ipv6-static-multi.xml | ||
ipv6-static.xml | ||
vlan.xml |