Project

General

Profile

« Previous | Next » 

Revision cabb60bc

Added by Jimmi Dyson about 10 years ago

Fixes #5712: Limit DHCP subnets for ISC if necessary

View differences:

config/settings.yml.example
# - native_ms (Microsoft native implementation)
# - virsh (simple implementation for libvirt)
:dhcp_vendor: isc
# dhcp_subnets is a Native MS implementation setting. It restricts the subnets queried to a
# dhcp_subnets is an ISC & Native MS implementation setting. It restricts the subnets queried to a
# subset, so as to reduce the query time.
#:dhcp_subnets: [192.168.205.0/255.255.255.128, 192.168.205.128/255.255.255.128]
# Settings for Ubuntu ISC
lib/proxy/dhcp/server/isc.rb
super
@config.each_line do |line|
if line =~ /^\s*subnet\s+([\d\.]+)\s+netmask\s+([\d\.]+)/
next if (managed_subnets = SETTINGS.dhcp_subnets) and !managed_subnets.include? "#{$1}/#{$2}"
Proxy::DHCP::Subnet.new(self, $1, $2)
end
end

Also available in: Unified diff