Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix: bgp-peers fails when ip parsing fails #7773
Don't try to call ->getFamily() if we didn't parse an IP
We have a junos device returning '&hT' for a peer, tracking down the source, but fixing this is advised in the meantime.
DO NOT DELETE THIS TEXT
If you would like to test this pull request then please run:
Nov 21, 2017
Ignoring errors was incorrect here, because it caused a fatal error when we tried to use it as an IP object. When an exception is triggered it skips the rest of the code in the try block (usually code that would have fatal errors or similar) and goes right to the catch block.