local net = require "luci.model.network".init()
-m = Map("mwan3")
+m = Map("mwan3", translate("MWAN - Globals"))
-s = m:section(NamedSection, "globals", "globals", translate("Globals mwan3 options"))
+s = m:section(NamedSection, "globals", "globals", nil)
n = s:option(ListValue, "local_source",
translate("Local source interface"),
translate("Use the IP address of this interface as source IP address for traffic initiated by the router itself"))
interfaceCheck()
-m5 = Map("mwan3", translate("MWAN Interface Configuration"),
+m5 = Map("mwan3", translate("MWAN - Interfaces"),
interfaceWarnings())
m5:append(Template("mwan/config_css"))
-mwan_interface = m5:section(TypedSection, "interface", translate("Interfaces"),
+mwan_interface = m5:section(TypedSection, "interface", nil,
translate("MWAN supports up to 250 physical and/or logical interfaces<br />" ..
"MWAN requires that all interfaces have a unique metric configured in /etc/config/network<br />" ..
"Names must match the interface name found in /etc/config/network (see advanced tab)<br />" ..
ds = require "luci.dispatcher"
-m5 = Map("mwan3", translate("MWAN Member Configuration"))
+m5 = Map("mwan3", translate("MWAN - Members"))
m5:append(Template("mwan/config_css"))
-mwan_member = m5:section(TypedSection, "member", translate("Members"),
+mwan_member = m5: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"))
local ut = require "luci.util"
script = "/etc/mwan3.user"
-m5 = SimpleForm("luci", nil)
+m5 = SimpleForm("luci", translate("MWAN - Notification"))
-f = m5:section(SimpleSection, translate("MWAN Notification"),
+f = m5:section(SimpleSection, nil,
translate("This section allows you to modify the content of \"/etc/mwan3.user\".<br />" ..
"The file is also preserved during sysupgrade.<br />" ..
"<br />" ..
policyCheck()
-m5 = Map("mwan3", translate("MWAN Policy Configuration"),
+m5 = Map("mwan3", translate("MWAN - Policies"),
policyWarn())
m5:append(Template("mwan/config_css"))
-mwan_policy = m5:section(TypedSection, "policy", translate("Policies"),
+mwan_policy = m5:section(TypedSection, "policy", nil,
translate("Policies are profiles grouping one or more members controlling how MWAN distributes traffic<br />" ..
"Member interfaces with lower metrics are used first. Interfaces with the same metric load-balance<br />" ..
"Load-balanced member interfaces distribute more traffic out those with higher weights<br />" ..
ruleCheck()
-m5 = Map("mwan3", translate("MWAN Rule Configuration"),
+m5 = Map("mwan3", translate("MWAN - Rules"),
ruleWarn())
m5:append(Template("mwan/config_css"))
-mwan_rule = m5:section(TypedSection, "rule", translate("Traffic Rules"),
+mwan_rule = m5:section(TypedSection, "rule", nil,
translate("Rules specify which traffic will use a particular MWAN policy based on IP address, port or protocol<br />" ..
"Rules are matched from top to bottom. Rules below a matching rule are ignored. Traffic not matching any rule is routed using the main routing table<br />" ..
"Traffic destined for known (other than default) networks is handled by the main routing table. Traffic matching a rule, but all WAN interfaces for that policy are down will be blackholed<br />" ..