diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-01-31 09:13:27 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-02-03 22:47:34 -0800 |
commit | 64360afd459436a49a1f1254cca21fffbe6945b5 (patch) | |
tree | 9b61d1357d73f8be7e8501e78c606eb41cda94d6 /api/grpc_server.go | |
parent | ada5cb1db61b481378ad78ba2d78bf36eff67e2e (diff) |
cli: Administrative Shutdown Communication on disable neighbor
This patch adds "--reason" option support into the disable neighbor command
which can specify "Administrative Shutdown Communication" on the BGP Cease
NOTIFICATION message.
Usage:
$ gobgp neighbor <neighbor address> disable --reason "some messages"
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r-- | api/grpc_server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go index c3601d0a..8f75c1c1 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -489,7 +489,7 @@ func (s *Server) EnableNeighbor(ctx context.Context, arg *EnableNeighborRequest) } func (s *Server) DisableNeighbor(ctx context.Context, arg *DisableNeighborRequest) (*DisableNeighborResponse, error) { - return &DisableNeighborResponse{}, s.bgpServer.DisableNeighbor(arg.Address) + return &DisableNeighborResponse{}, s.bgpServer.DisableNeighbor(arg.Address, arg.Communication) } func (s *Server) api2PathList(resource Resource, ApiPathList []*Path) ([]*table.Path, error) { |