diff options
Diffstat (limited to 'keama/tests/existsbx4.in4')
-rw-r--r-- | keama/tests/existsbx4.in4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/keama/tests/existsbx4.in4 b/keama/tests/existsbx4.in4 new file mode 100644 index 00000000..650a208e --- /dev/null +++ b/keama/tests/existsbx4.in4 @@ -0,0 +1,15 @@ +# exists boolean expression + +# empty configs are not accepted by Kea +default-lease-time 1800; + +# use exists in a reductible match if +class "reductible" { + match if exists host-name; +} + +# if test is a boolean too +if exists host-name { + log(info, concat("hostname:", option host-name)); +} + |