summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gobgpd/main.go5
-rw-r--r--server/server.go3
2 files changed, 3 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 {
diff --git a/server/server.go b/server/server.go
index 15e2a053..629dfeab 100644
--- a/server/server.go
+++ b/server/server.go
@@ -167,6 +167,9 @@ func (server *BgpServer) Serve() {
}
}
+ server.bmpClient, _ = newBMPClient(config.BmpServers{BmpServerList: []config.BmpServer{}}, server.bmpConnCh)
+ server.roaClient, _ = newROAClient(g.GlobalConfig.As, config.RpkiServers{})
+
if g.Mrt.FileName != "" {
w, err := newMrtWatcher(g.Mrt.FileName)
if err != nil {