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

Pull LLDP Peer data from EthernetInterfaces #463

Open DavidVentura opened 2 years ago

DavidVentura commented 2 years ago

Is your feature request related to a problem?

I want to verify physical patching towards firewalls has been carried correctly. To do this, I'd like to get the LLDP frames received on the firewall EthernetInterfaces in a programmatic way

Describe the solution you'd like

EthernetInterface should have a peers (or lldp_peers) property, which should be a list of peers

[{"port-id": "Ethernet1", "system-name": "my-neighbor"}]

(I've only written down 2 fields, but there are more currently exposed by the HTTP API feeding the UI at LLDPRuntime.getLLDPPeers)

Describe alternatives you've considered

Using the API, but I've not managed to get a good reply from the firewalls, so I'm not sure if this is supported (/Network/EthernetInterfaces is returning 0 results for me, while access via pan-os-python does return the interfaces)

Additional context

I am currently unable to confirm (programmatically) whether the patching carried out is correct or not.

If this is currently possible to achieve via the API, I'd also be happy to do that until implemented in pan-os-python

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

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