There is an option to "exclude" for snmp v3 oid, but there is no code/handler/template for it.
set service snmp v3 group ipRoute view 'ipRoute' set service snmp v3 view ipRoute oid 1.3.6.1.2.1 exclude '1.3.6.1.2.1.4.24'
https://github.com/vyos/vyos-1x/blob/current/src/conf_mode/snmp.py#L364-L380
https://github.com/vyos/vyos-1x/blob/current/data/templates/snmp/etc.snmpd.conf.tmpl#L87-L91
What I get
vyos@r4-roll# cat /etc/snmp/snmpd.conf | grep vie # views view ipRoute included .1.3.6.1.2.1
What I expect
vyos@r4-roll# cat /etc/snmp/snmpd.conf | grep vie # views view ipRoute included .1.3.6.1.2.1 view ipRoute excluded .1.3.6.1.2.1.4.24 vyos@r4-roll#
Also, We need to exclude multiple arguments from one oid. But command line replace it.
set service snmp v3 view ipRoute oid 1.3.6.1.2.1 exclude '1.3.6.1.2.1.4.21' set service snmp v3 view ipRoute oid 1.3.6.1.2.1 exclude '1.3.6.1.2.1.4.24'
vyos@r4-roll# show service snmp v3 group ipRoute { view ipRoute } view ipRoute { oid 1.3.6.1.2.1 { exclude 1.3.6.1.2.1.4.24 } } [edit]