diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-03-11 12:32:46 +0200 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-03-11 12:32:46 +0200 |
commit | 0364d44b4ffbcde647807c31e42c3662cc87e2e3 (patch) | |
tree | 39f6fb3ac08d2f53ed523d1b50c0a7c02b616810 /data | |
parent | 423a25a814ca92870399dab1c5e107732a16292d (diff) | |
download | vyos-1x-0364d44b4ffbcde647807c31e42c3662cc87e2e3.tar.gz vyos-1x-0364d44b4ffbcde647807c31e42c3662cc87e2e3.zip |
snmp: T2998: SNMP v3 oid "exclude" option fix
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/snmp/etc.snmpd.conf.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/snmp/etc.snmpd.conf.tmpl b/data/templates/snmp/etc.snmpd.conf.tmpl index 30806ce8a..ca9b4d617 100644 --- a/data/templates/snmp/etc.snmpd.conf.tmpl +++ b/data/templates/snmp/etc.snmpd.conf.tmpl @@ -91,6 +91,11 @@ trap2sink {{ trap.target }}{{ ":" + trap.port if trap.port is defined }} {{ trap {% for view in v3_views %} {% for oid in view.oids %} view {{ view.name }} included .{{ oid.oid }} +{% if oid.exclude %} +{% for excl in oid.exclude %} +view {{ view.name }} excluded .{{ excl }} +{% endfor %} +{% endif %} {% endfor %} {% endfor %} |