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

57 snapshot error on pan os 1018 missing session counters in batch upgrade #58

Closed cdot65 closed 7 months ago

cdot65 commented 7 months ago

Overview

This pull request introduces several key updates to improve the robustness and maintainability of the project. Below are the highlights of the changes included in this PR:

Pydantic Modeling Improvements

Resolved an issue where missing fields in session snapshots for older PAN-OS versions caused errors in Pydantic models. The update ensures that the application can gracefully handle snapshot data from a broader range of PAN-OS versions, enhancing compatibility and stability.

Dependency Management

Updated the requirements.txt file to reflect the latest compatible versions of dependencies. This change is particularly beneficial for local development environments, ensuring that developers work with the same set of dependencies that are known to be compatible with the project.

Reboot Logic Enhancements

Refined the reboot logic to make it more straightforward, improving code readability and maintainability. Added enhanced error handling to manage HTTP timeouts more effectively during the reboot process. This improvement aims to make the reboot sequence more resilient to network-related issues, reducing the likelihood of failures during critical operations.

These updates collectively contribute to a more robust and developer-friendly codebase. They address some of the key areas identified by our users and internal testing, aligning with our commitment to delivering high-quality software that meets the needs of our community.