Akkadius / glass-isc-dhcp

Glass - ISC DHCP Server Interface
MIT License
686 stars 143 forks source link

Interface name in MAC field #31

Open yabiru opened 5 years ago

yabiru commented 5 years ago

imagen

This only happens with huawei switchs, in other equipment works perfectly. i'm running on Ubuntu Server 16.04.4 x64bits

Akkadius commented 5 years ago

Do we have an example of the raw lease in the leases file that this is parsing? I can write a test case around this

yabiru commented 5 years ago

dhcpd.leases.log

example:

lease 10.12.51.11 { starts 3 2019/03/27 10:04:06; ends 4 2019/03/28 10:04:06; tstp 4 2019/03/28 10:04:06; cltt 3 2019/03/27 10:04:06; binding state active; next binding state free; rewind binding state free; hardware ethernet 00:02:02:66:2a:97; uid "\001\000\002\002f*\227"; set vendor-class-identifier = "AMINOx5x"; option agent.circuit-id "XGigabitEthernet0/0/20:3221"; option agent.remote-id "00:11:22:33:44:55"; client-hostname "AmiNET"; }

imagen