The PAN-OS SDK for Python is a package to help interact with Palo Alto Networks devices (including physical and virtualized Next-generation Firewalls and Panorama). The pan-os-python SDK is object oriented and mimics the traditional interaction with the device via the GUI or CLI/API.
panos.policies.DecryptionRule class has forwarding_profile parameter to specify a Log Forwarding Profile however it does not work.
Expected behavior
When a string with log forwarding profile name is specified as a value of this paramater the resultant decryption rule should be created with the specified profile.
Current behavior
I am getting the error "panos.errors.PanDeviceXapiError: pre-rulebase -> decryption -> rules -> [my rule name] -> forwarding-profile unexpected here".
Possible solution
Steps to reproduce
Create a decryption rule referencing a log forwarding profile. My script goes along these lines:
Currently the log forwarding profile has to be specified manually, after the policy has been created by the script.
Your Environment
This is on Panorama PAN-OS 10.2.5 and SDK version 1.11.0. The same behaviour was observed on 10.1. and 9.1. and previous versions of the SDK. Python 3.9 on Windows 10.
Describe the bug
panos.policies.DecryptionRule
class hasforwarding_profile
parameter to specify a Log Forwarding Profile however it does not work.Expected behavior
When a string with log forwarding profile name is specified as a value of this paramater the resultant decryption rule should be created with the specified profile.
Current behavior
I am getting the error "panos.errors.PanDeviceXapiError: pre-rulebase -> decryption -> rules -> [my rule name] -> forwarding-profile unexpected here".
Possible solution
Steps to reproduce
Create a decryption rule referencing a log forwarding profile. My script goes along these lines:
Screenshots
Context
Currently the log forwarding profile has to be specified manually, after the policy has been created by the script.
Your Environment
This is on Panorama PAN-OS 10.2.5 and SDK version 1.11.0. The same behaviour was observed on 10.1. and 9.1. and previous versions of the SDK. Python 3.9 on Windows 10.