Skip to content

server: apply AS path option updates without resetting sessions - #3588

Open
sillage-hjj wants to merge 1 commit into
osrg:masterfrom
sillage-hjj:fix/as-path-options-soft-reset
Open

server: apply AS path option updates without resetting sessions#3588
sillage-hjj wants to merge 1 commit into
osrg:masterfrom
sillage-hjj:fix/as-path-options-soft-reset

Conversation

@sillage-hjj

Copy link
Copy Markdown

Updating AllowOwnAs, ReplacePeerAs, or AllowAsPathLoopLocal currently makes NeedsResendOpenMessage request a session restart. These options can be applied by reprocessing routes, so updating them unnecessarily interrupts established sessions.

Remove AS path options from the OPEN-message restart check. Report NeedsSoftResetIn for AllowOwnAs changes, reevaluate cached rejection state during inbound soft reset, and withdraw paths that are no longer accepted. Refresh outbound advertisements when ReplacePeerAs or AllowAsPathLoopLocal changes. Preserve peer-group inheritance and explicit member overrides, and update cached rejection state without growing path-parent history.

Testing

Passed on Linux with Go 1.27.1 and CGO_ENABLED=1:

  • go test -v -race -count=1 -p=8 -timeout 240s ./...
  • GOARCH=386 go test -v -count=1 -p=8 -timeout 240s ./...
  • golangci-lint run (v2.13.2)

The UNIX-socket tests used short TMPDIR and GOTMPDIR paths. Thirty CI scenarios completed successfully across local and native Linux runs; upstream skips were unchanged.

Closes #3582

Updating `AllowOwnAs`, `ReplacePeerAs`, or `AllowAsPathLoopLocal` currently makes `NeedsResendOpenMessage` request a session restart. These options can be applied by reprocessing routes, so updating them unnecessarily interrupts established sessions.

Remove AS path options from the OPEN-message restart check. Report `NeedsSoftResetIn` for `AllowOwnAs` changes, reevaluate cached rejection state during inbound soft reset, and withdraw paths that are no longer accepted. Refresh outbound advertisements when `ReplacePeerAs` or `AllowAsPathLoopLocal` changes. Preserve peer-group inheritance and explicit member overrides, and update cached rejection state without growing path-parent history.

Closes osrg#3582
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GoBGP hard-resets the session upon AS path option update

1 participant