Fix deterministic flat bridge gateway selection after restart - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
問題
Ubuntu 26.04 重新啟動後,預先建立的 flat bridge 可能同時帶有模板推導的
.1閘道與主機位址。舊邏輯因看到兩個同網段位址而拒絕選擇,連帶中止 Network Plugin Manager 的 host-port 重整。修正
bridgeSubnet為網路位址時,與 bridge plugin 一致推導第一個可用位址並優先選用。驗證
go test ./...go vet ./...、go mod verify、gofmt、git diff --checkselectBridgeGateway100% 覆蓋