Skip to content
Snippets Groups Projects
Unverified Commit 0ceb25e3 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-web-network: allow switching wired mesh legacy mode on and off

parent a2711065
No related branches found
No related tags found
No related merge requests found
...@@ -52,5 +52,11 @@ msgstr "Statisch" ...@@ -52,5 +52,11 @@ msgstr "Statisch"
msgid "Static DNS servers" msgid "Static DNS servers"
msgstr "Statische DNS-Server" msgstr "Statische DNS-Server"
msgid "Use legacy mode for LAN meshing"
msgstr "Veralteter Modus (LAN-Mesh)"
msgid "Use legacy mode for WAN meshing"
msgstr "Veralteter Modus (WAN-Mesh)"
msgid "WAN connection" msgid "WAN connection"
msgstr "WAN-Verbindung" msgstr "WAN-Verbindung"
...@@ -52,5 +52,11 @@ msgstr "Statique" ...@@ -52,5 +52,11 @@ msgstr "Statique"
msgid "Static DNS servers" msgid "Static DNS servers"
msgstr "Adresse DNS statique" msgstr "Adresse DNS statique"
msgid "Use legacy mode for LAN meshing"
msgstr ""
msgid "Use legacy mode for WAN meshing"
msgstr ""
msgid "WAN connection" msgid "WAN connection"
msgstr "Connexion WAN" msgstr "Connexion WAN"
...@@ -43,5 +43,11 @@ msgstr "" ...@@ -43,5 +43,11 @@ msgstr ""
msgid "Static DNS servers" msgid "Static DNS servers"
msgstr "" msgstr ""
msgid "Use legacy mode for LAN meshing"
msgstr ""
msgid "Use legacy mode for WAN meshing"
msgstr ""
msgid "WAN connection" msgid "WAN connection"
msgstr "" msgstr ""
...@@ -83,7 +83,17 @@ function mesh_wan:write(data) ...@@ -83,7 +83,17 @@ function mesh_wan:write(data)
uci:set("network", "mesh_wan", "auto", data) uci:set("network", "mesh_wan", "auto", data)
end end
local mesh_wan_legacy = s:option(Flag, "mesh_wan_legacy", translate("Use legacy mode for WAN meshing"))
mesh_wan_legacy.default = mesh_wan.default and uci:get_bool("network", "mesh_wan_legacy", "auto")
mesh_wan_legacy:depends(mesh_wan, true)
function mesh_wan_legacy:write(data)
uci:set("network", "mesh_wan", "legacy", data)
end
if sysconfig.lan_ifname then if sysconfig.lan_ifname then
local s = f:section(Section)
local mesh_lan = s:option(Flag, "mesh_lan", translate("Enable meshing on the LAN interface")) local mesh_lan = s:option(Flag, "mesh_lan", translate("Enable meshing on the LAN interface"))
mesh_lan.default = uci:get_bool("network", "mesh_lan", "auto") mesh_lan.default = uci:get_bool("network", "mesh_lan", "auto")
...@@ -102,6 +112,14 @@ if sysconfig.lan_ifname then ...@@ -102,6 +112,14 @@ if sysconfig.lan_ifname then
uci:set_list("network", "client", "ifname", interfaces) uci:set_list("network", "client", "ifname", interfaces)
end end
local mesh_lan_legacy = s:option(Flag, "mesh_lan_legacy", translate("Use legacy mode for LAN meshing"))
mesh_lan_legacy.default = mesh_lan.default and uci:get_bool("network", "mesh_lan_legacy", "auto")
mesh_lan_legacy:depends(mesh_lan, true)
function mesh_lan_legacy:write(data)
uci:set("network", "mesh_lan", "legacy", data)
end
end end
if uci:get('system', 'gpio_switch_poe_passthrough') then if uci:get('system', 'gpio_switch_poe_passthrough') then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment