summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-10 15:16:02 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-10 15:16:02 +0900
commit64ff0fec119b822a7cac9c7fb17f51d70865c39b (patch)
tree095732e99d7480041c2d2903e68f962d45c25391 /server/grpc_server.go
parentf9a9c410c3b221b515bad9fcf154990be7bb70fa (diff)
grpc: remove MRT dump streaming GRPC API
Seems that nobody is interested in receiving MRT dump over streaming GRPC API. Let's remove it. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go
index 17a005a6..80c7f99f 100644
--- a/server/grpc_server.go
+++ b/server/grpc_server.go
@@ -53,8 +53,6 @@ const (
REQ_MONITOR_GLOBAL_BEST_CHANGED
REQ_MONITOR_INCOMING
REQ_MONITOR_NEIGHBOR_PEER_STATE
- REQ_MRT_GLOBAL_RIB
- REQ_MRT_LOCAL_RIB
REQ_ENABLE_MRT
REQ_DISABLE_MRT
REQ_INJECT_MRT
@@ -311,23 +309,6 @@ func (s *Server) InjectMrt(stream api.GobgpApi_InjectMrtServer) error {
return stream.SendAndClose(&api.InjectMrtResponse{})
}
-func (s *Server) GetMrt(arg *api.MrtArguments, stream api.GobgpApi_GetMrtServer) error {
- var reqType int
- switch arg.Resource {
- case api.Resource_GLOBAL:
- reqType = REQ_MRT_GLOBAL_RIB
- case api.Resource_LOCAL:
- reqType = REQ_MRT_LOCAL_RIB
- default:
- return fmt.Errorf("unsupported resource type: %v", arg.Resource)
- }
- req := NewGrpcRequest(reqType, arg.NeighborAddress, bgp.RouteFamily(arg.Family), arg.Interval)
- s.bgpServerCh <- req
- return handleMultipleResponses(req, func(res *GrpcResponse) error {
- return stream.Send(res.Data.(*api.MrtMessage))
- })
-}
-
func (s *Server) AddBmp(ctx context.Context, arg *api.AddBmpRequest) (*api.AddBmpResponse, error) {
d, err := s.get(REQ_ADD_BMP, arg)
return d.(*api.AddBmpResponse), err