luci-base: add ipmask, ipmask4 and ipmask6 validators
authorJo-Philipp Wich <jo@mein.io>
Mon, 23 Jan 2017 15:10:36 +0000 (16:10 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 23 Jan 2017 15:19:23 +0000 (16:19 +0100)
commit8297be5485c6444a24bc890099336271012cb9e1
treec0a1cb88ec9af8453693ef26c0dd293df5936eac
parent07ceede1becb16cca3e26cd41539c34c97b2850e
luci-base: add ipmask, ipmask4 and ipmask6 validators

These validators accept IP address specifications in the form

 - address
 - address/bits
 - address/netmask

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/luasrc/cbi/datatypes.lua