mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Fix for :public_network and :private_network in the same VM (#872)
* Clean properties between use. Fixes #842 * Remove empty log line
This commit is contained in:
committed by
Dmitry Vasilets
parent
60e93d4925
commit
92dc692b08
@@ -186,7 +186,6 @@ module VagrantPlugins
|
||||
if not @cpu_topology.empty?
|
||||
env[:ui].info(" -- CPU topology: sockets=#{@cpu_topology[:sockets]}, cores=#{@cpu_topology[:cores]}, threads=#{@cpu_topology[:threads]}")
|
||||
end
|
||||
env[:ui].info("")
|
||||
@cpu_features.each do |cpu_feature|
|
||||
env[:ui].info(" -- CPU Feature: name=#{cpu_feature[:name]}, policy=#{cpu_feature[:policy]}")
|
||||
end
|
||||
|
||||
@@ -80,6 +80,8 @@ module VagrantPlugins
|
||||
@pci_bus = iface_configuration.fetch(:bus, nil)
|
||||
@pci_slot = iface_configuration.fetch(:slot, nil)
|
||||
template_name = 'interface'
|
||||
@type = nil
|
||||
@udp_tunnel = nil
|
||||
# Configuration for public interfaces which use the macvtap driver
|
||||
if iface_configuration[:iface_type] == :public_network
|
||||
@device = iface_configuration.fetch(:dev, 'eth0')
|
||||
|
||||
Reference in New Issue
Block a user