Skip to content

Commit

Permalink
Added fix for panorama check for FWs in version PAN-OS 11 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
horiagunica committed Mar 4, 2024
1 parent 4fec622 commit a21ea3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions panos_upgrade_assurance/firewall_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ def is_panorama_connected(self) -> bool:
pan_connected = interpret_yes_no((pan_status_list[i].split(":")[1]).strip())
if pan_connected:
return True
elif pan_status_list_length in [3, 6]:
for i in range(1, pan_status_list_length, 3):
pan_connected = interpret_yes_no((pan_status_list[i].split(":")[1]).strip())
if pan_connected:
return True
else:
raise exceptions.MalformedResponseException(
f"Panorama configuration block does not have typical structure: <{pan_status}>."
Expand Down

0 comments on commit a21ea3f

Please sign in to comment.