sonic-net / sonic-snmpagent

A net-snmpd agentx subagent for SONiC
Other
15 stars 113 forks source link

Skip unnumbered BGP neighbors instead of failing #260

Open lukasstockner opened 2 years ago

lukasstockner commented 2 years ago

- 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