summaryrefslogtreecommitdiff
path: root/data/templates/snmp/usr.snmpd.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-30 21:37:44 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-30 21:38:16 +0100
commit566f7f2401b79a79abe5ed9597fed325540983fa (patch)
treef6347336c27e8a890286ca473bf7a0c829f8a999 /data/templates/snmp/usr.snmpd.conf.tmpl
parent8d99fe401731c55ee6058d617101fcdaf1b2c47a (diff)
downloadvyos-1x-566f7f2401b79a79abe5ed9597fed325540983fa.tar.gz
vyos-1x-566f7f2401b79a79abe5ed9597fed325540983fa.zip
snmp: T4124: migrate to get_config_dict()
Diffstat (limited to 'data/templates/snmp/usr.snmpd.conf.tmpl')
-rw-r--r--data/templates/snmp/usr.snmpd.conf.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/templates/snmp/usr.snmpd.conf.tmpl b/data/templates/snmp/usr.snmpd.conf.tmpl
index e2c5ec102..1c688a61e 100644
--- a/data/templates/snmp/usr.snmpd.conf.tmpl
+++ b/data/templates/snmp/usr.snmpd.conf.tmpl
@@ -1,6 +1,8 @@
### Autogenerated by snmp.py ###
-{% for u in v3_users %}
-{{ u.mode }}user {{ u.name }}
-{% endfor %}
+{% if v3 is defined and v3.user is defined and v3.user is not none %}
+{% for user, user_config in v3.user.items() %}
+{{ user_config.mode }}user {{ user }}
+{% endfor %}
+{% endif %}
rwuser {{ vyos_user }}