diff options
Diffstat (limited to 'keama/tests/notnotbx4.out')
-rw-r--r-- | keama/tests/notnotbx4.out | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/keama/tests/notnotbx4.out b/keama/tests/notnotbx4.out new file mode 100644 index 00000000..ae1878cc --- /dev/null +++ b/keama/tests/notnotbx4.out @@ -0,0 +1,21 @@ +{ + # double not boolean expression + # empty configs are not accepted by Kea + "Dhcp4": { + "valid-lifetime": 1800, + "client-classes": [ + # use double not in a reductible match if + { + "name": "reductible", + /// from: match if not not ((option dhcp.host-name) = 'www.example.com') or ((option dhcp.host-name) = 'www.example.org') + "test": "(option[12].hex == 'www.example.com') or (option[12].hex == 'www.example.org')" + }, + # use not with != + { + "name": "other", + /// from: match if not (option dhcp.host-name) != 'www.example.com' + "test": "option[12].hex == 'www.example.com'" + } + ] + } +} |