pan-os-python
pan-os-python copied to clipboard
Fixes #463. Expose LLDP neighbors on EthernetInterface
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
- New feature (non-breaking change which adds functionality)
Checklist
- [x] I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my changes if appropriate.
- [x] All new and existing tests passed.
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?
:tada: Thanks for opening this pull request! We really appreciate contributors like you! :raised_hands: