diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-20 14:34:50 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-21 05:52:04 +0900 |
commit | cbd955e97ea823984be95d4a685d55c1dfe2b1af (patch) | |
tree | 84e46e0ec8f07408dd3bd7a674f43e2ca1530d90 /server/peer.go | |
parent | 81253df14f29c626110d1227b04f6cf1a090d417 (diff) |
server: avoid generating rflist from config
Use saved one in TableManager
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-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) { |