diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-01-11 09:41:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-01-12 21:36:57 +0900 |
commit | 568c7aab62cc7a755debcf5e29e8354a73791622 (patch) | |
tree | 00910f3854df55665420d59ad8cf5ce1c2bc8e93 /api/grpc_server.go | |
parent | 91beb15057e951ec7376218a4d6e176f061d6d7e (diff) |
api: Support current flag in MonitorPeerState API
This patch adds "current" flag in MonitorPeerState API and enables to
get the current (existing) neighbors when gRPC client connecting to
GoBGP daemon.
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 b7c1eb74..d43a0a8b 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -612,7 +612,7 @@ func (s *Server) MonitorPeerState(arg *Arguments, stream GobgpApi_MonitorPeerSta return fmt.Errorf("invalid request") } return func() error { - w := s.bgpServer.Watch(server.WatchPeerState(false)) + w := s.bgpServer.Watch(server.WatchPeerState(arg.Current)) defer func() { w.Stop() }() for { |