summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-25 21:03:47 +0200
committerGitHub <noreply@github.com>2021-10-25 21:03:47 +0200
commit639b2982bbcc72b962bea740a36294ab3d88cbc3 (patch)
tree52e7e47a1dca0de1b7a836963f97d6290a35a43a /data/templates
parentd0dc71d7d22be9336934e2f84873f7a052a7f824 (diff)
parent45f815928976519ffba2ecadf197f725e7640852 (diff)
downloadvyos-1x-639b2982bbcc72b962bea740a36294ab3d88cbc3.tar.gz
vyos-1x-639b2982bbcc72b962bea740a36294ab3d88cbc3.zip
Merge pull request #1042 from sever-sever/T2763
snmp: T2763: Add protocol TCP for service snmp
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/snmp/etc.snmpd.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/snmp/etc.snmpd.conf.tmpl b/data/templates/snmp/etc.snmpd.conf.tmpl
index db2114fa1..30806ce8a 100644
--- a/data/templates/snmp/etc.snmpd.conf.tmpl
+++ b/data/templates/snmp/etc.snmpd.conf.tmpl
@@ -39,7 +39,7 @@ SysDescr {{ description }}
{% endif %}
# Listen
-agentaddress unix:/run/snmpd.socket{% if listen_on %}{% for li in listen_on %},{{ li }}{% endfor %}{% else %},udp:161{% if ipv6_enabled %},udp6:161{% endif %}{% endif %}
+agentaddress unix:/run/snmpd.socket{% if listen_on %}{% for li in listen_on %},{{ li }}{% endfor %}{% else %},{{protocol}}:161{% if ipv6_enabled %},{{protocol}}6:161{% endif %}{% endif %}
# SNMP communities
{% for c in communities %}