Revision de1ecf7b
Added by Ohad Levy over 12 years ago
- ID de1ecf7b5c4b564c3db6760d35fd7563dee70652
lib/proxy/dhcp/record/reservation.rb | ||
---|---|---|
attr_reader :name
|
||
|
||
def initialize options = {}
|
||
@name = options[:name] || options[:hostname] || raise("Must define a name: #{@options.inspect}")
|
||
@name = options[:name] || options[:hostname] || raise("Must define a name: #{options.inspect}")
|
||
super options
|
||
end
|
||
|
||
... | ... | |
end
|
||
|
||
def method_missing arg
|
||
@options[arg]
|
||
options[arg]
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
fixes #1154 - ms dhcp smart proxy error 400
This commit is not ideal in term of performance, as it forces us to read each
reservation options, a probably better approch is to read the output from the
dump command instead.