luci-app-snmpd: set default encryption and authentification

If no authentification or encryption is specified, the default value is
dropped in LuCI. So in order to keep the default rmempty is set to
false, because otherwise it is not saved.

Signed-off-by: Christian Korber <ckorber@tdt.de>
This commit is contained in:
Christian Korber
2026-06-17 08:56:26 +02:00
committed by Florian Eckert
parent f85102548e
commit 8049a746dc
@@ -464,8 +464,8 @@ return L.view.extend({
go.value('SHA-224', _('SHA-224'));
go.value('SHA', _('SHA'));
go.value('MD5', _('MD5'));
go.rmempty = true;
go.default = 'SHA-256';
go.rmempty = false;
// SNMPv3 auth pass
go = g.option(form.Value, 'auth_pass',
@@ -485,8 +485,8 @@ return L.view.extend({
go.value('AES-192', _('AES-192'));
go.value('AES', _('AES'));
go.value('DES', _('DES'));
go.rmempty = true;
go.default = 'AES';
go.rmempty = false;
// SNMPv3 privacy/encryption pass
go = g.option(form.Value, 'privacy_pass',