summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-25 23:52:21 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-25 23:52:21 +0900
commit45050d9b97f3821c6dbdbc98678a62ddfcf81aad (patch)
treee54184769a3e441d763e0cecad93ed13372b849a /server/server.go
parent6f95b7dc62b0ce8523e4f6da2e2bff5f4a4d3b78 (diff)
remove collector mode support
We need to update yang config collector mode (split into config and state). before that, let's remove the feature itself to see if there is any user of it. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/server.go b/server/server.go
index a021dd84..37c43447 100644
--- a/server/server.go
+++ b/server/server.go
@@ -474,7 +474,7 @@ func (server *BgpServer) dropPeerAllRoutes(peer *Peer, families []bgp.RouteFamil
for _, rf := range families {
best, _ := server.globalRib.DeletePathsByPeer(ids, peer.fsm.peerInfo, rf)
- if !peer.isRouteServerClient() && !server.bgpConfig.Global.Collector.Enabled {
+ if !peer.isRouteServerClient() {
server.broadcastBests(best[table.GLOBAL_RIB_NAME])
}
@@ -692,9 +692,7 @@ func (server *BgpServer) propagateUpdate(peer *Peer, pathList []*table.Path) ([]
if len(best[table.GLOBAL_RIB_NAME]) == 0 {
return nil, alteredPathList
}
- if !server.bgpConfig.Global.Collector.Enabled {
- server.broadcastBests(best[table.GLOBAL_RIB_NAME])
- }
+ server.broadcastBests(best[table.GLOBAL_RIB_NAME])
}
for _, targetPeer := range server.neighborMap {
@@ -1604,9 +1602,6 @@ func (server *BgpServer) handleModConfig(grpcReq *GrpcRequest) error {
MaxLabel: g.MplsLabelMax,
},
AfiSafis: families,
- Collector: config.Collector{
- Enabled: g.Collector,
- },
},
}
if err := config.SetDefaultConfigValues(nil, b); err != nil {
@@ -1742,7 +1737,6 @@ func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) []*SenderMsg {
ListenAddresses: g.ListenConfig.LocalAddressList,
MplsLabelMin: g.MplsLabelRange.MinLabel,
MplsLabelMax: g.MplsLabelRange.MaxLabel,
- Collector: g.Collector.Enabled,
},
}
grpcReq.ResponseCh <- result