luci-mod-admin-full: limit interface name length to 15 chars
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 5 Nov 2015 08:54:33 +0000 (10:54 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Thu, 5 Nov 2015 09:08:50 +0000 (11:08 +0200)
commit5511c29bdfbcb986c1efedc2ec133065760108ae
tree71301c6a8e621b6b98fa3e09ca537ae6215f12a6
parenta66c08849a95ad653635b9d8aefe5a8ecb2382f8
luci-mod-admin-full: limit interface name length to 15 chars

Limit the name of a new interface to 15 characters.
Add a note about the maximum length and the automatic protocol/bridge
prefixes (br-, 6in4-, pppoe- etc.).

Reference to:
https://dev.openwrt.org/ticket/20380
https://github.com/openwrt/luci/issues/507

There is a 15 character limit to the "real" interface name,
enforced both in the firewall and dnsmasq. The real interface name
includes the possible prefix "br-", "6in4-" etc. Example of an error:
  interface name `br-lan_protected' must be shorter than IFNAMSIZ (15)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit b1217c88c3566c1bd726bce9203da591af564bcf)
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/iface_add.lua