mactodevinfo.lua 1.0 KB

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