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
341 stars 169 forks source link

UUID attribute in SecurityRule returns None #392

Closed johnjtorres closed 2 years ago

johnjtorres commented 2 years ago

Discussed in https://github.com/PaloAltoNetworks/pan-os-python/discussions/386

Originally posted by **johnjtorres** November 30, 2021 uuid is showing as None when SecurityRule is pulled from Panorama. ```python pan = Panorama(hostname=hostname, api_key=api_key) device_group = pan.add(DeviceGroup("MyDeviceGroup")) post_rulebase = device_group.add(PostRulebase()) rules = SecurityRule.refreshall(post_rulebase) for rule in rules: print(rule.name, rule.uuid) ``` ``` # Output rule1 None rule2 None rule3 None rule4 None # Expected output rule1 2f563aaa-d228-4f93-9f8e-fd898d62178d rule2 06199882-24e2-4c34-9f90-ba6783ca9065 rule3 955057fc-686c-46ee-94cd-3e962d063a2c rule4 3dd11297-112a-410b-9627-c0aeb2b2026e ``` DEBUG4:pan.xapi:Python version: 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] DEBUG4:pan.xapi:xml.etree.ElementTree version: 1.3.0 DEBUG4:pan.xapi:ssl: OpenSSL 1.1.1d 10 Sep 2019 DEBUG4:pan.xapi:pan-python version: 0.16.0 Panorama version 10.0.8 pan-os-python==1.6.0
welcome-to-palo-alto-networks[bot] commented 2 years ago

:tada: Thanks for opening your first issue here! Welcome to the community!

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 1.7.0 :tada:

The release is available on PyPI and GitHub release

Posted by semantic-release bot