diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-11 20:57:16 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-11 20:57:16 +0200 |
commit | 7e946dc26f628ac716a1d6a75664781e5685cb66 (patch) | |
tree | 6f61be1dde66f8a75eab5345221fbd11831d3b91 /data/templates/snmp/usr.snmpd.conf.tmpl | |
parent | 47838b888aa3e7378ca0270a774cb77635b7f092 (diff) | |
download | vyos-1x-7e946dc26f628ac716a1d6a75664781e5685cb66.tar.gz vyos-1x-7e946dc26f628ac716a1d6a75664781e5685cb66.zip |
snmp: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/snmp/usr.snmpd.conf.tmpl')
-rw-r--r-- | data/templates/snmp/usr.snmpd.conf.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/snmp/usr.snmpd.conf.tmpl b/data/templates/snmp/usr.snmpd.conf.tmpl index 1c688a61e..a46b3997f 100644 --- a/data/templates/snmp/usr.snmpd.conf.tmpl +++ b/data/templates/snmp/usr.snmpd.conf.tmpl @@ -1,5 +1,5 @@ ### Autogenerated by snmp.py ### -{% if v3 is defined and v3.user is defined and v3.user is not none %} +{% if v3.user is vyos_defined %} {% for user, user_config in v3.user.items() %} {{ user_config.mode }}user {{ user }} {% endfor %} |