BgpRoutingProcess: only build delta if logging is on
@@ -542,6 +542,7 @@ final class BgpRoutingProcess implements RoutingProcess<BgpTopology, BgpRoute<?,
.getActions()
.map(a -> redistributeRouteToLocalRib(a, policy.get()))
.forEach(_localDeltaBuilder::from);
+ if (LOGGER.isDebugEnabled()) {
LOGGER.debug(
"Redistributed into local BGP RIB node {}, VRF {}: {}",
_hostname,
@@ -549,6 +550,7 @@ final class BgpRoutingProcess implements RoutingProcess<BgpTopology, BgpRoute<?,
_localDeltaBuilder.build());
}
}
+ }
/** Convert a main RIB route to a BGP route and run them through the provided policy */
private RibDelta<Bgpv4Route> redistributeRouteToLocalRib(
