summaryrefslogtreecommitdiff
path: root/keama/tests/concatdx4.in4
blob: b94a3a2fb4df6fbceace467158242fe7e56f1345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);