keama/tests/ifxsc4.in4
raw| 1 | # if executable statement construct |
| 2 | |
| 3 | # empty configs are not accepted by Kea |
| 4 | default-lease-time 1800; |
| 5 | |
| 6 | # if statement |
| 7 | # first true is not recognized even as a boolean expression |
| 8 | if true { |
| 9 | option ip-forwarding true; |
| 10 | } |
| 11 | |
| 12 | # another |
| 13 | if ( option user-class = "accounting" ) { |
| 14 | option boot-size 100000; |
| 15 | } elsif option user-class = "engineering" { |
| 16 | option domain-name "example.com"; |
| 17 | } |