diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2019-01-18 17:36:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 17:36:27 +0200 |
commit | 68d3351d36752cd111ea7059505fc9dfc71d32fb (patch) | |
tree | 4cc9c0e631171df0b7bbf66fdf44c757ee8c01f6 /applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua | |
parent | 52e1d8339f0c4c50bee778366020f9b497130146 (diff) | |
parent | c95fdfcc1af9fb52a79853f59e67aed02193a16d (diff) |
Merge pull request #2464 from TDT-AG/pr/20190117-luci-app-mwan3
luci-app-mwan3: fix cbi local scope
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.lua | 11 |
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 |