You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the panos_op module, in some cases the remote command is not being executed at all.
Expected behavior
When executing a task with the panos_op module, an operational command should be issued on the remote device. The API will respond with a "success" XML message and the command should be run.
Current behavior
The API responds with "success", but the command is still not executed.
> show session info | match Teardown
Teardown session if forward zone changes: False
Steps to reproduce
Run this playbook:
---
- name: Enable Teardown Upon Forward Zone Changehosts: allconnection: localgather_facts: falsetasks:
- name: Enable Session Teardown upon forward zone changepaloaltonetworks.panos.panos_op:
provider: "{{ provider }}"cmd: "<set><session><teardown-upon-fwd-zonechange>yes</teardown-upon-fwd-zonechange></session></set>"cmd_is_xml: true
Go to the command line of the remote device and see, if "Teardown session if forward zone changes" is set to True:
> show session info | match Teardown
Teardown session if forward zone changes: False
Context
Interestingly, this command works, if it is issued on the CLI directly or being pushed to the remote device using panxapi.py from the pan-os-python library which the paloaltonetworks.panos Ansible Collection depends on.
Describe the bug
When using the panos_op module, in some cases the remote command is not being executed at all.
Expected behavior
When executing a task with the panos_op module, an operational command should be issued on the remote device. The API will respond with a "success" XML message and the command should be run.
Current behavior
The API responds with "success", but the command is still not executed.
Steps to reproduce
Context
Interestingly, this command works, if it is issued on the CLI directly or being pushed to the remote device using
panxapi.py
from the pan-os-python library which thepaloaltonetworks.panos
Ansible Collection depends on.Example call:
Your Environment
The text was updated successfully, but these errors were encountered: