summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/zclient.go
diff options
context:
space:
mode:
authorAlistair King <alistair@kentik.com>2020-11-03 11:44:13 -0500
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2020-11-06 21:08:55 +0900
commit5c979fea68b6000ec5339fe85dfbf21bc3977921 (patch)
treec88af87aa4d69931e1ec9829e53bdafd63503520 /pkg/server/zclient.go
parent7ce0dddd4f49307540b13024168310c237d28c2f (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.go2
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()