summaryrefslogtreecommitdiff
path: root/data/templates/snmp/var.snmpd.conf.tmpl
blob: 5871a823409abcf08dc4900c109dd7eda09ec89c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### Autogenerated by snmp.py ###
# user
{% if v3 is defined and v3 is not none %}
{%   if v3.user is defined and v3.user is not none %}
{%     for user, user_config in v3.user.items() %}
usmUser 1 3 0x{{ v3.engineid }} "{{ user }}" "{{ user }}" NULL {{ user_config.auth.type | snmp_auth_oid }} 0x{{ user_config.auth.encrypted_password }} {{ user_config.privacy.type | snmp_auth_oid }} 0x{{ user_config.privacy.encrypted_password }} 0x
{%     endfor %}
{%   endif %}

# VyOS default user
createUser {{ vyos_user }} MD5 "{{ vyos_user_pass }}" DES

{%   if v3.engineid is defined and v3.engineid is not none %}
oldEngineID 0x{{ v3.engineid }}
{%   endif %}
{% endif %}