summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-06 09:37:17 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-20 04:25:25 +0900
commit804973bff5110b1c925167d6e8da6b188b63eb0a (patch)
tree13893e49735c0fa81a1f1f3ba765238cc364d22d /server/grpc_server.go
parentd59f1b147eba8199458df22bba1d2462b65a2308 (diff)
remove REQ_GRPC_DELETE_NEIGHBOR
replace REQ_GRPC_DELETE_NEIGHBOR with REQ_DEL_NEIGHBOR Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go
index 04b74858..e4de06f5 100644
--- a/server/grpc_server.go
+++ b/server/grpc_server.go
@@ -46,9 +46,7 @@ const (
REQ_NEIGHBOR_ENABLE
REQ_NEIGHBOR_DISABLE
REQ_ADD_NEIGHBOR
- REQ_DEL_NEIGHBOR
- // FIXME: we should merge
- REQ_GRPC_DELETE_NEIGHBOR
+ REQ_DELETE_NEIGHBOR
REQ_UPDATE_NEIGHBOR
REQ_GLOBAL_RIB
REQ_MONITOR_RIB
@@ -655,7 +653,9 @@ func (s *Server) AddNeighbor(ctx context.Context, arg *api.AddNeighborRequest) (
}
func (s *Server) DeleteNeighbor(ctx context.Context, arg *api.DeleteNeighborRequest) (*api.DeleteNeighborResponse, error) {
- d, err := s.get(REQ_GRPC_DELETE_NEIGHBOR, arg)
+ d, err := s.get(REQ_DELETE_NEIGHBOR, &config.Neighbor{Config: config.NeighborConfig{
+ NeighborAddress: arg.Peer.Conf.NeighborAddress,
+ }})
if err != nil {
return nil, err
}