cli: show lldp neighbors prints the box's five columns, and cuts a Device ID at 20 #2286
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2286
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1120-0912"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The view printed a table no box prints: a
LLDP neighbours on <device>:heading over Neighbour / Local port / Port ID / Mgmt address, with widths taken from the data.A preserved IOS capture (networktocode/ntc-templates,
tests/cisco_ios/show_lldp_neighbors/cisco_ios_show_lldp_neighbors.raw) shows the vendor shape: a four-line capability legend, a blank line, then Device ID at 0, Local Intf at 20, Hold-time at 35, Capability at 46, Port ID at 62, a blank line, andTotal entries displayed: N.Two rules ride on the widths:
Shost,BL2,Rrouter,B,RL3 switch - so the LLDPDU now carries that TLV (type 7, six bytes) rather than leaving the column invented. A neighbour that advertised none prints a blank cell, as the capture does.The management address leaves the table (it stays on the neighbour record and on the port's own block); a neighbour whose local port cannot carry a frame keeps its reason after the last column.
research/show-lldp-neighbors-columns.mdrecords the captures, the width measurement, and what stays unresolved (NX-OS does not truncate; the empty-state sentence is this console's own).Tests: 408 suites, 13542 assertions, 0 failed. New suite
test/show-lldp-neighbors-columns.test.js(27 checks).show lldp neighborsprints the box's five columns, and cuts a Device ID at 20cli: show lldp neighbors prints the box's five columns, and cuts a Device ID at 20to cli:show lldp neighborsprints the box's five columns, and cuts a Device ID at 20