diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/client.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go index d7a9521d..04c52336 100644 --- a/client/client.go +++ b/client/client.go @@ -198,8 +198,11 @@ func (cli *Client) DeleteNeighbor(c *config.Neighbor) error { return err } -//func (cli *Client) UpdateNeighbor(c *config.Neighbor) (bool, error) { -//} +func (cli *Client) UpdateNeighbor(c *config.Neighbor, doSoftResetIn bool) (bool, error) { + peer := api.NewPeerFromConfigStruct(c) + response, err := cli.cli.UpdateNeighbor(context.Background(), &api.UpdateNeighborRequest{Peer: peer, DoSoftResetIn: doSoftResetIn}) + return response.NeedsSoftResetIn, err +} func (cli *Client) ShutdownNeighbor(addr, communication string) error { _, err := cli.cli.ShutdownNeighbor(context.Background(), &api.ShutdownNeighborRequest{Address: addr, Communication: communication}) |