Select the network by name

This commit is contained in:
Joe Julian 2015-07-17 15:31:17 -07:00
parent 6083b613d9
commit 6d8c45542e

View File

@ -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