diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-03-07 15:45:37 +0200 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-03-07 15:45:37 +0200 |
commit | 77a25e95da48549f2791b677f4ba187e547b1c6a (patch) | |
tree | be4b9eda22f0029186292edeadf5f55818254242 /data | |
parent | 38fdc27ee2b3253053b2794e3e7ec5d8e0d5aa02 (diff) | |
download | vyos-1x-77a25e95da48549f2791b677f4ba187e547b1c6a.tar.gz vyos-1x-77a25e95da48549f2791b677f4ba187e547b1c6a.zip |
snmp: T2998: SNMP v3 oid "exclude" option fix
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/snmp/etc.snmpd.conf.j2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/data/templates/snmp/etc.snmpd.conf.j2 b/data/templates/snmp/etc.snmpd.conf.j2 index b1ceb0451..9d91192fc 100644 --- a/data/templates/snmp/etc.snmpd.conf.j2 +++ b/data/templates/snmp/etc.snmpd.conf.j2 @@ -141,8 +141,13 @@ trap2sink {{ trap }}:{{ trap_config.port }} {{ trap_config.community }} # views {% for view, view_config in v3.view.items() %} {% if view_config.oid is vyos_defined %} -{% for oid in view_config.oid %} +{% for oid, oid_config in view_config.oid.items() %} view {{ view }} included .{{ oid }} +{% if oid_config.exclude is vyos_defined %} +{% for excluded in oid_config.exclude %} +view {{ view }} excluded .{{ excluded }} +{% endfor %} +{% endif %} {% endfor %} {% endif %} {% endfor %} |