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

Fixes #463. Expose LLDP neighbors on EthernetInterface #464

Open DavidVentura opened 2 years ago

DavidVentura commented 2 years ago

Description

This change adds a new function: get_lldp_neighbors to EthernetInterface, which returns a list of LLDP neighbors from the device.

Motivation and Context

LLDP is very useful to determine whether patching was carried out correctly, see #463

How Has This Been Tested?

I am testing this on a PA-850.

Lint rules from the contributing guidelines were broken prior to this change

Types of changes

Checklist

I have not added tests, I couldn't find a test for get_counters to base my test on, is there a similar test I can use as an example?

welcome-to-palo-alto-networks[bot] commented 2 years ago

:tada: Thanks for opening this pull request! We really appreciate contributors like you! :raised_hands: