summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-08-29 23:31:01 +0200
committerChristian Poessinger <christian@poessinger.com>2018-08-29 23:31:01 +0200
commite30cb007618502fdb25f626ef95b486aa0fd6553 (patch)
tree098be068c88f8a5a59ea0bacce329a661b9dc6c3 /src
parentcda75e4029d672a47c86a0c12001d15600a5d29f (diff)
downloadvyos-1x-e30cb007618502fdb25f626ef95b486aa0fd6553.tar.gz
vyos-1x-e30cb007618502fdb25f626ef95b486aa0fd6553.zip
snmp.py: only write 'oldEngineID' to config if v3 is enabled
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/snmp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 27dac209f..b98741913 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -84,7 +84,9 @@ usmUser 1 3 {{ u.engineID }} "{{ u.name }}" "{{ u.name }}" NULL {{ u.authOID }}
{% endif %}
createUser {{ vyos_user }} MD5 "{{ vyos_user_pass }}" DES
+{% if v3_engineid %}
oldEngineID {{ v3_engineid }}
+{%- endif -%}
"""
# SNMPS template - be careful if you edit the template.