diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-08-29 23:31:01 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-08-29 23:31:01 +0200 |
commit | e30cb007618502fdb25f626ef95b486aa0fd6553 (patch) | |
tree | 098be068c88f8a5a59ea0bacce329a661b9dc6c3 /src/conf_mode | |
parent | cda75e4029d672a47c86a0c12001d15600a5d29f (diff) | |
download | vyos-1x-e30cb007618502fdb25f626ef95b486aa0fd6553.tar.gz vyos-1x-e30cb007618502fdb25f626ef95b486aa0fd6553.zip |
snmp.py: only write 'oldEngineID' to config if v3 is enabled
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/snmp.py | 2 |
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. |