aab2406161183daf1ce82d3786da61c56ddae807
[project/luci.git] / applications / luci-app-diag-devinfo / luasrc / model / cbi / luci_diag / smap_devinfo_config.lua
1 -- Copyright 2009 Daniel Dickinson
2 -- Licensed to the public under the Apache License 2.0.
3
4 require("luci.controller.luci_diag.devinfo_common")
5
6 m = Map("luci_devinfo", translate("SIP Device Scanning Configuration"), translate("Configure scanning for supported SIP 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."))
7
8 s = m:section(SimpleSection, "", translate("Use Configuration"))
9 b = s:option(DummyValue, "_scans", translate("Perform Scans (this can take a few minutes)"))
10 b.value = ""
11 b.titleref = luci.dispatcher.build_url("admin", "status", "smap_devinfo")
12
13 scannet = m:section(TypedSection, "smap_scannet", translate("Scanning Configuration"), translate("Networks to scan for supported devices"))
14 scannet.addremove = true
15 scannet.anonymous = false
16
17 local ports
18 ports = scannet:option(Value, "ports", translate("Ports"))
19 ports.optional = true
20 ports.rmempty = true
21
22 luci.controller.luci_diag.devinfo_common.config_devinfo_scan(m, scannet)
23
24 return m