netdiscover_devinfo.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. netdiscover_devinfo - SIP Device Information
  3. (c) 2009 Daniel Dickinson
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. $Id$
  9. ]]--
  10. require("luci.i18n")
  11. require("luci.util")
  12. require("luci.sys")
  13. require("luci.model.uci")
  14. require("luci.controller.luci_diag.netdiscover_common")
  15. require("luci.controller.luci_diag.devinfo_common")
  16. local debug = false
  17. m = SimpleForm("luci_devinfo", translate("Network Device Scan"), translate("Scans for devices on specified networks."))
  18. m.reset = false
  19. m.submit = false
  20. local outnets = luci.controller.luci_diag.netdiscover_common.get_params()
  21. luci.controller.luci_diag.devinfo_common.run_processes(outnets, luci.controller.luci_diag.netdiscover_common.command_function)
  22. luci.controller.luci_diag.devinfo_common.parse_output(m, outnets, false, "netdiscover", false, debug)
  23. luci.controller.luci_diag.netdiscover_common.action_links(m, false)
  24. return m