From 84dd9d6983564b37b7e146264c44da6874a08cf4 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 3 Aug 2015 14:04:34 +0900 Subject: api: use serialized buffer rather than protobuf struct to add paths Signed-off-by: ISHIDA Wataru --- server/grpc_server.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'server/grpc_server.go') diff --git a/server/grpc_server.go b/server/grpc_server.go index 55dd4381..e72b42aa 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -334,15 +334,11 @@ func (s *Server) ModPath(stream api.Grpc_ModPathServer) error { } reqType := REQ_GLOBAL_ADD - if arg.Path.IsWithdraw { + if arg.IsWithdraw { reqType = REQ_GLOBAL_DELETE } - rf, err := convertAf2Rf(arg.Path.Nlri.Af) - if err != nil { - return err - } - req := NewGrpcRequest(reqType, "", rf, arg.Path) + req := NewGrpcRequest(reqType, "", bgp.RouteFamily(0), arg) s.bgpServerCh <- req res := <-req.ResponseCh -- cgit v1.2.3