From: Jo-Philipp Wich Date: Fri, 29 May 2009 22:32:42 +0000 (+0000) Subject: modules/admin-full: add stp option in interface configuration X-Git-Tag: 0.9.0~285 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=7cc1874db7b0ecb9d093f89471d2a760c8a68fc9 modules/admin-full: add stp option in interface configuration --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua index 986c7e36f..303757334 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua @@ -51,6 +51,11 @@ br = s:option(Flag, "type", translate("a_n_i_bridge"), translate("a_n_i_bridge1" br.enabled = "bridge" br.rmempty = true +stp = s:option(Flag, "stp", translate("a_n_i_stp"), + translate("a_n_i_stp1", "Enables the Spanning Tree Protocol on this bridge")) +stp:depends("type", "bridge") +stp.rmempty = true + ifname = s:option(Value, "ifname", translate("interface")) ifname.rmempty = true for i,d in ipairs(luci.sys.net.devices()) do diff --git a/po/templates/admin-core.pot b/po/templates/admin-core.pot index 10604515d..2286e3d98 100644 --- a/po/templates/admin-core.pot +++ b/po/templates/admin-core.pot @@ -1278,6 +1278,14 @@ msgstr "" msgid "a_n_i_bridge1" msgstr "" +#. Enable STP +msgid "a_n_i_stp" +msgstr "" + +#. Enables the Spanning Tree Protocol on this bridge +msgid "a_n_i_stp1" +msgstr "" + #. With DHCP network members can automatically receive their network settings (IP-address, netmask, DNS-server, ...). #: i18n/english/luasrc/i18n/admin-core.en.lua:256 msgid "dhcp_desc"