xref: /netbsd-src/external/mpl/dhcp/dist/keama/tests/substringdx4.in4 (revision e670fd5c413e99c2f6a37901bb21c537fcd322d2)
1# substring data expression
2
3# empty configs are not accepted by Kea
4default-lease-time 1800;
5
6# use substring in a reductible match
7class "reductible" {
8    match substring(option host-name, 0, 3);
9}
10
11subclass "reductible" "www" { }
12
13# reduce literals too
14class "literal" {
15    match if option host-name = substring("www.example.com", 0, 3);
16}
17
18# raw
19option domain-name = substring(option domain-name, 4, 1000);
20
21
22