Skip to content

Commit

Permalink
force peer update
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Oct 31, 2024
1 parent 5453efd commit ad13b3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ func (p *Prefix) bgpAnnounce(site *ConfigSite) {
return
}

if _, err := s.UpdatePeer(ctx, &api.UpdatePeerRequest{
Peer: n,
}); err != nil {
log.Error().Err(err).
Str("site", site.Name).
Str("prefix", p.prefix).
Msg("UpdatePeer")
return
}

p.lastAdvSite = site
return
}
Expand Down

0 comments on commit ad13b3c

Please sign in to comment.