Skip to content

Commit

Permalink
Merge pull request #84 from loxilb-io/bgp1
Browse files Browse the repository at this point in the history
PR: Avoid setup peer between external mode loxilb(s)
  • Loading branch information
TrekkieCoder authored Dec 7, 2023
2 parents fd4a852 + e185617 commit 30cf5a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/agent/manager/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1484,9 +1484,11 @@ loop:
bgpPeers = append(bgpPeers, lpc)
}
}
for _, lc := range m.LoxiClients {
if aliveClient.Host != lc.Host {
bgpPeers = append(bgpPeers, lc)
if len(m.networkConfig.LoxilbURLs) <= 0 {
for _, lc := range m.LoxiClients {
if aliveClient.Host != lc.Host {
bgpPeers = append(bgpPeers, lc)
}
}
}
}
Expand Down

0 comments on commit 30cf5a2

Please sign in to comment.