summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go
index c7e22475..7a5d1c86 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1244,7 +1244,7 @@ func (server *BgpServer) getBestFromLocal(peer *Peer) ([]*table.Path, []*table.P
rib := server.globalRib
l, _ := peer.fsm.LocalHostPort()
peer.conf.Transport.TransportConfig.LocalAddress = net.ParseIP(l)
- bests := filterpath(peer, peer.getBests(rib))
+ bests := rib.ApplyPolicy(table.POLICY_DIRECTION_EXPORT, filterpath(peer, peer.getBests(rib)))
pathList = make([]*table.Path, 0, len(bests))
for _, path := range bests {
path.UpdatePathAttrs(&server.bgpConfig.Global, &peer.conf)