The spanning-tree bridge priority is honoured by the engine and unreachable from the console #1364
Labels
No labels
blocked-on-build
bug
device
device-request
enhancement
from-github
needs-datasheet
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1364
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?
The spanning tree has honoured a bridge priority since STP was modelled, and nothing in the product could set it.
Simulator.computeStp()builds each bridge as:config.stpPriorityhas no writer anywhere: no catalogue spec sets it, no CLI command sets it,Device.serialize()did not carry it. So every switch in every lab ran 32768, the root was decided by MACaddress alone, and the first thing anyone does to a switched network — nominate the root — could not be done.
show spanning-treedid not print the priority either, so the report described a tree without explaining it.There are two defects on top of that:
0was unreachable. Priority 0 is legal (0–61440in 4096 steps) and is the best there is, and(dev.config && dev.config.stpPriority) || defaultturns it into the default. A box told "you must beroot" read as "you must not".
runStp()returnedroot: {priority, mac}— a bridge ID, not a device —so nothing downstream could say which switch won.
What must be true instead
spanning-tree priority <0-61440>,no spanning-tree priorityto restorethe default and say what it is;
rounded, because rounding picks a root the operator did not ask for;
accepted and applied to everything;
show spanning-treeprints the priority in force and names the root bridge;show running-configso a restore keeps the election;0means0.