2008-06-08 08:14:31 +00:00
|
|
|
--[[
|
|
|
|
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$
|
|
|
|
]]--
|
2008-06-09 10:10:29 +00:00
|
|
|
m = Map("network", translate("a_n_switch"), translate("a_n_switch1"))
|
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
|
2008-08-14 11:49:36 +00:00
|
|
|
s:option(Value, "vlan"..i, "ethX."..i).optional = true
|
2008-04-11 19:03:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return m
|