From 5c979fea68b6000ec5339fe85dfbf21bc3977921 Mon Sep 17 00:00:00 2001 From: Alistair King Date: Tue, 3 Nov 2020 11:44:13 -0500 Subject: 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. --- pkg/server/zclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/server/zclient.go') 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() -- cgit v1.2.3