luci-app-mwan3: add config for mwan3 mask 1308/head
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 14 Aug 2017 08:08:28 +0000 (10:08 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 16 Aug 2017 12:51:55 +0000 (14:51 +0200)
Add global config option to edit the mwan3 firewall mask.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua

index 54d20bd..919ed46 100644 (file)
@@ -29,4 +29,12 @@ for _, net in ipairs(net:get_networks()) do
 end
 n.rmempty = false
 
+mask = s:option(
+       Value,
+       "mmx_mask",
+       translate("Firewall mask"),
+       translate("Enter value in hex, starting with <code>0x</code>"))
+mask.datatype = "hex(4)"
+mask.default = "0xff00"
+
 return m