| 1 |
{ |
| 2 |
# subclass declaration config |
| 3 |
# options |
| 4 |
"Dhcp4": { |
| 5 |
"option-def": [ |
| 6 |
{ |
| 7 |
"space": "dhcp4", |
| 8 |
"name": "myversion", |
| 9 |
"code": 251, |
| 10 |
"type": "uint16" |
| 11 |
} |
| 12 |
], |
| 13 |
"client-classes": [ |
| 14 |
# superclass declaration |
| 15 |
/// match: hardware |
| 16 |
{ |
| 17 |
"name": "foobar", |
| 18 |
"option-data": [ |
| 19 |
{ |
| 20 |
"space": "dhcp4", |
| 21 |
"name": "myversion", |
| 22 |
"code": 251, |
| 23 |
"data": "1" |
| 24 |
} |
| 25 |
] |
| 26 |
}, |
| 27 |
# simple subclass declaration |
| 28 |
/// subclass selector 0x0x0100070e364819 |
| 29 |
{ |
| 30 |
"name": "sub#foobar#0", |
| 31 |
"option-data": [ |
| 32 |
{ |
| 33 |
"space": "dhcp4", |
| 34 |
"name": "myversion", |
| 35 |
"code": 251, |
| 36 |
"data": "1" |
| 37 |
} |
| 38 |
], |
| 39 |
/// from: match hardware |
| 40 |
/// data: 0x0100070e364819 |
| 41 |
"test": "concat(substring(pkt4.htype,-1,all), pkt4.mac) == 0x0100070e364819" |
| 42 |
}, |
| 43 |
# option setting subclass declaration |
| 44 |
/// subclass selector 0x0x01000bfd32e6fa |
| 45 |
{ |
| 46 |
"name": "sub#foobar#1", |
| 47 |
"option-data": [ |
| 48 |
{ |
| 49 |
"space": "dhcp4", |
| 50 |
"name": "myversion", |
| 51 |
"code": 251, |
| 52 |
"data": "2" |
| 53 |
} |
| 54 |
], |
| 55 |
/// from: match hardware |
| 56 |
/// data: 0x01000bfd32e6fa |
| 57 |
"test": "concat(substring(pkt4.htype,-1,all), pkt4.mac) == 0x01000bfd32e6fa" |
| 58 |
} |
| 59 |
] |
| 60 |
} |
| 61 |
} |