You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix LLDP neighbors detail retrieval on ASR9K devices
The original implementation of the get_lldp_neighbors_detail method fails with
an XMLCLIError exception when used on Cisco ASR9K devices. This is due to
the ASR9K requiring a more specific XML path in the RPC call.
Added a try/except block that:
1. First attempts the generic LLDP query
2. If that fails with XMLCLIError, tries a more specific query that includes the
exact node path (Rack 0, Slot 0, Instance CPU0)
3. Also added an informative log message to indicate when fallback occurs
This change maintains backward compatibility with standard IOS-XR devices
while adding support for ASR9K devices.
0 commit comments