aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-08-05 15:08:12 +0200
committerRaimo Niskanen <[email protected]>2014-08-05 15:10:45 +0200
commit948705328504ca78bce684ded56ce47d35a0068f (patch)
tree3db45d144ef7a866fded21df04595d3af26c3417 /lib/snmp
parent3cdb20acd5577fd37a10ac96f6ab37dd0952413f (diff)
downloadotp-948705328504ca78bce684ded56ce47d35a0068f.tar.gz
otp-948705328504ca78bce684ded56ce47d35a0068f.tar.bz2
otp-948705328504ca78bce684ded56ce47d35a0068f.zip
Improve ct_snmp test cases
Diffstat (limited to 'lib/snmp')
-rw-r--r--lib/snmp/src/agent/snmp_community_mib.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/snmp/src/agent/snmp_community_mib.erl b/lib/snmp/src/agent/snmp_community_mib.erl
index 12a0ec97c2..4546c343b7 100644
--- a/lib/snmp/src/agent/snmp_community_mib.erl
+++ b/lib/snmp/src/agent/snmp_community_mib.erl
@@ -246,6 +246,10 @@ gc_tabs() ->
%%-----------------------------------------------------------------
community2vacm(Community, Addr) ->
Idxs = ets:lookup(snmp_community_cache, Community),
+ ?vtrace("community2vacm ->~n"
+ " Community: ~p~n"
+ " Addr: ~p~n"
+ " Idxs: ~p", [Community, Addr, Idxs]),
loop_c2v_rows(lists:keysort(2, Idxs), Addr).
loop_c2v_rows([{_, CommunityIndex} | T], Addr) ->
@@ -253,6 +257,9 @@ loop_c2v_rows([{_, CommunityIndex} | T], Addr) ->
"~n CommunityIndex: ~p", [CommunityIndex]),
case get_row(CommunityIndex) of
{_Community, VacmParams, Tag} ->
+ ?vtrace("loop_c2v_rows ->~n"
+ " VacmParams: ~p~n"
+ " Tag: ~p", [VacmParams, Tag]),
{TDomain, TAddr} = Addr,
case snmp_target_mib:is_valid_tag(Tag, TDomain, TAddr) of
true ->