-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: route snapshot missing entries fix #146
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
A Preview PR in PanDev repo has been created. You can view it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets check if we have a similar issue with get fib routes, if different next hop is possible for same destination/interface. We can merge this afterwards.
We had identical issue with FIB entries when ECMP was used, nice catch @alperenkose! Updated the PR accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, LGTM
## [0.3.4](v0.3.3...v0.3.4) (2024-03-07) ### Features * bgp peers snapshot comparison ([#154](#154)) ([4fec622](4fec622)) ### Bug Fixes * calculate_diff_on_dicts to Support Integer Values for ARP Table ttl ([#153](#153)) ([47ebea5](47ebea5)) * **firewall_proxy/is_panorama_connected:** Added fix for panorama check for FWs in version PAN-OS 11 or later ([#159](#159)) ([e617dbc](e617dbc)) * route snapshot missing entries fix ([#146](#146)) ([d946462](d946462))
🎉 This PR is included in version 0.3.4 🎉 The release is available on PyPI and GitHub release
|
Description
The route table snapshot was missing entries when ECMP routes (differed only by next-hop) were present. This was because dict key generation was based only on VR name, destination CIDR and interface (if applicable). This PR adds next-hop IP address or name to dict key, so the keys are unique every time.
Motivation and Context
#56
How Has This Been Tested?
It has been tested with example python scripts.
Types of changes
Checklist