Tomas Srnka 4c35f6b070 Revert "Added config option to specify VLanId for Network Adapter when using HyperV provider"
This reverts commit 2a487af68d968c75a6c3fc04406d00a54b2ad50a.
2015-01-11 18:10:46 +01:00

30 lines
594 B
Ruby

require "vagrant"
module VagrantPlugins
module HyperV
class Config < Vagrant.plugin("2", :config)
# The timeout to wait for an IP address when booting the machine,
# in seconds.
#
# @return [Integer]
attr_accessor :ip_address_timeout
def initialize
@ip_address_timeout = UNSET_VALUE
end
def finalize!
if @ip_address_timeout == UNSET_VALUE
@ip_address_timeout = 120
end
end
def validate(machine)
errors = _detected_errors
{ "Hyper-V" => errors }
end
end
end
end