[PATCH] add tools to scan network for any device, or for sip devices, and output...
[project/luci.git] / applications / luci-diag-devinfo / luasrc / model / cbi / luci_diag / netdiscover_devinfo.lua
1 --[[
2 netdiscover_devinfo - SIP Device Information
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 require("luci.i18n")
16 require("luci.util")
17 require("luci.sys")
18 require("luci.model.uci")
19
20 local debug = false
21
22 m = SimpleForm("luci_devinfo", translate("l_d_d_nd_netdiscover_to_devinfo"), translate("l_d_d_nd_netdiscover_to_devinfo_descr"))
23 m.reset = false
24 m.submit = false
25
26 local outnets = luci.controller.luci_diag.netdiscover_common.get_params()
27 luci.controller.luci_diag.devinfo_common.run_processes(outnets, luci.controller.luci_diag.netdiscover_common.command_function)
28 luci.controller.luci_diag.devinfo_common.parse_output(m, outnets, false, "netdiscover", false, debug)
29 luci.controller.luci_diag.netdiscover_common.action_links(m, false)
30
31 return m