summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-17 20:27:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-17 20:27:05 +0000
commit820f11932f548182ebb32704e1df83b78e69b19e (patch)
treece56e5183f28520ce6078aa5fd723d8bb3f2b310 /applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua
parent768bf67b867df0fde2715308eef482cb677a8566 (diff)
[PATCH] add tools to scan network for any device, or for sip devices, and output device information, thanks cshore
Diffstat (limited to 'applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua')
-rw-r--r--applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua b/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua
new file mode 100644
index 000000000..548ddbe2f
--- /dev/null
+++ b/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua
@@ -0,0 +1,36 @@
+--[[
+LuCI - Lua Configuration Interface
+
+(c) 2009 Daniel Dickinson
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+]]--
+
+m = Map("mactodevinfo", luci.i18n.translate("l_d_d_m_mac_to_devinfo_override"), translate("l_d_d_m_mac_to_devinfo_override_descr"))
+
+s = m:section(TypedSection, "mactodevinfo", translate("l_d_d_m_mac_to_devinfo_section"), translate("l_d_d_m_mac_to_devinfo_section_descr"))
+s.addremove = true
+s.anonymous = true
+
+v = s:option(Value, "name", translate("l_d_d_m_name"))
+v.optional = true
+v = s:option(Value, "maclow", translate("l_d_d_m_maclow"))
+v.optional = false
+v = s:option(Value, "machigh", translate("l_d_d_m_machigh"))
+v.optional = false
+v = s:option(Value, "vendor", translate("l_d_d_m_vendor"))
+v.optional = false
+v = s:option(Value, "devtype", translate("l_d_d_m_mactodevinfo_devtype"))
+v.optional = false
+v = s:option(Value, "model", translate("l_d_d_m_model"))
+v.optional = false
+v = s:option(Value, "ouiowneroverride", translate("l_d_d_m_ouiowneroverride"))
+v.optional = true
+
+return m