keama/tests/concatdx4.in4
raw| 1 | # concat data expression |
| 2 | |
| 3 | # empty configs are not accepted by Kea |
| 4 | default-lease-time 1800; |
| 5 | |
| 6 | # use substring in a reductible match |
| 7 | class "reductible" { |
| 8 | match concat("domain=", suffix(option host-name, 3)); |
| 9 | } |
| 10 | |
| 11 | subclass "reductible" "domain=com" { } |
| 12 | |
| 13 | # reduce literals too |
| 14 | class "literal" { |
| 15 | match if option host-name = concat("www.", "example.", "com"); |
| 16 | } |
| 17 | |
| 18 | # raw |
| 19 | option host-name = concat("www.", option domain-name); |