X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-mwan3%2Fluasrc%2Fmodel%2Fcbi%2Fmwan%2Fpolicy.lua;h=4543260f6f7d9a59bb625bae1183e0797ab047fa;hp=c4567f756b69d5358791898cbf0510d8a4d0b8de;hb=65eacaef1627a365d6242c7b636c1e731c167fbd;hpb=eea92af6766db29fb4500f22f9a85c026953bb81
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 c4567f756..4543260f6 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()
@@ -25,7 +26,7 @@ function policyError(policy_error)
for i, k in pairs(policy_error) do
if policy_error[i] == true then
warnings = warnings .. string.format("%s
",
- translatef("WARNING: Policie %s has exceeding the maximum name of 15 characters", i)
+ translatef("WARNING: Policy %s has exceeding the maximum name of 15 characters", i)
)
end
end
@@ -38,9 +39,11 @@ m5 = Map("mwan3", translate("MWAN - Policies"),
mwan_policy = m5:section(TypedSection, "policy", nil,
translate("Policies are profiles grouping one or more members controlling how MWAN distributes traffic
" ..
- "Member interfaces with lower metrics are used first. Interfaces with the same metric load-balance
" ..
+ "Member interfaces with lower metrics are used first
" ..
+ "Member interfaces with the same metric will be load-balanced
" ..
"Load-balanced member interfaces distribute more traffic out those with higher weights
" ..
- "Names may contain characters A-Z, a-z, 0-9, _ and no spaces. Names must be 15 characters or less
" ..
+ "Names may contain characters A-Z, a-z, 0-9, _ and no spaces
" ..
+ "Names must be 15 characters or less
" ..
"Policies may not share the same name as configured interfaces, members or rules"))
mwan_policy.addremove = true
mwan_policy.dynamic = false