Commit graph

10 commits

Author SHA1 Message Date
Karl Palsson
d4767c2de6 luci-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,
 fix commit subject, initialize translation template]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-08 20:08:41 +02:00
Jo-Philipp Wich
23babd7cd4 Revert "app-snmpd: convert CBI to JS"
This reverts commit 693bf9523e.

The commit did not contain the mentioned amendmends.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-08 20:03:06 +02:00
Karl Palsson
693bf9523e 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>
2021-10-08 19:59:51 +02:00
Jo-Philipp Wich
8f34e105c0 treewide: add ACL annotations to menu entries
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17 12:40:31 +02:00
Jo-Philipp Wich
43e872871a treewide: stage ACL rules for legacy applications
Fixes: #3866
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-10 23:21:35 +02:00
Karol Babioch
8578bfd969 luci-app-snmpd: Add snmpd as dependency
luci-app-snmpd allows to configure snmpd via LuCI. Without making sure that
the snmpd package is installed, the daemon that is about to be configured via
luci-app-snmpd might be missing (unless explicitly installed otherwise).

This is not only counter-intuitive, but also inconsistent with other LuCI based
applications, as they always include the underlying package(s) in order to make
sure that the software being configured is being available in the first place.

Signed-off-by: Karol Babioch <karol@babioch.de>
2020-02-17 23:22:46 +01:00
Jo-Philipp Wich
625abbfdbe treewide: convert simple Lua controllers to declarative JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-05 16:52:58 +01:00
Jo-Philipp Wich
d5dff8f9a5 treewide: move server side CBI support to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 20:49:31 +01:00
Karl Palsson
8f96cd8e36 luci-app-snmpd: Allow turning off agentx
AgentX support doesn't actually require TCP, it also works over unix
domain sockets, and UDS is the only method that's compiled in by
default.  Remove that misleading text, and make the section
add/removable so that you can remove it to disable agentx support.
Behaviour with multiple sections is undefined. (don't do that!)

This matches the current behaviour of the snmpd init script, which will
enable agentx with the compile time default settings if the agentx
socket config is blank/missing.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2018-10-08 11:27:53 +00:00
Karl Palsson
318e455755 luci-app-snmpd: Basic net-snmpd config options
Imported from https://github.com/remakeelectric/owrt_pub_feeds/tree/master/luci-app-snmpd

Only provides configuration of basic authentication and system level
options, not even close to the entire slew of options that net-snmp
supports, but the basics are still helpful, and a base for future work.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2018-09-20 10:36:34 +00:00