diff options
author | Alistair King <alistair@kentik.com> | 2020-11-03 11:44:13 -0500 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-11-06 21:08:55 +0900 |
commit | 5c979fea68b6000ec5339fe85dfbf21bc3977921 (patch) | |
tree | c88af87aa4d69931e1ec9829e53bdafd63503520 /pkg/server/zclient.go | |
parent | 7ce0dddd4f49307540b13024168310c237d28c2f (diff) |
Use MonitorTableRequest.Name to filter by peer
Filter returned Paths based on provided peer address (similar to
GetTable). This should improve performance when using MonitorTable
with ADJ_IN and Current for a single peer.
Diffstat (limited to 'pkg/server/zclient.go')
-rw-r--r-- | pkg/server/zclient.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/server/zclient.go b/pkg/server/zclient.go index 5dac2a30..645cb0f4 100644 --- a/pkg/server/zclient.go +++ b/pkg/server/zclient.go @@ -364,7 +364,7 @@ func (z *zebraClient) updatePathByNexthopCache(paths []*table.Path) { func (z *zebraClient) loop() { w := z.server.watch([]watchOption{ watchBestPath(true), - watchPostUpdate(true), + watchPostUpdate(true, ""), }...) defer w.Stop() |