diff options
author | Micael Karlberg <[email protected]> | 2010-12-07 13:46:13 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2010-12-07 13:46:13 +0100 |
commit | aa7bbf1ec743389c1b3a461fa40a858800ae5049 (patch) | |
tree | c3ad3930019c3c229cc13f65cf6e7f6b4dcd7a9a /lib/snmp/src/agent/snmp_view_based_acm_mib.erl | |
parent | ada2a055fd183082bcefd5e4b94477959e75ebee (diff) | |
download | otp-aa7bbf1ec743389c1b3a461fa40a858800ae5049.tar.gz otp-aa7bbf1ec743389c1b3a461fa40a858800ae5049.tar.bz2 otp-aa7bbf1ec743389c1b3a461fa40a858800ae5049.zip |
[agent] When calling snmp_view_based_acm_mib:reconfigure/1 on a running node,
the vacmAccessTable whas not properly cleaned.
This means that if some entries in the vacm.conf file was removed
compared to the "current" config), while others where modified
and/or added, the removed entrie(s) would still exist in the vacmAccessTable.
Diffstat (limited to 'lib/snmp/src/agent/snmp_view_based_acm_mib.erl')
-rw-r--r-- | lib/snmp/src/agent/snmp_view_based_acm_mib.erl | 2 |
1 files changed, 2 insertions, 0 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 657207b36e..5e188c74c5 100644 --- a/lib/snmp/src/agent/snmp_view_based_acm_mib.erl +++ b/lib/snmp/src/agent/snmp_view_based_acm_mib.erl @@ -181,6 +181,8 @@ 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)), |