cli(stp): a bridge priority off the 4096 ladder draws the box's own four lines #2399
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!2399
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1121-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?
Question. A bridge priority inside 0-61440 but not a multiple of 4096 is refused, not rounded. What exactly does the box print?
Verdict: known and adopted. Four lines - the value check's sentence, its heading, and its sixteen allowed values eight to a line in a six-character column:
The console used to print its own explanation ("it must be a multiple of 4096 ... the nearest valid values are 4096 and 8192"). The rejected number is not echoed by a box, so it is not echoed here either.
Sources. Catalyst 4500 config guides 12.2(37)SG and IOS XE 3.9.xE - PDFs whose Courier text layer keeps the column (0 in a six-wide field, so 4096 starts under 32768); the 12.2(20)EWA/31SG/50SG HTML books; a Cisco Community PVST+ transcript for
spanning-tree vlan 10 priority 100; Cisco Learning Network for the per-VLAN form. The same block from the per-VLAN and MST forms makes it the value check's message, not the command's.Changed. engine/cli.js: in-range but off-ladder now returns those four lines (range check still first, so 61441 still names the range - the #1505 fix is preserved). Regression in test/stp-priority.test.js pins the four lines byte for byte, asserts the rejected number is absent, and replays all sixteen listed values to prove none is itself refused. test/command-answers-the-question.test.js moved to the new wording; docs/CLI.md "Setting the root" quotes the block; research/stp-priority-step-refusal.md carries the evidence and the open questions.
Open. The wrap at a non-default
terminal width(a 2025 paste shows all sixteen on one line) and whether the rows are indented (PDF extraction trims leading spaces). The out-of-range refusal remains this console's own sentence.Tests. node scripts/syntax-check.js OK (522 files); npm test: 442 suites, 14,911 assertions, 0 failed.