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/bmp.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/bmp.go')
-rw-r--r-- | pkg/server/bmp.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/bmp.go b/pkg/server/bmp.go index 22be03ae..839dd786 100644 --- a/pkg/server/bmp.go +++ b/pkg/server/bmp.go @@ -122,10 +122,10 @@ func (b *bmpClient) loop() { ).Warn("both option for route-monitoring-policy is obsoleted") } if b.c.RouteMonitoringPolicy == config.BMP_ROUTE_MONITORING_POLICY_TYPE_PRE_POLICY || b.c.RouteMonitoringPolicy == config.BMP_ROUTE_MONITORING_POLICY_TYPE_ALL { - ops = append(ops, watchUpdate(true)) + ops = append(ops, watchUpdate(true, "")) } if b.c.RouteMonitoringPolicy == config.BMP_ROUTE_MONITORING_POLICY_TYPE_POST_POLICY || b.c.RouteMonitoringPolicy == config.BMP_ROUTE_MONITORING_POLICY_TYPE_ALL { - ops = append(ops, watchPostUpdate(true)) + ops = append(ops, watchPostUpdate(true, "")) } if b.c.RouteMonitoringPolicy == config.BMP_ROUTE_MONITORING_POLICY_TYPE_LOCAL_RIB || b.c.RouteMonitoringPolicy == config.BMP_ROUTE_MONITORING_POLICY_TYPE_ALL { ops = append(ops, watchBestPath(true)) |