mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-29 20:11:16 +00:00
When formatting the forward mode addresses or interfaces the switch was done based on the type of the network rather than of the type of the individual <interface>/<address> element. In case a user would specify an incorrect network type ("passhtrough") with <address> elements, libvirtd would crash as it would attempt to format an <interface>. Use the type of the individual element to format the XML. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1132347
8 lines
228 B
XML
8 lines
228 B
XML
<network>
|
|
<name>passthrough_001</name>
|
|
<uuid>50e92386-8dd1-4a95-8a4b-9a888274eb66</uuid>
|
|
<forward mode='passthrough'>
|
|
<address type='pci' domain='0x0000' bus='0x11' slot='0x10' function='0x1'/>
|
|
</forward>
|
|
</network>
|