blob: 3be93d7df1e41bde2157d64e8107f4cfd094d4c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# multiple groups declaration config
# options
option mysystem code 250 = text;
option myversion code 251 = unsigned integer 16;
option myvalue code 252 = text;
# superclass declaration
class "foobar" {
match option mysystem;
option myversion 1;
}
# simple subclass declaration
subclass "foobar" "version1";
group first {
next-server 10.10.10.1;
# this option is not propagated because the superclass takes precedence
option myversion 99;
# option setting subclass declaration
subclass "foobar" "version2" { option myversion 2; }
# complex subclass declaration
subclass "foobar" "version3" {
option myversion 3;
next-server 192.168.0.1;
}
group second {
# another simple subclass declaration
subclass "foobar" "version10";
# and a final subclass declaration
subclass "foobar" "version20" {
option myversion 20;
next-server 192.168.0.20;
option myvalue "twenty";
}
# positions of delaration do not matter
option myvalue "ten";
}
}
|