- What I did
Handle ValueError when trying to parse the IP of a BGP neighbor.
In case unnumbered BGP is used, neigh_str will be an interface name, which can't be represented in this MIB. So instead of failing, just skip the neighbor.
- How I did it
Catch ValueError, continue.
- How to verify it
Set up unnumbered BGP
Query SNMP
Check logs
- Description for the changelog
Skip unnumbered BGP neighbors instead of failing
- What I did Handle ValueError when trying to parse the IP of a BGP neighbor.
In case unnumbered BGP is used,
neigh_str
will be an interface name, which can't be represented in this MIB. So instead of failing, just skip the neighbor.- How I did it Catch
ValueError
, continue.- How to verify it
- Description for the changelog Skip unnumbered BGP neighbors instead of failing