Skip to content

stp: let a guard act once, not for every BPDU - #1009

Open
DrDoof wants to merge 1 commit into
RTLPlayground:mainfrom
DrDoof:fix/stp-guard-once
Open

DrDoof wants to merge 1 commit into
RTLPlayground:mainfrom
DrDoof:fix/stp-guard-once

Conversation

@DrDoof

@DrDoof DrDoof commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

A port that BPDU guard has shut down runs the guard again for every further BPDU. As long as the sender keeps talking, every two seconds the message is printed, the port state is written and, with syslog on, a line goes to the server. Root guard does the same: message and state write for each BPDU.

A tripped port is now left alone, and a root guard port is only blocked when it isn't blocked yet. Root guard still renews its hold timer with every BPDU.

The STP simulator has a scenario for both guards: ten more BPDUs after the first one write nothing to the port state. It fails on main and passes with this change.

A port shut down by BPDU guard ran the guard again for each further
BPDU: every two seconds the message was printed, the port state written
and, with syslog on, a line sent to the server, for as long as the
sender kept talking. Root guard printed its message and wrote the state
for every BPDU as well.

Leave a tripped port alone, and block a root guard port only when it is
not blocked yet. The hold timer of root guard is still renewed by every
BPDU.
@DrDoof DrDoof added bugfix UI/JS Issues relating to the webUI labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix UI/JS Issues relating to the webUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant