From a31f6d45f72dbe556bd3f3d7d62935251888eca5 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Wed, 8 Feb 2023 13:18:15 +0000 Subject: T4857: Fix error when not defining client|network under community --- data/templates/snmp/etc.snmpd.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/templates/snmp/etc.snmpd.conf.j2 b/data/templates/snmp/etc.snmpd.conf.j2 index 793facc3f..66cf7629a 100644 --- a/data/templates/snmp/etc.snmpd.conf.j2 +++ b/data/templates/snmp/etc.snmpd.conf.j2 @@ -78,8 +78,8 @@ agentaddress unix:/run/snmpd.socket{{ ',' ~ options | join(',') if options is vy {% endfor %} {% endif %} {% if comm_config.client is not vyos_defined and comm_config.network is not vyos_defined %} -{{ comm_config.authorization }}community {{ comm }} -V RESTRICTED -{{ comm_config.authorization }}community6 {{ comm }} -V RESTRICTED +{{ comm_config.authorization }}community {{ comm }} 0.0.0.0/0 -V RESTRICTED +{{ comm_config.authorization }}community6 {{ comm }} ::/0 -V RESTRICTED {% endif %} {% endfor %} {% endif %} -- cgit v1.2.3