diff options
Diffstat (limited to 'keama/tests/hardwaredx4.out')
-rw-r--r-- | keama/tests/hardwaredx4.out | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/keama/tests/hardwaredx4.out b/keama/tests/hardwaredx4.out new file mode 100644 index 00000000..a3f13938 --- /dev/null +++ b/keama/tests/hardwaredx4.out @@ -0,0 +1,55 @@ +{ + # hardware data expression + # empty configs are not accepted by Kea + "Dhcp4": { + "valid-lifetime": 1800, + "client-classes": [ + # pretty standard hardware superclass + /// match: hardware + { + "name": "byhw" + }, + /// subclass selector 0x0x0100070e364819 + { + "name": "sub#byhw#0", + "option-data": [ + { + "space": "dhcp4", + "name": "host-name", + "code": 12, + "data": "test1" + } + ], + /// from: match hardware + /// data: 0x0100070e364819 + "test": "concat(substring(pkt4.htype,-1,all), pkt4.mac) == 0x0100070e364819" + } + ], + "option-data": [ +// # raw +// { +// "space": "dhcp4", +// "name": "host-name", +// "code": 12, +// "csv-format": false, +// "expression": { +// "binary-to-ascii": { +// "base": 16, +// "width": 8, +// "separator": "-", +// "buffer": { +// "concat": { +// "left": { +// "hw-type": null +// }, +// "right": { +// "hw-address": null +// } +// } +// } +// } +// } +// } + ] + } +} |