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
454 B
XML
17 lines
454 B
XML
<network connections='1' ipv6='yes'>
|
|
<name>vagrant-libvirt</name>
|
|
<uuid>7347e8a9-bd25-409c-b4c3-ebf8744322bc</uuid>
|
|
<forward mode='nat'>
|
|
<nat>
|
|
<port start='1024' end='65535'/>
|
|
</nat>
|
|
</forward>
|
|
<bridge name='virbr1' stp='on' delay='0'/>
|
|
<mac address='52:54:00:d1:56:08'/>
|
|
<ip address='192.168.121.1' netmask='255.255.255.0'>
|
|
<dhcp>
|
|
<range start='192.168.121.1' end='192.168.121.254'/>
|
|
</dhcp>
|
|
</ip>
|
|
</network>
|