| 1 |
{ |
| 2 |
# subclass declaration config |
| 3 |
# options |
| 4 |
"Dhcp6": { |
| 5 |
"option-def": [ |
| 6 |
{ |
| 7 |
"space": "dhcp6", |
| 8 |
"name": "hardware", |
| 9 |
"code": 1250, |
| 10 |
"type": "string" |
| 11 |
}, |
| 12 |
{ |
| 13 |
"space": "dhcp6", |
| 14 |
"name": "myversion", |
| 15 |
"code": 1251, |
| 16 |
"type": "uint16" |
| 17 |
} |
| 18 |
], |
| 19 |
"client-classes": [ |
| 20 |
# superclass declaration |
| 21 |
/// match: option dhcp6.hardware |
| 22 |
{ |
| 23 |
"name": "foobar", |
| 24 |
"option-data": [ |
| 25 |
# no harware in DHCPv6 |
| 26 |
{ |
| 27 |
"space": "dhcp6", |
| 28 |
"name": "myversion", |
| 29 |
"code": 1251, |
| 30 |
"data": "1" |
| 31 |
} |
| 32 |
] |
| 33 |
}, |
| 34 |
# simple subclass declaration |
| 35 |
/// subclass selector 0x0x0100070e364819 |
| 36 |
{ |
| 37 |
"name": "sub#foobar#0", |
| 38 |
"option-data": [ |
| 39 |
# no harware in DHCPv6 |
| 40 |
{ |
| 41 |
"space": "dhcp6", |
| 42 |
"name": "myversion", |
| 43 |
"code": 1251, |
| 44 |
"data": "1" |
| 45 |
} |
| 46 |
], |
| 47 |
/// from: match option dhcp6.hardware |
| 48 |
/// data: 0x0100070e364819 |
| 49 |
"test": "option[1250].hex == 0x0100070e364819" |
| 50 |
}, |
| 51 |
# option setting subclass declaration |
| 52 |
/// subclass selector 0x0x01000bfd32e6fa |
| 53 |
{ |
| 54 |
"name": "sub#foobar#1", |
| 55 |
"option-data": [ |
| 56 |
{ |
| 57 |
"space": "dhcp6", |
| 58 |
"name": "myversion", |
| 59 |
"code": 1251, |
| 60 |
"data": "2" |
| 61 |
} |
| 62 |
], |
| 63 |
/// from: match option dhcp6.hardware |
| 64 |
/// data: 0x01000bfd32e6fa |
| 65 |
"test": "option[1250].hex == 0x01000bfd32e6fa" |
| 66 |
}, |
| 67 |
# complex subclass declaration |
| 68 |
/// subclass selector 0x0x010002b388c527 |
| 69 |
{ |
| 70 |
"name": "sub#foobar#2", |
| 71 |
"option-data": [ |
| 72 |
{ |
| 73 |
"space": "dhcp6", |
| 74 |
"name": "myversion", |
| 75 |
"code": 1251, |
| 76 |
"data": "3" |
| 77 |
} |
| 78 |
], |
| 79 |
// /// Per-class limit is not supported by Kea |
| 80 |
// /// Reference Kea #237 |
| 81 |
// "lease-limit": 20, |
| 82 |
/// from: match option dhcp6.hardware |
| 83 |
/// data: 0x010002b388c527 |
| 84 |
"test": "option[1250].hex == 0x010002b388c527" |
| 85 |
} |
| 86 |
] |
| 87 |
} |
| 88 |
} |