netdiscover_devinfo_config.lua 951 B

12345678910111213141516171819
  1. -- Copyright 2009 Daniel Dickinson
  2. -- Licensed to the public under the Apache License 2.0.
  3. require("luci.controller.luci_diag.devinfo_common")
  4. m = Map("luci_devinfo", translate("Network Device Scanning Configuration"), translate("Configure scanning for devices on specified networks. Decreasing \'Timeout\', \'Repeat Count\', and/or \'Sleep Between Requests\' may speed up scans, but also may fail to find some devices."))
  5. s = m:section(SimpleSection, "", translate("Use Configuration"))
  6. b = s:option(DummyValue, "_scans", translate("Perform Scans (this can take a few minutes)"))
  7. b.value = ""
  8. b.titleref = luci.dispatcher.build_url("admin", "status", "netdiscover_devinfo")
  9. scannet = m:section(TypedSection, "netdiscover_scannet", translate("Scanning Configuration"), translate("Networks to scan for devices"))
  10. scannet.addremove = true
  11. scannet.anonymous = false
  12. luci.controller.luci_diag.devinfo_common.config_devinfo_scan(m, scannet)
  13. return m