mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
If the network does not have a bridge name, ignore it and move onto the next one. This allows for hostdev networks to exist without breaking. Includes some rudimentary testing to exercise the lookup code along with a small bit of refactoring based on the realisation that there is no need to lookup the network information twice as it is available if the list_all_networks API is used. Fixes: #599
17 lines
419 B
XML
17 lines
419 B
XML
<network>
|
|
<name>default</name>
|
|
<uuid>39e02111-c66c-4653-86a9-8d20673a4eb1</uuid>
|
|
<forward mode='nat'>
|
|
<nat>
|
|
<port start='1024' end='65535'/>
|
|
</nat>
|
|
</forward>
|
|
<bridge name='virbr0' stp='on' delay='0'/>
|
|
<mac address='74-c3-fd-27-a8-c9'/>
|
|
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
|
<dhcp>
|
|
<range start='192.168.122.2' end='192.168.122.254'/>
|
|
</dhcp>
|
|
</ip>
|
|
</network>
|