New
-
Bind LLDP links to the right local interface on Arista EOS, Mellanox Onyx and Cumulus (#31). On these switches the LLDP local port number (
lldpRemLocalPortNum, the middle of the LLDP MIB index) is not the IF-MIB ifIndex — the LLDP agent assigns its own numbering. Used directly it bound a link to the wrong interface: local port 13 resolved to the SVIVlan13instead of the physicalEthernet3/1at ifIndex 3001, so the map showed the SVI's counters and missed the physical port's down state.A new optional template, NT LLDP Local Ports by SNMP, walks the
lldpLocPortTable(lldpLocPortId/IdSubtype/Desc). The module resolves each local port to its real ifIndex against the host's own interface names: the typed Port ID wins when its subtype says it is an interface name (5/7, never a MAC), the description is a unique fallback only, and the binding is left unresolved when the two point at different interfaces. Only a unique match counts, and a uniquely resolved local identity is treated as proven (feeds the #29 parallel-cable guard). When the table is absent the existing direct-index lookup is kept, so linking the template is always safe and backward compatible.Link the template only on hosts where the local port number differs from the ifIndex — see docs/LLDP-SETUP.md.
Reported with real OID walks by @rhysjoseph (PR #31); reimplemented on our side with tests built from those walks.