summaryrefslogtreecommitdiff
path: root/keama/tests/switchxsc4.in4
blob: 7ef6f2f38b0b78b7fb64d71a340934745e030d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# switch executable statement construct

# empty configs are not accepted by Kea
default-lease-time 1800;

# a switch
switch (option user-class) {
case "accounting":
 add "acct";
 send ip-forwarding false;
 default-lease-time 3600;
 break;
case "engineering":
 allow booting;
 log (debug, option host-name);
 set foo = "bar";
 break;
}