diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-08-03 14:04:34 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-03 21:59:39 +0900 |
commit | 84dd9d6983564b37b7e146264c44da6874a08cf4 (patch) | |
tree | 1dcda7f9b8164aec87c0fc6c889f8499c6fd8492 /server/grpc_server.go | |
parent | d895c87c741084b4469bb260e3ef94f7793a8f92 (diff) |
api: use serialized buffer rather than protobuf struct to add paths
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r-- | server/grpc_server.go | 8 |
1 files changed, 2 insertions, 6 deletions
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 |