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:
Maycon Santos
2022-12-08 15:15:50 +01:00
committed by GitHub
parent eec24fc730
commit 6f610dca89
5 changed files with 56 additions and 17 deletions

View File

@ -53,10 +53,6 @@ func newClientNetworkWatcher(ctx context.Context, wgInterface *iface.WGIface, st
return client
}
func getHANetworkID(input *route.Route) string {
return input.NetID + "-" + input.Network.String()
}
func (c *clientNetwork) getRouterPeerStatuses() map[string]routerPeerStatus {
routePeerStatuses := make(map[string]routerPeerStatus)
for _, r := range c.routes {