summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-04-06 09:35:39 +0200
committerJo-Philipp Wich <jo@mein.io>2018-04-06 09:35:39 +0200
commit08a2b27df5e282a6b5221fbe72f700523c7b0913 (patch)
treec4b636553f3364790dda0fb06d336c0729e86810 /applications/luci-app-mwan3/luasrc/model/cbi
parent24ac0d81ee56c5630b38aefbb5526e8bfcf6cd88 (diff)
luci-app-mwan3: fix legacy uci api usage
Explicitely require libuci-lua in model classes that use legacy /var/state cursor handling. Also add a specific dependency on libuci-lua to the luci-app-mwan3 Makefile in preparation of the upcoming default removal of libuci-lua. Finally fix the post data dispatching on the notification tab, see #1722 for reference. Fixes #1726. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model/cbi')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua1
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua1
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua1
3 files changed, 3 insertions, 0 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 556a4f7010..8564231c87 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
@@ -3,6 +3,7 @@
-- Licensed to the public under the GNU General Public License v2.
dsp = require "luci.dispatcher"
+uci = require "uci"
function interfaceWarnings(overview, count, iface_max)
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
index c4567f756b..b7a90aa93a 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
@@ -3,6 +3,7 @@
-- Licensed to the public under the GNU General Public License v2.
dsp = require "luci.dispatcher"
+uci = require "uci"
function policyCheck()
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
index fb885f8b37..f0b94bd0bb 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
@@ -3,6 +3,7 @@
-- Licensed to the public under the GNU General Public License v2.
dsp = require "luci.dispatcher"
+uci = require "uci"
function ruleCheck()