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 /client | |
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 'client')
-rw-r--r-- | client/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go index 49c5574d..fea22e5d 100644 --- a/client/client.go +++ b/client/client.go @@ -208,8 +208,8 @@ func (cli *Client) EnableNeighbor(addr string) error { return err } -func (cli *Client) DisableNeighbor(addr string) error { - _, err := cli.cli.DisableNeighbor(context.Background(), &api.DisableNeighborRequest{Address: addr}) +func (cli *Client) DisableNeighbor(addr, communication string) error { + _, err := cli.cli.DisableNeighbor(context.Background(), &api.DisableNeighborRequest{Address: addr, Communication: communication}) return err } |