pan-os-python icon indicating copy to clipboard operation
pan-os-python copied to clipboard

PBF rules created with wrong path

Open Jbarrantess opened this issue 1 year ago • 0 comments

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 avatar Oct 01 '24 13:10 Jbarrantess