Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Canonicalise IPv6 address before searching for peers (librenms#16541)
* Canonicalise IPv6 address before searching for peers JunOS (and probably other platforms) compress the peer identifier, but the code searches the uncompressed database field. The existing behaviour isn't great either - it clobbers the value of bgpPeerIdentifier. So, to fix it this change saves an IP object and operates on that, then only uses the pretty value for rendering - SQL queries use the unmodified version. * Fix a typo and a copy-paste error * Remove whitespace * Use a local variable * IP may be null since errors are ignored --------- Co-authored-by: Tony Murray <[email protected]>
- Loading branch information