summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-snmpd/luasrc/model
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2021-10-06 14:22:40 +0000
committerJo-Philipp Wich <jo@mein.io>2021-10-08 19:59:51 +0200
commit693bf9523ebe5a008baa2ff017e7e267a9e72ceb (patch)
tree17aa5fd9cccc6aa5c98ddd02d65d5fa98e4b5621 /applications/luci-app-snmpd/luasrc/model
parent5d10e3de385261d58944f051527e8cf588a9602d (diff)
app-snmpd: convert CBI to JS
Eliminates luci-compat, but no other changes. Signed-off-by: Karl Palsson <karlp@etactica.com> [add final newline, explicitly require `view` class, remove unused require, resync translations] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-snmpd/luasrc/model')
-rw-r--r--applications/luci-app-snmpd/luasrc/model/cbi/snmpd.lua63
1 files changed, 0 insertions, 63 deletions
diff --git a/applications/luci-app-snmpd/luasrc/model/cbi/snmpd.lua b/applications/luci-app-snmpd/luasrc/model/cbi/snmpd.lua
deleted file mode 100644
index cc6951e171..0000000000
--- a/applications/luci-app-snmpd/luasrc/model/cbi/snmpd.lua
+++ /dev/null
@@ -1,63 +0,0 @@
---[[
-LuCI model for net-snmp configuration management
-Copyright Karl Palsson <karlp@etactica.com>
-
-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
-
-]]--
-
-local datatypes = require("luci.cbi.datatypes")
-
-m = Map("snmpd", "net-snmp's SNMPD",
- [[SNMPD is a master daemon/agent for SNMP, from the <a href='http://www.net-snmp.org'>
- net-snmp project</a>.
- Note, OpenWrt has mostly complete UCI support for snmpd, but this LuCI applet
- only covers a few of those options. In particular, there is very little/no validation
- or help.
-See /etc/config/snmpd for manual configuration.
- ]])
-
-s = m:section(TypedSection, "agent", "Agent settings")
-s.anonymous = true
-p = s:option(Value, "agentaddress", "The address the agent should listen on",
- [[Eg: UDP:161, or UDP:10.5.4.3:161 to only listen on a given interface]])
-
-s = m:section(TypedSection, "agentx", "AgentX settings", "Delete this section to disable agentx")
-s.anonymous = true
-p = s:option(Value, "agentxsocket", "The address the agent should allow agentX connections to",
- [[This is only necessary if you have subagents using the agentX socket protocol.
- Eg: /var/run/agentx.sock]])
-s.addremove=true
-
-s = m:section(TypedSection, "com2sec", "com2sec security")
-p = s:option(Value, "secname", "secname")
-p = s:option(Value, "source", "source")
-p = s:option(Value, "community", "community")
-
-s = m:section(TypedSection, "group", "group", "Groups help define access methods")
-s.addremove=true
-s:option(Value, "group", "group")
-s:option(Value, "version", "version")
-s:option(Value, "secname", "secname")
-
-s = m:section(TypedSection, "access", "access")
-s:option(Value, "group", "group")
-s:option(Value, "context", "context")
-s:option(Value, "version", "version")
-s:option(Value, "level", "level")
-s:option(Value, "prefix", "prefix")
-s:option(Value, "read", "read")
-s:option(Value, "write", "write")
-s:option(Value, "notify", "notify")
-
-s = m:section(TypedSection, "system", "System", "Values used in the MIB2 System tree")
-s.anonymous = true
-s:option(Value, "sysLocation", "sysLocation")
-s:option(Value, "sysContact", "sysContact")
-s:option(Value, "sysName", "sysName")
-
-return m