Project

General

Profile

« Previous | Next » 

Revision de1ecf7b

Added by Ohad Levy over 12 years ago

  • ID de1ecf7b5c4b564c3db6760d35fd7563dee70652

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.

View differences:

lib/proxy/dhcp.rb
require "proxy/dhcp/record/reservation"
require "proxy/dhcp/server"
Standard = {
"hostname" => {:code => 12, :kind => "String" }, # The host's name
"nextserver" => {:code => 66, :kind => "String" }, # From where we download the pxeboot image via TFTP
"filename" => {:code => 67, :kind => "String" } # The pxeboot image
:hostname => {:code => 12, :kind => "String" }, # The host's name
:nextServer => {:code => 66, :kind => "String" }, # From where we download the pxeboot image via TFTP
:filename => {:code => 67, :kind => "String" } # The pxeboot image
}
SUNW = {
"root_server_ip" => {:code => 2, :kind => "IPAddress" }, # 192.168.216.241
"root_server_hostname" => {:code => 3, :kind => "String" }, # mediahost
"root_path_name" => {:code => 4, :kind => "String" }, # /vol/solgi_5.10/sol10_hw0910/Solaris_10/Tools/Boot
"install_server_ip" => {:code => 10, :kind => "IPAddress" }, # 192.168.216.241
"install_server_name" => {:code => 11, :kind => "String" }, # mediahost
"install_path" => {:code => 12, :kind => "String" }, # /vol/solgi_5.10/sol10_hw0910
"sysid_server_path" => {:code => 13, :kind => "String" }, # 192.168.216.241:/vol/jumpstart/sysidcfg/sysidcfg_primary
"jumpstart_server_path" => {:code => 14, :kind => "String" } # 192.168.216.241:/vol/jumpstart
:root_server_ip => {:code => 2, :kind => "IPAddress" }, # 192.168.216.241
:root_server_hostname => {:code => 3, :kind => "String" }, # mediahost
:root_path_name => {:code => 4, :kind => "String" }, # /vol/solgi_5.10/sol10_hw0910/Solaris_10/Tools/Boot
:install_server_ip => {:code => 10, :kind => "IPAddress" }, # 192.168.216.241
:install_server_name => {:code => 11, :kind => "String" }, # mediahost
:install_path => {:code => 12, :kind => "String" }, # /vol/solgi_5.10/sol10_hw0910
:sysid_server_path => {:code => 13, :kind => "String" }, # 192.168.216.241:/vol/jumpstart/sysidcfg/sysidcfg_primary
:jumpstart_server_path => {:code => 14, :kind => "String" } # 192.168.216.241:/vol/jumpstart
}
class Error < RuntimeError; end
class Collision < RuntimeError; end

Also available in: Unified diff