diff options
author | YujiOshima <yuji.oshima0x3fd@gmail.com> | 2015-11-05 11:53:09 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-11-05 13:43:15 +0900 |
commit | 340266259790af559a64d50383a8923ae2d8d407 (patch) | |
tree | e61431a49a9b41e598c7d46cf12879e461fc7996 /gobgpd | |
parent | cfb73f754116bb6908201b72b451392ff1c77721 (diff) |
gobgpd: make blank bmpconfig when no config file
Signed-off-by: YujiOshima <yuji.oshima0x3fd@gmail.com>
Diffstat (limited to 'gobgpd')
-rw-r--r-- | gobgpd/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 810137a0..9466e622 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -170,6 +170,11 @@ 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 { |