PaloAltoNetworks / pan-os-python

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.
https://pan-os-python.readthedocs.io
ISC License
340 stars 168 forks source link

Add admins parameter to Panorama push #485

Closed jamesholland-uk closed 1 year ago

jamesholland-uk commented 1 year ago

Description

Adding support for the PAN-OS 10.2 feature of Administrator-Level Push from Panorama to Managed Devices

Motivation and Context

Motivation is adding support for a new PAN-OS feature, and also to support adding this feature in pan-os-ansible (ref)

How Has This Been Tested?

Tested locally, with Panorama 11.0.0 and managed firewall 10.2.3

    panorama = Panorama(HOSTNAME, USERNAME, PASSWORD)

    cmd = PanoramaCommitAll(
        style="device group",
        name="poc-dg",
        include_template=False,
        force_template_values=False,
        admins=["other"],
    )

    sync = False
    sync_all = True

    result = panorama.commit(cmd=cmd, sync=sync, sync_all=sync_all)

Screenshots (if appropriate)

Screenshot 2022-12-22 at 13 09 56

Types of changes

Checklist

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.8.0 :tada:

The release is available on PyPI and GitHub release

Posted by semantic-release bot