summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/model/cbi
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-09-03 16:31:41 +0200
committerGitHub <noreply@github.com>2018-09-03 16:31:41 +0200
commit0208b957a759d3c7810fd37bfdba0662d17dfb05 (patch)
tree50d0e60933cba32129badf55e9e3361de2ad35fa /applications/luci-app-mwan3/luasrc/model/cbi
parent875d80a07e83b6e0f0d79f080b63bd5b8ea45908 (diff)
parent1b3f9b1f7e8dd1dcb6141cfb549274c936f975de (diff)
Merge pull request #2120 from TDT-AG/pr/20180830-luci-app-mwan3-fixes
luci-app-mwan3: fixes and improvements
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model/cbi')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
index a6570e341c..d01945bf4a 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
@@ -13,10 +13,8 @@ mwan_interface = m5:section(NamedSection, arg[1], "interface", "")
mwan_interface.addremove = false
mwan_interface.dynamic = false
-enabled = mwan_interface:option(ListValue, "enabled", translate("Enabled"))
-enabled.default = "1"
-enabled:value("1", translate("Yes"))
-enabled:value("0", translate("No"))
+enabled = mwan_interface:option(Flag, "enabled", translate("Enabled"))
+enabled.default = false
initial_state = mwan_interface:option(ListValue, "initial_state", translate("Initial state"),
translate("Expect interface state on up event"))