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

PBF rules created with wrong path #577

Open
Jbarrantess opened this issue Oct 1, 2024 · 0 comments
Open

PBF rules created with wrong path #577

Jbarrantess opened this issue Oct 1, 2024 · 0 comments
Labels

Comments

@Jbarrantess
Copy link

The import for PolicyBaseFordwarding uses wong xpath to try creating rules

The xpath to use should be /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/pbf/rules"

It tries on config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/pbf/rules which is documented on https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/panos/policies.py

Change " self._xpaths.add_profile(value="/pbf/rules") " to self._xpaths.add_profile(value="/rulebase/pbf/rules")

Any attempt to create a PBF

Firewall is running version 10.x

@Jbarrantess Jbarrantess added the bug label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant