A port the spanning tree blocks is drawn on the board as a healthy port #1441
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1441
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
A port the spanning tree blocks is drawn on the board exactly like a port that is forwarding, while
show spanning-treesays the frames are being dropped.Measured on three switches cabled in a triangle (
s1–s2,s2–s3,s3–s1):The canvas, the device panel and the inspector footer all draw
Fa0/2exactly likeFa0/1: patched, up, green. The one rule all three views ask —portState()inweb/faceplate.js— knows about a shut port, an unplugged socket, a link-down cable and a shut peer, and nothing about the tree. The state payload (GET /api/topologies/:id) does not carry the tree either, so no view could have known.An operator watching the canvas while traffic dies therefore has one screen saying the port is fine and another saying the frames are being thrown away — the same class of bug #1238 fixed for an unplugged port, with a different cause.
What should be true
state,role,blocked, and the sentence the console prints;portState()takes that as one more fact and reportsblocking (traffic dropped)— the console's words, not a second vocabulary;notconnectalready avoids for empty sockets);undefined, notblocked: false, so an older payload cannot make a view invent a verdict;enabledalone.Evidence:
test/stp-port-state.test.js, 31 checks — the payload names the single blocked port of a triangle and its role, the console row and the payload sentence match word for word, a router publishes no tree, all four fact combinations keep their verdicts,undefinedchanges nothing, and the two call sites are checked statically. Reverting the payload or the rule breaks the file outright; reverting the two call sites fails 4.