diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/peer.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/server/peer.go b/server/peer.go index c2ff38af..4432af9b 100644 --- a/server/peer.go +++ b/server/peer.go @@ -105,12 +105,7 @@ func (peer *Peer) isRouteReflectorClient() bool { } func (peer *Peer) configuredRFlist() []bgp.RouteFamily { - rfList := []bgp.RouteFamily{} - for _, rf := range peer.conf.AfiSafis.AfiSafiList { - k, _ := bgp.GetRouteFamily(rf.AfiSafiName) - rfList = append(rfList, k) - } - return rfList + return peer.localRib.GetRFlist() } func (peer *Peer) updateAccepted(accepted uint32) { |