diff options
author | Yuji Oshima <yuji.oshima0x3fd@gmail.com> | 2015-10-29 17:26:01 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-29 17:26:01 +0900 |
commit | b780fed28a735fa97cfbb220769f6f2082543674 (patch) | |
tree | b45b5ed4b2c56f93a70c44b7c4404df6e9d22582 /server/grpc_server.go | |
parent | 645ce47b986cf7296d217bc98af7b4a8446833a9 (diff) |
api: confirm api.Peer to openconfig and add ModPeer api
Signed-off-by: YujiOshima <yuji.oshima0x3fd@gmail.com>
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go index f6f233a0..348d11c7 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -40,6 +40,7 @@ const ( REQ_NEIGHBOR_SOFT_RESET_OUT REQ_NEIGHBOR_ENABLE REQ_NEIGHBOR_DISABLE + REQ_MOD_NEIGHBOR REQ_GLOBAL_RIB REQ_MONITOR_GLOBAL_BEST_CHANGED REQ_MONITOR_NEIGHBOR_PEER_STATE @@ -308,6 +309,10 @@ func (s *Server) ModVrf(ctx context.Context, arg *api.ModVrfArguments) (*api.Err return s.mod(REQ_VRF_MOD, arg) } +func (s *Server) ModNeighbor(ctx context.Context, arg *api.ModNeighborArguments) (*api.Error, error) { + return s.mod(REQ_MOD_NEIGHBOR, arg) +} + func (s *Server) GetDefinedSet(ctx context.Context, arg *api.DefinedSet) (*api.DefinedSet, error) { d, err := s.get(REQ_DEFINED_SET, arg) if err != nil { |