Project

General

Profile

Actions

Todo #765

closed

Patch: Add custom DHCP configuration

Added by Chris Buechler over 14 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
DHCP (IPv4)
Target version:
Start date:
07/28/2010
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

Description

patch attached but should not be committed as is, should use base64 rather than cdata.

from Jonathan Dieter on support@

In current 2.0BETA3, it seems that there's no way to write one's own
configuration settings into dhcpd.conf. For example, if I want to
chain-load gPXE, there's nowhere to put the following:

if exists user-class and option user-class = "gPXE" {
filename "http://www.lesaz.loc/netboot/pxelinux.0";
} else {
filename "gpxe.pxe";
}

I've added a "Custom DHCP configuration" that will be inserted at the
end of the subnet declaration. To be honest, this feels a bit hackish
(why at that location), but I'm not sure of any better place to put it.

I did modify xmlparse.inc to make any name that ends as "_cdata" a CDATA
type, as that was the most logical way that I could think of to maintain
newlines. If there's a better way, please correct it (or let me know
and I'll correct it).


Files

Actions

Also available in: Atom PDF