From 21aba9c483dab8ae4a261218a75bc632fc8143e7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 20 Mar 2013 15:25:38 +0000 Subject: modules/admin-full: allow special value "ignore" for static lease ip address (#558) --- modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/admin-full/luasrc/model/cbi') diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua index 98f9d8ecf9..7b5a42c22a 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua @@ -239,7 +239,7 @@ mac.datatype = "list(macaddr)" mac.rmempty = true ip = s:option(Value, "ip", translate("IPv4-Address")) -ip.datatype = "ip4addr" +ip.datatype = "or(ip4addr,'ignore')" sys.net.arptable(function(entry) ip:value(entry["IP address"]) -- cgit v1.2.3