luci-base: datatypes: add cidr, ipnet validator type
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 21 Aug 2017 13:33:02 +0000 (21:33 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Tue, 22 Aug 2017 12:19:49 +0000 (20:19 +0800)
commit3809bd6ffb5b2da8c1988bc7e9d6bec7dbf3efe8
tree139c1c48d1d271e6fa5691224f1aa71323ed83b1
parent5e022ade5cadf4ff9998b6311664af8f95b0ca13
luci-base: datatypes: add cidr, ipnet validator type

- Rewrite ipmask to use these subtypes
- Add ip{4,6}prefix validators to cbi.js

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/luasrc/cbi/datatypes.lua