summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go
index c9c6e61e..f21ed0bd 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -205,8 +205,9 @@ func (peer *Peer) handleBGPmessage(m *bgp.BGPMessage) ([]*table.Path, bool, []*b
if _, ok := peer.capMap[bgp.BGP_CAP_ROUTE_REFRESH]; ok {
rfList := []bgp.RouteFamily{rf}
peer.adjRib.DropOut(rfList)
- pathList, filtered := peer.getBestFromLocal(rfList)
- peer.adjRib.UpdateOut(pathList)
+ accepted, filtered := peer.getBestFromLocal(rfList)
+ peer.adjRib.UpdateOut(accepted)
+ pathList = append(pathList, accepted...)
for _, path := range filtered {
path.IsWithdraw = true
pathList = append(pathList, path)