host-identifier and option 82

Simon Hobson dhcp1 at thehobsons.co.uk
Sat Jan 28 19:43:24 UTC 2012


=?utf-8?Q?Michal_Van=C4=8Do?= wrote:
>No. According to latest release notes: The "host-identifier" option 
>is limited to a simple token.

Someone would have to try it, but you can define variables. So it 
might be possible to do something like :

circuit=pick-first-value(concatenate(agent.ciruit-id, 
agent.remote-id), agent.ciruit-id, agent.remote-id)

host ...
   host-identifier circuit "foo"
...

The pick-first-value bit allows for one or other element being null. 
IIRC, if you just concatenate two strings, if one of them is null 
then the result is null.

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the dhcp-users mailing list