2ecb359aea9d7ccff324e12f405d239c3b853f56
[project/luci.git] / applications / luci-app-diag-devinfo / luasrc / model / cbi / luci_diag / mactodevinfo.lua
1 -- Copyright 2009 Daniel Dickinson
2 -- Licensed to the public under the Apache License 2.0.
3
4 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"))
5
6 s = m:section(TypedSection, "mactodevinfo", translate("MAC Device Override"), translate("MAC range and information used to override system and IEEE databases"))
7 s.addremove = true
8 s.anonymous = true
9
10 v = s:option(Value, "name", translate("Name"))
11 v.optional = true
12 v = s:option(Value, "maclow", translate("Beginning of MAC address range"))
13 v.optional = false
14 v = s:option(Value, "machigh", translate("End of MAC address range"))
15 v.optional = false
16 v = s:option(Value, "vendor", translate("Vendor"))
17 v.optional = false
18 v = s:option(Value, "devtype", translate("Device Type"))
19 v.optional = false
20 v = s:option(Value, "model", translate("Model"))
21 v.optional = false
22 v = s:option(Value, "ouiowneroverride", translate("OUI Owner"))
23 v.optional = true
24
25 return m