summaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-01-11 10:04:35 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-01-12 21:36:57 +0900
commita61d468da585db352f5745663ed07ba28878b95b (patch)
tree6f61680c78693d5f2b2116c61e2be35eb4f7e273 /client
parent568c7aab62cc7a755debcf5e29e8354a73791622 (diff)
cli: "monitor neighbor" command supports current flag
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'client')
-rw-r--r--client/client.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go
index a48f3c17..50d55319 100644
--- a/client/client.go
+++ b/client/client.go
@@ -993,9 +993,10 @@ func (c *MonitorNeighborStateClient) Recv() (*config.Neighbor, error) {
return api.NewNeighborFromAPIStruct(p)
}
-func (cli *Client) MonitorNeighborState(name string) (*MonitorNeighborStateClient, error) {
+func (cli *Client) MonitorNeighborState(name string, current bool) (*MonitorNeighborStateClient, error) {
stream, err := cli.cli.MonitorPeerState(context.Background(), &api.Arguments{
- Name: name,
+ Name: name,
+ Current: current,
})
if err != nil {
return nil, err