aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2010-12-16 14:44:18 +0100
committerMicael Karlberg <[email protected]>2010-12-16 14:44:18 +0100
commit6bd03dbc48e148d1fcad13d2301231507e49c77d (patch)
treed8cfe6b0aae803ea66e2f751f839c79061811151
parentaa7bbf1ec743389c1b3a461fa40a858800ae5049 (diff)
downloadotp-6bd03dbc48e148d1fcad13d2301231507e49c77d.tar.gz
otp-6bd03dbc48e148d1fcad13d2301231507e49c77d.tar.bz2
otp-6bd03dbc48e148d1fcad13d2301231507e49c77d.zip
Added dumping of data after (snmpa_vacm) cleanup call.
-rw-r--r--lib/snmp/src/agent/snmp_view_based_acm_mib.erl7
-rw-r--r--lib/snmp/src/agent/snmpa_vacm.erl3
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmp_view_based_acm_mib.erl b/lib/snmp/src/agent/snmp_view_based_acm_mib.erl
index 5e188c74c5..f0c4a16cee 100644
--- a/lib/snmp/src/agent/snmp_view_based_acm_mib.erl
+++ b/lib/snmp/src/agent/snmp_view_based_acm_mib.erl
@@ -181,13 +181,18 @@ init_tabs(Sec2Group, Access, View) ->
snmpa_local_db:table_delete(db(vacmSecurityToGroupTable)),
snmpa_local_db:table_create(db(vacmSecurityToGroupTable)),
init_sec2group_table(Sec2Group),
+
?vdebug("create vacm access table",[]),
snmpa_vacm:cleanup(),
init_access_table(Access),
+
?vdebug("create vacm view-tree-family table",[]),
snmpa_local_db:table_delete(db(vacmViewTreeFamilyTable)),
snmpa_local_db:table_create(db(vacmViewTreeFamilyTable)),
- init_view_table(View).
+ init_view_table(View),
+
+ ?vdebug("table(s) initiated",[]),
+ ok.
init_sec2group_table([Row | T]) ->
% ?vtrace("init security-to-group table: "
diff --git a/lib/snmp/src/agent/snmpa_vacm.erl b/lib/snmp/src/agent/snmpa_vacm.erl
index 91cecfcd1e..892dc265f1 100644
--- a/lib/snmp/src/agent/snmpa_vacm.erl
+++ b/lib/snmp/src/agent/snmpa_vacm.erl
@@ -258,7 +258,8 @@ delete(Key) ->
cleanup() ->
- ets:delete_all_objects(snmpa_vacm).
+ ets:delete_all_objects(snmpa_vacm),
+ dump_table().
dump_table(true) ->
dump_table();