summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/peer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go
index 967a0e5d..0ac082d3 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -59,8 +59,8 @@ func NewPeer(g config.Global, conf config.Neighbor, loc *table.TableManager, pol
conf.State.SessionState = config.IntToSessionStateMap[int(bgp.BGP_FSM_IDLE)]
conf.Timers.State.Downtime = time.Now().Unix()
rfs, _ := config.AfiSafis(conf.AfiSafis).ToRfList()
- peer.adjRibIn = table.NewAdjRib(peer.ID(), rfs)
- peer.adjRibOut = table.NewAdjRib(peer.ID(), rfs)
+ peer.adjRibIn = table.NewAdjRib(peer.ID(), rfs, g.Collector.Enabled)
+ peer.adjRibOut = table.NewAdjRib(peer.ID(), rfs, g.Collector.Enabled)
peer.fsm = NewFSM(&g, &conf, policy)
return peer
}