IBDP: skip main rib route distribution for EVPN Type 5
We disabled EVPN Type 5, but not this code. This results in a memory leak, as the
storage of the redistributed routes was never cleared.
@@ -491,7 +491,11 @@ final class BgpRoutingProcess implements RoutingProcess<BgpTopology, BgpRoute<?,
/** Redistribute routes from {@code srcVrfName} into our VRF. */
public void redistribute(
RibDelta<? extends AnnotatedRoute<AbstractRoute>> mainRibDelta, String srcVrfName) {
- _mainRibRoutesToProcess.put(srcVrfName, mainRibDelta);
+ assert mainRibDelta != null; // unused
+ assert srcVrfName != null; // unused
+ assert _mainRibRoutesToProcess != null; // unused
+ // This is neither used nor cleared, so no-op for now.
+ // _mainRibRoutesToProcess.put(srcVrfName, mainRibDelta);
}
@Override
