Debian Codegraph @

keama/tests/suffixdx4.in4

raw
1 # suffix data expression
2 # in fact ISC DHCP suffix can be reduced into Kea substring
3
4 # empty configs are not accepted by Kea
5 default-lease-time 1800;
6
7 # use suffix in a reductible match
8 class "reductible" {
9 match suffix(option host-name, 3);
10 }
11
12 subclass "reductible" "com" {
13 option domain-search "example.com";
14 }
15
16 subclass "reductible" "org" {
17 option domain-search "example.org";
18 }
19
20 # reduce literals too
21 class "literal" {
22 match if option domain-name = suffix("www.example.com", 3);
23 }
24
25 # raw
26 option domain-name = suffix(option domain-name, 3);