Normalize Interface Names in "LLDP Neighbors" Tab nxos #2297

Closed
opened 2025-12-29 17:24:36 +01:00 by adam · 2 comments
Owner

Originally created by @runeka on GitHub (Jan 16, 2019).

Environment

  • NetBox version: 2.5.3

This is almost the same issue as #1621 but on nxos Cisco Nexus. Napalm for Nexus LLDP returns a short interface name for local device and full interface name for remote device. This makes it impossible to match interface naming in Netbox.

leaf2# sh lldp neighbors
Capability codes:
(R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
(W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID Local Intf Hold-time Capability Port ID
leaf1.example.com
Eth1/47 120 BR Ethernet1/47

Steps to Reproduce

  1. LLDP Neighbors tab on Cisco Nexus Switches.

Expected Behavior

I expected that interface naming matching LLDP naming would work.

Observed Behavior

Impossible to match interfaces correctly.

Originally created by @runeka on GitHub (Jan 16, 2019). ### Environment * NetBox version: 2.5.3 This is almost the same issue as #1621 but on nxos Cisco Nexus. Napalm for Nexus LLDP returns a short interface name for local device and full interface name for remote device. This makes it impossible to match interface naming in Netbox. leaf2# sh lldp neighbors Capability codes: (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other Device ID Local Intf Hold-time Capability Port ID leaf1.example.com **Eth1/47** 120 BR **Ethernet1/47** ### Steps to Reproduce 1. LLDP Neighbors tab on Cisco Nexus Switches. ### Expected Behavior I expected that interface naming matching LLDP naming would work. ### Observed Behavior Impossible to match interfaces correctly.
adam closed this issue 2025-12-29 17:24:36 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 16, 2019):

We're not going to keep tweaking the logic to accommodate the quirks of different platforms. You'll need to name your interfaces the way the platform reports them if LLDP validation is important. If a platform is reporting interfaces inconsistently, that's an issue to be raised with the vendor.

@jeremystretch commented on GitHub (Jan 16, 2019): We're not going to keep tweaking the logic to accommodate the quirks of different platforms. You'll need to name your interfaces the way the platform reports them if LLDP validation is important. If a platform is reporting interfaces inconsistently, that's an issue to be raised with the vendor.
Author
Owner

@runeka commented on GitHub (Jan 16, 2019):

I do see your point. But it is impossible to match it as Cisco report interfaces local Eth and remote Ethernet. It is possible to match local, but remote will never match. Why not apply the same fix as for #1621 ?

@runeka commented on GitHub (Jan 16, 2019): I do see your point. But it is impossible to match it as Cisco report interfaces local Eth and remote Ethernet. It is possible to match local, but remote will never match. Why not apply the same fix as for #1621 ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2297