diff options
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r-- | api/grpc_server.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go index 4b6ec092..cbfbc98d 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -3012,5 +3012,12 @@ func (s *Server) GetRibInfo(ctx context.Context, arg *GetRibInfoRequest) (*GetRi NumAccepted: uint64(info.NumAccepted), }, }, nil +} +func (s *Server) AddCollector(ctx context.Context, arg *AddCollectorRequest) (*AddCollectorResponse, error) { + return &AddCollectorResponse{}, s.bgpServer.AddCollector(&config.CollectorConfig{ + Url: arg.Url, + DbName: arg.DbName, + TableDumpInterval: arg.TableDumpInterval, + }) } |