diff options
author | Thomas Markwalder <tmark@isc.org> | 2019-11-22 13:39:45 -0500 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2019-11-22 13:39:45 -0500 |
commit | 0cd94b5ef4a078097fc2bd1dc72f5e80c2cf1844 (patch) | |
tree | e4dfe9a92d676a49b18ab547d781fb3fb10c8e6a /keama/tests/concatdx4.in4 | |
parent | 97c155273c0df0c8518f226e2b5e338e3ad63e87 (diff) | |
download | isc-dhcp-0cd94b5ef4a078097fc2bd1dc72f5e80c2cf1844.tar.gz |
[#64,!35] Restored work
Restored cummulative work.
Diffstat (limited to 'keama/tests/concatdx4.in4')
-rw-r--r-- | keama/tests/concatdx4.in4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keama/tests/concatdx4.in4 b/keama/tests/concatdx4.in4 new file mode 100644 index 00000000..b94a3a2f --- /dev/null +++ b/keama/tests/concatdx4.in4 @@ -0,0 +1,19 @@ +# concat data expression + +# empty configs are not accepted by Kea +default-lease-time 1800; + +# use substring in a reductible match +class "reductible" { + match concat("domain=", suffix(option host-name, 3)); +} + +subclass "reductible" "domain=com" { } + +# reduce literals too +class "literal" { + match if option host-name = concat("www.", "example.", "com"); +} + +# raw +option host-name = concat("www.", option domain-name); |