Project

General

Profile

Actions

Feature #2483

open

DHCP smart-proxy API should accept any "option" in create reservation call

Added by Konstantin Orekhov about 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

As long as a particular option is defined in dhcpd.conf, a user should be able to specify that option during create reservation call.
For example, if I have the following in my config file:

<snip>
option grubmenu code 150 = text;
option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,bootmenu);
<snip>

I should be able to create a reservation with the following call:

curl -X POST http://dhcp:8443/dhcp/192.168.166.0 -d 'hostname=blah' -d 'ip=192.168.166.203' -d 'nextServer=192.168.166.67' -d 'mac=00:50:56:39:ac:40' -d 'grubmenu=pxelinux.cfg/01-00-50-56-39-ac-40' -d 'filename=pxegrub.0'

Thanks!
Konstantin.

No data to display

Actions

Also available in: Atom PDF