docs: show vlan lists access members only - a trunk is in no row #1886
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!1886
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/1117-1846"
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?
docs/CLI.md, Readingshow vlan, documented the membership rule that #1638 replaced.The page said:
engine/cli.js(show vlan, the membership loop) does the opposite:if (i.vlan && i.vlan.mode === 'trunk') continue;- a trunk port is in no row at all - and the comment says why: Cisco's usage guideline ("When displaying multiple VLANs only non-trunk ports are displayed"), withresearch/vlan-brief-trunk-ports.mdas the evidence.test/show-vlan.test.jsasserts it for both a trunk with an explicit allowed list and one that allows every VLAN.Reproduced on a C9200L-24T-4G: trunk Gi1/0/1 with
allowed vlan 20,30, VLANs 20 and 30 created, access VLAN 20 on Gi1/0/2 -show vlan brieflists20 ... Gi1/0/2and30 ... (empty); Gi1/0/1 is in no Ports cell, VLAN 1 included.The same paragraph's row-set sentence ("or if a port uses it") was also stale: after
no vlan 22the port keeps the id, the row is gone, andshow interfacesreports the port inactive untilvlan 22returns.Docs-only. Guards: syntax-check 393 files OK; docs-cli-transcript 4/0; docs-show-commands 7/0; help-completeness 8/0 (unchanged before and after); help-key-is-not-a-value 40/0; no-form-help-key 81/0; show-vlan 34/0; doc-catalog-counts 43; doc-citations 11/0.