{ # simplified hardware data expression # hardware type class "Dhcp4": { "client-classes": [ { "name": "ethernet", /// from: match if (substring(hardware, 0, 1)) = (encode-int(1, 8)) "test": "substring(pkt4.htype,-1,all) == '\u0001'" }, # ethernet address superclass /// match: substring(hardware, 1, 6) { "name": "ethernet-address" }, /// subclass selector 0x0x000bfd32e6fa { "name": "sub#ethernet-address#0", /// from: match substring(hardware, 1, 6) /// data: 0x000bfd32e6fa "test": "substring(pkt4.mac,0,6) == 0x000bfd32e6fa" } ] } }