From 29412028a7ab41fd953a0ea5cc87a728b212ab17 Mon Sep 17 00:00:00 2001 From: mageshgv Date: Wed, 16 Oct 2019 15:18:38 -0700 Subject: Fix adj-out display with add path enabled --- pkg/server/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg') 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 -- cgit v1.2.3