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

Enhance Network-Related Error Handling for User Clarity #39

Closed cdot65 closed 7 months ago

cdot65 commented 7 months ago

Issue Description

Currently, in our application, when a user encounters network connectivity issues, especially related to DNS resolution or IP address validation, the error messages provided are not very informative. This lack of detail makes it difficult for users to understand the specific nature of the problem – whether it is due to the hostname not resolving to their network's DNS server or an issue with the IP address format.

Proposed Enhancement

We propose enhancing the error handling mechanism to provide more context-specific information to the user. This enhancement would involve improving the way we handle and report errors in DNS resolution and IP address validation processes.

Goals

Expected Impact

Implementation Notes

We might need to revisit the resolve_hostname and ip_callback functions to implement this enhancement. Care should be taken to ensure that the error messages are user-friendly and avoid overly technical jargon.

Additional Context

This enhancement is particularly important for users who are not deeply familiar with network terminologies or who might be troubleshooting connectivity issues without in-depth technical knowledge.