summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/server/server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go
index fa0f5225..966f48b7 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -2485,11 +2485,11 @@ func (s *BgpServer) getAdjRib(addr string, family bgp.RouteFamily, in bool, enab
if p == nil {
filtered[path.GetNlri().String()] = path
}
- adjRib.Update([]*table.Path{path})
+ adjRib.UpdateAdjRibOut([]*table.Path{path})
}
} else {
accepted, _ := s.getBestFromLocal(peer, peer.configuredRFlist())
- adjRib.Update(accepted)
+ adjRib.UpdateAdjRibOut(accepted)
}
}
rib, err = adjRib.Select(family, false, table.TableSelectOption{ID: id, AS: as, LookupPrefixes: prefixes})
@@ -2616,7 +2616,7 @@ func (s *BgpServer) getAdjRibInfo(addr string, family bgp.RouteFamily, in bool)
} else {
adjRib = table.NewAdjRib(peer.configuredRFlist())
accepted, _ := s.getBestFromLocal(peer, peer.configuredRFlist())
- adjRib.Update(accepted)
+ adjRib.UpdateAdjRibOut(accepted)
}
info, err = adjRib.TableInfo(family)
return err