Open stealthllama opened 4 months ago
The xpath_short() function that is being called by create()
:
@stealthllama I'm currently working on this as it seemed straight forward. Does this issue only have an impact on AddressObject? Or does this need to impact other object types as well? I need to test this to see the xml output but I was looking at something like:
self._xpaths.add_profile(value="/address/entry[@name='{name}']")
Describe the bug
Partial XPath support was dropped in PAN-OS 11.0. The
create()
function in pan-os-python issuesset
commands with a partial XPath value for the newly created configuration object. This results in inconsistencies when performing partial commits on Panorama. Changes made by specific administrators are not pushed to the managed firewalls when a partial commit is performed.Expected behavior
The
set
commands generated from thecreate()
function should include the object entry on the XPath string.Example:
Current behavior
The
set
commands generated from thecreate()
function strip out the object entry suffix on the XPath string. Axpath_short()
function is called to perform this truncation.Example:
Possible solution
The
create()
function must specific the complete XPath with entry suffix in allset
commands.Steps to reproduce
create()
function against Panorama 11.0.3-h3 or later.Context
This issue impacts all users of the Ansible collection for PAN-OS.
Your Environment