diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-10-27 04:23:13 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-10-27 23:59:19 +0100 |
commit | c9b892349bac27fad9e2336e2020c589759598a1 (patch) | |
tree | 93daca6a5bedc3ca8350c1c50fec94e5bf609399 /src/migration-scripts | |
parent | 4a077bd3f8e12eb7550f7f9bce1394646eb13a25 (diff) | |
download | vyos-1x-c9b892349bac27fad9e2336e2020c589759598a1.tar.gz vyos-1x-c9b892349bac27fad9e2336e2020c589759598a1.zip |
snmp: T1769: remove TSM (Transport Security Mode) support
The SNMPv3 TSM is very complex and I know 0 users of it. Also this is untested
and I know no way how it could be tested. Instead of carrying on dead and
unused code we should favour a drop of it using a proper config migration
script.
(cherry picked from commit 556b528ef9cc1eca9d142ebe1f8f88cd02d536da)
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-x | src/migration-scripts/snmp/0-to-1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/migration-scripts/snmp/0-to-1 b/src/migration-scripts/snmp/0-to-1 index e52e6e04f..a836f7011 100755 --- a/src/migration-scripts/snmp/0-to-1 +++ b/src/migration-scripts/snmp/0-to-1 @@ -43,6 +43,11 @@ else: for user in config.list_nodes(config_base + ['v3', 'user']): config.delete(config_base + ['v3', 'user', user, 'engineid']) + # we drop TSM support as there seem to be no users and this code is untested + # https://phabricator.vyos.net/T1769 + if config.exists(config_base + ['v3', 'tsm']): + config.delete(config_base + ['v3', 'tsm']) + try: with open(file_name, 'w') as f: f.write(config.to_string()) |