[PATCH] add tools to scan network for any device, or for sip devices, and output...
[project/luci.git] / applications / luci-diag-devinfo / luasrc / controller / luci_diag / luci_diag_devinfo.lua
1 --[[
2
3 Luci diag - Diagnostics controller module
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 ]]--
13
14
15 module("luci.controller.luci_diag.luci_diag_devinfo", package.seeall)
16
17 function index()
18 require("luci.i18n")
19 luci.i18n.loadc("diag_devinfo")
20
21 local e = entry({"admin", "voice", "diag", "phones"}, arcombine(cbi("luci_diag/smap_devinfo"), cbi("luci_diag/smap_devinfo_config")), luci.i18n.translate("l_d_d_ldd_diag_smap_devinfo"), 10)
22 e.leaf = true
23 e.subindex = true
24 e.i18n = "diag_devinfo"
25 e.dependent = true
26
27 e = entry({"admin", "voice", "diag", "phones", "config"}, cbi("luci_diag/smap_devinfo_config"), luci.i18n.translate("l_d_d_ldd_config"), 10)
28 e.i18n = "diag_devinfo"
29
30 e = entry({"admin", "status", "smap_devinfo"}, cbi("luci_diag/smap_devinfo"), luci.i18n.translate("l_d_d_ldd_smap_devinfo_config"), 120)
31 e.leaf = true
32 e.i18n = "diag_devinfo"
33 e.dependent = true
34
35 e = entry({"admin", "network", "diag_config", "netdiscover_devinfo_config"}, cbi("luci_diag/netdiscover_devinfo_config"), luci.i18n.translate("l_d_d_ldd_netdiscover_devinfo_scan"), 100)
36 e.leaf = true
37 e.i18n = "diag_devinfo"
38 e.dependent = true
39
40 e = entry({"admin", "network", "diag_config", "smap_devinfo_config"}, cbi("luci_diag/smap_devinfo_config"), luci.i18n.translate("l_d_d_ldd_smap_devinfo_scan_config"))
41 e.leaf = true
42 e.i18n = "diag_devinfo"
43 e.dependent = true
44
45 e = entry({"admin", "status", "netdiscover_devinfo"}, cbi("luci_diag/netdiscover_devinfo"), luci.i18n.translate("l_d_d_ldd_netdiscover_devinfo"), 90)
46 e.i18n = "diag_devinfo"
47 e.dependent = true
48
49 e = entry({"admin", "network", "mactodevinfo"}, cbi("luci_diag/mactodevinfo"), luci.i18n.translate("l_d_d_ldd_mac_to_devinfo_overrides"), 190)
50 e.i18n = "diag_devinfo"
51 e.dependent = true
52
53 e = entry({"mini", "diag", "phone_scan"}, cbi("luci_diag/smap_devinfo_mini"), luci.i18n.translate("l_d_d_ldd_diag_smap_devinfo_scan_mini"), 100)
54 e.i18n = "diag_devinfo"
55 e.dependent = true
56
57 e = entry({"mini", "voice", "phones", "phone_scan_config"}, cbi("luci_diag/smap_devinfo_config_mini"), luci.i18n.translate("l_d_d_ldd_smap_devinfo_config_scan_miini"), 90)
58 e.i18n = "diag_devinfo"
59 e.dependent = true
60
61 e = entry({"mini", "diag", "netdiscover_devinfo"}, cbi("luci_diag/netdiscover_devinfo_mini"), luci.i18n.translate("l_d_d_ldd_diag_netdiscover_devinfo_scan_mini"), 10)
62 e.i18n = "diag_devinfo"
63 e.dependent = true
64
65 e = entry({"mini", "network", "netdiscover_devinfo_config"}, cbi("luci_diag/netdiscover_devinfo_config_mini"), luci.i18n.translate("l_d_d_ldd_netdiscover_devinfo_scan_config_mini"))
66 e.i18n = "diag_devinfo"
67 e.dependent = true
68
69 end