mirror of
https://github.com/netbirdio/netbird.git
synced 2026-03-31 06:34:14 -04:00
Filter routes to sync from same HA group (#618)
An additional check and filter for routes that are part of the same HA group where the peer is a routing peer
This commit is contained in:
@@ -145,3 +145,8 @@ func compareGroupsList(list, other []string) bool {
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
// GetHAUniqueID returns a highly available route ID by combining Network ID and Network range address
|
||||
func GetHAUniqueID(input *Route) string {
|
||||
return input.NetID + "-" + input.Network.String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user