[PATCH] add tools to scan network for any device, or for sip devices, and output...
[project/luci.git] / applications / luci-diag-devinfo / luasrc / model / cbi / luci_diag / mactodevinfo.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 (c) 2009 Daniel Dickinson
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 m = Map("mactodevinfo", luci.i18n.translate("l_d_d_m_mac_to_devinfo_override"), translate("l_d_d_m_mac_to_devinfo_override_descr"))
16
17 s = m:section(TypedSection, "mactodevinfo", translate("l_d_d_m_mac_to_devinfo_section"), translate("l_d_d_m_mac_to_devinfo_section_descr"))
18 s.addremove = true
19 s.anonymous = true
20
21 v = s:option(Value, "name", translate("l_d_d_m_name"))
22 v.optional = true
23 v = s:option(Value, "maclow", translate("l_d_d_m_maclow"))
24 v.optional = false
25 v = s:option(Value, "machigh", translate("l_d_d_m_machigh"))
26 v.optional = false
27 v = s:option(Value, "vendor", translate("l_d_d_m_vendor"))
28 v.optional = false
29 v = s:option(Value, "devtype", translate("l_d_d_m_mactodevinfo_devtype"))
30 v.optional = false
31 v = s:option(Value, "model", translate("l_d_d_m_model"))
32 v.optional = false
33 v = s:option(Value, "ouiowneroverride", translate("l_d_d_m_ouiowneroverride"))
34 v.optional = true
35
36 return m