2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[219-allow-an-option-value-to-be-set-from-an-expression] Added new tests and an example

This commit is contained in:
Francis Dupont
2019-10-04 21:46:14 +02:00
parent 85ff03658b
commit 3a1cec329b
4 changed files with 100 additions and 8 deletions

View File

@@ -1216,14 +1216,15 @@ take a string value representing an expression.
::
"Dhcp6": {
"Dhcp4": {
"hook_libraries": [
{ "library": "/usr/local/lib/libdhcp_flex_option.so",
"parameters": {
"options": [
{
"code": 100,
"add": "concat(relay6[0].option[37].hex, 'abc')"
"code": 67,
"add":
"ifelse(option[host-name].exists,concat(option[host-name].text,'.boot'),'')"
}
]
}
@@ -1232,8 +1233,14 @@ take a string value representing an expression.
]
}
If (and only if) the query includes a host-name option (code 12),
a boot-file-name option (code 67) is added to the response with the host
name followed by .boot for content.
The flexible option library supports both DHCPv4 and DHCPv6.
.. _host-cmds:
host_cmds: Host Commands