Merge pull request #278 from nmav/ocserv
[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("MAC Device Info Overrides"), translate("Override the information returned by the MAC to Device Info Script (mac-to-devinfo) for a specified range of MAC Addresses"))
16
17 s = m:section(TypedSection, "mactodevinfo", translate("MAC Device Override"), translate("MAC range and information used to override system and IEEE databases"))
18 s.addremove = true
19 s.anonymous = true
20
21 v = s:option(Value, "name", translate("Name"))
22 v.optional = true
23 v = s:option(Value, "maclow", translate("Beginning of MAC address range"))
24 v.optional = false
25 v = s:option(Value, "machigh", translate("End of MAC address range"))
26 v.optional = false
27 v = s:option(Value, "vendor", translate("Vendor"))
28 v.optional = false
29 v = s:option(Value, "devtype", translate("Device Type"))
30 v.optional = false
31 v = s:option(Value, "model", translate("Model"))
32 v.optional = false
33 v = s:option(Value, "ouiowneroverride", translate("OUI Owner"))
34 v.optional = true
35
36 return m