| 1 |
{ |
| 2 |
# not boolean expression |
| 3 |
# empty configs are not accepted by Kea |
| 4 |
"Dhcp4": { |
| 5 |
"valid-lifetime": 1800, |
| 6 |
"client-classes": [ |
| 7 |
# use not in a reductible match if |
| 8 |
{ |
| 9 |
"name": "reductible", |
| 10 |
/// from: match if not (option dhcp.host-name) = 'www.example.com' |
| 11 |
"test": "not (option[12].hex == 'www.example.com')" |
| 12 |
} |
| 13 |
] |
| 14 |
// # if test is a boolean too |
| 15 |
// "statement": { |
| 16 |
// "if": { |
| 17 |
// "condition": { |
| 18 |
// "not": { |
| 19 |
// "check": "foo" |
| 20 |
// } |
| 21 |
// }, |
| 22 |
// "then": [ |
| 23 |
// { |
| 24 |
// "add-class": "bar" |
| 25 |
// } |
| 26 |
// ] |
| 27 |
// } |
| 28 |
// } |
| 29 |
} |
| 30 |
} |