summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 06:39:32 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 06:39:32 -0800
commit231cac6d8550553bf1df924e7d4c6e44a8a6c662 (patch)
tree271db1388e3d6495eed6b11140763583325be770 /server
parent6f2259f027ec7fb5bcfba7b4a00a10069363a7cc (diff)
table: fix adjrib regression
fix adjrib regression due to the d2801681 commit. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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
}