summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-07-24 17:33:09 +0100
committerGitHub <noreply@github.com>2022-07-24 17:33:09 +0100
commit4168e03721b2a9595de4090fddf1280d39ccce4c (patch)
tree8d91f6363eaed85980eb2a85e67457f699b4b8c0 /data
parent91efb252a73af6f8531a196bda147dca3b0978eb (diff)
parenta5580f2fc6f76026a0e72561bf797d03fee40a8c (diff)
downloadvyos-1x-4168e03721b2a9595de4090fddf1280d39ccce4c.tar.gz
vyos-1x-4168e03721b2a9595de4090fddf1280d39ccce4c.zip
Merge pull request #1416 from sever-sever/T2763-eq
snmp: T2763: Add protocol TCP for service SNMP
Diffstat (limited to 'data')
-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 %}