diff options
author | Micael Karlberg <[email protected]> | 2011-02-25 13:54:07 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-02-25 13:54:07 +0100 |
commit | 931e775de52e6e335a10759c7fb3e0f8efea21d3 (patch) | |
tree | 79afd23e811719acaaf527707f9edf9a585de88d /lib/snmp/src/agent/snmp_view_based_acm_mib.erl | |
parent | 02b9003b697474ef6b7e07a6f7eebd6105d4497f (diff) | |
parent | ca6e87e84dae13b6ebe15ca67bf98a0245f25857 (diff) | |
download | otp-931e775de52e6e335a10759c7fb3e0f8efea21d3.tar.gz otp-931e775de52e6e335a10759c7fb3e0f8efea21d3.tar.bz2 otp-931e775de52e6e335a10759c7fb3e0f8efea21d3.zip |
[agent] When calling
snmp_view_based_acm_mib:snmp_view_based_acm_mib:reconfigure/1 on a
running node, the table vacmAccessTable was not properly cleaned.
This meant 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 table.
Merge branch 'bmk/snmp/vacmAccessTable_cleanup/OTP-8981' into bmk/snmp/snmp419_integration/OTP-9068
Conflicts:
lib/snmp/doc/src/notes.xml
lib/snmp/src/app/snmp.appup.src
lib/snmp/vsn.mk
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 | 9 |
1 files changed, 8 insertions, 1 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 f4f89bf53e..3e5091a555 100644 --- a/lib/snmp/src/agent/snmp_view_based_acm_mib.erl +++ b/lib/snmp/src/agent/snmp_view_based_acm_mib.erl @@ -180,11 +180,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: " |