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 attempting to create a DecryptionRule, pan-os-python is using the xpath for a PolicyBasedForwarding object instead of a DecryptionRule object which results in an error.
Expected behavior
Xpath for DecryptionRule should be used: /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/decryption/rules/entry[@name='<REDACTED>']
Current behavior
Xpath for a PolicyBasedForwarding object is being used: /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/pbf/rules/entry[@name='<REDACTED>']
Here is the traceback. The parameters are different between pbf and decrypt rules which is what I think this error is saying.
Traceback (most recent call last):
File "C:\python38\lib\site-packages\panos\base.py", line 3661, in method
super_method(self, *args, **kwargs)
File "C:\python38\lib\site-packages\pan\xapi.py", line 741, in set
self.__type_config('set', query, extra_qs)
File "C:\python38\lib\site-packages\pan\xapi.py", line 805, in __type_config
raise PanXapiError(self.status_detail)
pan.xapi.PanXapiError: pbf -> rules -> <REDACTED> -> from unexpected here
pbf -> rules -> <REDACTED> -> from is invalid
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<REDACTED>", line 69, in <module>
main()
File "<REDACTED>", line 47, in main
create_decrypt_rule(fw, **decrypt_rule)
File "<REDACTED>", line 65, in create_decrypt_rule
decrypt_rule.create()
File "<REDACTED>", line 641, in create
device.active().xapi.set(
File "<REDACTED>", line 3682, in method
raise the_exception
panos.errors.PanDeviceXapiError: pbf -> rules -> <REDACTED> -> from unexpected here
pbf -> rules -> <REDACTED> -> from is invalid
Here is the log showing the xpath of the decrypt_rule object and the api query that is made. You can see it has "pbf" in it. This is what I am trying to figure out.
Describe the bug
When attempting to create a DecryptionRule, pan-os-python is using the xpath for a PolicyBasedForwarding object instead of a DecryptionRule object which results in an error.
Expected behavior
Xpath for DecryptionRule should be used:
/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/decryption/rules/entry[@name='<REDACTED>']
Current behavior
Xpath for a PolicyBasedForwarding object is being used:
/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/pbf/rules/entry[@name='<REDACTED>']
Steps to reproduce
Context
Here is the traceback. The parameters are different between pbf and decrypt rules which is what I think this error is saying.
Here is the log showing the xpath of the decrypt_rule object and the api query that is made. You can see it has "pbf" in it. This is what I am trying to figure out.
Your Environment
Python 3.8.1
pan-os-python 1.6.0
The text was updated successfully, but these errors were encountered: