diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-03-07 17:18:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 17:18:08 +0100 |
commit | e35041bd45cea8a64600d7c05756cb0b486000f7 (patch) | |
tree | 554fca9f8a7d879c0825483002a6c9a9198e6ca0 /data/templates | |
parent | 6e7e7842bc1ba55bd4c91c3af35faf8961793318 (diff) | |
parent | 77a25e95da48549f2791b677f4ba187e547b1c6a (diff) | |
download | vyos-1x-e35041bd45cea8a64600d7c05756cb0b486000f7.tar.gz vyos-1x-e35041bd45cea8a64600d7c05756cb0b486000f7.zip |
Merge pull request #3105 from natali-rs1985/T2998-current
snmp: T2998: SNMP v3 oid "exclude" option fix
Diffstat (limited to 'data/templates')
-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 %} |