diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/client.go | 5 |
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 |