Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panos_security_rule - gather security rules based on vsys #576

Open
thejptnaz opened this issue Aug 12, 2024 · 0 comments
Open

panos_security_rule - gather security rules based on vsys #576

thejptnaz opened this issue Aug 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@thejptnaz
Copy link

Describe the bug

https://paloaltonetworks.github.io/pan-os-ansible/modules/panos_security_rule_module.html#ansible-collections-paloaltonetworks-panos-panos-security-rule-module

It seems that "vsys" option is either not working or not available to use when the firewall has multi-vsys setup

Expected behavior

To be able to gather security rules based on vsys for Firewall with multi-vsys enabled

Current behavior

No security rules were capture when targeting multi-vsys firewalls. When firewall is not on mult-vsys the playbook works without issue.

Steps to reproduce

E.g.

  • name: Gather Security Rules based on vsys
    paloaltonetworks.panos.panos_security_rule:
    provider: "{{ device }}"
    gathered_filter: "*"
    state: "gathered"
    vsys: "vsys2"
    register: security_rule_vsys_debug

E.g.

  • name: Gather Security Rules based on vsys
    paloaltonetworks.panos.panos_security_rule:
    provider: "{{ device }}"
    gathered_filter: "*"
    state: "gathered"
    vsys: "{{ item }}"
    loop: "{{ vsys_list }}"
    register: security_rule_vsys_debug

Screenshots

ok: [localhost] =>
security_rule_vsys_debug:
changed: false
failed: false
gathered: []
gathered_xml: []

Your Environment

  • Collection:
  • Python: 3.9.18
  • Ansible: 8.7.0
  • Ansible-Core: 2.15.12
  • PAN-OS Python Library & version (pan-os-python: 1.12.1, pan-python: 0.17.0):
@thejptnaz thejptnaz added the bug Something isn't working label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant