cdot65 / pan-os-upgrade

An efficient tool to execute configuration backups, network state snapshots, system readiness checks, and operating system upgrades of Palo Alto Networks firewalls and Panorama appliances.
https://cdot65.github.io/pan-os-upgrade/
Apache License 2.0
39 stars 7 forks source link

Add recommendation to jump to the latest preferred release within a PAN-OS train #123

Open cdot65 opened 4 months ago

cdot65 commented 4 months ago

Is your feature request related to a problem? Please describe.

When upgrading PAN-OS on firewalls using the pan-os-upgrade utility, users might not be aware of the latest preferred release within a specific PAN-OS train. This can lead to users upgrading to a release that is not the most stable or recommended version, potentially causing issues or missing out on important bug fixes and enhancements.

Describe the solution you'd like

Enhance the pan-os-upgrade utility to recommend jumping to the latest preferred release within a PAN-OS train before proceeding with the upgrade. The utility should:

  1. Utilize an API or knowledge base article to determine the latest preferred release for each PAN-OS train.
  2. Compare the user's target upgrade version with the latest preferred release.
  3. If the user is trying to upgrade to a release that is not the latest preferred release, display a warning message informing them about the latest preferred release and recommending to upgrade to that version first.
  4. Provide an option for the user to continue with their chosen version or automatically update the target version to the latest preferred release.

Describe alternatives you've considered

An alternative approach could be to always enforce upgrading to the latest preferred release without giving the user a choice. However, this might not be desirable in certain scenarios where users have specific requirements or constraints that prevent them from upgrading to the latest preferred release.

Additional context

Here are a few additional points to consider:

By implementing this feature, the pan-os-upgrade utility will help users stay aligned with the best practices for PAN-OS upgrades and reduce the chances of encountering issues related to upgrading to non-preferred releases.