summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-07-15 17:07:34 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-07-15 17:07:34 +0000
commita5580f2fc6f76026a0e72561bf797d03fee40a8c (patch)
treefaf138d5b17030f695ce43157d36f07776e56613 /data/templates
parent9810898b2a16c9f2fce1810c8c2f6b62095d4aba (diff)
downloadvyos-1x-a5580f2fc6f76026a0e72561bf797d03fee40a8c.tar.gz
vyos-1x-a5580f2fc6f76026a0e72561bf797d03fee40a8c.zip
snmp: T2763: Add protocol TCP for service SNMP
Ability to listen TCP port for service SNMP set service snmp protocol tcp
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 %}