luci-mod-admin-full: dnsmasq options quietdhcp and sequential_ip
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 1 May 2016 20:26:42 +0000 (23:26 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 21 May 2016 08:12:11 +0000 (11:12 +0300)
Add support for dnsmasq uci options 'quietdhcp' and 'sequential_ip'
(disable logging, allocate ip addresses sequentially)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit b9dbf1bc2c4c26bd7a0aa75363466589d270b24f)

modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua

index 7141e3c55d1002aa5fef30ecb19ded02ebf44067..cf1b0d50aab046f0beb8f1f9250c7941ec4401ae 100644 (file)
@@ -56,6 +56,15 @@ s:taboption("files", Flag, "nohosts",
 s:taboption("files", DynamicList, "addnhosts",
        translate("Additional Hosts files")).optional = true
 
+qu = s:taboption("advanced", Flag, "quietdhcp",
+       translate("Suppress logging"),
+       translate("Suppress logging of the routine operation of these protocols"))
+qu.optional = true
+
+se = s:taboption("advanced", Flag, "sequential_ip",
+       translate("Allocate IP sequentially"),
+       translate("Allocate IP addresses sequentially, starting from the lowest available address"))
+se.optional = true
 
 s:taboption("advanced", Flag, "boguspriv",
        translate("Filter private"),