aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmpa_app.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-03-21 12:03:29 +0100
committerMicael Karlberg <[email protected]>2019-03-28 17:14:56 +0100
commitf53ab9328ad37c733d13e7f0886acf4a111898d0 (patch)
tree66cbe583a59a017c7fe445b8f52d2b779e32262f /lib/snmp/src/agent/snmpa_app.erl
parentdb6059a9217767a6e42e93cec05089c0ec977d20 (diff)
downloadotp-f53ab9328ad37c733d13e7f0886acf4a111898d0.tar.gz
otp-f53ab9328ad37c733d13e7f0886acf4a111898d0.tar.bz2
otp-f53ab9328ad37c733d13e7f0886acf4a111898d0.zip
[snmp|agent] Handle new get-mechanism config
Also streamlined the config storage. And corrected the store of the set_mechanism (in the snmp_agent_table). This is only used for debugging, but just the same. OTP-15691
Diffstat (limited to 'lib/snmp/src/agent/snmpa_app.erl')
-rw-r--r--lib/snmp/src/agent/snmpa_app.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/snmp/src/agent/snmpa_app.erl b/lib/snmp/src/agent/snmpa_app.erl
index 86ff145e93..c00929c334 100644
--- a/lib/snmp/src/agent/snmpa_app.erl
+++ b/lib/snmp/src/agent/snmpa_app.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2016. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2019. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -67,6 +67,7 @@ convert_config(Opts) ->
SaVerb = get_sub_agent_verbosity(Opts),
[{agent_type, AgentType},
{agent_verbosity, SaVerb},
+ {get_mechanism, snmpa_get},
{set_mechanism, SetModule},
{authentication_service, AuthModule},
{priority, Prio},
@@ -97,6 +98,7 @@ convert_config(Opts) ->
{verbosity, ConfVerb}],
[{agent_type, AgentType},
{agent_verbosity, MaVerb},
+ {get_mechanism, snmpa_get},
{set_mechanism, SetModule},
{authentication_service, AuthModule},
{db_dir, DbDir},