summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-25 18:07:06 +0000
committerViacheslav <v.gletenko@vyos.io>2021-10-25 18:34:35 +0000
commit45f815928976519ffba2ecadf197f725e7640852 (patch)
tree5563c24a40b1b61303cc2973972ac3a7d56c9e70 /data
parentaeff049aea37115a7bbe52cd0da4d987fbccde82 (diff)
downloadvyos-1x-45f815928976519ffba2ecadf197f725e7640852.tar.gz
vyos-1x-45f815928976519ffba2ecadf197f725e7640852.zip
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 %}