1{ 2 # switch executable statement construct 3 # empty configs are not accepted by Kea 4 "Dhcp6": { 5 "valid-lifetime": 1800 6// # a switch 7// "statement": { 8// "switch": { 9// "condition": { 10// "option": { 11// "universe": "dhcp6", 12// "name": "remote-id", 13// "code": 37 14// } 15// }, 16// "body": [ 17// { 18// "case": "accounting" 19// }, 20// { 21// /// Kea does not support option data set variants (default) 22// "option": { 23// "space": "dhcp6", 24// "name": "bootfile-url", 25// "code": 59, 26// "data": "foobar" 27// } 28// }, 29// { 30// "config": { 31// "name": "default-lease-time", 32// "code": 1, 33// "value": 3600 34// } 35// }, 36// { 37// "unset": { 38// "name": "foo" 39// } 40// }, 41// { 42// "break": null 43// }, 44// { 45// "case": "engineering" 46// }, 47// { 48// "config": { 49// "value": "deny", 50// "name": "declines", 51// "code": 29 52// } 53// }, 54// { 55// /// Kea does not support yet log statements 56// /// Reference Kea #234 57// "log": { 58// "priority": "debug", 59// "message": "hello" 60// } 61// }, 62// { 63// "define": { 64// "name": "foo", 65// "function": { 66// "arguments": "x", 67// "body": [ 68// { 69// "return": "world" 70// } 71// ] 72// } 73// } 74// }, 75// { 76// "break": null 77// } 78// ] 79// } 80// } 81 } 82} 83