mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Select the network by name
This commit is contained in:
parent
6083b613d9
commit
6d8c45542e
@ -140,6 +140,13 @@ module VagrantPlugins
|
||||
break
|
||||
end
|
||||
end
|
||||
# if network is veryisolated, search by name instead
|
||||
if @options[:libvirt__forward_mode] == "veryisolated"
|
||||
if lookup_network_by_name(@options[:network_name])
|
||||
@interface_network = lookup_network_by_name(@options[:network_name])
|
||||
@logger.debug @interface_network
|
||||
end
|
||||
end
|
||||
|
||||
if @interface_network[:created]
|
||||
verify_dhcp
|
||||
|
Loading…
Reference in New Issue
Block a user