From 96b8107b437925b1b02399dedab8c3b887cf5093 Mon Sep 17 00:00:00 2001 From: Sander Klein Date: Wed, 23 Nov 2022 19:17:14 +0100 Subject: T4835: snmpd: Fix copy/paste error in snmpd.conf The variable 'client' was accidently used where 'network should have been used. This lead to missing community6 string when an IPv6 network was defined instead of an IPv6 client. --- data/templates/snmp/etc.snmpd.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/templates/snmp/etc.snmpd.conf.j2') diff --git a/data/templates/snmp/etc.snmpd.conf.j2 b/data/templates/snmp/etc.snmpd.conf.j2 index d7dc0ba5d..57ad704c0 100644 --- a/data/templates/snmp/etc.snmpd.conf.j2 +++ b/data/templates/snmp/etc.snmpd.conf.j2 @@ -69,7 +69,7 @@ agentaddress unix:/run/snmpd.socket{{ ',' ~ options | join(',') if options is vy {% for network in comm_config.network %} {% if network | is_ipv4 %} {{ comm_config.authorization }}community {{ comm }} {{ network }} -{% elif client | is_ipv6 %} +{% elif network | is_ipv6 %} {{ comm_config.authorization }}community6 {{ comm }} {{ network }} {% endif %} {% endfor %} -- cgit v1.2.3 From 03d49fe0fc5020b851bd639a2cb94f911f48cbea Mon Sep 17 00:00:00 2001 From: Sander Klein Date: Fri, 16 Dec 2022 21:58:06 +0100 Subject: T4884: snmpd: add community6 fallback If no client and network is defined only a `community` config is created. This also adds the `community6` part --- data/templates/snmp/etc.snmpd.conf.j2 | 1 + 1 file changed, 1 insertion(+) (limited to 'data/templates/snmp/etc.snmpd.conf.j2') diff --git a/data/templates/snmp/etc.snmpd.conf.j2 b/data/templates/snmp/etc.snmpd.conf.j2 index 57ad704c0..47bf6878f 100644 --- a/data/templates/snmp/etc.snmpd.conf.j2 +++ b/data/templates/snmp/etc.snmpd.conf.j2 @@ -76,6 +76,7 @@ agentaddress unix:/run/snmpd.socket{{ ',' ~ options | join(',') if options is vy {% endif %} {% if comm_config.client is not vyos_defined and comm_config.network is not vyos_defined %} {{ comm_config.authorization }}community {{ comm }} +{{ comm_config.authorization }}community6 {{ comm }} {% endif %} {% endfor %} {% endif %} -- cgit v1.2.3