summaryrefslogtreecommitdiff
path: root/src/migration-scripts/snmp
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-10-27 04:23:13 +0100
committerChristian Poessinger <christian@poessinger.com>2019-10-27 04:29:31 +0100
commit556b528ef9cc1eca9d142ebe1f8f88cd02d536da (patch)
tree727735b1ae792c88521bb24d60a36698b5673da6 /src/migration-scripts/snmp
parentd523111279b3a9a5266b442db5f04049a31685f7 (diff)
downloadvyos-1x-556b528ef9cc1eca9d142ebe1f8f88cd02d536da.tar.gz
vyos-1x-556b528ef9cc1eca9d142ebe1f8f88cd02d536da.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.
Diffstat (limited to 'src/migration-scripts/snmp')
-rwxr-xr-xsrc/migration-scripts/snmp/0-to-15
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())