From ad13b3cea2323b4b8f6cf1b630e244e77eeb399e Mon Sep 17 00:00:00 2001 From: Ezri Zhu Date: Thu, 31 Oct 2024 00:45:35 -0400 Subject: [PATCH] force peer update --- bgp.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bgp.go b/bgp.go index 270ee5f..1e4a54f 100644 --- a/bgp.go +++ b/bgp.go @@ -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 }