pan-os-python
pan-os-python copied to clipboard
Feature/new log settings
Description
Created the following new classes for the missing log setting formats:
- class LogSettingsGlobalProtect
- class LogSettingsUserId
- class LogSettingsIpTag
- class LogSettingsHipMatch
- class LogSettingsCorrelation
Added the the new class references as CHILDTYPES parameter to the following classes:
- panos.device: class Vsys
- panos.panorama: class TemplateStack and class Template
- panos.firewall: class Firewall
Motivation and Context
We need to update log settings across multiple firewalls/Panorama Device groups, however as of now only System and Configuration log settings are supported in the SDIK. The following log settings types are missing:
- Global Protect (PanOS 9.1)
- User ID
- IP Tag (PanOS 9.0)
- HIP Match
- Correlation
How Has This Been Tested?
Tested the new classes for Log Setting retrieval and configuration against Panorama.
Screenshots (if appropriate)
NA
Types of changes
- New feature (non-breaking change which adds functionality)
Checklist
- [x] I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.
- [x] I have added tests to cover my changes if appropriate.
- [x] All new and existing tests passed.