gluon-luci-portconfig: add vxlan config checkbox

This commit is contained in:
Christof Schulze 2016-12-30 17:09:35 +01:00
parent 7c496944bf
commit a4f06228c9
4 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,9 @@ msgstr "Automatisch (RA/DHCPv6)"
msgid "Enable PoE passthrough" msgid "Enable PoE passthrough"
msgstr "PoE-Passthrough aktivieren" msgstr "PoE-Passthrough aktivieren"
msgid "Encapsulate mesh into vxlan"
msgstr "Mesh in ein vxlan einpacken"
msgid "Enable meshing on the LAN interface" msgid "Enable meshing on the LAN interface"
msgstr "Mesh auf dem LAN-Port aktivieren" msgstr "Mesh auf dem LAN-Port aktivieren"

View File

@ -19,6 +19,9 @@ msgstr "Automatique (RA/DHCPv6)"
msgid "Enable PoE passthrough" msgid "Enable PoE passthrough"
msgstr "" msgstr ""
msgid "Encapsulate mesh into vxlan"
msgstr ""
msgid "Enable meshing on the LAN interface" msgid "Enable meshing on the LAN interface"
msgstr "Activer le réseau MESH sur le port LAN" msgstr "Activer le réseau MESH sur le port LAN"

View File

@ -10,6 +10,9 @@ msgstr ""
msgid "Enable PoE passthrough" msgid "Enable PoE passthrough"
msgstr "" msgstr ""
msgid "Encapsulate mesh into vxlan"
msgstr ""
msgid "Enable meshing on the LAN interface" msgid "Enable meshing on the LAN interface"
msgstr "" msgstr ""

View File

@ -84,6 +84,10 @@ end
s = f:section(SimpleSection, nil, nil) s = f:section(SimpleSection, nil, nil)
o = s:option(Flag, "mesh_vxlan", translate("Encapsulate mesh into vxlan"))
o.default = uci:get_bool("network", uci:get_first("network","vxlan") , "active") and o.enabled or o.disabled
o.rmempty = false
o = s:option(Flag, "mesh_wan", translate("Enable meshing on the WAN interface")) o = s:option(Flag, "mesh_wan", translate("Enable meshing on the WAN interface"))
o.default = uci:get_bool("network", "mesh_wan", "auto") and o.enabled or o.disabled o.default = uci:get_bool("network", "mesh_wan", "auto") and o.enabled or o.disabled
o.rmempty = false o.rmempty = false