{ # if executable statement construct # empty configs are not accepted by Kea "Dhcp4": { "valid-lifetime": 1800 // # if statement // # first true is not recognized even as a boolean expression // "statement": { // "if": { // "condition": { // "variable-reference": "true" // }, // "then": [ // { // "option": { // "space": "dhcp4", // "name": "ip-forwarding", // "code": 19, // "data": "true" // } // } // ] // } // } // # another // "statement": { // "if": { // "condition": { // "equal": { // "left": { // "option": { // "universe": "dhcp", // "name": "user-class", // "code": 77 // } // }, // "right": "accounting" // } // }, // "then": [ // { // "option": { // "space": "dhcp4", // "name": "boot-size", // "code": 13, // "data": "100000" // } // } // ], // "else": { // "if": { // "condition": { // "equal": { // "left": { // "option": { // "universe": "dhcp", // "name": "user-class", // "code": 77 // } // }, // "right": "engineering" // } // }, // "then": [ // { // "option": { // "space": "dhcp4", // "name": "domain-name", // "code": 15, // "data": "example.com" // } // } // ] // } // } // } // } } }