diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-04 17:05:57 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-14 07:51:42 +0900 |
commit | 411bf84633c6a88fa1d08b5238d74b55910cffd1 (patch) | |
tree | e6d9d399bcb82f0245fabe011e0d08ea11b137f0 /api | |
parent | d4b8a858299acc7164f452c8aa4180695252f38e (diff) |
support mrt table dump (TABLE_DUMPv2 format)
Only global rib dumping is supported for now.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api')
-rw-r--r-- | api/grpc_server.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go index fe6e7f50..2b8ae0c8 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -531,15 +531,15 @@ func (s *Server) DeletePath(ctx context.Context, arg *DeletePathRequest) (*Delet } func (s *Server) EnableMrt(ctx context.Context, arg *EnableMrtRequest) (*EnableMrtResponse, error) { - return &EnableMrtResponse{}, s.bgpServer.EnableMrt(&config.Mrt{ - Interval: arg.Interval, - DumpType: config.IntToMrtTypeMap[int(arg.DumpType)], - FileName: arg.Filename, + return &EnableMrtResponse{}, s.bgpServer.EnableMrt(&config.MrtConfig{ + RotationInterval: arg.Interval, + DumpType: config.IntToMrtTypeMap[int(arg.DumpType)], + FileName: arg.Filename, }) } func (s *Server) DisableMrt(ctx context.Context, arg *DisableMrtRequest) (*DisableMrtResponse, error) { - return &DisableMrtResponse{}, s.bgpServer.DisableMrt() + return &DisableMrtResponse{}, s.bgpServer.DisableMrt(&config.MrtConfig{}) } func (s *Server) InjectMrt(stream GobgpApi_InjectMrtServer) error { |