When configuring the SNMP daemon for IPv4 and IPv6, the generated snmpd.conf file does not contain rocommunity6 statement. Please have a look below for the exact version I’m running and excerpt of my configuration.
VyOS Version:
Version: VyOS 1.4-rolling-202211190627
Release train: current
Built by: [email protected]
Built on: Sat 19 Nov 2022 06:27 UTC
Build UUID: 687dfd47-11ca-4c0c-8045-944ed60279be
Build commit ID: cd6f8ab1040139
Architecture: x86_64
Boot via: installed image
System type: KVM guest
Hardware vendor: QEMU
Hardware model: Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID: 9245d8cc-e46e-4478-b2d8-587b2e087fee
Copyright: VyOS maintainers and contributors
Configuration:
snmp {
community monitor {
authorization "ro"
}
contact "**redacted**"
listen-address 10.100.0.2 {
port "161"
}
listen-address 127.0.0.1 {
port "161"
}
listen-address fd00:dead:babe:100::2 {
port "161"
}
location "**redacted**"
}
Thanks for the fix, and I see that the change is in the latest nightly I downloaded this morning. However… It is still not working with the configuration I posted : no community6 string.
Looking a bit more at the template (now that I understand a bit more how it works), I see this line:
{% if comm_config.client is not vyos_defined and comm_config.network is not vyos_defined %}
{{ comm_config.authorization }}community {{ comm }}
{% endif %}
It does not have any equivalent for community6. Don’t know if it’s the reason it’s not working but it might be.