Skip to content

Commit 5ad1b81

Browse files
committed
[202311][SNMP] Fix config template issue when setting snmpagentaddress
1 parent b4b6f36 commit 5ad1b81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dockers/docker-snmp/snmpd.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
{% if SNMP_AGENT_ADDRESS_CONFIG %}
2828
{% for (agentip, port, vrf) in SNMP_AGENT_ADDRESS_CONFIG %}
29-
agentAddress {{ protocol(agentip) }}:[{{ agentip }}]{% if port %}:{{ port }}{% endif %}{% if vrf %}%{{ vrf }}{% endif %}{{ "" }}
29+
agentAddress {{ protocol(agentip) }}:[{{ agentip }}]{% if vrf %}@{{ vrf }}{% endif %}{% if port %}:{{ port }}{% endif %}{{ "" }}
3030
{% endfor %}
3131
{% else %}
3232
agentAddress udp:161

0 commit comments

Comments
 (0)