From 0364d44b4ffbcde647807c31e42c3662cc87e2e3 Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Mon, 11 Mar 2024 12:32:46 +0200 Subject: snmp: T2998: SNMP v3 oid "exclude" option fix --- data/templates/snmp/etc.snmpd.conf.tmpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data/templates/snmp/etc.snmpd.conf.tmpl') 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 %} -- cgit v1.2.3