diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-01-10 15:07:39 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-01-11 15:43:18 +0900 |
commit | 51d0e6e91f25c8ee24fde68c6479c711acdcd0ec (patch) | |
tree | 136b79b8f5e1f5ff6221a1b625aa397bbf40640e /server/server.go | |
parent | fe9a1f6f9d8be8d0b4237e941ec8377b338020e7 (diff) |
server: Empty path list in initial WatchEventUpdate
Currently, MonitorRib API with ADJ_IN type and "current" flag returns
the initial response with an empty path list when gRPC client connecting
to GoBGP daemon.
This causes the client can not receive the current paths which GoBGP
daemon already has.
This patch fixes to compose the initial MonitorRib response with the
current paths.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go index 8e3b362f..2b32e1ce 100644 --- a/server/server.go +++ b/server/server.go @@ -2723,6 +2723,7 @@ func (s *BgpServer) Watch(opts ...WatchOption) (w *Watcher) { Payload: buf, PostPolicy: false, Neighbor: configNeighbor, + PathList: []*table.Path{path}, }) } eor := bgp.NewEndOfRib(rf) @@ -2770,6 +2771,7 @@ func (s *BgpServer) Watch(opts ...WatchOption) (w *Watcher) { Payload: buf, PostPolicy: true, Neighbor: configNeighbor, + PathList: []*table.Path{path}, }) } eor := bgp.NewEndOfRib(rf) |