Skip to content

stp: forward on an admin edge port as soon as its link comes up - #1011

Open
DrDoof wants to merge 1 commit into
RTLPlayground:mainfrom
DrDoof:fix/stp-admin-edge-link-up
Open

DrDoof wants to merge 1 commit into
RTLPlayground:mainfrom
DrDoof:fix/stp-admin-edge-link-up

Conversation

@DrDoof

@DrDoof DrDoof commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

A port set to edge on waits 30 seconds every time its link comes up, longer than a port with no configuration at all, which auto edge lets through after three. The admin edge flag is honoured when STP or the port is switched on, but not when the carrier comes back, and edge on turns auto edge off. A host on such a port times out on DHCP after every reconnect.

The port is now treated as an edge port when its link returns, the same way as on start.

The STP simulator has a scenario for it: with stp port 4 edge on the port forwards within two seconds of link up, and again after the link went away and came back. It fails on main and passes with this change; all the other scenarios pass as before.

A port set to "edge on" waited the full two forward delays, 30 seconds,
every time its link came up, longer than a port with no configuration
at all, which auto edge lets through after three. The admin edge flag
was honoured when STP or the port was switched on, but not when the
carrier came back, and "edge on" turns auto edge off.

Treat the port as an edge port when its link returns, as on start.
@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