summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua
index 9b4ab102d5..4125aae0be 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua
@@ -2,12 +2,13 @@
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
-dsp = require "luci.dispatcher"
+local dsp = require "luci.dispatcher"
+local m, mwan_member, interface, metric, weight
-m5 = Map("mwan3", translate("MWAN - Members"))
+m = Map("mwan3", translate("MWAN - Members"))
-mwan_member = m5:section(TypedSection, "member", nil,
+mwan_member = m:section(TypedSection, "member", nil,
translate("Members are profiles attaching a metric and weight to an MWAN interface<br />" ..
"Names may contain characters A-Z, a-z, 0-9, _ and no spaces<br />" ..
"Members may not share the same name as configured interfaces, policies or rules"))
@@ -19,7 +20,7 @@ mwan_member.template = "cbi/tblsection"
mwan_member.extedit = dsp.build_url("admin", "network", "mwan", "member", "%s")
function mwan_member.create(self, section)
TypedSection.create(self, section)
- m5.uci:save("mwan3")
+ m.uci:save("mwan3")
luci.http.redirect(dsp.build_url("admin", "network", "mwan", "member", section))
end
@@ -41,4 +42,4 @@ function weight.cfgvalue(self, s)
return self.map:get(s, "weight") or "1"
end
-return m5
+return m