data-expr question
Jeffrey Hutzelman
jhutz at cmu.edu
Fri Jan 29 23:52:48 UTC 2010
--On Friday, January 29, 2010 10:44:09 AM -0800 "Philip A. Prindeville"
<philipp_subx at redfish-solutions.com> wrote:
> Asked and answered.
>
> The correct syntax is:
>
> send dhcp-client-identifier = hardware;
>
> though in honesty that's less than obvious from the documentation.
> Perhaps an example of using data-expr's other than conditional blocks
> and option xxx = yyyy would make this more apparent?
Yeah; this is a subtle wart in the syntax.
Where you are specifying the value for an option, as in option, send, etc,
the parser normally expects a set of parameters whose syntax depends on the
option, but which in any event are literal values. Using the '='
suppresses this behavior, and allows you to specify a single data
expression that becomes the option's value, regardless of what the normal
syntax is.
-- Jeff
More information about the dhcp-hackers
mailing list