-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Peering import from SNMP #245
Comments
[snmp_poll_peering_sessions.py.txt](https://github.com/peering-manager/peering-manager/files/7234291/snmp_poll_peering_sessions.py.txt |
Environment
Proposed Functionality & Use Case
As an alternative to the NAPALM & Netbox/NAPALM peering import, it could perhaps be interesting to also support importing from SNMP as a more lightweight approach. An example code using the excellent snimpy library would be:
Important caveat: this is IPv4-only. The IPv6 BGP MIB never got out of draft status and there are vendor-specific implementations for it. I tried to make this work with BGP4-V2-MIB-JUNIPER + our Juniper gear ~3 years ago and ran into a wall: I asked the snimpy author at the time, who didn't see anything wrong with his code, asked j-nsp, and got confirmation from Juniper that this was a bug on their implementation(!) and filed a PR internally. This was fixed in recent JunOS (18.1+), but requires extra config on the Juniper router (
set protocols bgp snmp-options emit-inet-address-length-in-oid command
). I never got to implement that codepath, though, or other vendors (like Cisco and Arista's). That needs some playing around from folks that own such equipment.External Dependencies
The text was updated successfully, but these errors were encountered: