pysnmp generate Trap to target in non-default vrf

59 Views Asked by At

I am trying to use pysnmp sendNotification() to generate a trap on Debian 9. It works fine when my trap target is in default VRF but when the target is not in the default VRF it fails silently.

I found that the Perl library for SNMP trap generation works in the same scenario because it depends on a "trap2link" statement in /etc/snmp/snmpd.conf which specifies -n vrf. I thought the pysnmp client might also be able to take advantage of trap2link statements but it does not appear to be the case.

I have searched thoroughly for all references to pysnmp+vrf+trap2link and combinations thereof with no success. Any help would be appreciated.

0

There are 0 best solutions below