summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-11-12 11:28:56 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-15 12:06:46 +0900
commit14cd6c97277d6071ffab1b4b0681c4f261893ccc (patch)
treefb881ae5bc94f02128c49ac1fcb940bfb2c27575 /gobgpd
parent38da8bb562086d98d0a56cbe23ae1568e8a66792 (diff)
server: ensure bmpClient is not nil when BgpServer is running
when gobgp/server used as a bgp library, current implementation can leave bmpClient nil. Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd')
-rw-r--r--gobgpd/main.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index 8d0dcf58..de348021 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -170,11 +170,6 @@ func main() {
grpcServer := server.NewGrpcServer(server.GRPC_PORT, bgpServer.GrpcReqCh)
go grpcServer.Serve()
- if opts.ConfigFile == "" {
- bgpServer.SetBmpConfig(config.BmpServers{
- BmpServerList: []config.BmpServer{},
- })
- }
var bgpConfig *config.Bgp = nil
var policyConfig *config.RoutingPolicy = nil
for {