mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add a LuCI interface for omr-tracker
This commit is contained in:
parent
6e313a25b8
commit
559e8216af
5 changed files with 66 additions and 2 deletions
32
luci-app-omr-tracker/luasrc/model/cbi/omr-tracker.lua
Normal file
32
luci-app-omr-tracker/luasrc/model/cbi/omr-tracker.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
local m, s, o
|
||||
|
||||
m = Map("omr-tracker", translate("OMR-Tracker"), translate("OMR-Tracker detect when a connection is down"))
|
||||
|
||||
s = m:section(TypedSection, "defaults", translate("Defaults Settings"))
|
||||
s.anonymous = true
|
||||
|
||||
o = s:option(Value, "timeout", translate("Timeout Connect (s)"))
|
||||
o.placeholder = "1"
|
||||
o.default = "1"
|
||||
o.datatype = "range(1, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "tries", translate("Tries"))
|
||||
o.placeholder = "4"
|
||||
o.default = "4"
|
||||
o.datatype = "range(1, 10)"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "interval", translate("Interval (s)"))
|
||||
o.placeholder = "2"
|
||||
o.default = "2"
|
||||
o.datatype = "range(1, 100)"
|
||||
o.rmempty = false
|
||||
|
||||
|
||||
o = s:option(DynamicList, "hosts", translate("Hosts"))
|
||||
o.placeholder = "4.2.2.1"
|
||||
o.default = "4.2.2.1"
|
||||
o.rmempty = false
|
||||
|
||||
return m
|
Loading…
Add table
Add a link
Reference in a new issue