diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-06 09:37:17 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-20 04:25:25 +0900 |
commit | 804973bff5110b1c925167d6e8da6b188b63eb0a (patch) | |
tree | 13893e49735c0fa81a1f1f3ba765238cc364d22d /server/grpc_server.go | |
parent | d59f1b147eba8199458df22bba1d2462b65a2308 (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.go | 8 |
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 } |