diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-29 22:32:42 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-29 22:32:42 +0000 |
commit | 7cc1874db7b0ecb9d093f89471d2a760c8a68fc9 (patch) | |
tree | 8e971d415145e229b97a25d9c587be17ddcab92e | |
parent | 341bc48a7e0113dd18136822f24873c2c4f2d165 (diff) |
modules/admin-full: add stp option in interface configuration
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua | 5 | ||||
-rw-r--r-- | po/templates/admin-core.pot | 8 |
2 files changed, 13 insertions, 0 deletions
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 986c7e36ff..303757334b 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 10604515d9..2286e3d983 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 <abbr title=\"Spanning Tree Protocol\">STP</abbr> +msgid "a_n_i_stp" +msgstr "" + +#. Enables the Spanning Tree Protocol on this bridge +msgid "a_n_i_stp1" +msgstr "" + #. With <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</abbr> network members can automatically receive their network settings (<abbr title=\"Internet Protocol\">IP</abbr>-address, netmask, <abbr title=\"Domain Name System\">DNS</abbr>-server, ...). #: i18n/english/luasrc/i18n/admin-core.en.lua:256 msgid "dhcp_desc" |