luci-mod-admin-full: canonicalize configured static lease MAC
authorJo-Philipp Wich <jo@mein.io>
Wed, 2 May 2018 14:52:37 +0000 (16:52 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 2 May 2018 14:55:22 +0000 (16:55 +0200)
commit9adbd79faa8b2d50e92bd2fd6bc21aabe396591f
tree53fef19d0e74ec1602fdb08824394c32c5245513
parent8335997df5e103a9a8d9f06f0b514e809fb729b7
luci-mod-admin-full: canonicalize configured static lease MAC

When reading the configured mac address of the static lease, filter it
through luci.ip.checkmac() to canonicalize and uppercase the value for
mapping it against the combo box host hints.

Fixes #1772.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua