Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
feat: Add new option to panos_active_in_ha module (PaloAltoNetworks#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
acelebanski authored Apr 16, 2024
1 parent 73c28a8 commit a2870f5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugins/modules/panos_active_in_ha.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
node's current state in an HA pair. Can be useful when working with partially upgraded nodes. Use with caution.
type: bool
default: false
ignore_non_functional:
description:
- Use with caution, when set to `True` will ignore if device state is `non-functional` on one of the nodes. Helpful
when verifying a state of a partially upgraded HA pair with vmseries plugin version mismatch.
type: bool
default: false
# """

EXAMPLES = """
Expand Down Expand Up @@ -112,6 +118,7 @@ def main():
argument_spec=dict(
force_fail=dict(type="bool", default=False),
skip_config_sync=dict(type="bool", default=False),
ignore_non_functional=dict(type="bool", default=False),
),
panorama_error="This is a firewall only module",
)
Expand All @@ -123,7 +130,8 @@ def main():
firewall = FirewallProxy(firewall=helper.get_pandevice_parent(module))

is_active = CheckFirewall(firewall).check_is_ha_active(
skip_config_sync=module.params["skip_config_sync"]
skip_config_sync=module.params["skip_config_sync"],
ignore_non_functional=module.params["ignore_non_functional"],
)

if module.params["force_fail"]:
Expand Down

0 comments on commit a2870f5

Please sign in to comment.