From: Craig M. Coffee Date: Mon, 28 Jun 2010 07:09:31 +0000 (+0000) Subject: [applications] luci-multiwan: Added Lan Interface configuration option X-Git-Tag: 0.10.0~669 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a155b5fa158cb354bcbabdd59d65ac9647ec3138;p=oweals%2Fluci.git [applications] luci-multiwan: Added Lan Interface configuration option --- diff --git a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua index 96718f7cf..16ee84745 100644 --- a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua +++ b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua @@ -153,4 +153,9 @@ default_route.default = "balancer" default_route.optional = false default_route.rmempty = false +lan_if = s:option(ListValue, "lan_if", translate("LAN Interface")) +luci.tools.webadmin.cbi_add_networks(lan_if) +lan_if.optional = false +lan_if.rmempty = false + return m diff --git a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua index e14dc0a9f..12301adde 100644 --- a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua +++ b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua @@ -65,4 +65,9 @@ default_route.default = "balancer" default_route.optional = false default_route.rmempty = false +lan_if = s:option(ListValue, "lan_if", translate("LAN Interface")) +luci.tools.webadmin.cbi_add_networks(lan_if) +lan_if.optional = false +lan_if.rmempty = false + return m diff --git a/applications/luci-multiwan/root/lib/uci/schema/default/multiwan b/applications/luci-multiwan/root/lib/uci/schema/default/multiwan index d85d98d5e..75d430c95 100644 --- a/applications/luci-multiwan/root/lib/uci/schema/default/multiwan +++ b/applications/luci-multiwan/root/lib/uci/schema/default/multiwan @@ -15,6 +15,12 @@ config variable option section 'multiwan.multiwan' option required true +config variable + option name 'lan_if' + option title 'LAN Interface' + option section 'multiwan.multiwan' + option required true + config section option name 'interface' option title 'WAN Interfaces' diff --git a/po/en/multiwan.po b/po/en/multiwan.po index e61354de8..844d66c2f 100644 --- a/po/en/multiwan.po +++ b/po/en/multiwan.po @@ -133,3 +133,8 @@ msgstr "Ports" #. Protocol msgid "Protocol" msgstr "Protocol" + +#: /tmp/i18n/luasrc/i18n/multiwan.en.lua:27 +#. LAN Interface +msgid "LAN Interface" +msgstr "LAN Interface" diff --git a/po/templates/multiwan.pot b/po/templates/multiwan.pot index c025eba3b..2eaf92520 100644 --- a/po/templates/multiwan.pot +++ b/po/templates/multiwan.pot @@ -45,6 +45,9 @@ msgid "" "Health Monitor detects and corrects network changes and failed connections." msgstr "" +msgid "LAN Interface" +msgstr "" + msgid "Load Balancer Distribution" msgstr ""