-
Notifications
You must be signed in to change notification settings - Fork 8
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(firewall_proxy/is_panorama_connected): Added fix for panorama check for FWs in version PAN-OS 11 or later #159
Conversation
ac393f9
to
a21ea3f
Compare
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
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.
Is there a reason we're not just doing a simple re.search('connected: yes')
here?
I see no reason not to :) - refactored the code - please have a look. |
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.
LGTM 👍🏻
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.
The only comment I have here is that this will fail if there are two panorama's present and one isn't connected but the other is. This is probably the behavior we want anyway :)
## [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
This PR closes #158 .
FWs in PAN-s 11.0 and later removed a line from the
show panorama-status
op command output:Pre-version 11.0:
Version >=11.0:
This resulted in two different list lengths that did no match the condition properly.
Motivation and Context
Support for PAN-OS >=11.0 for
is_panorama_connected
check .How Has This Been Tested?
Local Example with two different versions:
Screenshots (if appropriate)
Types of changes
Checklist