diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-08-01 19:54:40 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-08 20:56:46 +0900 |
commit | ef934f76a52df814d5c77f9d0c3f9acaeb0856d9 (patch) | |
tree | 745f67a7fbc30cacf4286f99ec22434344ebcd08 /server | |
parent | 74fd2e51ee6746440602250b11477ba96d86c258 (diff) |
api: change arguments name from neighbor_address to name
planning to use this variable more generally (for vrf)
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/grpc_server.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go index e72b42aa..17fb6c87 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -128,7 +128,7 @@ func (s *Server) Serve() error { func (s *Server) GetNeighbor(ctx context.Context, arg *api.Arguments) (*api.Peer, error) { var rf bgp.RouteFamily - req := NewGrpcRequest(REQ_NEIGHBOR, arg.NeighborAddress, rf, nil) + req := NewGrpcRequest(REQ_NEIGHBOR, arg.Name, rf, nil) s.bgpServerCh <- req res := <-req.ResponseCh @@ -174,7 +174,7 @@ func (s *Server) GetAdjRib(arg *api.Arguments, stream api.Grpc_GetAdjRibServer) return err } - req := NewGrpcRequest(reqType, arg.NeighborAddress, rf, nil) + req := NewGrpcRequest(reqType, arg.Name, rf, nil) s.bgpServerCh <- req for res := range req.ResponseCh { @@ -206,7 +206,7 @@ func (s *Server) GetRib(arg *api.Arguments, stream api.Grpc_GetRibServer) error return err } - req := NewGrpcRequest(reqType, arg.NeighborAddress, rf, nil) + req := NewGrpcRequest(reqType, arg.Name, rf, nil) s.bgpServerCh <- req for res := range req.ResponseCh { @@ -254,7 +254,7 @@ END: func (s *Server) MonitorPeerState(arg *api.Arguments, stream api.Grpc_MonitorPeerStateServer) error { var rf bgp.RouteFamily - req := NewGrpcRequest(REQ_MONITOR_NEIGHBOR_PEER_STATE, arg.NeighborAddress, rf, nil) + req := NewGrpcRequest(REQ_MONITOR_NEIGHBOR_PEER_STATE, arg.Name, rf, nil) s.bgpServerCh <- req var err error @@ -280,7 +280,7 @@ func (s *Server) neighbor(reqType int, arg *api.Arguments) (*api.Error, error) { } none := &api.Error{} - req := NewGrpcRequest(reqType, arg.NeighborAddress, rf, nil) + req := NewGrpcRequest(reqType, arg.Name, rf, nil) s.bgpServerCh <- req res := <-req.ResponseCh @@ -360,7 +360,7 @@ func (s *Server) GetNeighborPolicy(ctx context.Context, arg *api.Arguments) (*ap return nil, err } - req := NewGrpcRequest(REQ_NEIGHBOR_POLICY, arg.NeighborAddress, rf, nil) + req := NewGrpcRequest(REQ_NEIGHBOR_POLICY, arg.Name, rf, nil) s.bgpServerCh <- req res := <-req.ResponseCh |