summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go8
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