summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2023-02-08 13:18:15 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2023-02-08 13:18:15 +0000
commita31f6d45f72dbe556bd3f3d7d62935251888eca5 (patch)
treec05fb524014d670d69ae20893c6277f9fe5847a0 /data
parent6b9b36db47a44b688c0bf08649845012a2b13f67 (diff)
downloadvyos-1x-a31f6d45f72dbe556bd3f3d7d62935251888eca5.tar.gz
vyos-1x-a31f6d45f72dbe556bd3f3d7d62935251888eca5.zip
T4857: Fix error when not defining client|network under community
Diffstat (limited to 'data')
-rw-r--r--data/templates/snmp/etc.snmpd.conf.j24
1 files 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 %}