{ # switch executable statement construct # empty configs are not accepted by Kea "Dhcp6": { "valid-lifetime": 1800 // # a switch // "statement": { // "switch": { // "condition": { // "option": { // "universe": "dhcp6", // "name": "remote-id", // "code": 37 // } // }, // "body": [ // { // "case": "accounting" // }, // { // /// Kea does not support option data set variants (default) // "option": { // "space": "dhcp6", // "name": "bootfile-url", // "code": 59, // "data": "foobar" // } // }, // { // "config": { // "name": "default-lease-time", // "code": 1, // "value": 3600 // } // }, // { // "unset": { // "name": "foo" // } // }, // { // "break": null // }, // { // "case": "engineering" // }, // { // "config": { // "value": "deny", // "name": "declines", // "code": 29 // } // }, // { // /// Kea does not support yet log statements // /// Reference Kea #234 // "log": { // "priority": "debug", // "message": "hello" // } // }, // { // "define": { // "name": "foo", // "function": { // "arguments": "x", // "body": [ // { // "return": "world" // } // ] // } // } // }, // { // "break": null // } // ] // } // } } }