VirtualRouter: uniquify export BGP Routes
The process of exporting a BGP route changes the properties, so routes
that are distinct going in may be identical coming out. Before queueing
the routes for import on the neighbor, uniquify them.
On some large networks, this results in up to 100x fewer queued routes.
@@ -1524,7 +1524,8 @@ public class VirtualRouter implements Serializable {
.build())
.orElse(null);
})
- .filter(Objects::nonNull),
+ .filter(Objects::nonNull)
+ .distinct(),
mainRibExports);
// Call this on the REMOTE VR and REVERSE the edge!
