From 231cac6d8550553bf1df924e7d4c6e44a8a6c662 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 10 Feb 2016 06:39:32 -0800 Subject: table: fix adjrib regression fix adjrib regression due to the d2801681 commit. Signed-off-by: FUJITA Tomonori --- server/peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/peer.go') 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 } -- cgit v1.2.3