diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-03-14 17:10:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 17:10:47 +0100 |
commit | 713b2f3702134abd9a34c539019a83d0e354eb22 (patch) | |
tree | 403500571455f7a01ada0d9b12b1648c2d2f9af4 /data/templates | |
parent | c2e66922c93b60d12f1f30bded3cd6d4bae7e117 (diff) | |
parent | 1fb746332602fd53eb5412c8f3c7fc38c09b7d26 (diff) | |
download | vyos-1x-713b2f3702134abd9a34c539019a83d0e354eb22.tar.gz vyos-1x-713b2f3702134abd9a34c539019a83d0e354eb22.zip |
Merge pull request #3121 from natali-rs1985/T2998-equuleus
snmp: T2998: SNMP v3 oid "exclude" option fix
Diffstat (limited to 'data/templates')
-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 %} |