Hi team
the leads need we add a feature to enable -ipCidrRouteTable,inetCidrRouteTable , I know that the default behavior is disabled , but it'll be useful for the customer that we enable it through CLI, we use this bash script to enable it on vyos :
example:
#!/bin/bash check_snmpd() { if sudo systemctl status snmpd > /dev/null; then if grep -q 'ipCidrRouteTable,inetCidrRouteTable' /etc/systemd/system/snmpd.service.d/override.conf; then return 0 fitSec=10 sudo cat /etc/systemd/system/snmpd.service.d/override.conf fi return 1 } if check_snmpd; then echo "Enabling CIDR tables in SNMP" sudo sed -i 's/-I -ipCidrRouteTable,inetCidrRouteTable //' /etc/systemd/system/snmpd.service.d/override.conf echo "Reloading systemd units configurations" sudo systemctl daemon-reload echo "Restarting SNMP daemon" sudo systemctl restart snmpd fi
vyos-cli can be something like this :
set service snmp enable mib ipCidrRouteTable