summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/model
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-04-05 14:36:54 +0200
committerFlorian Eckert <fe@dev.tdt.de>2018-04-06 12:56:57 +0200
commitaf3ef3390c398decd0481e3e81b5280cbe2c9ebf (patch)
treefab27fdc7147bfa53999303c711279bbce9ec5cb /applications/luci-app-mwan3/luasrc/model
parent01e017972505138c0d1c70c9cdfd93e0067812e1 (diff)
luci-app-mwan3: show default values in interface page if config is not found
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
index 4701c4a7f3..162b388d17 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
@@ -170,7 +170,7 @@ track_method.rawhtml = true
function track_method.cfgvalue(self, s)
local tracked = self.map:get(s, "track_ip")
if tracked then
- return self.map:get(s, "track_method") or "&#8212;"
+ return self.map:get(s, "track_method") or "ping"
else
return "&#8212;"
end
@@ -181,7 +181,7 @@ reliability.rawhtml = true
function reliability.cfgvalue(self, s)
local tracked = self.map:get(s, "track_ip")
if tracked then
- return self.map:get(s, "reliability") or "&#8212;"
+ return self.map:get(s, "reliability") or "1"
else
return "&#8212;"
end
@@ -196,7 +196,7 @@ function interval.cfgvalue(self, s)
if intervalValue then
return intervalValue .. "s"
else
- return "&#8212;"
+ return "5s"
end
else
return "&#8212;"
@@ -208,7 +208,7 @@ down.rawhtml = true
function down.cfgvalue(self, s)
local tracked = self.map:get(s, "track_ip")
if tracked then
- return self.map:get(s, "down") or "&#8212;"
+ return self.map:get(s, "down") or "3"
else
return "&#8212;"
end
@@ -219,7 +219,7 @@ up.rawhtml = true
function up.cfgvalue(self, s)
local tracked = self.map:get(s, "track_ip")
if tracked then
- return self.map:get(s, "up") or "&#8212;"
+ return self.map:get(s, "up") or "3"
else
return "&#8212;"
end