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

feat: Use full XPaths for config "set" operations #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kklimonda-cl
Copy link
Contributor

@kklimonda-cl kklimonda-cl commented Jul 29, 2024

Description

When sending config "set" operations to PAN-OS, remove wrapping <entry></entry>
elements and use full XPath for the entry instead.

Motivation and Context

Support for partial XPaths has been removed in PAN-OS 11.0.3-h3, and
full XPaths are supported across all PAN-OS versions we're targetting.

@kklimonda-cl kklimonda-cl force-pushed the feat-strip-entry-from-marshalled-data branch from 12be24f to ec4fec9 Compare July 29, 2024 09:42
@kklimonda-cl kklimonda-cl linked an issue Jul 29, 2024 that may be closed by this pull request
Copy link
Member

@migara migara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏽

}

// Optionally remove top entry element from marshalled data to fullfill
// PAN-OS API requirements.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// PAN-OS API requirements.
// PAN-OS API requirements.
// PAN-OS behaviour change: SET operations in the XML API no longer support partial XPath values.

Base automatically changed from feat-render-resource-second-part to main August 8, 2024 12:53
@kklimonda-cl kklimonda-cl force-pushed the feat-strip-entry-from-marshalled-data branch from ec4fec9 to ebcb1d9 Compare August 19, 2024 10:41
Support for partial XPaths have been removed in PAN-OS 11.0.3-h3, and
full XPaths are supported across all PAN-OS versions we're targetting.
@kklimonda-cl kklimonda-cl force-pushed the feat-strip-entry-from-marshalled-data branch from ebcb1d9 to c15b89c Compare August 19, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Partial XPath support no longer supported in PAN-OS 11.0
2 participants