modules/admin-full: allow special value "ignore" for static lease ip address (#558)
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 20 Mar 2013 15:25:38 +0000 (15:25 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 20 Mar 2013 15:25:38 +0000 (15:25 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua

index 98f9d8e..7b5a42c 100644 (file)
@@ -239,7 +239,7 @@ mac.datatype = "list(macaddr)"
 mac.rmempty  = true
 
 ip = s:option(Value, "ip", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address"))
-ip.datatype = "ip4addr"
+ip.datatype = "or(ip4addr,'ignore')"
 
 sys.net.arptable(function(entry)
        ip:value(entry["IP address"])