keama/tests/concatnulldx4.in4
raw| 1 | # concat with null argument data expression |
| 2 | |
| 3 | # empty configs are not accepted by Kea |
| 4 | default-lease-time 1800; |
| 5 | |
| 6 | # null left argument |
| 7 | class "null-left" { |
| 8 | match concat("", suffix(option host-name, 3)); |
| 9 | } |
| 10 | |
| 11 | subclass "null-left" "com" { } |
| 12 | |
| 13 | # null right argument |
| 14 | class "null-right" { |
| 15 | match concat(suffix(option host-name, 3), substring("foobar", 0, 0)); |
| 16 | } |
| 17 | |
| 18 | subclass "null-right" "org" { } |