From 566f7f2401b79a79abe5ed9597fed325540983fa Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 30 Dec 2021 21:37:44 +0100 Subject: snmp: T4124: migrate to get_config_dict() --- data/templates/snmp/usr.snmpd.conf.tmpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'data/templates/snmp/usr.snmpd.conf.tmpl') 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 }} -- cgit v1.2.3