luci/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua

22 lines
930 B
Lua
Raw Normal View History

--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
m = Map("network", translate("Switch"), translate("The network ports on your router can be combined to several <abbr title=\"Virtual Local Area Network\">VLAN</abbr>s in which computers can communicate directly with each other. <abbr title=\"Virtual Local Area Network\">VLAN</abbr>s are often used to separate different network segments. Often there is by default one Uplink port for a connection to the next greater network like the internet and other ports for a local network."))
2008-04-11 19:03:30 +00:00
2008-06-08 13:03:55 +00:00
s = m:section(TypedSection, "switch", "")
2008-04-11 19:03:30 +00:00
for i = 0, 15 do
s:option(Value, "vlan"..i, "ethX."..i).optional = true
2008-04-11 19:03:30 +00:00
end
return m